input_ids
sequence | attention_mask
sequence | labels
sequence | prompt
stringlengths 528
1.77k
| completion
stringlengths 40
173
|
---|---|---|---|---|
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2522,
487,
411,
263,
8583,
393,
338,
732,
2011,
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,
29900,
29896,
29896,
29929,
29900,
29953,
29918,
29896,
313,
13,
12,
29908,
2008,
271,
310,
390,
24494,
29908,
1426,
29892,
13,
12,
29908,
12310,
2785,
7400,
29871,
29906,
29900,
29896,
29896,
20121,
29908,
16985,
29892,
13,
12,
29908,
4597,
1848,
5127,
12813,
2877,
313,
10363,
29924,
5513,
1426,
29892,
13,
12,
29908,
29928,
575,
537,
313,
7323,
29889,
639,
2383,
29906,
5513,
1426,
29892,
13,
12,
29908,
22677,
18320,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29945,
29941,
29945,
29900,
29918,
29896,
313,
13,
12,
29908,
7976,
24839,
29908,
1426,
29892,
13,
12,
29908,
2525,
1169,
7138,
1133,
29908,
16985,
29892,
13,
12,
29908,
2182,
1131,
1336,
10069,
6599,
29908,
1426,
29892,
13,
12,
21472,
1426,
29892,
13,
12,
29908,
12412,
5915,
5946,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
29498,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29947,
29955,
29941,
29900,
29896,
29946,
29918,
29945,
313,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
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,
2522,
487,
411,
263,
8583,
393,
338,
732,
2011,
1049,
29973,
29952,
13,
28956,
2850,
13,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29947,
29955,
29941,
29900,
29896,
29946,
29918,
29945,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
29992,
29995,
637,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29947,
29955,
29941,
29900,
29896,
29946,
29918,
29945,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
29992,
29995,
637,
1049,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the Score with a Team that is @ portland?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1011906_1 (
"Seat of RCM" text,
"Population Canada 2011 Census" numeric,
"Regional County Municipality (RCM)" text,
"Density (pop. per km2)" text,
"Land Area" text
);
CREATE TABLE table_1_1245350_1 (
"Max Speed" text,
"Units Produced" numeric,
"Quattroporte IV" text,
Power text,
"Engine Capacity" text,
"Production Period" text
);
CREATE TABLE table_2_15873014_5 (
"High rebounds" text,
"High assists" text,
Date text,
Record text,
Game numeric,
"High points" text,
Score text,
Team text,
"Location Attendance" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the Score with a Team that is @ portland?`
```sql
| SELECT Score FROM table_2_15873014_5 WHERE "Team" ILIKE '%@%portland%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
338,
278,
28942,
746,
278,
1857,
8455,
338,
289,
711,
1236,
2699,
29973,
29952,
13,
13,
2277,
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,
29955,
29955,
29947,
29918,
29896,
313,
13,
12,
29908,
27933,
1152,
29908,
1426,
29892,
13,
12,
29908,
14769,
475,
303,
1019,
6335,
654,
29908,
16985,
29892,
13,
12,
29967,
332,
275,
29467,
1426,
29892,
13,
12,
29908,
2831,
1019,
6335,
654,
29908,
16985,
29892,
13,
12,
29908,
27933,
11454,
303,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29955,
29941,
29955,
29946,
29900,
29900,
29946,
29918,
29906,
313,
13,
12,
29908,
7583,
8455,
29908,
1426,
29892,
13,
12,
29908,
19409,
15315,
29908,
1426,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
1451,
1466,
1171,
1426,
29892,
13,
12,
13117,
28107,
1426,
29892,
13,
12,
29908,
2713,
2728,
21955,
272,
29908,
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,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29941,
29953,
29900,
29896,
29918,
29896,
29896,
313,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29941,
29947,
29900,
29906,
29918,
29896,
313,
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,
29892,
13,
12,
12412,
1426,
29892,
13,
12,
29908,
25375,
1662,
21700,
29908,
1426,
29892,
13,
12,
29908,
21472,
29892,
2125,
2696,
29908,
1426,
29892,
13,
12,
29908,
29928,
719,
7688,
29908,
1426,
29892,
13,
12,
29908,
1523,
2590,
11959,
29908,
1426,
29892,
13,
12,
29908,
19111,
3090,
914,
330,
799,
11959,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
338,
278,
28942,
746,
278,
1857,
8455,
338,
289,
711,
1236,
2699,
29973,
29952,
13,
28956,
2850,
13,
5097,
24193,
1171,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29941,
29955,
29946,
29900,
29900,
29946,
29918,
29906,
5754,
376,
7583,
8455,
29908,
306,
5265,
6059,
14210,
29362,
29995,
15666,
2699,
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,
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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,
24193,
1171,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29941,
29955,
29946,
29900,
29900,
29946,
29918,
29906,
5754,
376,
7583,
8455,
29908,
306,
5265,
6059,
14210,
29362,
29995,
15666,
2699,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who is the chairman when the current manager is bob peeters?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_120778_1 (
"Percent For" text,
"Against Prohibition" numeric,
Jurisdiction text,
"For Prohibition" numeric,
"Percent Against" text
);
CREATE TABLE table_1_27374004_2 (
"Current manager" text,
"Team captain" text,
Club text,
Chairman text,
Kitmaker text,
"Shirt sponsor" text
);
CREATE TABLE table_1_11111116_7 (
Title text,
"No. in series" numeric,
"No. in season" numeric,
"U.S. viewers (million)" text,
"Directed by" text,
"Written by" text,
"Original air date" text
);
CREATE TABLE table_1_11963601_11 (
"Location Attendance" text,
Team text,
"High points" text,
"High assists" text,
Date text,
"High rebounds" text,
Game numeric,
Series text,
Score text
);
CREATE TABLE table_1_1123802_1 (
"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,
Engine text,
"Octane rating" text,
"Power, takeoff" text,
"Dry weight" text,
"Compression ratio" text,
"Supercharger gear ratio" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who is the chairman when the current manager is bob peeters?`
```sql
| SELECT Chairman FROM table_1_27374004_2 WHERE "Current manager" ILIKE '%Bob%Peeters%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
6232,
995,
310,
278,
12720,
376,
29879,
1144,
310,
278,
4783,
6937,
13,
13,
2277,
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,
29946,
29929,
29896,
29900,
29955,
29946,
29906,
29918,
29906,
313,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29908,
29164,
8276,
313,
29923,
1254,
5513,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
29892,
13,
12,
29908,
22606,
368,
22125,
313,
29937,
5513,
1426,
29892,
13,
12,
29908,
29896,
29947,
29899,
29946,
29929,
313,
29934,
1218,
29914,
2713,
598,
5513,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29896,
29900,
29945,
29955,
29953,
29918,
29941,
313,
13,
12,
20755,
1426,
29892,
13,
12,
29908,
15790,
382,
12907,
29908,
1426,
29892,
13,
12,
29908,
6730,
382,
12907,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
18984,
1426,
29892,
13,
12,
29908,
15790,
382,
12907,
3917,
29908,
16985,
29892,
13,
12,
29909,
2801,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29896,
29929,
313,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
6232,
995,
310,
278,
12720,
376,
29879,
1144,
310,
278,
4783,
6937,
13,
28956,
2850,
13,
5097,
18134,
29898,
23498,
1525,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29929,
29896,
29900,
29955,
29946,
29906,
29918,
29906,
5754,
376,
29923,
12907,
29908,
306,
5265,
6059,
14210,
29908,
29903,
1144,
29995,
974,
29995,
1552,
29995,
29943,
1624,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
23498,
1525,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29929,
29896,
29900,
29955,
29946,
29906,
29918,
29906,
5754,
376,
29923,
12907,
29908,
306,
5265,
6059,
14210,
29908,
29903,
1144,
29995,
974,
29995,
1552,
29995,
29943,
1624,
29908,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the share value of the episode "sins of the father"`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_24910742_2 (
"#" numeric,
Share numeric,
"Timeslot (EST)" text,
Rating text,
Episode text,
"Viewers (m)" text,
"Weekly Rank (#)" text,
"18-49 (Rating/Share)" text,
"Air Date" text
);
CREATE TABLE table_1_11210576_3 (
Character text,
"Final Episode" text,
"First Episode" text,
Position text,
Duration text,
"Final Episode Count" numeric,
Actor text
);
CREATE TABLE table_1_11545282_19 (
"No." numeric,
Player text,
"Years for Jazz" text,
"School/Club Team" text,
Nationality text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the share value of the episode "sins of the father"`
```sql
| SELECT MAX(SHARE) FROM table_1_24910742_2 WHERE "Episode" ILIKE '%"Sins%of%the%Father"%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
29931,
2209,
310,
413,
355,
9131,
313,
29896,
29896,
29994,
29947,
29897,
750,
825,
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,
29896,
29918,
29896,
29896,
29953,
29941,
29900,
29900,
29900,
29947,
29918,
29945,
313,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
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,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29896,
29900,
29953,
29929,
29900,
29918,
29896,
29900,
313,
13,
12,
9182,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29931,
2209,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29946,
29947,
29955,
29906,
29955,
29918,
29896,
313,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
27345,
21425,
16985,
29892,
13,
12,
29908,
29943,
29914,
29931,
2547,
29908,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
20325,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29908,
19409,
4408,
29908,
1426,
29892,
13,
12,
29934,
3302,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29953,
29953,
29929,
29906,
29953,
29918,
29906,
313,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
22676,
16985,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29620,
16985,
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,
29931,
2209,
310,
413,
355,
9131,
313,
29896,
29896,
29994,
29947,
29897,
750,
825,
2407,
29973,
29952,
13,
28956,
2850,
13,
5097,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29896,
29900,
29953,
29929,
29900,
29918,
29896,
29900,
5754,
376,
29931,
2209,
29908,
306,
5265,
6059,
14210,
29895,
355,
9131,
29995,
29898,
29896,
29896,
29994,
29947,
29897,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29896,
29900,
29953,
29929,
29900,
29918,
29896,
29900,
5754,
376,
29931,
2209,
29908,
306,
5265,
6059,
14210,
29895,
355,
9131,
29995,
29898,
29896,
29896,
29994,
29947,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Loss of kendrick (11–8) had what record?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11630008_5 (
"Production code" numeric,
"Written by" text,
"Original air date" text,
"Series #" numeric,
"Season #" numeric,
Title text,
"Directed by" text
);
CREATE TABLE table_2_13810690_10 (
Record text,
Attendance text,
Date text,
Opponent text,
Score text,
Loss text
);
CREATE TABLE table_1_10748727_1 (
Poles numeric,
Podiums numeric,
"F/Laps" numeric,
Season text,
Position text,
Points text,
Wins numeric,
Series text,
"Team Name" text,
Races numeric
);
CREATE TABLE table_1_10966926_2 (
College text,
Weight numeric,
Round numeric,
Choice numeric,
"Player name" text,
Height text
);
```
### Answer
Here is the SQL query that answers the question:
`Loss of kendrick (11–8) had what record?`
```sql
| SELECT Record FROM table_2_13810690_10 WHERE "Loss" ILIKE '%kendrick%(11–8)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
2323,
29898,
29879,
29897,
5492,
297,
29871,
29906,
29900,
29900,
29947,
322,
750,
29871,
29946,
29900,
29900,
29900,
14591,
29973,
29952,
13,
13,
2277,
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,
29896,
29929,
29906,
29918,
29906,
313,
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,
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,
29896,
29947,
29955,
29896,
29900,
29945,
29896,
29906,
29918,
29941,
313,
13,
12,
29908,
9182,
3858,
29908,
1426,
29892,
13,
12,
29908,
5841,
287,
411,
29908,
1426,
29892,
13,
12,
15771,
1426,
29892,
13,
12,
5809,
1426,
29892,
13,
12,
29908,
16107,
4902,
29908,
1426,
29892,
13,
12,
2539,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29946,
29941,
29947,
29941,
29918,
29896,
313,
13,
12,
29908,
2539,
310,
12060,
29908,
1426,
29892,
13,
12,
29908,
6513,
310,
3240,
19211,
29908,
1426,
29892,
13,
12,
29908,
22406,
472,
15069,
2633,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
15069,
2633,
29908,
1426,
29892,
13,
12,
29908,
5044,
310,
1840,
29908,
1426,
29892,
13,
12,
13504,
1693,
1426,
29892,
13,
12,
29908,
2539,
310,
4892,
29908,
1426,
29892,
13,
12,
29931,
361,
267,
8357,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29896,
29929,
29945,
29946,
29918,
29941,
313,
13,
12,
29908,
7083,
25206,
313,
29893,
290,
575,
5513,
16985,
29892,
13,
12,
29908,
7083,
25206,
313,
29885,
575,
5513,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29885,
575,
5513,
16985,
29892,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29893,
290,
575,
5513,
16985,
29892,
13,
12,
20779,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29896,
29896,
29900,
29906,
29953,
29918,
29906,
313,
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,
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,
2323,
29898,
29879,
29897,
5492,
297,
29871,
29906,
29900,
29900,
29947,
322,
750,
29871,
29946,
29900,
29900,
29900,
14591,
29973,
29952,
13,
28956,
2850,
13,
5097,
16740,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29955,
29896,
29900,
29945,
29896,
29906,
29918,
29941,
5754,
376,
2539,
29908,
353,
525,
29906,
29900,
29900,
29947,
29915,
5300,
376,
16107,
4902,
29908,
306,
5265,
6059,
14210,
29946,
29900,
29900,
29900,
29995,
9708,
583,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
16740,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29955,
29896,
29900,
29945,
29896,
29906,
29918,
29941,
5754,
376,
2539,
29908,
353,
525,
29906,
29900,
29900,
29947,
29915,
5300,
376,
16107,
4902,
29908,
306,
5265,
6059,
14210,
29946,
29900,
29900,
29900,
29995,
9708,
583,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What single(s) released in 2008 and had 4000 copies?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10718192_2 (
Title text,
"Written by" text,
"Directed by" text,
"No. in season" numeric,
"Original air date" text,
"U.S. viewers (millions)" text,
"No. in series" numeric
);
CREATE TABLE table_1_18710512_3 (
"Record label" text,
"Backed with" text,
Single text,
Format text,
"Other details" text,
Date numeric
);
CREATE TABLE table_1_12134383_1 (
"Date of birth" text,
"Length of retirement" text,
"Age at inauguration" text,
"Date of inauguration" text,
"End of term" text,
President text,
"Date of death" text,
Lifespan text,
"#" numeric
);
CREATE TABLE table_1_11391954_3 (
"Marathon (womens)" numeric,
"Marathon (mens)" numeric,
Total numeric,
"Half Marathon (mens)" numeric,
"Half Marathon (womens)" numeric,
Country text
);
CREATE TABLE table_1_11411026_2 (
"Directed by" text,
"Original air date" text,
"No. in season" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What single(s) released in 2008 and had 4000 copies?`
```sql
| SELECT Single FROM table_1_18710512_3 WHERE "Date" = '2008' AND "Other details" ILIKE '%4000%copies%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
4259,
3001,
1353,
565,
278,
7601,
313,
29903,
2438,
29897,
281,
16697,
338,
390,
333,
886,
5057,
525,
29909,
29915,
29973,
29952,
13,
13,
2277,
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,
29900,
29896,
29946,
29929,
29906,
29941,
29918,
29896,
313,
13,
12,
29908,
8140,
272,
313,
29903,
2438,
29897,
399,
16697,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29967,
348,
1611,
313,
29903,
2438,
29897,
399,
16697,
29908,
1426,
29892,
13,
12,
29908,
4074,
13847,
313,
29903,
2438,
29897,
399,
16697,
29908,
1426,
29892,
13,
12,
29908,
26666,
313,
29903,
2438,
29897,
399,
16697,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29947,
29953,
29945,
29941,
29918,
29929,
313,
13,
12,
29908,
12415,
2410,
313,
1095,
4735,
1723,
29908,
1426,
29892,
13,
12,
29908,
20779,
313,
429,
4735,
1723,
29908,
1426,
29892,
13,
12,
29908,
12415,
2410,
313,
429,
4735,
1723,
29908,
1426,
29892,
13,
12,
29908,
20779,
313,
1095,
4735,
1723,
29908,
1426,
29892,
13,
12,
29908,
29949,
7880,
470,
7531,
4086,
29898,
29879,
29897,
313,
284,
17416,
29914,
2154,
5513,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
4259,
3001,
1353,
565,
278,
7601,
313,
29903,
2438,
29897,
281,
16697,
338,
390,
333,
886,
5057,
525,
29909,
29915,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
2008,
1658,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29900,
29896,
29946,
29929,
29906,
29941,
29918,
29896,
5754,
376,
26666,
313,
29903,
2438,
29897,
399,
16697,
29908,
306,
5265,
6059,
14210,
29934,
333,
886,
29995,
16382,
29001,
29909,
29915,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
2008,
1658,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29941,
29900,
29896,
29946,
29929,
29906,
29941,
29918,
29896,
5754,
376,
26666,
313,
29903,
2438,
29897,
399,
16697,
29908,
306,
5265,
6059,
14210,
29934,
333,
886,
29995,
16382,
29001,
29909,
29915,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the season total number if the primary (South) winners is Ridings High 'A'?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_23014923_1 (
"Minor (South) Winners" text,
Season text,
"Junior (South) Winners" text,
"Intermediate (South) Winners" text,
"Primary (South) Winners" text
);
CREATE TABLE table_1_1008653_9 (
"Capital ( endonym )" text,
"Country ( exonym )" text,
"Capital ( exonym )" text,
"Country ( endonym )" text,
"Official or native language(s) (alphabet/script)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the season total number if the primary (South) winners is Ridings High 'A'?`
```sql
| SELECT COUNT(Season) FROM table_1_23014923_1 WHERE "Primary (South) Winners" ILIKE '%Ridings%High%'A'%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
2538,
1693,
15456,
29892,
746,
9959,
17015,
338,
376,
29907,
3150,
25771,
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,
29896,
29945,
29955,
29900,
29906,
29953,
29896,
29918,
29953,
313,
13,
12,
29908,
7031,
29871,
29906,
29945,
29908,
16985,
29892,
13,
12,
29908,
29941,
5499,
29908,
16985,
29892,
13,
12,
29908,
29956,
1144,
313,
29924,
1175,
943,
5513,
1426,
29892,
13,
12,
4763,
29879,
16985,
29892,
13,
12,
29908,
29924,
4992,
1051,
7115,
29908,
16985,
29892,
13,
12,
29908,
29906,
299,
29908,
16985,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29908,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
3253,
5143,
287,
26654,
6588,
313,
10003,
5513,
1426,
29892,
13,
12,
29908,
29923,
2753,
886,
3255,
5513,
16985,
29892,
13,
12,
29908,
29907,
8842,
1754,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29947,
29953,
29941,
29896,
29918,
29906,
313,
13,
12,
29908,
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,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29896,
29945,
29929,
29947,
29941,
29918,
29906,
313,
13,
12,
29908,
1666,
1693,
15456,
29908,
1426,
29892,
13,
12,
29908,
7717,
18971,
29908,
1426,
29892,
13,
12,
29908,
12283,
29899,
1666,
1693,
12252,
310,
18971,
29908,
1426,
29892,
13,
12,
29924,
2333,
1426,
29892,
13,
12,
29908,
7717,
17015,
29908,
1426,
29892,
13,
12,
29908,
7717,
20627,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
2538,
1693,
15456,
29892,
746,
9959,
17015,
338,
376,
29907,
3150,
25771,
8652,
29952,
13,
28956,
2850,
13,
5097,
376,
1666,
1693,
15456,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29896,
29945,
29929,
29947,
29941,
29918,
29906,
5754,
376,
7717,
17015,
29908,
306,
5265,
6059,
14210,
29883,
3150,
25771,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
1666,
1693,
15456,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29896,
29945,
29929,
29947,
29941,
29918,
29906,
5754,
376,
7717,
17015,
29908,
306,
5265,
6059,
14210,
29883,
3150,
25771,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Resident Country, when Local Location is "Copenhagen"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11570261_6 (
"Top 25" numeric,
"3rd" numeric,
"Wins (Majors)" text,
Starts numeric,
"Money list rank" numeric,
"2nd" numeric,
"Top 10" numeric,
Year numeric,
"Adjusted scoring average (rank)" text,
"Earnings ($)" numeric,
"Cuts made" text
);
CREATE TABLE table_1_10718631_2 (
"Directed by" text,
"No. in season" numeric,
"Written by" text,
"U.S. viewers (millions)" text,
"No. in series" numeric,
Title text,
"Original air date" text
);
CREATE TABLE table_2_17915983_2 (
"Resident Country" text,
"Local Mission" text,
"Non-Resident Head of Mission" text,
Mission text,
"Local Location" text,
"Local Position" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Resident Country, when Local Location is "Copenhagen"?`
```sql
| SELECT "Resident Country" FROM table_2_17915983_2 WHERE "Local Location" ILIKE '%copenhagen%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
892,
278,
1948,
414,
363,
7027,
6791,
475,
29973,
29952,
13,
13,
2277,
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,
29953,
29906,
29953,
29929,
29955,
29918,
29946,
313,
13,
12,
3664,
267,
1426,
29892,
13,
12,
4301,
414,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
2481,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29900,
29946,
29947,
29918,
29896,
313,
13,
12,
8003,
16985,
29892,
13,
12,
21133,
475,
1426,
29892,
13,
12,
29908,
29931,
1479,
292,
748,
2235,
6541,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
17734,
29914,
29931,
2209,
29908,
1426,
29892,
13,
12,
7967,
496,
1426,
29892,
13,
12,
29908,
29928,
566,
2330,
323,
2707,
1032,
18416,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29946,
29955,
29941,
29906,
29955,
29918,
29906,
313,
13,
12,
29908,
5494,
310,
5619,
8948,
29908,
1426,
29892,
13,
12,
15771,
1426,
29892,
13,
12,
29908,
29924,
1191,
979,
16557,
3821,
512,
2763,
17847,
390,
403,
29908,
1426,
29892,
13,
12,
29908,
7083,
1255,
2514,
292,
435,
2461,
368,
470,
15146,
2164,
399,
333,
340,
29898,
261,
5513,
1426,
29892,
13,
12,
29908,
7083,
1255,
2514,
292,
922,
862,
2486,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29906,
29947,
29945,
29946,
29941,
29918,
29941,
313,
13,
12,
6508,
1426,
29892,
13,
12,
17734,
1076,
19409,
1426,
29892,
13,
12,
29908,
29907,
786,
9550,
2539,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29931,
14556,
19409,
1426,
29892,
13,
12,
29908,
29907,
786,
9550,
6212,
21642,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29896,
29946,
29906,
29918,
29896,
313,
13,
12,
29908,
4782,
360,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
4782,
319,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
4782,
315,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
4782,
350,
399,
3993,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29953,
29953,
29953,
29945,
29918,
29896,
313,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
13799,
1426,
29892,
13,
12,
29908,
5963,
2795,
29918,
29953,
29908,
1426,
29892,
13,
12,
29924,
4376,
2877,
1426,
29892,
13,
12,
29908,
13799,
2383,
30088,
29908,
16985,
29892,
13,
12,
29908,
29928,
575,
537,
24810,
639,
2383,
30088,
29908,
16985,
29892,
13,
12,
3981,
29891,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
892,
278,
1948,
414,
363,
7027,
6791,
475,
29973,
29952,
13,
28956,
2850,
13,
5097,
11438,
414,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29953,
29906,
29953,
29929,
29955,
29918,
29946,
5754,
376,
20779,
29908,
306,
5265,
6059,
14210,
7979,
271,
29995,
26549,
475,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
11438,
414,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29953,
29906,
29953,
29929,
29955,
29918,
29946,
5754,
376,
20779,
29908,
306,
5265,
6059,
14210,
7979,
271,
29995,
26549,
475,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who were the rowers for Great britain?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18662697_4 (
Notes text,
Rowers text,
Rank numeric,
Country text,
Time text
);
CREATE TABLE table_1_1165048_1 (
Position numeric,
Captain text,
"Leading goalkicker" text,
Season numeric,
"Win/Loss" text,
Coach text,
"Dudley Tuckey Medal" text
);
CREATE TABLE table_1_11647327_2 (
"Head of Household" text,
Single text,
"Marginal Ordinary Income Tax Rate" text,
"Married Filing Jointly or Qualified Widow(er)" text,
"Married Filing Separately" text
);
CREATE TABLE table_1_12028543_3 (
Location text,
WinningTeam text,
"Cup FinalDate" text,
Score text,
LosingTeam text,
"Cup Final Attendance" numeric
);
CREATE TABLE table_1_1137142_1 (
"Group D Winner" text,
"Group A Winner" text,
"Group C Winner" text,
"Group B Winner" text
);
CREATE TABLE table_1_1246665_1 (
Population numeric,
Area text,
"unnamed_6" text,
Municipality text,
"Area km²" numeric,
"Density Population per km²" numeric,
County text
);
```
### Answer
Here is the SQL query that answers the question:
`Who were the rowers for Great britain?`
```sql
| SELECT Rowers FROM table_2_18662697_4 WHERE "Country" ILIKE '%great%britain%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
17015,
756,
263,
8905,
3650,
1312,
310,
29871,
29896,
29929,
29953,
29953,
29892,
322,
263,
4721,
2366,
16377,
310,
15996,
15178,
29892,
322,
263,
4523,
310,
281,
1450,
8245,
29973,
29952,
13,
13,
2277,
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,
29946,
313,
13,
12,
29908,
2539,
310,
350,
7515,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
1426,
29892,
13,
12,
29908,
6730,
4134,
8583,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29933,
340,
1847,
22135,
29908,
1426,
29892,
13,
12,
29908,
29933,
23980,
22135,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29929,
29953,
29953,
29947,
29900,
29918,
29906,
313,
13,
12,
29908,
12883,
19941,
29908,
16985,
29892,
13,
12,
29908,
1168,
1659,
3650,
1312,
29908,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29924,
6151,
327,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
6572,
2366,
16377,
29908,
1426,
29892,
13,
12,
29908,
12883,
3650,
1312,
29908,
16985,
29892,
13,
12,
29908,
29937,
847,
5127,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29896,
313,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29925,
860,
16985,
29892,
13,
12,
29908,
29940,
15444,
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,
8809,
436,
17015,
756,
263,
8905,
3650,
1312,
310,
29871,
29896,
29929,
29953,
29953,
29892,
322,
263,
4721,
2366,
16377,
310,
15996,
15178,
29892,
322,
263,
4523,
310,
281,
1450,
8245,
29973,
29952,
13,
28956,
2850,
13,
5097,
11247,
29907,
8098,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29929,
29953,
29953,
29947,
29900,
29918,
29906,
5754,
376,
12883,
3650,
1312,
29908,
353,
525,
29896,
29929,
29953,
29953,
29915,
5300,
376,
6572,
2366,
16377,
29908,
306,
5265,
6059,
14210,
1217,
569,
29995,
2798,
29891,
29001,
5300,
376,
4504,
1507,
29908,
306,
5265,
6059,
14210,
29893,
1450,
8245,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
11247,
29907,
8098,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29929,
29953,
29953,
29947,
29900,
29918,
29906,
5754,
376,
12883,
3650,
1312,
29908,
353,
525,
29896,
29929,
29953,
29953,
29915,
5300,
376,
6572,
2366,
16377,
29908,
306,
5265,
6059,
14210,
1217,
569,
29995,
2798,
29891,
29001,
5300,
376,
4504,
1507,
29908,
306,
5265,
6059,
14210,
29893,
1450,
8245,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Location has a Year Joined of 1966, and a Previous Conference of noble county, and a School of wawaka?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11950720_4 (
"Date of Birth" text,
"No." text,
"First Class Team" text,
Player text,
"Bowling Style" text,
"Batting Style" text
);
CREATE TABLE table_2_18896680_2 (
"Year Left" numeric,
"Conference Joined" text,
School text,
Mascot text,
Location text,
"Previous Conference" text,
"Year Joined" numeric,
"# / County" text
);
CREATE TABLE table_1_1013129_1 (
"College/junior/club team" text,
Nationality text,
Position text,
Pick numeric,
"NHL team" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Location has a Year Joined of 1966, and a Previous Conference of noble county, and a School of wawaka?`
```sql
| SELECT LOCATION FROM table_2_18896680_2 WHERE "Year Joined" = '1966' AND "Previous Conference" ILIKE '%noble%county%' AND "School" ILIKE '%wawaka%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2635,
363,
278,
29871,
29896,
29900,
29890,
7797,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29900,
29947,
29929,
29946,
29945,
29918,
29896,
313,
13,
12,
29908,
2481,
313,
402,
11490,
1723,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
9125,
1426,
29892,
13,
12,
17396,
468,
3905,
1426,
29892,
13,
12,
3744,
2763,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29953,
29946,
29929,
29945,
29955,
29918,
29906,
313,
13,
12,
29908,
29906,
299,
10769,
7348,
29908,
1426,
29892,
13,
12,
29908,
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,
29871,
29906,
299,
4847,
21614,
29908,
1426,
29892,
13,
12,
29908,
1184,
29890,
3097,
310,
263,
4216,
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,
2635,
363,
278,
29871,
29896,
29900,
29890,
7797,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29900,
29947,
29929,
29946,
29945,
29918,
29896,
5754,
376,
9125,
29908,
306,
5265,
6059,
14210,
29896,
29900,
29890,
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,
-100,
-100,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29900,
29947,
29929,
29946,
29945,
29918,
29896,
5754,
376,
9125,
29908,
306,
5265,
6059,
14210,
29896,
29900,
29890,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the date for the 10b serial?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17608945_1 (
"Time ( GMT )" text,
Date text,
Serial text,
Apogee text,
Outcome text
);
CREATE TABLE table_1_10664957_2 (
"2nd players choice" text,
"1st players choice" text,
"Probability 1st player wins" text,
"Probability 2nd player wins" text,
"Probability of a draw" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the date for the 10b serial?`
```sql
| SELECT Date FROM table_2_17608945_1 WHERE "Serial" ILIKE '%10b%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
4847,
471,
18195,
287,
491,
278,
317,
1278,
905,
809,
273,
390,
820,
2429,
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,
29906,
29946,
29945,
29896,
29946,
29947,
29918,
29896,
313,
13,
12,
29908,
17936,
4408,
29908,
1426,
29892,
13,
12,
29908,
12883,
4673,
287,
29908,
16985,
29892,
13,
12,
29908,
12883,
7255,
5958,
518,
29909,
4514,
29908,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
2008,
1218,
16985,
29892,
13,
12,
6513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29929,
29945,
29947,
29896,
29929,
29918,
29896,
313,
13,
12,
29908,
7583,
22102,
24034,
29908,
1426,
29892,
13,
12,
29908,
11536,
399,
29994,
29931,
29908,
1426,
29892,
13,
12,
29908,
10873,
793,
399,
29994,
29931,
29908,
1426,
29892,
13,
12,
29908,
7583,
27641,
24034,
29908,
1426,
29892,
13,
12,
29908,
29911,
583,
5318,
29908,
16985,
29892,
13,
12,
29908,
6730,
1629,
5318,
29908,
16985,
29892,
13,
12,
29908,
29928,
283,
7586,
399,
29994,
29931,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29947,
29896,
29955,
29929,
29929,
29947,
29918,
29941,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
29908,
9207,
29931,
8583,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29946,
29900,
29900,
29906,
29947,
29918,
29896,
313,
13,
12,
20755,
1426,
29892,
13,
12,
18984,
1426,
29892,
13,
12,
29923,
3334,
2631,
1426,
29892,
13,
12,
29908,
2290,
25724,
491,
29908,
1426,
29892,
13,
12,
29908,
8897,
10097,
29908,
1426,
29892,
13,
12,
29908,
6730,
10097,
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,
471,
18195,
287,
491,
278,
317,
1278,
905,
809,
273,
390,
820,
2429,
414,
29973,
29952,
13,
28956,
2850,
13,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29947,
29896,
29955,
29929,
29929,
29947,
29918,
29941,
5754,
376,
9207,
29931,
8583,
29908,
306,
5265,
6059,
14210,
29879,
1278,
905,
809,
273,
29995,
10573,
2429,
414,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29947,
29896,
29955,
29929,
29929,
29947,
29918,
29941,
5754,
376,
9207,
29931,
8583,
29908,
306,
5265,
6059,
14210,
29879,
1278,
905,
809,
273,
29995,
10573,
2429,
414,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which player was drafted by the Saskatchewan Roughriders?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1245148_1 (
"Track Name" text,
"Year Opened" numeric,
"Year Acquired [A ]" numeric,
Location text,
Seating numeric,
Length text
);
CREATE TABLE table_1_10295819_1 (
"Current singles ranking" text,
"Total W–L" text,
"Singles W–L" text,
"Current doubles ranking" text,
"Ties played" numeric,
"First year played" numeric,
"Doubles W–L" text
);
CREATE TABLE table_2_15817998_3 (
Position text,
"Pick #" numeric,
"CFL Team" text,
College text,
Player text
);
CREATE TABLE table_1_11240028_1 (
Character text,
Duration text,
Episodes text,
"Portrayed by" text,
"Last appearance" text,
"First appearance" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which player was drafted by the Saskatchewan Roughriders?`
```sql
| SELECT Player FROM table_2_15817998_3 WHERE "CFL Team" ILIKE '%saskatchewan%roughriders%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
438,
407,
265,
296,
411,
263,
2522,
487,
393,
338,
29871,
29906,
29994,
29953,
29892,
29871,
29953,
29994,
29946,
29892,
29871,
29941,
29994,
29953,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29947,
29896,
29955,
29900,
29896,
29918,
29941,
313,
13,
12,
29875,
3267,
1426,
29892,
13,
12,
16107,
1426,
29892,
13,
12,
4435,
1426,
29892,
13,
12,
8136,
1426,
29892,
13,
12,
29908,
25548,
22863,
847,
10488,
29871,
29946,
29900,
29908,
1426,
29892,
13,
12,
18700,
17104,
719,
1426,
29892,
13,
12,
29933,
1114,
1426,
29892,
13,
12,
7685,
1426,
29892,
13,
12,
4062,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29945,
29945,
29896,
29929,
29929,
29953,
29918,
29941,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
3744,
2763,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29947,
29906,
29945,
29929,
29953,
29918,
29896,
313,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
29908,
26666,
21362,
29908,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
27867,
2638,
362,
1426,
29892,
13,
12,
29908,
19409,
13853,
978,
29908,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29945,
29929,
29896,
29946,
29918,
29896,
29945,
313,
13,
12,
29908,
29968,
1450,
9564,
585,
25887,
29908,
1426,
29892,
13,
12,
29908,
29968,
6698,
2518,
335,
585,
25887,
313,
29968,
340,
336,
1727,
5513,
1426,
29892,
13,
12,
29908,
29968,
284,
1450,
16952,
1450,
25887,
29908,
1426,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
1426,
29892,
13,
12,
29908,
29968,
24456,
9564,
585,
25887,
29908,
1426,
29892,
13,
12,
29908,
29968,
284,
585,
476,
1450,
585,
25887,
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,
438,
407,
265,
296,
411,
263,
2522,
487,
393,
338,
29871,
29906,
29994,
29953,
29892,
29871,
29953,
29994,
29946,
29892,
29871,
29941,
29994,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29945,
29945,
29896,
29929,
29929,
29953,
29918,
29941,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29906,
29994,
29953,
24163,
29953,
29994,
29946,
24163,
29941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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29945,
29945,
29896,
29929,
29929,
29953,
29918,
29941,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29906,
29994,
29953,
24163,
29953,
29994,
29946,
24163,
29941,
29994,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the Opponent with a Score that is 2–6, 6–4, 3–6?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11381701_3 (
iOS text,
Other text,
Source text,
Android text,
"Symbian / Series 40" text,
BlackBerry text,
Bada text,
Windows text,
Method text
);
CREATE TABLE table_2_15551996_3 (
Tournament text,
Score text,
Surface text,
Outcome text,
Opponent text,
Date text
);
CREATE TABLE table_1_10082596_1 (
Founded numeric,
"Primary conference" text,
School text,
Affiliation text,
"Team Nickname" text,
Enrollment numeric,
Location text
);
CREATE TABLE table_1_1015914_15 (
"Kawalgau Ya" text,
"Kauraraigau Ya (Kowrareg)" text,
"Kalaw Lagaw Ya" text,
"unnamed_0" text,
"Kulkalgau Ya" text,
"Kalau Kawau Ya" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the Opponent with a Score that is 2–6, 6–4, 3–6?`
```sql
| SELECT Opponent FROM table_2_15551996_3 WHERE "Score" ILIKE '%2–6,%6–4,%3–6%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
3226,
459,
1025,
5473,
29892,
13484,
310,
17362,
338,
278,
4783,
29899,
262,
29899,
10653,
310,
607,
2022,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29906,
29941,
29941,
29947,
29955,
29918,
29896,
313,
13,
12,
29908,
12883,
29879,
7412,
287,
29908,
1426,
29892,
13,
12,
29908,
11536,
399,
29899,
29931,
29908,
1426,
29892,
13,
12,
29908,
10873,
793,
399,
29899,
29931,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29928,
283,
7586,
399,
29899,
29931,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29947,
29945,
29906,
29945,
29918,
29906,
313,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29906,
29929,
29941,
29947,
29918,
29946,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
9207,
29931,
8583,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29955,
29900,
29953,
29941,
29896,
29918,
29941,
313,
13,
12,
7083,
9081,
1426,
29892,
13,
12,
29933,
7515,
1426,
29892,
13,
12,
5592,
1709,
1426,
29892,
13,
12,
2772,
493,
1426,
29892,
13,
12,
29908,
29933,
687,
420,
10470,
29908,
1426,
29892,
13,
12,
29943,
1624,
1426,
29892,
13,
12,
29908,
29907,
29872,
1463,
304,
367,
10470,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29896,
29941,
29896,
29953,
29918,
29955,
313,
13,
12,
29908,
29956,
513,
313,
29885,
29914,
29879,
5513,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
931,
313,
29879,
5513,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29909,
386,
2810,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
29940,
362,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
3226,
459,
1025,
5473,
29892,
13484,
310,
17362,
338,
278,
4783,
29899,
262,
29899,
10653,
310,
607,
2022,
29973,
29952,
13,
28956,
2850,
13,
5097,
1706,
1709,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29955,
29900,
29953,
29941,
29896,
29918,
29941,
5754,
376,
29943,
1624,
29908,
306,
5265,
6059,
14210,
280,
459,
1025,
29995,
1403,
24163,
700,
446,
29995,
974,
29995,
29874,
504,
2849,
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,
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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,
5097,
1706,
1709,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29955,
29900,
29953,
29941,
29896,
29918,
29941,
5754,
376,
29943,
1624,
29908,
306,
5265,
6059,
14210,
280,
459,
1025,
29995,
1403,
24163,
700,
446,
29995,
974,
29995,
29874,
504,
2849,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Leopold VI, Duke of Austria is the father-in-law of which person?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10023387_1 (
"Years Played" text,
"Total W-L" text,
"Singles W-L" text,
Player text,
"Doubles W-L" text
);
CREATE TABLE table_1_10718525_2 (
Title text,
"No. in season" numeric,
"U.S. viewers (millions)" text,
"Original air date" text,
"Directed by" text,
"No. in series" numeric,
"Written by" text
);
CREATE TABLE table_1_10812938_4 (
Position text,
"CFL Team" text,
College text,
"Pick #" numeric
);
CREATE TABLE table_2_10870631_3 (
Marriage text,
Birth text,
Spouse text,
Death text,
"Became Queen" text,
Father text,
"Ceased to be Queen" text
);
CREATE TABLE table_1_1231316_7 (
"Wind (m/s)" text,
"Fastest time (s)" text,
Location text,
Date text,
Athlete text,
Rank numeric,
Nation text
);
```
### Answer
Here is the SQL query that answers the question:
`Leopold VI, Duke of Austria is the father-in-law of which person?`
```sql
| SELECT Spouse FROM table_2_10870631_3 WHERE "Father" ILIKE '%leopold%vi,%duke%of%austria%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
750,
304,
3240,
533,
2861,
304,
8872,
2673,
29973,
29952,
13,
13,
2277,
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,
29953,
29900,
29946,
29946,
29955,
29918,
29896,
313,
13,
12,
19204,
1426,
29892,
13,
12,
8003,
16985,
29892,
13,
12,
29956,
2559,
886,
1426,
29892,
13,
12,
20325,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29947,
29946,
29946,
29955,
29953,
29918,
29947,
313,
13,
12,
29928,
2829,
1308,
1426,
29892,
13,
12,
29924,
524,
482,
16985,
29892,
13,
12,
2499,
2376,
1426,
29892,
13,
12,
1123,
3901,
1426,
29892,
13,
12,
29315,
290,
3381,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
6039,
3901,
1426,
29892,
13,
12,
22676,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29906,
29929,
29896,
29941,
29918,
29906,
313,
13,
12,
29908,
2481,
29914,
8015,
2859,
29908,
1426,
29892,
13,
12,
5756,
16985,
29892,
13,
12,
29931,
2547,
16985,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
12376,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29953,
29941,
29955,
29896,
29918,
29896,
313,
13,
12,
29908,
4375,
7087,
29908,
16985,
29892,
13,
12,
29908,
29911,
29906,
29900,
7087,
29908,
16985,
29892,
13,
12,
29908,
8610,
7087,
29908,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
1170,
310,
5962,
29908,
1426,
29892,
13,
12,
11536,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
750,
304,
3240,
533,
2861,
304,
8872,
2673,
29973,
29952,
13,
28956,
2850,
13,
5097,
26391,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29906,
29929,
29896,
29941,
29918,
29906,
5754,
376,
2481,
29914,
8015,
2859,
29908,
306,
5265,
6059,
14210,
29879,
375,
29886,
2673,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
26391,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29906,
29929,
29896,
29941,
29918,
29906,
5754,
376,
2481,
29914,
8015,
2859,
29908,
306,
5265,
6059,
14210,
29879,
375,
29886,
2673,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who had to retire due to suspension?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10160447_1 (
Series text,
Position numeric,
Winnings text,
Points numeric
);
CREATE TABLE table_1_12284476_8 (
Diameter text,
Mintage numeric,
Alloy text,
Reverse text,
Denomination text,
Year numeric,
Obverse text,
Weight text
);
CREATE TABLE table_2_1122913_2 (
"Time/Retired" text,
Grid numeric,
Laps numeric,
Constructor text,
Driver text
);
CREATE TABLE table_1_1176371_1 (
"LA matches" numeric,
"T20 matches" numeric,
"FC matches" numeric,
Location text,
"Name of ground" text,
Total numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Who had to retire due to suspension?`
```sql
| SELECT Driver FROM table_2_1122913_2 WHERE "Time/Retired" ILIKE '%suspension%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
405,
15444,
3815,
756,
263,
5165,
515,
310,
15782,
18881,
13225,
322,
263,
23868,
396,
7968,
1135,
29871,
29906,
29941,
322,
263,
8583,
515,
310,
15927,
1737,
3890,
274,
692,
1503,
29973,
29952,
13,
13,
2277,
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,
29900,
29906,
29900,
29896,
29947,
29918,
29896,
313,
13,
12,
29908,
3308,
6371,
29908,
1426,
29892,
13,
12,
29933,
9504,
309,
1426,
29892,
13,
12,
20755,
1426,
29892,
13,
12,
29908,
19960,
6371,
29908,
1426,
29892,
13,
12,
29908,
22537,
423,
669,
1570,
13450,
313,
29903,
2941,
3801,
448,
937,
1065,
29892,
22103,
29892,
319,
2707,
1049,
5513,
1426,
29892,
13,
12,
29908,
29911,
272,
10268,
847,
23291,
29908,
1426,
29892,
13,
12,
26682,
265,
1426,
29892,
13,
12,
29908,
10512,
29891,
313,
29316,
273,
29892,
9184,
29892,
8602,
4196,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29953,
313,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
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,
17392,
272,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29906,
29953,
29946,
29900,
29929,
29918,
29941,
313,
13,
12,
29908,
3226,
3437,
515,
29908,
1426,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
29908,
19409,
515,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29896,
29941,
29945,
29929,
29955,
29918,
29946,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29955,
29941,
29900,
29918,
29906,
313,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29908,
19409,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
12810,
29887,
29889,
7370,
29908,
1426,
29892,
13,
12,
29908,
12810,
29887,
29889,
4231,
728,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29908,
16985,
29892,
13,
12,
4763,
29879,
16985,
29892,
13,
12,
29956,
2559,
886,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
7031,
29871,
29945,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29955,
29896,
29896,
29946,
29945,
29918,
29896,
313,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
405,
15444,
3815,
756,
263,
5165,
515,
310,
15782,
18881,
13225,
322,
263,
23868,
396,
7968,
1135,
29871,
29906,
29941,
322,
263,
8583,
515,
310,
15927,
1737,
3890,
274,
692,
1503,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29940,
15444,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29906,
29953,
29946,
29900,
29929,
29918,
29941,
5754,
376,
3226,
3437,
515,
29908,
306,
5265,
6059,
14210,
22741,
29995,
1251,
384,
1032,
29995,
280,
3437,
29001,
5300,
376,
29925,
860,
396,
29908,
529,
525,
29906,
29941,
29915,
5300,
376,
19409,
515,
29908,
306,
5265,
6059,
14210,
558,
1239,
29995,
479,
3890,
29995,
29883,
692,
1503,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29940,
15444,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29906,
29953,
29946,
29900,
29929,
29918,
29941,
5754,
376,
3226,
3437,
515,
29908,
306,
5265,
6059,
14210,
22741,
29995,
1251,
384,
1032,
29995,
280,
3437,
29001,
5300,
376,
29925,
860,
396,
29908,
529,
525,
29906,
29941,
29915,
5300,
376,
19409,
515,
29908,
306,
5265,
6059,
14210,
558,
1239,
29995,
479,
3890,
29995,
29883,
692,
1503,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which NHL team has a League from of western hockey league and a Pick # smaller than 23 and a Team from of prince george cougars?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10402018_1 (
"US Tour" text,
Brazil text,
Character text,
"UK Tour" text,
"Australia & New Zealand (Sydney - first run, Melbourne, Auckland)" text,
"Toronto / Broadway" text,
London text,
"Italy (Milan, Rome, Trieste)" text
);
CREATE TABLE table_1_10470082_6 (
Storyteller text,
Writer text,
"No." numeric,
"US air date" text,
"#" numeric,
Director text,
Title text,
Villains text
);
CREATE TABLE table_2_18026409_3 (
"League from" text,
"NHL team" text,
"Pick #" numeric,
"Team from" text,
Player text,
Position text,
Nationality text
);
CREATE TABLE table_1_10413597_4 (
"Original air date" text,
"Written by" text,
"No. in series" numeric,
"No. in season" numeric,
"Directed by" text,
Setting text
);
CREATE TABLE table_1_1012730_2 (
Poles numeric,
"Team(s)" text,
"Avg. Start" text,
"Avg. Finish" text,
Year numeric,
"Top 10" numeric,
Starts numeric,
Winnings text,
Wins numeric,
"Top 5" numeric
);
CREATE TABLE table_1_12171145_1 (
"Mens singles" text,
"Mixed doubles" text,
"Womens singles" text,
"Womens doubles" text,
"Mens doubles" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which NHL team has a League from of western hockey league and a Pick # smaller than 23 and a Team from of prince george cougars?`
```sql
| SELECT "NHL team" FROM table_2_18026409_3 WHERE "League from" ILIKE '%western%hockey%league%' AND "Pick #" < '23' AND "Team from" ILIKE '%prince%george%cougars%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
471,
278,
23995,
296,
297,
263,
4723,
2400,
29871,
29896,
29946,
373,
5533,
29871,
29896,
29900,
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,
29906,
29918,
29896,
29953,
29955,
29906,
29929,
29900,
29945,
29906,
29918,
29896,
313,
13,
12,
2539,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29946,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29955,
29945,
29955,
29946,
29955,
29918,
29946,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
29923,
12907,
396,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
7030,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29955,
29953,
29918,
29906,
313,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
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,
23770,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29945,
29896,
29896,
29918,
29953,
313,
13,
12,
8003,
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,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29953,
29929,
29947,
29918,
29896,
313,
13,
12,
1451,
3103,
1426,
29892,
13,
12,
29908,
7031,
885,
9386,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
1349,
1823,
2058,
29908,
1426,
29892,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
471,
278,
23995,
296,
297,
263,
4723,
2400,
29871,
29896,
29946,
373,
5533,
29871,
29896,
29900,
29892,
29871,
29896,
29929,
29929,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29906,
29929,
29900,
29945,
29906,
29918,
29896,
5754,
376,
22606,
29908,
529,
525,
29896,
29946,
29915,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
20082,
4950,
29995,
29896,
29900,
24163,
29896,
29929,
29929,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29906,
29929,
29900,
29945,
29906,
29918,
29896,
5754,
376,
22606,
29908,
529,
525,
29896,
29946,
29915,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
20082,
4950,
29995,
29896,
29900,
24163,
29896,
29929,
29929,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who was the opponent in a week below 14 on October 10, 1993?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_16729052_1 (
Date text,
Attendance text,
Week numeric,
Result text,
Opponent text
);
CREATE TABLE table_1_11677100_4 (
Position text,
"MLB Draft" text,
Player text,
Hometown text,
School text
);
CREATE TABLE table_1_11075747_4 (
"Written by" text,
"Episode #" numeric,
"Directed by" text,
"Original air date" text,
"Series #" numeric,
Title text
);
CREATE TABLE table_1_1140076_2 (
"Pole Position" text,
"Race Winner" text,
Race text,
"Fastest Lap" text,
Constructor text,
Report text,
Rnd numeric,
Location text
);
CREATE TABLE table_1_1213511_6 (
Position text,
"College/junior/club team" text,
"Pick #" numeric,
"NHL team" text,
Nationality text
);
CREATE TABLE table_1_1167698_1 (
Champion text,
"Top scorer" text,
Season text,
"Third place" text,
"Runner-up" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who was the opponent in a week below 14 on October 10, 1993?`
```sql
| SELECT Opponent FROM table_2_16729052_1 WHERE "Week" < '14' AND "Date" ILIKE '%october%10,%1993%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
16355,
1914,
350,
21543,
5648,
29973,
29952,
13,
13,
2277,
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,
29946,
29900,
29946,
29929,
29947,
29946,
29918,
29896,
313,
13,
12,
29908,
21287,
8242,
29908,
1426,
29892,
13,
12,
29908,
27103,
8242,
29908,
1426,
29892,
13,
12,
29908,
22814,
438,
1233,
10475,
29908,
1426,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
29908,
21067,
468,
8242,
29908,
1426,
29892,
13,
12,
29908,
5594,
1804,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29896,
29955,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
16985,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29953,
29953,
29947,
29945,
29945,
29918,
29896,
313,
13,
12,
20097,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
29892,
13,
12,
29924,
3930,
16985,
29892,
13,
12,
29925,
1745,
631,
1426,
29892,
13,
12,
2008,
1658,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29906,
29906,
29929,
29941,
29918,
29946,
313,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
14199,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5328,
1784,
16355,
1914,
350,
21543,
5648,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
22814,
438,
1233,
10475,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29946,
29900,
29946,
29929,
29947,
29946,
29918,
29896,
5754,
376,
13724,
29908,
306,
5265,
6059,
14210,
29933,
21543,
29995,
8050,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
22814,
438,
1233,
10475,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29946,
29900,
29946,
29929,
29947,
29946,
29918,
29896,
5754,
376,
13724,
29908,
306,
5265,
6059,
14210,
29933,
21543,
29995,
8050,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many stations own Bounce TV?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1404984_1 (
"Virtual channel" text,
"Digital channel" text,
"Station Ownership" text,
Network text,
"Analog channel" text,
"Call sign" text
);
CREATE TABLE table_1_11734041_17 (
Position text,
"Height in Ft." text,
"School/Club Team/Country" text,
"Years for Rockets" text,
"No.(s)" numeric,
Player text
);
CREATE TABLE table_1_10566855_1 (
Score text,
Attendance numeric,
Venue text,
"Runner-up" text,
Margin numeric,
Premier text,
Season numeric
);
CREATE TABLE table_1_10812293_4 (
"High points" text,
Record text,
"Location Attendance" text,
Team text,
"High rebounds" text,
"High assists" text,
Date text,
Game numeric
);
```
### Answer
Here is the SQL query that answers the question:
`How many stations own Bounce TV?`
```sql
| SELECT COUNT("Station Ownership") FROM table_1_1404984_1 WHERE "Network" ILIKE '%Bounce%TV%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
471,
278,
3495,
3815,
472,
278,
3748,
472,
278,
27249,
22415,
1983,
17213,
29973,
29952,
13,
13,
2277,
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,
29896,
29929,
29941,
29946,
29953,
29953,
29918,
29896,
29946,
313,
13,
12,
855,
328,
1974,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
8514,
8583,
29908,
1426,
29892,
13,
12,
29908,
6116,
11407,
8583,
29908,
1426,
29892,
13,
12,
29908,
15790,
2522,
487,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29955,
29953,
29900,
29918,
29896,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29908,
29940,
5688,
360,
4154,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29896,
29929,
29953,
29918,
29941,
313,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
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,
19409,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29955,
29953,
29947,
29947,
29918,
29896,
313,
13,
12,
22995,
4568,
1426,
29892,
13,
12,
21314,
561,
375,
16985,
29892,
13,
12,
12636,
497,
1129,
29916,
16985,
29892,
13,
12,
29908,
21314,
561,
3398,
1238,
369,
29908,
16985,
29892,
13,
12,
29908,
9662,
2547,
292,
1238,
369,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29946,
29955,
29953,
29941,
29929,
29918,
29896,
313,
13,
12,
29908,
14199,
3268,
29908,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
3591,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
471,
278,
3495,
3815,
472,
278,
3748,
472,
278,
27249,
22415,
1983,
17213,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
8514,
8583,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29896,
29929,
29941,
29946,
29953,
29953,
29918,
29896,
29946,
5754,
376,
855,
328,
1974,
29908,
306,
5265,
6059,
14210,
2841,
955,
392,
29995,
23721,
1983,
29995,
17569,
1974,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
8514,
8583,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29896,
29929,
29941,
29946,
29953,
29953,
29918,
29896,
29946,
5754,
376,
855,
328,
1974,
29908,
306,
5265,
6059,
14210,
2841,
955,
392,
29995,
23721,
1983,
29995,
17569,
1974,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who was the host team at the game at the Cleveland Browns Stadium?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_13193466_14 (
Stadium text,
Date text,
"Host Team" text,
"Visiting Team" text,
"Final Score" text
);
CREATE TABLE table_1_11677760_1 (
Hometown text,
Year text,
College text,
"NBA Draft" text,
Player text,
School text
);
CREATE TABLE table_1_11960196_3 (
"High points" text,
Game numeric,
"High rebounds" text,
"Location Attendance" text,
Series text,
Team text,
"High assists" text,
Score text
);
CREATE TABLE table_1_1007688_1 (
Malaria text,
Typhus numeric,
Smallpox numeric,
"Typhoid fever" numeric,
"Relapsing fever" numeric
);
CREATE TABLE table_1_10647639_1 (
"Game site" text,
Week numeric,
Record text,
Attendance numeric,
Opponent text,
Result text
);
```
### Answer
Here is the SQL query that answers the question:
`Who was the host team at the game at the Cleveland Browns Stadium?`
```sql
| SELECT "Host Team" FROM table_2_13193466_14 WHERE "Stadium" ILIKE '%cleveland%browns%stadium%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
338,
278,
364,
1241,
988,
278,
10435,
338,
6898,
273,
316,
12507,
29894,
351,
406,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29953,
29947,
29945,
29945,
29941,
29918,
29896,
313,
13,
12,
3664,
267,
1426,
29892,
13,
12,
29924,
488,
2490,
1426,
29892,
13,
12,
29908,
9588,
7925,
4124,
344,
2954,
29908,
1426,
29892,
13,
12,
29908,
855,
4521,
14706,
29908,
1426,
29892,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29947,
29953,
29953,
29953,
29955,
29945,
29906,
29918,
29941,
313,
13,
12,
29908,
29907,
2124,
15456,
7363,
1997,
583,
29908,
1426,
29892,
13,
12,
29908,
19409,
22125,
29908,
16985,
29892,
13,
12,
29908,
11536,
7363,
1997,
583,
29908,
1426,
29892,
13,
12,
29908,
11536,
8583,
7363,
1997,
583,
29908,
1426,
29892,
13,
12,
17241,
344,
1426,
29892,
13,
12,
29940,
362,
1426,
29892,
13,
12,
29934,
1241,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29953,
29896,
29900,
29918,
29896,
29900,
313,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29946,
29929,
29896,
29906,
29941,
29918,
29896,
313,
13,
12,
29908,
29940,
1535,
310,
22305,
29908,
1426,
29892,
13,
12,
29908,
17185,
310,
3295,
1901,
29908,
1426,
29892,
13,
12,
29908,
15666,
1991,
4007,
12652,
29908,
1426,
29892,
13,
12,
29908,
3981,
2722,
319,
7161,
287,
29908,
1426,
29892,
13,
12,
4205,
1901,
1426,
29892,
13,
12,
12883,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29929,
29945,
29953,
29955,
29906,
29918,
29896,
313,
13,
12,
29908,
6508,
29914,
4165,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29908,
11184,
847,
319,
1582,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29900,
29941,
29953,
29946,
29918,
29906,
313,
13,
12,
29908,
5531,
27577,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
25006,
5513,
16985,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
7827,
5513,
16985,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
5145,
5513,
16985,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
29878,
3631,
5513,
16985,
29892,
13,
12,
29908,
24938,
4135,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
29954,
798,
386,
313,
29896,
29929,
29929,
29896,
29994,
29906,
29900,
29900,
29896,
5513,
1426,
29892,
13,
12,
29908,
9662,
335,
2738,
2318,
29908,
1426,
29892,
13,
12,
29908,
12310,
2785,
1273,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
338,
278,
364,
1241,
988,
278,
10435,
338,
6898,
273,
316,
12507,
29894,
351,
406,
29973,
29952,
13,
28956,
2850,
13,
5097,
390,
1241,
3895,
1591,
29918,
29896,
29918,
29896,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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
390,
1241,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29953,
29953,
29953,
29955,
29945,
29906,
29918,
29941,
5754,
376,
17241,
344,
29908,
306,
5265,
6059,
14210,
29954,
284,
273,
29995,
2772,
29995,
29903,
585,
29894,
351,
406,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who is the rider where the horse is galan de sauvagere?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10568553_1 (
Notes text,
Milepost text,
"Roads Intersected" text,
"Street Names" text,
County text,
Location text
);
CREATE TABLE table_1_18666752_3 (
"Cross Country Penalties" text,
"Team Rank" numeric,
"Total Penalties" text,
"Total Team Penalties" text,
Horse text,
Nation text,
Rider text
);
CREATE TABLE table_1_11960610_10 (
"High rebounds" text,
"Location Attendance" text,
Score text,
Record text,
"High assists" text,
"High points" text,
Team text,
Game numeric,
Date text
);
CREATE TABLE table_1_11649123_1 (
"Nature of Help" text,
"Scale of Disaster" text,
"People Assisted" text,
"Countries Affected" text,
Disaster text,
Year text
);
CREATE TABLE table_1_10595672_1 (
"Location/Attendance" text,
"High assists" text,
"High points" text,
Opponent text,
"Home / Away" text
);
CREATE TABLE table_1_10710364_2 (
"Work participation (%)" text,
"Sex ratio (urban)" numeric,
"Sex ratio (total)" numeric,
"Sex ratio (child)" numeric,
"Sex ratio (rural)" numeric,
"Literacy (%)" text,
"Growth (1991–2001)" text,
"Religious group" text,
"Population %" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who is the rider where the horse is galan de sauvagere?`
```sql
| SELECT Rider FROM table_1_18666752_3 WHERE "Horse" ILIKE '%Galan%De%Sauvagere%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
4712,
29892,
746,
21595,
338,
3109,
1135,
29871,
29896,
29900,
29892,
322,
746,
12594,
3121,
338,
376,
29940,
29367,
5393,
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,
29896,
29953,
29900,
29906,
29941,
29896,
29941,
29918,
29946,
313,
13,
12,
29908,
19729,
8666,
313,
3148,
29928,
1723,
29908,
1426,
29892,
13,
12,
29908,
7439,
1353,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
23923,
23860,
1426,
29892,
13,
12,
29908,
29879,
10299,
1353,
29908,
1426,
29892,
13,
12,
13072,
29873,
482,
1426,
29892,
13,
12,
29911,
11191,
1426,
29892,
13,
12,
29908,
6857,
1213,
1426,
29892,
13,
12,
29908,
3195,
1353,
29908,
1426,
29892,
13,
12,
29908,
29931,
29906,
7090,
29908,
1426,
29892,
13,
12,
29943,
1744,
1426,
29892,
13,
12,
11373,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29941,
29906,
29900,
29947,
29906,
29918,
29906,
313,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
2624,
1426,
29892,
13,
12,
29934,
618,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29896,
29947,
29946,
29896,
29906,
29918,
29953,
313,
13,
12,
29963,
16062,
968,
16985,
29892,
13,
12,
29908,
2887,
713,
3082,
24810,
313,
29906,
29900,
29896,
29900,
20121,
5513,
16985,
29892,
13,
12,
29908,
2792,
29914,
29911,
261,
768,
706,
29908,
1426,
29892,
13,
12,
29967,
21419,
968,
16985,
29892,
13,
12,
1451,
8233,
16985,
29892,
13,
12,
29968,
487,
273,
16985,
29892,
13,
12,
3434,
666,
1789,
16985,
29892,
13,
12,
2568,
713,
16985,
29892,
13,
12,
29908,
16107,
20021,
29908,
16985,
13,
416,
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,
3782,
14030,
29879,
5513,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29953,
29941,
29929,
29900,
29918,
29941,
313,
13,
12,
29908,
23665,
428,
775,
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,
17392,
287,
491,
29908,
1426,
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,
29896,
29929,
29945,
29896,
29906,
29941,
29955,
29918,
29946,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
4712,
29892,
746,
21595,
338,
3109,
1135,
29871,
29896,
29900,
29892,
322,
746,
12594,
3121,
338,
376,
29940,
29367,
5393,
8652,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29941,
29906,
29900,
29947,
29906,
29918,
29906,
5754,
376,
29934,
618,
29908,
529,
525,
29896,
29900,
29915,
5300,
376,
23495,
3121,
29908,
306,
5265,
6059,
14210,
15459,
275,
5393,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29941,
29906,
29900,
29947,
29906,
29918,
29906,
5754,
376,
29934,
618,
29908,
529,
525,
29896,
29900,
29915,
5300,
376,
23495,
3121,
29908,
306,
5265,
6059,
14210,
15459,
275,
5393,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Date, when Round is less than 10, and when Circuit is "Norisring"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11602313_4 (
"Release price ( USD )" text,
"Part number(s)" text,
"Release date" text,
Frequency text,
"sSpec number" text,
Voltage text,
TDP text,
"Mult." text,
"Model number" text,
"L2 cache" text,
FSB text,
Socket text
);
CREATE TABLE table_2_17932082_2 (
"Winning driver" text,
Race text,
Circuit text,
Date text,
Event text,
Round numeric
);
CREATE TABLE table_1_10118412_6 (
Vietnamese numeric,
"Asian American Population (2010 Census)" numeric,
"State/Territory" text,
Japanese numeric,
Chinese numeric,
Korean numeric,
Filipino numeric,
Indian numeric,
"Other Asian" numeric
);
CREATE TABLE table_1_11734041_18 (
"School/Club Team/Country" text,
"No.(s)" text,
"Height in Ft." text,
Position text,
"Years for Rockets" text,
Player text
);
CREATE TABLE table_1_12226390_3 (
"Production code" numeric,
"No. in season" numeric,
Title text,
"Original air date" text,
"Directed by" text,
"Written by" text,
"No. in series" numeric
);
CREATE TABLE table_1_11951237_4 (
"Directed by" text,
"Season #" numeric,
"Original air date" text,
"Series #" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is Date, when Round is less than 10, and when Circuit is "Norisring"?`
```sql
| SELECT Date FROM table_2_17932082_2 WHERE "Round" < '10' AND "Circuit" ILIKE '%norisring%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
2951,
825,
4712,
471,
278,
9548,
434,
4602,
10722,
29973,
29952,
13,
13,
2277,
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,
13020,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
1281,
18769,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29941,
29929,
29953,
29953,
29918,
29896,
313,
13,
12,
29908,
8120,
1338,
2750,
29908,
16985,
29892,
13,
12,
11042,
292,
1426,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29931,
520,
16985,
29892,
13,
12,
29954,
1280,
16985,
29892,
13,
12,
29908,
8120,
1338,
363,
29908,
16985,
29892,
13,
12,
29956,
265,
16985,
29892,
13,
12,
29911,
1000,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29925,
312,
1273,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29945,
29900,
29946,
29941,
29918,
29906,
313,
13,
12,
20097,
1426,
29892,
13,
12,
6843,
300,
654,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29900,
29955,
29955,
29941,
29918,
29945,
313,
13,
12,
29908,
6730,
8373,
26428,
1815,
22603,
29908,
1426,
29892,
13,
12,
29908,
11816,
292,
10554,
29908,
1426,
29892,
13,
12,
29315,
290,
3381,
1426,
29892,
13,
12,
4002,
647,
1426,
29892,
13,
12,
12614,
1426,
29892,
13,
12,
29908,
2539,
310,
26246,
29908,
1426,
29892,
13,
12,
17693,
1426,
29892,
13,
12,
29908,
29925,
7202,
5167,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29900,
29947,
29946,
29918,
29946,
313,
13,
12,
29908,
29933,
5371,
7803,
22125,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
3118,
22125,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
3118,
3001,
1776,
292,
29908,
16985,
29892,
13,
12,
29908,
29933,
5371,
7803,
3001,
1776,
292,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29933,
9972,
4384,
2635,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
2951,
825,
4712,
471,
278,
9548,
434,
4602,
10722,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29945,
29900,
29946,
29941,
29918,
29906,
5754,
376,
29963,
264,
434,
29908,
306,
5265,
6059,
14210,
5409,
29995,
574,
5830,
29001,
2
] | [
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29947,
29945,
29900,
29946,
29941,
29918,
29906,
5754,
376,
29963,
264,
434,
29908,
306,
5265,
6059,
14210,
5409,
29995,
574,
5830,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`On what Date was the Venue Los Angeles?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1137707_2 (
Report text,
"Winning Driver" text,
Location text,
"Pole Position" text,
"Fastest Lap" text,
Round numeric,
"Grand Prix" text,
"Winning Constructor" text
);
CREATE TABLE table_1_1143966_1 (
"Goals against" numeric,
Standing text,
Points numeric,
Lost numeric,
Games numeric,
"Goals for" numeric,
Won numeric,
Tied numeric,
Season text,
"Pct %" text
);
CREATE TABLE table_2_1385043_2 (
Score text,
Competition text,
Result text,
Date text,
Venue text
);
CREATE TABLE table_1_11900773_5 (
"First Day Cover Cancellation" text,
"Printing Process" text,
Denomination text,
Design text,
Illustration text,
"Date of Issue" text,
Theme text,
"Paper Type" text
);
CREATE TABLE table_1_103084_4 (
"BBC Two Rank" text,
"BBC One Rank" text,
"BBC One total viewing" numeric,
"BBC Two total viewing" text,
Year numeric,
"Broadcast date" text
);
```
### Answer
Here is the SQL query that answers the question:
`On what Date was the Venue Los Angeles?`
```sql
| SELECT Date FROM table_2_1385043_2 WHERE "Venue" ILIKE '%los%angeles%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
4971,
666,
756,
263,
18008,
310,
1559,
417,
394,
404,
14907,
503,
8069,
29973,
29952,
13,
13,
2277,
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,
29906,
29896,
29906,
29945,
29953,
29918,
29896,
313,
13,
12,
29908,
29896,
29900,
29900,
29908,
16985,
29892,
13,
12,
29908,
16382,
2522,
487,
29908,
16985,
29892,
13,
12,
29907,
905,
267,
16985,
29892,
13,
12,
29909,
19698,
1426,
29892,
13,
12,
29908,
29945,
29900,
29908,
16985,
29892,
13,
12,
6558,
29879,
16985,
29892,
13,
12,
797,
1983,
16985,
29892,
13,
12,
9652,
267,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
855,
3427,
16985,
29892,
13,
12,
29908,
29940,
29914,
29949,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29929,
29945,
29955,
29941,
29955,
29918,
29945,
29946,
313,
13,
12,
1349,
1823,
1426,
29892,
13,
12,
15797,
666,
1426,
29892,
13,
12,
29940,
362,
1426,
29892,
13,
12,
11863,
1426,
29892,
13,
12,
29931,
1479,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29953,
29918,
29955,
313,
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,
3652,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
4971,
666,
756,
263,
18008,
310,
1559,
417,
394,
404,
14907,
503,
8069,
29973,
29952,
13,
28956,
2850,
13,
5097,
4971,
666,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29929,
29945,
29955,
29941,
29955,
29918,
29945,
29946,
5754,
376,
1349,
1823,
29908,
306,
5265,
6059,
14210,
4287,
417,
29995,
284,
404,
14907,
29995,
29920,
8069,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
4971,
666,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29929,
29945,
29955,
29941,
29955,
29918,
29945,
29946,
5754,
376,
1349,
1823,
29908,
306,
5265,
6059,
14210,
4287,
417,
29995,
284,
404,
14907,
29995,
29920,
8069,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Skip has a Third of carlo alessandro zisa?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10621256_1 (
"100" numeric,
"High Score" numeric,
Catches numeric,
Average text,
"50" numeric,
Runs numeric,
Inns numeric,
Matches numeric,
Player text,
Stump numeric,
"N/O" numeric
);
CREATE TABLE table_2_15295737_54 (
Third text,
Skip text,
Nation text,
Second text,
Lead text
);
CREATE TABLE table_1_11111116_7 (
"U.S. viewers (million)" text,
Title text,
"No. in series" numeric,
"No. in season" numeric,
"Original air date" text,
"Directed by" text,
"Written by" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Skip has a Third of carlo alessandro zisa?`
```sql
| SELECT Skip FROM table_2_15295737_54 WHERE "Third" ILIKE '%carlo%alessandro%zisa%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
13436,
310,
9167,
518,
7054,
468,
434,
29962,
29973,
29952,
13,
13,
2277,
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,
29955,
29945,
29955,
29946,
29955,
29918,
29946,
313,
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,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
29923,
12907,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29906,
29946,
29896,
29900,
29918,
29906,
29906,
313,
13,
12,
29908,
20475,
470,
5146,
29908,
1426,
29892,
13,
12,
1625,
473,
1426,
29892,
13,
12,
29908,
3782,
29889,
310,
18196,
29908,
1426,
29892,
13,
12,
6980,
1426,
29892,
13,
12,
12883,
29879,
1426,
29892,
13,
12,
27103,
1426,
29892,
13,
12,
4300,
6737,
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,
25006,
5513,
16985,
29892,
13,
12,
29908,
9662,
335,
2738,
2318,
29908,
1426,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
7827,
5513,
16985,
29892,
13,
12,
29908,
24938,
4135,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
12310,
2785,
1273,
29908,
1426,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
5145,
5513,
16985,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
29878,
3631,
5513,
16985,
29892,
13,
12,
29908,
5531,
27577,
313,
29995,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29953,
29955,
29953,
29896,
29900,
29918,
29896,
313,
13,
12,
29911,
332,
833,
1426,
29892,
13,
12,
21472,
1426,
29892,
13,
12,
29908,
29943,
2491,
360,
27657,
29908,
1426,
29892,
13,
12,
2308,
326,
1426,
29892,
13,
12,
12412,
1426,
29892,
13,
12,
29911,
272,
802,
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,
5618,
338,
278,
13436,
310,
9167,
518,
7054,
468,
434,
29962,
29973,
29952,
13,
28956,
2850,
13,
5097,
15918,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29906,
29946,
29896,
29900,
29918,
29906,
29906,
5754,
376,
6980,
29908,
306,
5265,
6059,
14210,
2405,
5359,
29995,
29961,
7054,
468,
434,
29962,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
15918,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29906,
29946,
29896,
29900,
29918,
29906,
29906,
5754,
376,
6980,
29908,
306,
5265,
6059,
14210,
2405,
5359,
29995,
29961,
7054,
468,
434,
29962,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the digital of Virgin [analogue]?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11075747_4 (
Title text,
"Written by" text,
"Directed by" text,
"Series #" numeric,
"Episode #" numeric,
"Original air date" text
);
CREATE TABLE table_2_182410_22 (
"Free or pay" text,
Colour text,
"No. of channels" text,
Provider text,
Years text,
Digital text,
Transmission text
);
CREATE TABLE table_1_10710364_2 (
"Growth (1991–2001)" text,
"Sex ratio (urban)" numeric,
"Religious group" text,
"Sex ratio (total)" numeric,
"Literacy (%)" text,
"Population %" text,
"Sex ratio (child)" numeric,
"Sex ratio (rural)" numeric,
"Work participation (%)" text
);
CREATE TABLE table_1_11167610_1 (
Turbo text,
Power text,
"Fuel Delivery" text,
Trim text,
Engine text,
Torque text,
Performance text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the digital of Virgin [analogue]?`
```sql
| SELECT Digital FROM table_2_182410_22 WHERE "Provider" ILIKE '%virgin%[analogue]%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
11814,
7370,
29892,
746,
4408,
338,
15512,
7668,
29879,
29871,
29896,
29929,
29941,
29929,
448,
29871,
29896,
29929,
29946,
29941,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29896,
29947,
29929,
29906,
29918,
29946,
313,
13,
12,
29908,
29963,
2911,
262,
29914,
29879,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
5593,
4712,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
4557,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
29933,
9972,
4384,
8170,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
5920,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29946,
29947,
29900,
29896,
29947,
29918,
29906,
313,
13,
12,
10507,
1426,
29892,
13,
12,
29908,
26036,
4799,
1256,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
1043,
414,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29906,
29941,
29945,
29918,
29945,
313,
13,
12,
29908,
14343,
1095,
29908,
1426,
29892,
13,
12,
29908,
7713,
277,
936,
9173,
29908,
1426,
29892,
13,
12,
29908,
14343,
1369,
29908,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
29933,
1398,
29899,
29928,
1000,
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,
11814,
7370,
29892,
746,
4408,
338,
15512,
7668,
29879,
29871,
29896,
29929,
29941,
29929,
448,
29871,
29896,
29929,
29946,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
14343,
1369,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29906,
29941,
29945,
29918,
29945,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
10080,
29995,
15962,
29879,
29995,
29896,
29929,
29941,
29929,
29995,
19222,
29896,
29929,
29946,
29941,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
14343,
1369,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29906,
29941,
29945,
29918,
29945,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
10080,
29995,
15962,
29879,
29995,
29896,
29929,
29941,
29929,
29995,
19222,
29896,
29929,
29946,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Term Start, when Name is Prime Ministers 1939 - 1943?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1231892_4 (
"Villain/s" text,
"U.S. Air Date" text,
Title text,
"Number in series" numeric,
"Broadcast Order" text,
"Production Code" text
);
CREATE TABLE table_1_12148018_2 (
Writer text,
"Original airdate" text,
Director text,
"#" numeric,
Episode text,
Viewers text
);
CREATE TABLE table_2_167235_5 (
"Term end" text,
"Political Party" text,
"Term start" text,
Name text,
"Born-Died" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Term Start, when Name is Prime Ministers 1939 - 1943?`
```sql
| SELECT "Term start" FROM table_2_167235_5 WHERE "Name" ILIKE '%prime%ministers%1939%-%1943%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3001,
1353,
310,
365,
2209,
267,
393,
6286,
880,
750,
746,
896,
750,
28145,
18492,
29879,
1135,
29871,
29900,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29900,
29955,
29906,
29900,
29918,
29941,
313,
13,
12,
29908,
6730,
4134,
8583,
29908,
1426,
29892,
13,
12,
29908,
29933,
23980,
22135,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
350,
7515,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
3782,
1213,
1426,
29892,
13,
12,
29908,
29933,
340,
1847,
22135,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29900,
29955,
29955,
29941,
29918,
29945,
313,
13,
12,
29908,
29925,
7202,
5167,
29908,
1426,
29892,
13,
12,
4002,
647,
1426,
29892,
13,
12,
29908,
6730,
8373,
26428,
1815,
22603,
29908,
1426,
29892,
13,
12,
17693,
1426,
29892,
13,
12,
29315,
290,
3381,
1426,
29892,
13,
12,
29908,
11816,
292,
10554,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
26246,
29908,
1426,
29892,
13,
12,
12614,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29945,
29906,
29929,
29900,
29947,
29918,
29941,
313,
13,
12,
14769,
475,
303,
16985,
29892,
13,
12,
29931,
2209,
267,
16985,
29892,
13,
12,
2059,
267,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
29933,
497,
279,
271,
383,
29931,
29908,
1426,
29892,
13,
12,
8537,
29879,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
3001,
1353,
310,
365,
2209,
267,
393,
6286,
880,
750,
746,
896,
750,
28145,
18492,
29879,
1135,
29871,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
29931,
2209,
267,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29945,
29906,
29929,
29900,
29947,
29918,
29941,
5754,
376,
29933,
497,
279,
271,
383,
29931,
29908,
306,
5265,
6059,
14210,
12873,
880,
29001,
5300,
376,
8537,
29879,
29908,
529,
525,
29900,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29931,
2209,
267,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29945,
29906,
29929,
29900,
29947,
29918,
29941,
5754,
376,
29933,
497,
279,
271,
383,
29931,
29908,
306,
5265,
6059,
14210,
12873,
880,
29001,
5300,
376,
8537,
29879,
29908,
529,
525,
29900,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the total number of Losses that Melton had when they had fewer Draws than 0?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11950720_3 (
"First Class Team" text,
"Batting Style" text,
"Date of Birth" text,
Player text,
"No." text,
"Bowling Style" text
);
CREATE TABLE table_1_11900773_5 (
"Paper Type" text,
Design text,
"First Day Cover Cancellation" text,
Theme text,
Denomination text,
"Printing Process" text,
"Date of Issue" text,
Illustration text
);
CREATE TABLE table_2_1552908_3 (
Against numeric,
Losses numeric,
Byes numeric,
Wins numeric,
"Ballarat FL" text,
Draws numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the total number of Losses that Melton had when they had fewer Draws than 0?`
```sql
| SELECT SUM(Losses) FROM table_2_1552908_3 WHERE "Ballarat FL" ILIKE '%melton%' AND "Draws" < '0' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
6003,
434,
988,
278,
3271,
3815,
15569,
29871,
29896,
29896,
29889,
29896,
29906,
313,
29955,
29947,
6877,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29941,
29947,
29945,
29929,
29945,
29918,
29896,
313,
13,
12,
10840,
326,
29658,
1426,
29892,
13,
12,
4074,
1493,
1426,
29892,
13,
12,
29908,
29923,
854,
292,
402,
776,
29908,
1426,
29892,
13,
12,
2792,
1426,
29892,
13,
12,
6572,
2576,
262,
4314,
1426,
29892,
13,
12,
29909,
19698,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29953,
29953,
29929,
29906,
29953,
29918,
29906,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
7011,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29620,
16985,
29892,
13,
12,
22676,
16985,
29892,
13,
12,
1625,
4424,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29941,
29947,
29900,
29906,
29918,
29896,
313,
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,
1523,
2590,
11959,
29908,
1426,
29892,
13,
12,
29908,
21472,
29892,
2125,
2696,
29908,
1426,
29892,
13,
12,
29908,
29928,
719,
7688,
29908,
1426,
29892,
13,
12,
12412,
1426,
29892,
13,
12,
29908,
21472,
29892,
9126,
29908,
1426,
29892,
13,
12,
29908,
19111,
3090,
914,
330,
799,
11959,
29908,
1426,
29892,
13,
12,
29908,
25375,
1662,
21700,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29946,
29900,
29900,
29906,
29947,
29918,
29896,
313,
13,
12,
29908,
8897,
10097,
29908,
1426,
29892,
13,
12,
29908,
6730,
10097,
29908,
1426,
29892,
13,
12,
18984,
1426,
29892,
13,
12,
20755,
1426,
29892,
13,
12,
29908,
2290,
25724,
491,
29908,
1426,
29892,
13,
12,
29923,
3334,
2631,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29900,
29941,
29906,
29953,
29955,
29918,
29896,
313,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29955,
29946,
29947,
29929,
29896,
29918,
29896,
29900,
313,
13,
12,
29908,
29909,
1582,
3815,
8158,
29908,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
29908,
11184,
3815,
8158,
29908,
1426,
29892,
13,
12,
29907,
798,
29881,
16985,
29892,
13,
12,
2539,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
6003,
434,
988,
278,
3271,
3815,
15569,
29871,
29896,
29896,
29889,
29896,
29906,
313,
29955,
29947,
6877,
29952,
13,
28956,
2850,
13,
5097,
9548,
434,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29955,
29946,
29947,
29929,
29896,
29918,
29896,
29900,
5754,
376,
11184,
3815,
8158,
29908,
306,
5265,
6059,
14210,
29896,
29896,
29889,
29896,
29906,
29995,
29898,
29955,
29947,
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,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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,
5097,
9548,
434,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29955,
29946,
29947,
29929,
29896,
29918,
29896,
29900,
5754,
376,
11184,
3815,
8158,
29908,
306,
5265,
6059,
14210,
29896,
29896,
29889,
29896,
29906,
29995,
29898,
29955,
29947,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the venue where the home team scored 11.12 (78)?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12338595_1 (
Swimsuit text,
Interview text,
"Evening Gown" text,
State text,
Preliminaries text,
Average text
);
CREATE TABLE table_1_10966926_2 (
Position text,
"Player name" text,
Height text,
Round numeric,
Choice numeric,
Weight numeric,
College text
);
CREATE TABLE table_1_1123802_1 (
"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,
"Compression ratio" text,
"Power, takeoff" text,
"Dry weight" text,
Engine text,
"Power, continuous" text,
"Supercharger gear ratio" text,
"Octane rating" text
);
CREATE TABLE table_1_11240028_1 (
"Last appearance" text,
"First appearance" text,
Duration text,
Character text,
"Portrayed by" text,
Episodes text
);
CREATE TABLE table_1_11603267_1 (
Winner text,
"Purse( $ )" numeric,
Score text,
Tournament text,
Location text,
"1st Prize( $ )" numeric
);
CREATE TABLE table_2_10774891_10 (
"Away team score" text,
"Away team" text,
Venue text,
"Home team" text,
"Home team score" text,
Crowd numeric,
Date text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the venue where the home team scored 11.12 (78)?`
```sql
| SELECT Venue FROM table_2_10774891_10 WHERE "Home team score" ILIKE '%11.12%(78)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
338,
278,
23995,
296,
310,
3748,
29871,
29955,
29945,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29906,
29941,
29906,
29947,
29941,
29918,
29955,
313,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29924,
1279,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29946,
29947,
29945,
29955,
29906,
29918,
29896,
313,
13,
12,
29908,
1988,
29903,
6536,
7525,
1089,
29899,
3373,
29908,
1426,
29892,
13,
12,
29908,
1988,
29903,
6536,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
1988,
29903,
9179,
272,
2153,
1383,
969,
7525,
1089,
29899,
3373,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
1988,
29903,
9179,
272,
2153,
1383,
969,
399,
3993,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
338,
278,
23995,
296,
310,
3748,
29871,
29955,
29945,
29973,
29952,
13,
28956,
2850,
13,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29906,
29941,
29906,
29947,
29941,
29918,
29955,
5754,
376,
14199,
29908,
353,
525,
29955,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29906,
29941,
29906,
29947,
29941,
29918,
29955,
5754,
376,
14199,
29908,
353,
525,
29955,
29945,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who is the opponent of game 75?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17323283_7 (
Opponent text,
March numeric,
Record text,
Game numeric,
Score text
);
CREATE TABLE table_1_11148572_1 (
"MLS Cup Runner-Up" text,
"MLS Cup Winner" text,
"MLS Supporters Shield Runner-Up" text,
Season numeric,
"MLS Supporters Shield Winner" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who is the opponent of game 75?`
```sql
| SELECT Opponent FROM table_2_17323283_7 WHERE "Game" = '75' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
3086,
537,
29892,
746,
21595,
338,
3109,
1135,
29871,
29906,
29892,
322,
746,
23868,
338,
376,
29906,
29946,
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,
29896,
29946,
29900,
29896,
29896,
29896,
29918,
29945,
313,
13,
12,
13020,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
23770,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29945,
29945,
29953,
29906,
29947,
29918,
29896,
313,
13,
12,
27325,
537,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29925,
860,
16985,
29892,
13,
12,
29908,
1625,
4424,
29914,
19409,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29900,
29955,
29906,
29900,
29918,
29946,
313,
13,
12,
29908,
6730,
4134,
8583,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
350,
7515,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
1426,
29892,
13,
12,
29908,
29933,
23980,
22135,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29933,
340,
1847,
22135,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
3086,
537,
29892,
746,
21595,
338,
3109,
1135,
29871,
29906,
29892,
322,
746,
23868,
338,
376,
29906,
29946,
8652,
29952,
13,
28956,
2850,
13,
5097,
3086,
537,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29945,
29945,
29953,
29906,
29947,
29918,
29896,
5754,
376,
29934,
618,
29908,
529,
525,
29906,
29915,
5300,
376,
29925,
860,
29908,
353,
525,
29906,
29946,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29955,
29941,
29945,
29945,
29953,
29906,
29947,
29918,
29896,
5754,
376,
29934,
618,
29908,
529,
525,
29906,
29915,
5300,
376,
29925,
860,
29908,
353,
525,
29906,
29946,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Nationality, when Round is less than 2, and when Pick is "24"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140111_5 (
Report text,
Date text,
"Race Name" text,
"Winning driver" text,
Circuit text,
Constructor text
);
CREATE TABLE table_2_17355628_1 (
Nationality text,
Position text,
Round numeric,
Pick numeric,
"College/Team" text
);
CREATE TABLE table_1_11950720_4 (
"First Class Team" text,
"Date of Birth" text,
"No." text,
"Batting Style" text,
Player text,
"Bowling Style" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Nationality, when Round is less than 2, and when Pick is "24"?`
```sql
| SELECT Nationality FROM table_2_17355628_1 WHERE "Round" < '2' AND "Pick" = '24' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
12482,
30213,
338,
278,
19604,
697,
393,
756,
263,
20627,
310,
281,
27728,
29973,
29952,
13,
13,
2277,
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,
29900,
29955,
29896,
29946,
29906,
29918,
29906,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29934,
299,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
16885,
29914,
6508,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
3815,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
2602,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29955,
29953,
29900,
29918,
29941,
29896,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29940,
5688,
360,
4154,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29945,
29955,
29906,
29896,
29900,
29918,
29946,
313,
13,
12,
22676,
1426,
29892,
13,
12,
4557,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
29954,
1280,
30213,
29908,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
7011,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
2385,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29945,
29896,
29896,
29918,
29906,
313,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
29940,
15444,
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,
8809,
436,
12482,
30213,
338,
278,
19604,
697,
393,
756,
263,
20627,
310,
281,
27728,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
29954,
1280,
30213,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29945,
29955,
29906,
29896,
29900,
29918,
29946,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
29893,
27728,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29954,
1280,
30213,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29906,
29945,
29955,
29906,
29896,
29900,
29918,
29946,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
29893,
27728,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Games↑ is the lowest one that has a Position of wlb?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10707142_2 (
Date text,
"Race Name" text,
Rnd text,
Report text,
Circuit text,
"City/Location" text,
"Winning driver" text,
"Winning team" text,
"Pole position" text
);
CREATE TABLE table_1_11677760_31 (
Player text,
"NBA Draft" text,
College text,
School text
);
CREATE TABLE table_2_15257210_4 (
Weight text,
Number numeric,
Position text,
"Games↑" numeric,
Name text,
Height text,
Hometown text,
Class text
);
CREATE TABLE table_1_1213511_2 (
"College/junior/club team" text,
Position text,
"Pick #" numeric,
Nationality text,
"NHL team" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Games↑ is the lowest one that has a Position of wlb?`
```sql
| SELECT MIN(Games↑) FROM table_2_15257210_4 WHERE "Position" ILIKE '%wlb%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
1353,
310,
28495,
363,
28828,
11389,
267,
29892,
746,
278,
4216,
29879,
892,
901,
1135,
29871,
29946,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29906,
29953,
29896,
29906,
29946,
29918,
29941,
313,
13,
12,
2539,
1426,
29892,
13,
12,
18482,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29934,
618,
1426,
29892,
13,
12,
3744,
2763,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
14769,
475,
303,
1426,
29892,
13,
12,
3853,
654,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29929,
29955,
29941,
29900,
29906,
29918,
29896,
313,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29903,
2616,
287,
16985,
29892,
13,
12,
13454,
287,
16985,
29892,
13,
12,
1168,
1133,
287,
16985,
29892,
13,
12,
29931,
2209,
267,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
8537,
29879,
16985,
29892,
13,
12,
8003,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29953,
29929,
29947,
29918,
29896,
313,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
29892,
13,
12,
1451,
3103,
1426,
29892,
13,
12,
29908,
1349,
1823,
2058,
29908,
1426,
29892,
13,
12,
29908,
7031,
885,
9386,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29945,
29941,
29945,
29906,
29918,
29896,
313,
13,
12,
20779,
1426,
29892,
13,
12,
29954,
1280,
16985,
29892,
13,
12,
29903,
637,
1426,
29892,
13,
12,
29908,
11536,
14333,
749,
29908,
16985,
29892,
13,
12,
29908,
29909,
19698,
14333,
749,
29908,
16985,
29892,
13,
12,
3226,
3437,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
1353,
310,
28495,
363,
28828,
11389,
267,
29892,
746,
278,
4216,
29879,
892,
901,
1135,
29871,
29946,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29931,
2209,
267,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29929,
29955,
29941,
29900,
29906,
29918,
29896,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
4569,
22008,
29995,
29882,
388,
267,
29001,
5300,
376,
8537,
29879,
29908,
1405,
525,
29946,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18134,
29898,
29931,
2209,
267,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29929,
29955,
29941,
29900,
29906,
29918,
29896,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
4569,
22008,
29995,
29882,
388,
267,
29001,
5300,
376,
8537,
29879,
29908,
1405,
525,
29946,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the highest number of losses for Presidente Hayes, when the draws were more than 4?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11326124_3 (
Date text,
Zone text,
Opponent text,
Round text,
Outcome text,
Surface text,
Result text,
Against text,
Edition numeric
);
CREATE TABLE table_2_18597302_1 (
Wins numeric,
Team text,
Scored numeric,
Played numeric,
Conceded numeric,
Losses numeric,
Points numeric,
Draws numeric,
Position numeric
);
CREATE TABLE table_1_1167698_1 (
"Runner-up" text,
Champion text,
"Third place" text,
"Top scorer" text,
Season text
);
CREATE TABLE table_1_10815352_1 (
Country text,
Games numeric,
Sport text,
"Total attendance" numeric,
"Average attendance" numeric,
League text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the highest number of losses for Presidente Hayes, when the draws were more than 4?`
```sql
| SELECT MAX(Losses) FROM table_2_18597302_1 WHERE "Team" ILIKE '%presidente%hayes%' AND "Draws" > '4' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
25039,
271,
338,
278,
2630,
3819,
1735,
310,
4067,
1230,
1134,
29973,
29952,
13,
13,
2277,
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,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29946,
29953,
29906,
29941,
29945,
29918,
29896,
313,
13,
12,
29908,
1440,
3819,
1735,
29908,
1426,
29892,
13,
12,
14023,
1426,
29892,
13,
12,
29903,
3096,
861,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
6816,
273,
292,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29953,
29947,
29929,
29941,
29918,
29941,
313,
13,
12,
29908,
3306,
3440,
1061,
29898,
29879,
5513,
1426,
29892,
13,
12,
8514,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
29908,
6572,
29899,
25525,
3483,
858,
29908,
1426,
29892,
13,
12,
29908,
29925,
277,
1634,
272,
2153,
29908,
1426,
29892,
13,
12,
29908,
29931,
481,
29899,
1609,
29899,
6984,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29953,
29906,
29900,
29947,
29918,
29945,
313,
13,
12,
29908,
8120,
1338,
1152,
29908,
16985,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29908,
3563,
497,
14164,
29908,
1426,
29892,
13,
12,
29908,
8120,
1338,
1152,
7740,
29887,
1213,
1426,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
7740,
29887,
1213,
1426,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
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,
25039,
271,
338,
278,
2630,
3819,
1735,
310,
4067,
1230,
1134,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
1440,
3819,
1735,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29946,
29953,
29906,
29941,
29945,
29918,
29896,
5754,
376,
1542,
29908,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
1440,
3819,
1735,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29946,
29953,
29906,
29941,
29945,
29918,
29896,
5754,
376,
1542,
29908,
306,
5265,
6059,
14210,
21264,
1230,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`WHat is the Valency change of associative type?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10718984_2 (
"Original air date" text,
Title text,
"No. in series" numeric,
"No. in season" numeric,
"Directed by" text,
"U.S. viewers (millions)" text,
"Written by" text
);
CREATE TABLE table_2_10746235_1 (
"Valency change" text,
Example text,
Suffix text,
Type text,
Meaning text
);
CREATE TABLE table_1_10716893_3 (
"Color commentator(s)" text,
Host text,
Year numeric,
Network text,
"Pre-race analyst" text,
"Pit reporters" text,
"Lap-by-lap" text
);
CREATE TABLE table_1_1246208_5 (
"Goals For" numeric,
Club text,
"Overall Record" text,
"Goals For Avg." text,
"Goals Against Avg." text,
"Goals Against" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`WHat is the Valency change of associative type?`
```sql
| SELECT "Valency change" FROM table_2_10746235_1 WHERE "Type" ILIKE '%associative%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
28675,
3204,
29879,
505,
263,
1162,
310,
29871,
29896,
29900,
29892,
322,
385,
438,
407,
265,
296,
310,
470,
387,
265,
2106,
29892,
322,
385,
319,
19698,
7968,
1135,
29871,
29896,
29929,
29889,
29955,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29900,
29947,
29946,
29918,
29946,
313,
13,
12,
29908,
29933,
5371,
7803,
3001,
1776,
292,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
7803,
22125,
29908,
1426,
29892,
13,
12,
29908,
29933,
9972,
4384,
2635,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
3118,
3001,
1776,
292,
29908,
16985,
29892,
13,
12,
29908,
29933,
5371,
3118,
22125,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29946,
29953,
29945,
29896,
29947,
29953,
29918,
29906,
313,
13,
12,
29909,
19698,
16985,
29892,
13,
12,
29908,
4789,
1213,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29879,
28675,
3204,
29908,
16985,
29892,
13,
12,
29979,
3163,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29941,
29900,
29929,
29941,
29955,
29918,
29906,
313,
13,
12,
29908,
17392,
287,
491,
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,
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,
1080,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29929,
29955,
29946,
29941,
29918,
29896,
313,
13,
12,
29908,
4782,
7408,
29908,
16985,
29892,
13,
12,
29908,
13404,
7993,
29908,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
29908,
5098,
29907,
6536,
29908,
16985,
29892,
13,
12,
29908,
13454,
29899,
2696,
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,
28675,
3204,
29879,
505,
263,
1162,
310,
29871,
29896,
29900,
29892,
322,
385,
438,
407,
265,
296,
310,
470,
387,
265,
2106,
29892,
322,
385,
319,
19698,
7968,
1135,
29871,
29896,
29929,
29889,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
29879,
28675,
3204,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29946,
29953,
29945,
29896,
29947,
29953,
29918,
29906,
5754,
376,
4789,
1213,
353,
525,
29896,
29900,
29915,
5300,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29879,
28675,
3204,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29946,
29953,
29945,
29896,
29947,
29953,
29918,
29906,
5754,
376,
4789,
1213,
353,
525,
29896,
29900,
29915,
5300,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
272,
387,
265,
29995,
3859,
29001,
5300,
376,
29909,
19698,
29908,
529,
525,
29896,
29929,
29889,
29955,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many Touchdowns have a rec of 10, and an Opponent of oregon state, and an Average smaller than 19.7?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_103084_4 (
"BBC Two total viewing" text,
"BBC Two Rank" text,
"Broadcast date" text,
"BBC One total viewing" numeric,
"BBC One Rank" text
);
CREATE TABLE table_2_14465186_2 (
Average numeric,
"Rec." numeric,
Player text,
Year numeric,
"s Touchdown" numeric,
Yards numeric,
Opponent text
);
CREATE TABLE table_1_11230937_2 (
"Directed by" text,
"No. in season" numeric,
"No. in series" numeric,
"Original air date" text,
"Written by" text,
Title text,
"U.S. viewers (millions)" text
);
CREATE TABLE table_1_1059743_1 (
"Group stage" numeric,
"Member Association" text,
Rank numeric,
"AFC Cup" numeric,
"Play-off" numeric,
Points text
);
```
### Answer
Here is the SQL query that answers the question:
`How many Touchdowns have a rec of 10, and an Opponent of oregon state, and an Average smaller than 19.7?`
```sql
| SELECT COUNT("s Touchdown") FROM table_2_14465186_2 WHERE "Rec." = '10' AND "Opponent" ILIKE '%oregon%state%' AND "Average" < '19.7' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
897,
21873,
756,
23857,
310,
785,
29892,
322,
263,
402,
1581,
310,
1302,
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,
29900,
29947,
29896,
29906,
29929,
29941,
29947,
29918,
29941,
313,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
9207,
29931,
8583,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29900,
29947,
29953,
29955,
29953,
29918,
29955,
313,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29929,
29945,
29929,
29941,
29896,
29918,
29941,
313,
13,
12,
1170,
1426,
29892,
13,
12,
13799,
1426,
29892,
13,
12,
29954,
1581,
1426,
29892,
13,
12,
12883,
29879,
1426,
29892,
13,
12,
13720,
537,
1426,
29892,
13,
12,
2772,
21873,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29906,
29955,
29906,
29896,
29945,
29918,
29941,
313,
13,
12,
29934,
29881,
16985,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
3815,
29908,
1426,
29892,
13,
12,
13020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29953,
29941,
29929,
29900,
29918,
29946,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
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,
8809,
436,
897,
21873,
756,
23857,
310,
785,
29892,
322,
263,
402,
1581,
310,
1302,
287,
29973,
29952,
13,
28956,
2850,
13,
5097,
897,
21873,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29929,
29945,
29929,
29941,
29896,
29918,
29941,
5754,
376,
12883,
29879,
29908,
306,
5265,
6059,
14210,
29994,
29001,
5300,
376,
29954,
1581,
29908,
306,
5265,
6059,
14210,
1111,
287,
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,
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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,
5097,
897,
21873,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29929,
29945,
29929,
29941,
29896,
29918,
29941,
5754,
376,
12883,
29879,
29908,
306,
5265,
6059,
14210,
29994,
29001,
5300,
376,
29954,
1581,
29908,
306,
5265,
6059,
14210,
1111,
287,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Decile has Years of –, and a Gender of coed?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10812938_3 (
"Pick #" numeric,
Position text,
Player text,
"CFL Team" text,
College text
);
CREATE TABLE table_1_10908676_7 (
"No. in series" numeric,
"Directed by" text,
Title text,
"No. in season" numeric,
"Written by" text,
"Original air date" text
);
CREATE TABLE table_2_12195931_3 (
Name text,
Area text,
Gender text,
Years text,
Authority text,
Decile numeric
);
CREATE TABLE table_1_10527215_3 (
Rd numeric,
"Winning driver" text,
"Fastest Lap" text,
"Pole Position" text,
"Winning team" text,
Report text
);
CREATE TABLE table_1_12226390_4 (
"Original air date" text,
"Production code" numeric,
"No. in season" numeric,
"Directed by" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Decile has Years of –, and a Gender of coed?`
```sql
| SELECT Decile FROM table_2_12195931_3 WHERE "Years" ILIKE '%–%' AND "Gender" ILIKE '%coed%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
10401,
282,
808,
586,
338,
704,
4230,
29905,
482,
825,
338,
278,
1121,
310,
29871,
29896,
29947,
304,
29871,
29896,
29929,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29896,
29953,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29953,
29946,
29945,
29955,
29929,
29941,
29946,
29918,
29906,
313,
13,
12,
29908,
29953,
29945,
304,
29871,
29953,
29929,
29908,
16985,
29892,
13,
12,
29908,
29896,
29947,
304,
29871,
29896,
29929,
29908,
1426,
29892,
13,
12,
29908,
29906,
29945,
304,
29871,
29906,
29929,
29908,
16985,
29892,
13,
12,
29908,
29945,
29900,
304,
29871,
29945,
29946,
29908,
16985,
29892,
13,
12,
29908,
29896,
29945,
304,
29871,
29896,
29955,
29908,
16985,
29892,
13,
12,
29908,
29953,
29900,
304,
29871,
29953,
29946,
29908,
16985,
29892,
13,
12,
29908,
29941,
29945,
304,
29871,
29941,
29929,
29908,
16985,
29892,
13,
12,
29908,
29945,
29945,
304,
29871,
29945,
29929,
29908,
16985,
29892,
13,
12,
29908,
29941,
29900,
304,
29871,
29941,
29946,
29908,
16985,
29892,
13,
12,
29908,
29907,
29914,
29956,
29871,
29896,
29945,
13578,
16985,
29892,
13,
12,
29908,
29946,
29945,
304,
29871,
29946,
29929,
29908,
16985,
29892,
13,
12,
29908,
29946,
29900,
304,
29871,
29946,
29946,
29908,
16985,
29892,
13,
12,
29908,
29955,
29900,
13578,
16985,
29892,
13,
12,
29908,
29906,
29900,
304,
29871,
29906,
29946,
29908,
16985,
29892,
13,
12,
29908,
29949,
23190,
29905,
22406,
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,
282,
808,
586,
338,
704,
4230,
29905,
482,
825,
338,
278,
1121,
310,
29871,
29896,
29947,
304,
29871,
29896,
29929,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29896,
29947,
304,
29871,
29896,
29929,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29946,
29945,
29955,
29929,
29941,
29946,
29918,
29906,
5754,
376,
29949,
23190,
29905,
22406,
29908,
306,
5265,
6059,
14210,
29925,
808,
586,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29947,
304,
29871,
29896,
29929,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29946,
29945,
29955,
29929,
29941,
29946,
29918,
29906,
5754,
376,
29949,
23190,
29905,
22406,
29908,
306,
5265,
6059,
14210,
29925,
808,
586,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`When pskov is oblast\age what is the result of 18 to 19?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677100_16 (
Hometown text,
School text,
"MLB Draft" text,
Player text,
Position text
);
CREATE TABLE table_1_16457934_2 (
"65 to 69" numeric,
"18 to 19" text,
"25 to 29" numeric,
"50 to 54" numeric,
"15 to 17" numeric,
"60 to 64" numeric,
"35 to 39" numeric,
"55 to 59" numeric,
"30 to 34" numeric,
"C/W 15+" numeric,
"45 to 49" numeric,
"40 to 44" numeric,
"70+" numeric,
"20 to 24" numeric,
"Oblast\Age" text
);
```
### Answer
Here is the SQL query that answers the question:
`When pskov is oblast\age what is the result of 18 to 19?`
```sql
| SELECT "18 to 19" FROM table_1_16457934_2 WHERE "Oblast\Age" ILIKE '%Pskov%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
1900,
8341,
746,
6909,
1051,
7115,
338,
302,
29914,
29874,
29892,
2326,
11753,
3255,
29897,
338,
901,
1135,
29871,
29900,
322,
5700,
29879,
1754,
338,
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,
29906,
29918,
29896,
29953,
29929,
29955,
29896,
29929,
29900,
29918,
29906,
313,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29907,
8842,
1754,
29908,
16985,
29892,
13,
12,
29908,
29923,
2753,
886,
313,
395,
1723,
29908,
16985,
29892,
13,
12,
29908,
25353,
8341,
29908,
1426,
29892,
13,
12,
29908,
29924,
4992,
1051,
7115,
29908,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
29911,
2905,
20060,
5318,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29900,
29955,
29945,
29946,
29953,
29918,
29906,
313,
13,
12,
29903,
1251,
11427,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
27795,
1426,
29892,
13,
12,
10840,
25217,
1426,
29892,
13,
12,
29934,
4821,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29943,
16750,
1426,
29892,
13,
12,
29909,
386,
2810,
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,
1900,
8341,
746,
6909,
1051,
7115,
338,
302,
29914,
29874,
29892,
2326,
11753,
3255,
29897,
338,
901,
1135,
29871,
29900,
322,
5700,
29879,
1754,
338,
901,
1135,
29871,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
25353,
8341,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29929,
29955,
29896,
29929,
29900,
29918,
29906,
5754,
376,
29924,
4992,
1051,
7115,
29908,
306,
5265,
6059,
14210,
29876,
29914,
29874,
29001,
5300,
376,
29923,
2753,
886,
313,
395,
1723,
29908,
1405,
525,
29900,
29915,
5300,
376,
29907,
8842,
1754,
29908,
1405,
525,
29896,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
25353,
8341,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29929,
29955,
29896,
29929,
29900,
29918,
29906,
5754,
376,
29924,
4992,
1051,
7115,
29908,
306,
5265,
6059,
14210,
29876,
29914,
29874,
29001,
5300,
376,
29923,
2753,
886,
313,
395,
1723,
29908,
1405,
525,
29900,
29915,
5300,
376,
29907,
8842,
1754,
29908,
1405,
525,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the best finish when money list rank is n/a, earnings ($) is more than 0 and cuts made is more than 1?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1697190_2 (
Year numeric,
"Cuts made" numeric,
"Earnings ( $ )" numeric,
"Best finish" text,
"Money list rank" text,
Wins numeric,
"Tournaments played" numeric
);
CREATE TABLE table_1_12407546_2 (
Shooting text,
"#" numeric,
Running text,
Swimming text,
Riding text,
Total numeric,
Fencing text,
Athlete text
);
```
### Answer
Here is the SQL query that answers the question:
`what is the best finish when money list rank is n/a, earnings ($) is more than 0 and cuts made is more than 1?`
```sql
| SELECT "Best finish" FROM table_2_1697190_2 WHERE "Money list rank" ILIKE '%n/a%' AND "Earnings ( $ )" > '0' AND "Cuts made" > '1' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
18870,
262,
398,
3291,
892,
15074,
363,
29871,
29945,
386,
2058,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29906,
313,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
1625,
4424,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29953,
29941,
29929,
29900,
29918,
29941,
313,
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,
23665,
428,
775,
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,
29956,
20833,
491,
29908,
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,
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,
29892,
13,
12,
29908,
20325,
15074,
313,
29903,
271,
20911,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29906,
29953,
29941,
29918,
29896,
29941,
313,
13,
12,
19409,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
20097,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5328,
1784,
18870,
262,
398,
3291,
892,
15074,
363,
29871,
29945,
386,
2058,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
703,
20325,
15074,
313,
3247,
21203,
398,
25760,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29946,
29947,
29906,
29896,
29918,
29906,
5754,
376,
12881,
14424,
2602,
29908,
306,
5265,
6059,
14210,
29945,
386,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
20325,
15074,
313,
3247,
21203,
398,
25760,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29946,
29947,
29906,
29896,
29918,
29906,
5754,
376,
12881,
14424,
2602,
29908,
306,
5265,
6059,
14210,
29945,
386,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many platinum points were awarded for 5th place?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677691_2 (
Position text,
School text,
Player text,
Hometown text,
College text
);
CREATE TABLE table_1_12226390_3 (
"No. in season" numeric,
Title text,
"Original air date" text,
"Production code" numeric,
"No. in series" numeric,
"Directed by" text,
"Written by" text
);
CREATE TABLE table_1_11254821_2 (
"Points awarded (Platinum)" numeric,
"Points awarded (Gold)" numeric,
"Finishing position" text,
"Points awarded (Silver)" numeric,
"Points awarded (Satellite)" numeric
);
CREATE TABLE table_1_11964263_13 (
Team text,
Series text,
"High rebounds" text,
Date text,
"High assists" text,
"Location Attendance" text,
"High points" text,
Game numeric,
Score text
);
```
### Answer
Here is the SQL query that answers the question:
`How many platinum points were awarded for 5th place?`
```sql
| SELECT MAX("Points awarded (Platinum)") FROM table_1_11254821_2 WHERE "Finishing position" ILIKE '%5th%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
10150,
1353,
310,
2305,
297,
14333,
749,
310,
278,
3748,
411,
263,
399,
29871,
29896,
29946,
29899,
29941,
1121,
1156,
4723,
29871,
29896,
29900,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29896,
29945,
29947,
29906,
29918,
29955,
313,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29953,
29900,
29918,
29906,
313,
13,
12,
29908,
29909,
19698,
4665,
313,
29916,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
29907,
582,
311,
12060,
6554,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
29943,
814,
1793,
19257,
29908,
1426,
29892,
13,
12,
29908,
23859,
12060,
29879,
29908,
1426,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
16985,
29892,
13,
12,
29908,
29940,
18771,
1735,
29908,
1426,
29892,
13,
12,
2772,
493,
29879,
1426,
29892,
13,
12,
29908,
29940,
18771,
1735,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
29907,
582,
311,
4892,
6554,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29896,
29906,
29941,
29896,
29946,
29941,
29918,
29906,
313,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
3591,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29955,
29900,
29946,
29918,
29906,
313,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
1281,
18769,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29896,
29941,
29945,
29929,
29955,
29918,
29946,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29020,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
10150,
1353,
310,
2305,
297,
14333,
749,
310,
278,
3748,
411,
263,
399,
29871,
29896,
29946,
29899,
29941,
1121,
1156,
4723,
29871,
29896,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
4165,
21642,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29896,
29906,
29941,
29896,
29946,
29941,
29918,
29906,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
29893,
29995,
29896,
29946,
29899,
29941,
29001,
5300,
376,
22606,
29908,
1405,
525,
29896,
29900,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
4165,
21642,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29896,
29906,
29941,
29896,
29946,
29941,
29918,
29906,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
29893,
29995,
29896,
29946,
29899,
29941,
29001,
5300,
376,
22606,
29908,
1405,
525,
29896,
29900,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the largest number of people in attendance of the game with a W 14-3 result after week 10?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11961582_7 (
Team text,
"High assists" text,
Record text,
Score text,
Game numeric,
"High rebounds" text,
"High points" text,
"Location Attendance" text
);
CREATE TABLE table_1_12060_2 (
"Average population (x 1000)" text,
"Crude birth rate (per 1000)" text,
"Fertility rates" text,
"Live births" text,
"unnamed_0" numeric,
"Natural change" text,
Deaths text,
"Natural change (per 1000)" text,
"Crude death rate (per 1000)" text
);
CREATE TABLE table_2_15123143_2 (
Opponent text,
Attendance numeric,
Date text,
Week numeric,
Result text
);
CREATE TABLE table_1_1137704_2 (
"Grand Prix" text,
"Winning Driver" text,
Report text,
Location text,
Round numeric,
"Fastest Lap" text,
"Pole Position" text,
"Winning Constructor" text
);
CREATE TABLE table_1_10413597_4 (
"Written by" text,
Title text,
"No. in series" numeric,
"No. in season" numeric,
"Directed by" text,
Setting text,
"Original air date" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the largest number of people in attendance of the game with a W 14-3 result after week 10?`
```sql
| SELECT MAX(Attendance) FROM table_2_15123143_2 WHERE "Result" ILIKE '%w%14-3%' AND "Week" > '10' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1667,
2635,
746,
278,
4513,
338,
4654,
4513,
4021,
9215,
29973,
29952,
13,
13,
2277,
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,
29906,
29896,
29946,
29941,
29918,
29896,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
19132,
29881,
2931,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
7030,
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,
29906,
29955,
29929,
29955,
29941,
29953,
29906,
29946,
29918,
29896,
313,
13,
12,
6821,
23954,
1426,
29892,
13,
12,
29908,
4373,
9976,
445,
4513,
29908,
1426,
29892,
13,
12,
29908,
9075,
310,
278,
21595,
29908,
1426,
29892,
13,
12,
29908,
29925,
374,
911,
6909,
29908,
1426,
29892,
13,
12,
29908,
4557,
310,
5713,
486,
1973,
29908,
16985,
29892,
13,
12,
29908,
6330,
2635,
29908,
1426,
29892,
13,
12,
29934,
618,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
1667,
2635,
746,
278,
4513,
338,
4654,
4513,
4021,
9215,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
6330,
2635,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29929,
29955,
29941,
29953,
29906,
29946,
29918,
29896,
5754,
376,
29934,
618,
29908,
306,
5265,
6059,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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,
5097,
376,
6330,
2635,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29929,
29955,
29941,
29953,
29906,
29946,
29918,
29896,
5754,
376,
29934,
618,
29908,
306,
5265,
6059,
14210,
1349,
1823,
29995,
29934,
618,
29995,
24399,
9215,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the main date when the round is third round qualifying?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11562143_1 (
"Original air date" text,
"Written by" text,
"Directed by" text,
"Featured character(s)" text,
"U.S. viewers (million)" text,
Title text,
"No. in season" numeric,
"No. in series" numeric
);
CREATE TABLE table_1_27973624_1 (
Clubs text,
"New entries this round" text,
"Player of the Round" text,
"Prize money" text,
"Number of fixtures" numeric,
"Main date" text,
Round text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the main date when the round is third round qualifying?`
```sql
| SELECT "Main date" FROM table_1_27973624_1 WHERE "Round" ILIKE '%Third%Round%Qualifying%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
7115,
310,
13815,
20290,
1099,
29480,
29973,
29952,
13,
13,
2277,
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,
29908,
7976,
1889,
943,
29908,
1426,
29892,
13,
12,
3195,
1426,
29892,
13,
12,
29908,
18689,
10868,
29908,
1426,
29892,
13,
12,
29908,
7976,
8086,
13284,
29908,
1426,
29892,
13,
12,
28283,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29946,
29953,
29953,
29947,
29896,
29918,
29953,
313,
13,
12,
20779,
1426,
29892,
13,
12,
2481,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
3664,
267,
1426,
29892,
13,
12,
29909,
386,
1026,
267,
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,
310,
13815,
20290,
1099,
29480,
29973,
29952,
13,
28956,
2850,
13,
5097,
22125,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29946,
29953,
29953,
29947,
29896,
29918,
29953,
5754,
376,
29909,
386,
1026,
267,
29908,
306,
5265,
6059,
14210,
22670,
29995,
29883,
441,
1099,
29995,
28402,
29983,
16617,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
22125,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29946,
29953,
29953,
29947,
29896,
29918,
29953,
5754,
376,
29909,
386,
1026,
267,
29908,
306,
5265,
6059,
14210,
22670,
29995,
29883,
441,
1099,
29995,
28402,
29983,
16617,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the rank of Manuel Cortina Martínez?`
### 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,
"Max processors" text,
Model text,
"Processor frequency" text,
"Max disk capacity" text,
RU numeric
);
CREATE TABLE table_2_18646681_6 (
Country text,
Time text,
Rank numeric,
Notes text,
Athletes text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the rank of Manuel Cortina Martínez?`
```sql
| SELECT Rank FROM table_2_18646681_6 WHERE "Athletes" ILIKE '%manuel%cortina%martínez%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
8797,
287,
491,
756,
385,
8533,
4799,
2635,
310,
17187,
29871,
29906,
29929,
29892,
29871,
29906,
29900,
29900,
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,
29896,
29946,
29900,
29900,
29947,
29947,
29918,
29953,
313,
13,
12,
13020,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29896,
29896,
313,
13,
12,
8003,
1426,
29892,
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,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29946,
29955,
29896,
29946,
29941,
29906,
29918,
29945,
313,
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,
29892,
13,
12,
7030,
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,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29906,
29896,
313,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29900,
29955,
29945,
29946,
29953,
29918,
29896,
313,
13,
12,
29934,
4821,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
10840,
25217,
1426,
29892,
13,
12,
29908,
29909,
386,
2810,
313,
6632,
29907,
5513,
1426,
29892,
13,
12,
29903,
1251,
11427,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
27795,
1426,
29892,
13,
12,
29943,
16750,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
8797,
287,
491,
756,
385,
8533,
4799,
2635,
310,
17187,
29871,
29906,
29929,
29892,
29871,
29906,
29900,
29900,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
17392,
287,
491,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29946,
29955,
29896,
29946,
29941,
29906,
29918,
29945,
5754,
376,
26036,
4799,
2635,
29908,
306,
5265,
6059,
14210,
481,
4115,
29995,
29906,
29929,
24163,
29906,
29900,
29900,
29900,
29001,
2
] | [
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
17392,
287,
491,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29946,
29955,
29896,
29946,
29941,
29906,
29918,
29945,
5754,
376,
26036,
4799,
2635,
29908,
306,
5265,
6059,
14210,
481,
4115,
29995,
29906,
29929,
24163,
29906,
29900,
29900,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Directed by has an Original air date of april 29, 2000?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140088_6 (
Report text,
Constructor text,
Circuit text,
Date text,
"Race Name" text,
"Winning driver" text
);
CREATE TABLE table_1_11677691_11 (
Position text,
College text,
Player text,
School text,
Hometown text
);
CREATE TABLE table_2_16471432_5 (
"Original air date" text,
"Written by" text,
"Season #" numeric,
Title text,
"Series #" numeric,
"Directed by" text
);
CREATE TABLE table_1_10015132_21 (
Nationality text,
"No." numeric,
"Years in Toronto" text,
"School/Club Team" text
);
CREATE TABLE table_1_12407546_1 (
Riding text,
Total numeric,
Swimming text,
"Athlete (NOC)" text,
Shooting text,
"#" numeric,
Running text,
Fencing text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Directed by has an Original air date of april 29, 2000?`
```sql
| SELECT "Directed by" FROM table_2_16471432_5 WHERE "Original air date" ILIKE '%april%29,%2000%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29871,
29896,
29929,
29945,
29955,
6012,
756,
263,
678,
465,
275,
310,
11009,
6482,
1134,
289,
29973,
29952,
13,
13,
2277,
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,
18984,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29931,
29891,
2200,
391,
1426,
29892,
13,
12,
29908,
29931,
4316,
1199,
10929,
29914,
3293,
29908,
1426,
29892,
13,
12,
29908,
17936,
3611,
29908,
1426,
29892,
13,
12,
17936,
1426,
29892,
13,
12,
29908,
21238,
16151,
29914,
3293,
29908,
1426,
29892,
13,
12,
29908,
2499,
2404,
1024,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29896,
29929,
29945,
29946,
29918,
29941,
313,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29885,
575,
5513,
16985,
29892,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29893,
290,
575,
5513,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
7083,
25206,
313,
29893,
290,
575,
5513,
16985,
29892,
13,
12,
29908,
7083,
25206,
313,
29885,
575,
5513,
16985,
29892,
13,
12,
11536,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29941,
29941,
29947,
29953,
29900,
29918,
29896,
313,
13,
12,
12883,
16985,
29892,
13,
12,
12412,
1426,
29892,
13,
12,
1451,
465,
275,
1426,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
2369,
509,
424,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29947,
29953,
29906,
29918,
29896,
313,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29953,
29896,
29946,
29945,
29941,
29918,
29906,
313,
13,
12,
29949,
407,
265,
1237,
16985,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
29963,
638,
886,
3291,
29908,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29947,
29900,
29896,
29955,
29929,
29918,
29896,
313,
13,
12,
29908,
29954,
11191,
313,
11522,
979,
5513,
1426,
29892,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
29908,
29954,
11191,
639,
2117,
2028,
313,
11522,
979,
5513,
1426,
29892,
13,
12,
29908,
13799,
313,
8848,
30088,
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,
29871,
29896,
29929,
29945,
29955,
6012,
756,
263,
678,
465,
275,
310,
11009,
6482,
1134,
289,
29973,
29952,
13,
28956,
2850,
13,
5097,
382,
9312,
8895,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29941,
29941,
29947,
29953,
29900,
29918,
29896,
5754,
376,
1451,
465,
275,
29908,
306,
5265,
6059,
14210,
13082,
6482,
29995,
1853,
29995,
29890,
29001,
5300,
376,
12883,
29908,
1405,
525,
29896,
29929,
29945,
29955,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
9312,
8895,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29941,
29941,
29947,
29953,
29900,
29918,
29896,
5754,
376,
1451,
465,
275,
29908,
306,
5265,
6059,
14210,
13082,
6482,
29995,
1853,
29995,
29890,
29001,
5300,
376,
12883,
29908,
1405,
525,
29896,
29929,
29945,
29955,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What 1957 engine has a Chassis of connaught type b?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10416547_1 (
"Major instrument(s)" text,
Duration text,
Date text,
Lyricist text,
"Lyrics theme/style" text,
"Track title" text,
Track text,
"Music genre/style" text,
"Album name" text
);
CREATE TABLE table_1_11391954_3 (
"Half Marathon (mens)" numeric,
"Half Marathon (womens)" numeric,
Country text,
"Marathon (womens)" numeric,
"Marathon (mens)" numeric,
Total numeric
);
CREATE TABLE table_2_1233860_1 (
Year numeric,
Engine text,
Chassis text,
Points numeric,
Entrant text
);
CREATE TABLE table_1_11622862_1 (
Score text,
"1st Prize( $ )" numeric,
Tournament text,
Winner text,
"Purse( $ )" numeric,
Location text
);
CREATE TABLE table_1_10361453_2 (
Opponents numeric,
Attendance numeric,
Game numeric,
"Vikings points" numeric,
Result text,
Record text,
Opponent text
);
CREATE TABLE table_1_11780179_1 (
"GDP (nominal)" text,
Population numeric,
"GDP per capita (nominal)" text,
"Area (km²)" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What 1957 engine has a Chassis of connaught type b?`
```sql
| SELECT ENGINE FROM table_2_1233860_1 WHERE "Chassis" ILIKE '%connaught%type%b%' AND "Year" > '1957' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3001,
14333,
749,
411,
263,
13969,
310,
28972,
29889,
1092,
29892,
322,
263,
2522,
487,
310,
29871,
29941,
29994,
29896,
29892,
322,
263,
4712,
310,
29871,
29896,
29946,
21783,
29871,
29906,
29900,
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,
29900,
29945,
29955,
29941,
29896,
29953,
29918,
29896,
313,
13,
12,
29908,
9125,
1353,
29908,
1426,
29892,
13,
12,
29908,
7094,
1288,
12271,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
8893,
2635,
29908,
1426,
29892,
13,
12,
4205,
3283,
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,
29896,
29929,
29941,
29946,
29900,
29941,
29906,
29918,
29896,
313,
13,
12,
2052,
492,
2925,
1426,
29892,
13,
12,
29908,
22814,
9681,
29908,
1426,
29892,
13,
12,
4597,
2132,
800,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29928,
6801,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29896,
29953,
29946,
29929,
29900,
29918,
29946,
313,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
3338,
618,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
6843,
300,
654,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29906,
29947,
29953,
29929,
29896,
29918,
29946,
313,
13,
12,
29908,
11816,
10104,
313,
29928,
2227,
29897,
24062,
918,
338,
2183,
297,
270,
1862,
639,
297,
305,
313,
29928,
2227,
5513,
1426,
29892,
13,
12,
3195,
16985,
29892,
13,
12,
29908,
7976,
12539,
3370,
29908,
1426,
29892,
13,
12,
4205,
1285,
262,
6742,
1426,
29892,
13,
12,
29908,
6271,
29965,
24839,
29908,
1426,
29892,
13,
12,
29908,
15449,
3370,
29908,
1426,
29892,
13,
12,
29908,
11816,
6210,
313,
29925,
13427,
5513,
1426,
29892,
13,
12,
25898,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29945,
29929,
29896,
29896,
29945,
29918,
29941,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
3001,
14333,
749,
411,
263,
13969,
310,
28972,
29889,
1092,
29892,
322,
263,
2522,
487,
310,
29871,
29941,
29994,
29896,
29892,
322,
263,
4712,
310,
29871,
29896,
29946,
21783,
29871,
29906,
29900,
29900,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
4165,
21642,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29896,
29953,
29946,
29929,
29900,
29918,
29946,
5754,
376,
13020,
29908,
306,
5265,
6059,
14210,
4928,
29889,
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,
5097,
22753,
29898,
4165,
21642,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29896,
29953,
29946,
29929,
29900,
29918,
29946,
5754,
376,
13020,
29908,
306,
5265,
6059,
14210,
4928,
29889,
1092,
29001,
5300,
376,
20097,
29908,
306,
5265,
6059,
14210,
29941,
29994,
29896,
29001,
5300,
376,
2539,
29908,
306,
5265,
6059,
14210,
29896,
29946,
29995,
481,
29878,
29995,
29906,
29900,
29900,
29896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the total attendance with a Report of sd.hr, and a Score of 3–1, and a Date of 14 apr 2001?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1057316_1 (
"Serial number" text,
"Operational owner(s)" text,
"Build date" text,
Disposition text,
"Wheel arrangement ( Whyte notation )" text
);
CREATE TABLE table_1_11934032_1 (
Appliances text,
"Station Number" text,
Registrations text,
Location text,
Type text,
District text
);
CREATE TABLE table_2_10816490_4 (
Attendance numeric,
Date text,
Report text,
Ground text,
Score text,
Competition text
);
CREATE TABLE table_1_10528691_4 (
"Print resolution (DPI) Resolution is given in dots per inch (DPI)" text,
Model numeric,
"Maximum memory" text,
Discontinued text,
"CPU Speed" text,
"Standard memory" text,
"Print speed (PPM)" text,
Introduction text
);
CREATE TABLE table_1_12159115_3 (
"Written by" text,
"Series #" numeric,
"U.S. viewers (millions)" text,
Title text,
"Directed by" text,
"Production code" text,
"Original air date" text,
"Season #" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the total attendance with a Report of sd.hr, and a Score of 3–1, and a Date of 14 apr 2001?`
```sql
| SELECT SUM(Attendance) FROM table_2_10816490_4 WHERE "Report" ILIKE '%sd.hr%' AND "Score" ILIKE '%3–1%' AND "Date" ILIKE '%14%apr%2001%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
338,
278,
17622,
2810,
29898,
29879,
29897,
1058,
15569,
29871,
29953,
29929,
29896,
10365,
287,
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,
29900,
29941,
29953,
29900,
29947,
29906,
29941,
29918,
29896,
313,
13,
12,
3563,
497,
16985,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29620,
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,
23770,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
2539,
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,
29934,
299,
16985,
29892,
13,
12,
29934,
815,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29953,
29946,
29945,
29946,
29896,
29906,
29947,
29918,
29929,
313,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
3253,
5143,
287,
8984,
29879,
29908,
16985,
29892,
13,
12,
20325,
1426,
29892,
13,
12,
29908,
27469,
313,
2527,
690,
5513,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
29909,
386,
2810,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
338,
278,
17622,
2810,
29898,
29879,
29897,
1058,
15569,
29871,
29953,
29929,
29896,
10365,
287,
3291,
29973,
29952,
13,
28956,
2850,
13,
5097,
9193,
2810,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29946,
29945,
29946,
29896,
29906,
29947,
29918,
29929,
5754,
376,
3253,
5143,
287,
8984,
29879,
29908,
353,
525,
29953,
29929,
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,
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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,
5097,
9193,
2810,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29946,
29945,
29946,
29896,
29906,
29947,
29918,
29929,
5754,
376,
3253,
5143,
287,
8984,
29879,
29908,
353,
525,
29953,
29929,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who is the athlete(s) who scored 691 adjusted points?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10360823_1 (
Overall numeric,
College text,
Position text,
"Player name" text,
Round numeric,
Choice numeric
);
CREATE TABLE table_1_1140083_2 (
Report text,
Constructor text,
"Race Winner" text,
Date text,
"Fastest Lap" text,
"Pole Position" text,
Location text,
Rnd numeric,
Race text
);
CREATE TABLE table_1_26454128_9 (
Country text,
"Adjusted Points" numeric,
Points text,
"Distance (metres)" text,
Rank numeric,
Athlete text
);
```
### Answer
Here is the SQL query that answers the question:
`Who is the athlete(s) who scored 691 adjusted points?`
```sql
| SELECT Athlete FROM table_1_26454128_9 WHERE "Adjusted Points" = '691' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
1024,
310,
278,
23995,
296,
746,
278,
1158,
471,
5812,
313,
2536,
314,
511,
322,
2407,
471,
29871,
29896,
29941,
29994,
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,
29929,
29945,
29929,
29953,
29953,
29929,
29918,
29941,
313,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29946,
29929,
29945,
29929,
29900,
29918,
29906,
313,
13,
12,
29908,
29968,
860,
2696,
518,
29874,
4514,
29908,
1426,
29892,
13,
12,
8050,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29908,
14199,
3268,
29908,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
22606,
1426,
29892,
13,
12,
3591,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29953,
29929,
29945,
29918,
29941,
313,
13,
12,
29908,
17734,
1076,
1281,
18769,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29941,
29947,
29955,
29953,
29955,
29918,
29896,
313,
13,
12,
29908,
7717,
1024,
29908,
1426,
29892,
13,
12,
855,
23693,
1426,
29892,
13,
12,
29908,
18457,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
29928,
1078,
263,
2859,
29908,
1426,
29892,
13,
12,
13724,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29900,
29941,
29945,
29953,
29941,
29918,
29896,
313,
13,
12,
29908,
29941,
5499,
15484,
29908,
16985,
29892,
13,
12,
29940,
362,
1426,
29892,
13,
12,
29908,
29934,
5963,
414,
29899,
786,
29908,
16985,
29892,
13,
12,
29908,
29946,
386,
15484,
29908,
16985,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29956,
16697,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29945,
29947,
29941,
29941,
29929,
29918,
29906,
313,
13,
12,
2624,
1426,
29892,
13,
12,
4062,
1426,
29892,
13,
12,
2481,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
1666,
1213,
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,
1024,
310,
278,
23995,
296,
746,
278,
1158,
471,
5812,
313,
2536,
314,
511,
322,
2407,
471,
29871,
29896,
29941,
29994,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29945,
29947,
29941,
29941,
29929,
29918,
29906,
5754,
376,
4062,
29908,
306,
5265,
6059,
14210,
2901,
29995,
29898,
2536,
314,
29897,
29001,
5300,
376,
9182,
29908,
306,
5265,
6059,
14210,
29896,
29941,
29994,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
438,
407,
265,
296,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29945,
29947,
29941,
29941,
29929,
29918,
29906,
5754,
376,
4062,
29908,
306,
5265,
6059,
14210,
2901,
29995,
29898,
2536,
314,
29897,
29001,
5300,
376,
9182,
29908,
306,
5265,
6059,
14210,
29896,
29941,
29994,
29896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the name of the opponent when the method was ko (slam), and record was 13–1?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11959669_3 (
"High points" text,
Score text,
"High assists" text,
Date text,
"High rebounds" text,
"Location Attendance" text,
Game numeric,
Team text
);
CREATE TABLE table_1_11449590_2 (
"Kickoff [a ]" text,
TV text,
Opponent text,
"Game site" text,
Attendance text,
Week text,
Result text
);
CREATE TABLE table_1_1137695_3 (
"Winning Constructor" text,
"Pole Position" text,
"Winning Driver" text,
Report text,
"Grand Prix" text,
"Fastest Lap" text
);
CREATE TABLE table_1_12438767_1 (
"Local name" text,
Starring text,
"Region/Country" text,
"Dates aired" text,
Network text
);
CREATE TABLE table_1_12303563_1 (
"3rd Place" numeric,
Nation text,
"Runners-up" numeric,
"4th Place" numeric,
"#" numeric,
Winners numeric
);
CREATE TABLE table_2_1758339_2 (
Event text,
Method text,
Time text,
Record text,
Round numeric,
Location text,
"Res." text,
Opponent text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the name of the opponent when the method was ko (slam), and record was 13–1?`
```sql
| SELECT Opponent FROM table_2_1758339_2 WHERE "Method" ILIKE '%ko%(slam)%' AND "Record" ILIKE '%13–1%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
11921,
471,
278,
2058,
310,
12060,
363,
278,
13341,
1058,
3614,
8034,
1156,
29871,
29896,
29929,
29947,
29906,
29892,
16000,
1078,
263,
6474,
7968,
1135,
29871,
29946,
29941,
322,
14393,
304,
263,
15202,
322,
10354,
6931,
21118,
29973,
29952,
13,
13,
2277,
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,
16107,
2401,
29879,
29908,
16985,
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,
10536,
6536,
2401,
29879,
313,
4035,
5513,
16985,
29892,
13,
12,
29908,
3226,
3437,
2401,
29879,
313,
4035,
5513,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
10536,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
29908,
16107,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
11536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
4519,
6536,
2401,
29879,
313,
4035,
5513,
1426,
29892,
13,
12,
29908,
3226,
3437,
2921,
1338,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29947,
29955,
29941,
29945,
29906,
29900,
29918,
29896,
313,
13,
12,
1523,
2415,
371,
29872,
1426,
29892,
13,
12,
11494,
1426,
29892,
13,
12,
29908,
22150,
310,
350,
7515,
29908,
1426,
29892,
13,
12,
29928,
6801,
16985,
29892,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
29908,
1762,
554,
11367,
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,
11921,
471,
278,
2058,
310,
12060,
363,
278,
13341,
1058,
3614,
8034,
1156,
29871,
29896,
29929,
29947,
29906,
29892,
16000,
1078,
263,
6474,
7968,
1135,
29871,
29946,
29941,
322,
14393,
304,
263,
15202,
322,
10354,
6931,
21118,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
22150,
310,
350,
7515,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29947,
29955,
29941,
29945,
29906,
29900,
29918,
29896,
5754,
376,
1762,
554,
11367,
29908,
1405,
525,
29896,
29929,
29947,
29906,
29915,
5300,
376,
29928,
6801,
29908,
529,
525,
29946,
29941,
29915,
5300,
376,
1523,
2415,
371,
29872,
29908,
306,
5265,
6059,
14210,
354,
4298,
29995,
392,
29995,
29887,
6170,
358,
29995,
3372,
800,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
22150,
310,
350,
7515,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29947,
29955,
29941,
29945,
29906,
29900,
29918,
29896,
5754,
376,
1762,
554,
11367,
29908,
1405,
525,
29896,
29929,
29947,
29906,
29915,
5300,
376,
29928,
6801,
29908,
529,
525,
29946,
29941,
29915,
5300,
376,
1523,
2415,
371,
29872,
29908,
306,
5265,
6059,
14210,
354,
4298,
29995,
392,
29995,
29887,
6170,
358,
29995,
3372,
800,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Where was the place of birth for the delegate who took office after 1982, delegates a district smaller than 43 and belongs to a Health and Government operations committee?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1112176_1 (
"Other Apps" numeric,
"FA Cup Goals" numeric,
"Total Apps (Sub)" text,
"FL Cup Apps (Sub)" numeric,
"League Apps (Sub)" numeric,
Season text,
"FL Cup Goals" numeric,
Division text,
"Other Goals" numeric,
"Total Goals" numeric,
"FA Cup Apps (Sub)" text,
"League Goals" numeric
);
CREATE TABLE table_2_11873520_1 (
Committee text,
Delegate text,
"Place of Birth" text,
District numeric,
Party text,
"Took Office" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Where was the place of birth for the delegate who took office after 1982, delegates a district smaller than 43 and belongs to a Health and Government operations committee?`
```sql
| SELECT "Place of Birth" FROM table_2_11873520_1 WHERE "Took Office" > '1982' AND "District" < '43' AND "Committee" ILIKE '%health%and%government%operations%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
10728,
1974,
411,
3495,
3815,
310,
9753,
762,
1484,
9151,
414,
322,
2186,
8158,
310,
29871,
29906,
29941,
29899,
29946,
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,
29955,
29900,
29900,
29947,
29906,
29918,
29953,
313,
13,
12,
10507,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
7030,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29941,
29896,
29929,
29941,
29946,
29953,
29953,
29918,
29906,
29900,
313,
13,
12,
2539,
1426,
29892,
13,
12,
855,
328,
1974,
1426,
29892,
13,
12,
29908,
6116,
11407,
8583,
29908,
1426,
29892,
13,
12,
29908,
8514,
8583,
29908,
1426,
29892,
13,
12,
29908,
15790,
2522,
487,
29908,
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,
1043,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
8050,
4259,
29908,
1426,
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,
2008,
1658,
5730,
406,
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,
10728,
1974,
411,
3495,
3815,
310,
9753,
762,
1484,
9151,
414,
322,
2186,
8158,
310,
29871,
29906,
29941,
29899,
29946,
29945,
29952,
13,
28956,
2850,
13,
5097,
17213,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29896,
29929,
29941,
29946,
29953,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
17213,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29896,
29929,
29941,
29946,
29953,
29953,
29918,
29906,
29900,
5754,
376,
8514,
8583,
29908,
306,
5265,
6059,
14210,
28455,
29995,
29881,
9383,
29995,
25389,
414,
29001,
5300,
376,
15790,
2522,
487,
29908,
306,
5265,
6059,
14210,
29906,
29941,
29899,
29946,
29945,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the stadium with host team of san diego chargers and final score of 23-45`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10470082_6 (
Writer text,
Villains text,
"No." numeric,
Storyteller text,
"US air date" text,
"#" numeric,
Director text,
Title text
);
CREATE TABLE table_2_13193466_20 (
Date text,
Stadium text,
"Visiting Team" text,
"Host Team" text,
"Final Score" text
);
CREATE TABLE table_1_10120207_8 (
Rank text,
"Viewers (millions)" text,
Season numeric,
"TV season" text,
"Timeslot ( ET )" text,
"Season finale" text,
"Season premiere" text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the stadium with host team of san diego chargers and final score of 23-45`
```sql
| SELECT Stadium FROM table_2_13193466_20 WHERE "Host Team" ILIKE '%san%diego%chargers%' AND "Final Score" ILIKE '%23-45%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
1353,
310,
1006,
1441,
29879,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29929,
29946,
29896,
29947,
29953,
29929,
29953,
29918,
29941,
313,
13,
12,
4165,
3456,
29879,
16985,
29892,
13,
12,
4074,
1441,
29879,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
15852,
3204,
29879,
16985,
29892,
13,
12,
29908,
29984,
29933,
390,
1218,
29908,
1426,
29892,
13,
12,
29908,
28958,
1273,
29908,
1426,
29892,
13,
12,
29979,
3163,
16985,
29892,
13,
12,
8909,
29873,
1080,
16985,
13,
416,
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,
29903,
20510,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29943,
2429,
388,
1426,
29892,
13,
12,
29903,
870,
388,
1426,
29892,
13,
12,
29956,
287,
4515,
3250,
1426,
29892,
13,
12,
1349,
1295,
3250,
1426,
29892,
13,
12,
29924,
898,
388,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29900,
29900,
29941,
29953,
29947,
29918,
29896,
313,
13,
12,
29908,
3220,
313,
12883,
5513,
1426,
29892,
13,
12,
29908,
12883,
310,
17745,
29908,
1426,
29892,
13,
12,
29908,
29934,
804,
292,
365,
29889,
29909,
29889,
313,
29906,
5513,
1426,
29892,
13,
12,
29908,
3981,
2722,
4559,
29881,
29908,
16985,
29892,
13,
12,
29908,
14058,
22125,
292,
313,
29896,
5513,
1426,
29892,
13,
12,
29908,
13720,
847,
14059,
847,
7562,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29945,
29929,
29896,
29896,
29945,
29918,
29941,
313,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
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,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
1353,
310,
1006,
1441,
29879,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
4074,
1441,
29879,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29929,
29946,
29896,
29947,
29953,
29929,
29953,
29918,
29941,
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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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,
5097,
18134,
29898,
4074,
1441,
29879,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29929,
29946,
29896,
29947,
29953,
29929,
29953,
29918,
29941,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the highest number of interceptions?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_19418696_3 (
Attempts numeric,
Interceptions numeric,
Name text,
Touchdowns numeric,
"QB Rating" text,
"Completion %" text,
Yards numeric,
Completions numeric
);
CREATE TABLE table_1_11019212_1 (
Tuesday text,
Saturday text,
Location text,
Friday text,
Sunday text,
Wednesday text,
Thursday text,
Monday text
);
CREATE TABLE table_1_12000368_1 (
"Index (Year)" text,
"Year of publication" text,
"Ranking L.A. (2)" text,
"Countries sampled" numeric,
"World Ranking (1)" text,
"Author / Editor / Source" text
);
CREATE TABLE table_1_12159115_3 (
Title text,
"Production code" text,
"Series #" numeric,
"Original air date" text,
"U.S. viewers (millions)" text,
"Directed by" text,
"Written by" text,
"Season #" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the highest number of interceptions?`
```sql
| SELECT MAX(Interceptions) FROM table_1_19418696_3 |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
29911,
514,
592,
278,
3081,
746,
278,
4842,
802,
338,
302,
30064,
29885,
313,
27728,
30064,
615,
29897,
5515,
29876,
30064,
29885,
313,
27728,
30064,
615,
29897,
732,
29896,
29955,
29945,
29900,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29946,
29900,
29900,
29906,
29947,
29918,
29896,
313,
13,
12,
18984,
1426,
29892,
13,
12,
29908,
6730,
10097,
29908,
1426,
29892,
13,
12,
29908,
8897,
10097,
29908,
1426,
29892,
13,
12,
29923,
3334,
2631,
1426,
29892,
13,
12,
20755,
1426,
29892,
13,
12,
29908,
2290,
25724,
491,
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,
29950,
7889,
27562,
669,
6607,
800,
29908,
1426,
29892,
13,
12,
29908,
7717,
26049,
29908,
1426,
29892,
13,
12,
29908,
25865,
26049,
29908,
1426,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
5261,
2523,
800,
322,
12767,
403,
26049,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29896,
313,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
29925,
860,
16985,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29900,
29947,
29955,
29918,
29906,
313,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
13020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29906,
29896,
29947,
29929,
29918,
29896,
313,
13,
12,
29908,
21472,
29914,
29878,
3358,
29908,
1426,
29892,
13,
12,
29908,
29907,
2904,
513,
414,
29914,
1440,
1960,
29908,
1426,
29892,
13,
12,
29908,
29911,
272,
802,
313,
29940,
29885,
6802,
29878,
3358,
29908,
1426,
29892,
13,
12,
29908,
3195,
29914,
12412,
29908,
1426,
29892,
13,
12,
12415,
5946,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29945,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
29911,
514,
592,
278,
3081,
746,
278,
4842,
802,
338,
302,
30064,
29885,
313,
27728,
30064,
615,
29897,
5515,
29876,
30064,
29885,
313,
27728,
30064,
615,
29897,
732,
29896,
29955,
29945,
29900,
29952,
13,
28956,
2850,
13,
5097,
9206,
29914,
29878,
3358,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29906,
29896,
29947,
29929,
29918,
29896,
5754,
376,
29911,
272,
802,
313,
29940,
29885,
6802,
29878,
3358,
29908,
306,
5265,
6059,
14210,
29876,
30064,
29885,
29995,
29898,
27728,
30064,
615,
29897,
5515,
29876,
30064,
29885,
29995,
29898,
27728,
30064,
615,
29897,
29995,
29992,
29896,
29955,
29945,
29900,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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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,
5097,
9206,
29914,
29878,
3358,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29906,
29896,
29947,
29929,
29918,
29896,
5754,
376,
29911,
272,
802,
313,
29940,
29885,
6802,
29878,
3358,
29908,
306,
5265,
6059,
14210,
29876,
30064,
29885,
29995,
29898,
27728,
30064,
615,
29897,
5515,
29876,
30064,
29885,
29995,
29898,
27728,
30064,
615,
29897,
29995,
29992,
29896,
29955,
29945,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Tell me the power when the torque is n·m (lb·ft)/*n·m (lb·ft) @1750`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11240028_1 (
Duration text,
"First appearance" text,
"Last appearance" text,
Episodes text,
Character text,
"Portrayed by" text
);
CREATE TABLE table_1_12113818_1 (
"Academic & University Affairs" text,
"Human Resources & Operations" text,
"Local Affairs" text,
"External Affairs" text,
Year text,
"Communications and Corporate Affairs" text
);
CREATE TABLE table_1_1013129_1 (
"NHL team" text,
Position text,
Nationality text,
"College/junior/club team" text,
Pick numeric,
Player text
);
CREATE TABLE table_1_1139087_2 (
"Winning Driver" text,
"Rd." numeric,
Constructor text,
"Pole Position" text,
Date text,
Location text,
"Fastest Lap" text,
"Grand Prix" text,
Report text
);
CREATE TABLE table_2_1212189_1 (
"Power/rpm" text,
"Cylinders/Valves" text,
"Torque (Nm)/rpm" text,
"Model/Engine" text,
Capacity text
);
CREATE TABLE table_1_11677691_5 (
Hometown text,
College text,
Position text,
School text
);
```
### Answer
Here is the SQL query that answers the question:
`Tell me the power when the torque is n·m (lb·ft)/*n·m (lb·ft) @1750`
```sql
| SELECT Power/rpm FROM table_2_1212189_1 WHERE "Torque (Nm)/rpm" ILIKE '%n·m%(lb·ft)/*n·m%(lb·ft)%@1750%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
29956,
8187,
399,
3289,
6093,
317,
6040,
1692,
399,
1177,
13865,
2672,
6093,
317,
6040,
1692,
5754,
341,
2965,
15715,
6670,
14445,
29933,
3289,
1177,
29902,
399,
1164,
6093,
341,
2544,
3289,
478,
5607,
13566,
2890,
315,
4375,
1799,
6545,
28541,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29896,
29947,
29900,
29946,
29945,
29945,
29955,
29918,
29896,
29947,
313,
13,
12,
29908,
19409,
23236,
29908,
1426,
29892,
13,
12,
29908,
27648,
2708,
23236,
29908,
1426,
29892,
13,
12,
29908,
15263,
23236,
29908,
1426,
29892,
13,
12,
29908,
20325,
23236,
29908,
1426,
29892,
13,
12,
29908,
27276,
313,
29956,
3993,
5513,
1426,
29892,
13,
12,
29908,
10095,
294,
3684,
3794,
23236,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29929,
29906,
29946,
29918,
29896,
313,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
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,
29906,
29906,
29900,
29953,
29929,
29896,
29947,
29918,
29906,
313,
13,
12,
3206,
11259,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29911,
277,
793,
1426,
29892,
13,
12,
4557,
16985,
29892,
13,
12,
3591,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29941,
29945,
29941,
29941,
29946,
29918,
29906,
313,
13,
12,
29908,
22606,
368,
22125,
363,
26176,
29908,
1426,
29892,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
1043,
414,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29900,
29941,
29941,
29941,
29953,
29918,
29896,
313,
13,
12,
29908,
9283,
4056,
365,
8737,
29908,
1426,
29892,
13,
12,
6271,
29965,
1426,
29892,
13,
12,
25058,
1426,
29892,
13,
12,
6572,
311,
985,
943,
1426,
29892,
13,
12,
14191,
943,
1426,
29892,
13,
12,
29908,
9323,
21179,
29908,
1426,
29892,
13,
12,
29908,
6595,
1976,
9770,
29908,
1426,
29892,
13,
12,
29908,
12883,
830,
4611,
29908,
1426,
29892,
13,
12,
27065,
1061,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
29956,
8187,
399,
3289,
6093,
317,
6040,
1692,
399,
1177,
13865,
2672,
6093,
317,
6040,
1692,
5754,
341,
2965,
15715,
6670,
14445,
29933,
3289,
1177,
29902,
399,
1164,
6093,
341,
2544,
3289,
478,
5607,
13566,
2890,
315,
4375,
1799,
6545,
28541,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
27276,
313,
29956,
3993,
5513,
3895,
1591,
29918,
29896,
29918,
29906,
29896,
29947,
29900,
29946,
29945,
29945,
29955,
29918,
29896,
29947,
5754,
376,
10095,
294,
3684,
3794,
23236,
29908,
306,
5265,
6059,
14210,
24083,
29995,
2499,
6500,
2172,
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,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
27276,
313,
29956,
3993,
5513,
3895,
1591,
29918,
29896,
29918,
29906,
29896,
29947,
29900,
29946,
29945,
29945,
29955,
29918,
29896,
29947,
5754,
376,
10095,
294,
3684,
3794,
23236,
29908,
306,
5265,
6059,
14210,
24083,
29995,
2499,
6500,
2172,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`WHO WAS THE STAGE WINNER IN THE STAGE WHERE MICHAEL ALBASINI WON THE METAS VOLANTES CLASSIFICATION?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_21804557_18 (
"Team Classification" text,
"Mountains Classification" text,
"General Classification" text,
"Points Classification" text,
"Stage (Winner)" text,
"Metas Volantes Classification" text
);
CREATE TABLE table_1_11622924_1 (
"1st Prize( $ )" numeric,
Tournament text,
Score text,
Location text,
"Purse( $ )" numeric,
Date text,
Winner text
);
CREATE TABLE table_1_12206918_2 (
Defenses numeric,
Opponent text,
Name text,
Titles text,
Number numeric,
Result text
);
CREATE TABLE table_1_11235334_2 (
"Weekly Rank for Living" text,
Timeslot text,
Episode text,
"Air Date" text,
"#" numeric,
Viewers text
);
CREATE TABLE table_1_11703336_1 (
"Programming Languages" text,
CPU text,
RAM text,
Predecessors text,
Successors text,
"Display Size" text,
"Link Abilities" text,
"Year Released" text,
Calculator text
);
```
### Answer
Here is the SQL query that answers the question:
`WHO WAS THE STAGE WINNER IN THE STAGE WHERE MICHAEL ALBASINI WON THE METAS VOLANTES CLASSIFICATION?`
```sql
| SELECT "Stage (Winner)" FROM table_1_21804557_18 WHERE "Metas Volantes Classification" ILIKE '%Michael%Albasini%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3064,
5095,
7115,
363,
278,
12720,
411,
7200,
1135,
29871,
29906,
29889,
29929,
21700,
29892,
21700,
29914,
13653,
310,
29871,
29906,
29889,
29953,
29914,
29947,
322,
7115,
363,
278,
4646,
6133,
1135,
29871,
29945,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29955,
29955,
29945,
29955,
29929,
29918,
29906,
313,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29908,
29924,
575,
13853,
978,
29908,
1426,
29892,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
13853,
978,
29908,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
1542,
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,
310,
263,
4216,
29908,
1426,
29892,
13,
12,
29908,
1184,
29890,
3097,
29871,
29896,
303,
4847,
21614,
29908,
1426,
29892,
13,
12,
29908,
29906,
299,
10769,
7348,
29908,
1426,
29892,
13,
12,
29908,
1184,
29890,
3097,
29871,
29906,
299,
4847,
21614,
29908,
1426,
29892,
13,
12,
29908,
29896,
303,
10769,
7348,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29945,
29896,
29900,
29946,
29955,
29918,
29953,
313,
13,
12,
29908,
29934,
804,
313,
29164,
8276,
5513,
16985,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29934,
1218,
16985,
29892,
13,
12,
29908,
29934,
1218,
29914,
13653,
313,
29896,
29947,
29899,
29946,
29929,
5513,
1426,
29892,
13,
12,
29923,
12907,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
29940,
523,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29896,
29906,
29941,
29955,
29918,
29941,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
14958,
936,
17838,
322,
4823,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
3064,
5095,
7115,
363,
278,
12720,
411,
7200,
1135,
29871,
29906,
29889,
29929,
21700,
29892,
21700,
29914,
13653,
310,
29871,
29906,
29889,
29953,
29914,
29947,
322,
7115,
363,
278,
4646,
6133,
1135,
29871,
29945,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
703,
29934,
804,
313,
29164,
8276,
25760,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29945,
29896,
29900,
29946,
29955,
29918,
29953,
5754,
376,
29934,
1218,
29908,
1405,
525,
29906,
29889,
29929,
29915,
5300,
376,
29934,
1218,
29914,
13653,
313,
29896,
29947,
29899,
29946,
29929,
5513,
306,
5265,
6059,
14210,
29906,
29889,
29953,
29914,
29947,
29001,
5300,
376,
29934,
804,
313,
29940,
523,
5513,
1405,
525,
29945,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29934,
804,
313,
29164,
8276,
25760,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29945,
29896,
29900,
29946,
29955,
29918,
29953,
5754,
376,
29934,
1218,
29908,
1405,
525,
29906,
29889,
29929,
29915,
5300,
376,
29934,
1218,
29914,
13653,
313,
29896,
29947,
29899,
29946,
29929,
5513,
306,
5265,
6059,
14210,
29906,
29889,
29953,
29914,
29947,
29001,
5300,
376,
29934,
804,
313,
29940,
523,
5513,
1405,
525,
29945,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the timeslor rank for the episode with larger than 2.9 rating, rating/share of 2.6/8 and rank for the night higher than 5?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10577579_2 (
Enrollment numeric,
"Mens Nickname" text,
Joined text,
Founded numeric,
Location text,
"Womens Nickname" text,
Institution text,
Type text
);
CREATE TABLE table_1_10664957_2 (
"Probability of a draw" text,
"Probability 1st player wins" text,
"2nd players choice" text,
"Probability 2nd player wins" text,
"1st players choice" text
);
CREATE TABLE table_2_1151047_6 (
"Rank (Timeslot)" numeric,
Share numeric,
Rating numeric,
"Rating/share (18-49)" text,
Episode numeric,
"Rank (Night)" numeric
);
CREATE TABLE table_1_11951237_3 (
"Original air date" text,
Title text,
"Production code" text,
"Written by" text,
"Season #" numeric,
"Directed by" text,
"Series #" numeric,
"Musical guest and song" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the timeslor rank for the episode with larger than 2.9 rating, rating/share of 2.6/8 and rank for the night higher than 5?`
```sql
| SELECT AVG("Rank (Timeslot)") FROM table_2_1151047_6 WHERE "Rating" > '2.9' AND "Rating/share (18-49)" ILIKE '%2.6/8%' AND "Rank (Night)" > '5' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
6475,
363,
1353,
310,
1776,
414,
338,
9904,
363,
12720,
1353,
29871,
29947,
29973,
421,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29900,
29946,
29947,
29918,
29896,
313,
13,
12,
29908,
29928,
566,
2330,
323,
2707,
1032,
18416,
29908,
1426,
29892,
13,
12,
21133,
475,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
8003,
16985,
29892,
13,
12,
7967,
496,
1426,
29892,
13,
12,
29908,
29931,
1479,
292,
748,
2235,
6541,
29908,
1426,
29892,
13,
12,
29908,
17734,
29914,
29931,
2209,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29896,
29929,
29945,
29946,
29918,
29941,
313,
13,
12,
20779,
1426,
29892,
13,
12,
11536,
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,
29908,
29950,
3131,
1085,
25206,
313,
29893,
290,
575,
5513,
16985,
29892,
13,
12,
29908,
7083,
25206,
313,
29885,
575,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29947,
29941,
29929,
29946,
29918,
29946,
29941,
313,
13,
12,
8654,
575,
1426,
29892,
13,
12,
29857,
554,
13493,
1426,
29892,
13,
12,
29908,
29896,
29929,
29941,
29906,
313,
11083,
1162,
792,
5513,
1426,
29892,
13,
12,
22633,
1426,
29892,
13,
12,
29908,
1576,
14165,
29916,
29908,
1426,
29892,
13,
12,
29908,
25627,
8315,
518,
855,
2579,
1317,
5586,
29908,
1426,
29892,
13,
12,
2517,
29882,
23586,
1426,
29892,
13,
12,
29908,
23577,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29953,
29953,
29947,
29945,
29945,
29918,
29896,
313,
13,
12,
29925,
1745,
631,
1426,
29892,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29924,
3930,
16985,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
20097,
1426,
13,
416,
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,
8120,
292,
304,
29908,
1426,
29892,
13,
12,
1433,
15081,
1426,
29892,
13,
12,
26486,
1426,
29892,
13,
12,
29908,
5594,
292,
472,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29946,
29953,
29947,
29929,
29896,
29953,
29947,
29918,
29945,
313,
13,
12,
29908,
29934,
804,
313,
3706,
8276,
5513,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29923,
12907,
16985,
29892,
13,
12,
29908,
6730,
5593,
4712,
29908,
1426,
29892,
13,
12,
29908,
2713,
598,
313,
29896,
29947,
29994,
29946,
29929,
5513,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
11147,
5513,
1426,
29892,
13,
12,
29908,
29934,
1218,
313,
29896,
29947,
29994,
29946,
29929,
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,
5328,
1784,
6475,
363,
1353,
310,
1776,
414,
338,
9904,
363,
12720,
1353,
29871,
29947,
29973,
421,
13,
28956,
2850,
13,
5097,
21122,
703,
1043,
414,
313,
19958,
1080,
25760,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29953,
29947,
29929,
29896,
29953,
29947,
29918,
29945,
5754,
376,
29923,
12907,
29908,
353,
525,
29947,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
703,
1043,
414,
313,
19958,
1080,
25760,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29953,
29947,
29929,
29896,
29953,
29947,
29918,
29945,
5754,
376,
29923,
12907,
29908,
353,
525,
29947,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many records for number of viewers is listed for episode number 8? `
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1165048_1 (
"Dudley Tuckey Medal" text,
Captain text,
Season numeric,
Position numeric,
Coach text,
"Leading goalkicker" text,
"Win/Loss" text
);
CREATE TABLE table_1_11391954_3 (
Country text,
Total numeric,
"Half Marathon (mens)" numeric,
"Marathon (womens)" numeric,
"Half Marathon (womens)" numeric,
"Marathon (mens)" numeric
);
CREATE TABLE table_1_1108394_43 (
Queens text,
Brooklyn text,
"1932 (before recount)" text,
party text,
"The Bronx" text,
"Richmond [Staten Is.]" text,
Manhattan text,
"%" text
);
CREATE TABLE table_1_10566855_1 (
Premier text,
"Runner-up" text,
Venue text,
Margin numeric,
Attendance numeric,
Score text
);
CREATE TABLE table_1_12221135_3 (
Departure text,
"Going to" text,
Arrival text,
Operator text,
"Calling at" text
);
CREATE TABLE table_1_24689168_5 (
"Rank (timeslot)" text,
"Viewers (millions)" text,
Episode numeric,
"First Air Date" text,
"Share (18–49)" numeric,
"Rank (night)" text,
"Rating (18–49)" text
);
```
### Answer
Here is the SQL query that answers the question:
`How many records for number of viewers is listed for episode number 8? `
```sql
| SELECT COUNT("Viewers (millions)") FROM table_1_24689168_5 WHERE "Episode" = '8' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
4021,
363,
1629,
310,
29871,
29896,
29929,
29953,
29900,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29947,
29900,
29941,
29929,
29953,
29918,
29896,
313,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
29908,
29923,
2608,
362,
313,
29885,
5513,
16985,
29892,
13,
12,
29908,
29902,
2929,
362,
313,
8848,
5513,
16985,
29892,
13,
12,
29908,
18571,
262,
663,
313,
29885,
5513,
16985,
29892,
13,
12,
29924,
4376,
2877,
1426,
29892,
13,
12,
15666,
557,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29896,
29941,
29941,
29900,
29941,
29918,
29906,
313,
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,
29908,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
19409,
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,
3226,
3437,
1426,
29892,
13,
12,
29908,
4597,
29889,
24791,
29908,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
12596,
2459,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29900,
29946,
29947,
29900,
29946,
29918,
29945,
313,
13,
12,
6508,
1426,
29892,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
5709,
1426,
29892,
13,
12,
3306,
1426,
29892,
13,
12,
3379,
5008,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29945,
29906,
29900,
29953,
29906,
29918,
29896,
313,
13,
12,
29931,
2547,
16985,
29892,
13,
12,
4763,
1426,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
24399,
1426,
29892,
13,
12,
12881,
728,
1426,
29892,
13,
12,
12883,
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,
4021,
363,
1629,
310,
29871,
29896,
29929,
29953,
29900,
29952,
13,
28956,
2850,
13,
5097,
15146,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29945,
29906,
29900,
29953,
29906,
29918,
29896,
5754,
376,
12883,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29953,
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,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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,
5097,
15146,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29945,
29906,
29900,
29953,
29906,
29918,
29896,
5754,
376,
12883,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29953,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the qual for year of 1960`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12280396_1 (
County text,
"Elevation (m)" numeric,
"Isolation (km)" numeric,
"Prominence (m)" numeric,
Municipality text,
Peak text
);
CREATE TABLE table_1_11713303_2 (
"Date of appointment" text,
"Outgoing manager" text,
"Date of vacancy" text,
"Manner of departure" text,
"Replaced by" text,
Team text
);
CREATE TABLE table_1_12002388_1 (
Playoffs text,
League text,
"Reg. Season" text,
"Open Cup" text,
Division text
);
CREATE TABLE table_1_11604804_5 (
Location text,
Nickname text,
Founded numeric,
Status text,
Color text,
Institution text
);
CREATE TABLE table_2_1252062_1 (
Laps numeric,
Start text,
Rank text,
Qual text,
Finish text,
Year text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the qual for year of 1960`
```sql
| SELECT Qual FROM table_2_1252062_1 WHERE "Year" ILIKE '%1960%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
11921,
471,
278,
1993,
4934,
393,
1833,
287,
29871,
29941,
29901,
29906,
29946,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29900,
29941,
29953,
29946,
29947,
29918,
29906,
29900,
313,
13,
12,
29908,
6821,
431,
3815,
29908,
1426,
29892,
13,
12,
3563,
497,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29945,
29941,
29945,
29900,
29918,
29896,
313,
13,
12,
21472,
1426,
29892,
13,
12,
29908,
2182,
1131,
1336,
10069,
6599,
29908,
1426,
29892,
13,
12,
29908,
2525,
1169,
7138,
1133,
29908,
16985,
29892,
13,
12,
29908,
12412,
5915,
5946,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
29498,
29908,
1426,
29892,
13,
12,
29908,
7976,
24839,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29906,
29900,
29953,
29941,
29946,
29918,
29946,
313,
13,
12,
29908,
1666,
1213,
1426,
29892,
13,
12,
2624,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
4062,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
2481,
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,
11921,
471,
278,
1993,
4934,
393,
1833,
287,
29871,
29941,
29901,
29906,
29946,
29973,
29952,
13,
28956,
2850,
13,
5097,
11247,
29907,
8098,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29906,
29900,
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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,
5097,
11247,
29907,
8098,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29953,
29906,
29900,
29953,
29941,
29946,
29918,
29946,
5754,
376,
2481,
29908,
306,
5265,
6059,
14210,
29941,
29901,
29906,
29946,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Where was the match held that lasted 3:24?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11803648_20 (
"Club team" text,
Overall text,
Player text,
Nationality text,
Position text
);
CREATE TABLE table_1_1245350_1 (
Power text,
"Quattroporte IV" text,
"Units Produced" numeric,
"Engine Capacity" text,
"Production Period" text,
"Max Speed" text
);
CREATE TABLE table_2_17620634_4 (
"Res." text,
Event text,
Location text,
Record text,
Method text,
Opponent text,
Time text,
Round numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Where was the match held that lasted 3:24?`
```sql
| SELECT LOCATION FROM table_2_17620634_4 WHERE "Time" ILIKE '%3:24%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
526,
278,
2441,
4799,
2635,
29898,
29879,
29897,
363,
23238,
411,
5802,
775,
474,
412,
29874,
29941,
29946,
29945,
29874,
29973,
29952,
13,
13,
2277,
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,
29908,
8897,
8905,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29908,
3373,
29914,
6767,
29908,
1426,
29892,
13,
12,
16382,
342,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
8514,
287,
16985,
29892,
13,
12,
29931,
340,
342,
16985,
29892,
13,
12,
29909,
19698,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29945,
29900,
29896,
29955,
29945,
29946,
29918,
29906,
313,
13,
12,
29908,
29923,
12907,
396,
29908,
16985,
29892,
13,
12,
29908,
1043,
292,
5104,
1973,
8649,
1080,
29908,
1426,
29892,
13,
12,
29908,
1184,
29881,
29889,
5920,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
3917,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
26036,
5593,
1256,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29896,
29946,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
526,
278,
2441,
4799,
2635,
29898,
29879,
29897,
363,
23238,
411,
5802,
775,
474,
412,
29874,
29941,
29946,
29945,
29874,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
26036,
5593,
1256,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29945,
29900,
29896,
29955,
29945,
29946,
29918,
29906,
5754,
376,
1184,
29881,
29889,
5920,
29908,
306,
5265,
6059,
14210,
29902,
4162,
29909,
29941,
29946,
29945,
29909,
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,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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,
5097,
376,
26036,
5593,
1256,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29945,
29900,
29896,
29955,
29945,
29946,
29918,
29906,
5754,
376,
1184,
29881,
29889,
5920,
29908,
306,
5265,
6059,
14210,
29902,
4162,
29909,
29941,
29946,
29945,
29909,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What are the original air date(s) for episodes with production code ipea345a?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1161065_28 (
"Last Year" text,
Venue text,
"Up/Down" text,
Highest numeric,
Total numeric,
Hosted numeric,
Lowest numeric,
Average numeric
);
CREATE TABLE table_1_2501754_2 (
"Episode #" numeric,
"Viewing Figures Millions" text,
"Prod. Code" text,
"Production Count" numeric,
Title text,
"Original Airdate" text
);
CREATE TABLE table_1_10015132_14 (
Player text,
"School/Club Team" text,
Position text,
"No." numeric,
"Years in Toronto" text,
Nationality text
);
```
### Answer
Here is the SQL query that answers the question:
`What are the original air date(s) for episodes with production code ipea345a?`
```sql
| SELECT "Original Airdate" FROM table_1_2501754_2 WHERE "Prod. Code" ILIKE '%IPEA345A%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
10365,
287,
402,
11191,
746,
278,
2245,
979,
402,
11191,
338,
29871,
29947,
29889,
29946,
29941,
313,
262,
11118,
1080,
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,
29953,
29896,
29900,
29946,
29929,
29953,
29918,
29941,
313,
13,
12,
29908,
12310,
2785,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
29954,
11191,
639,
2117,
2028,
2087,
5143,
287,
3255,
5513,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29954,
11191,
2087,
5143,
287,
3255,
11118,
1080,
5513,
1426,
29892,
13,
12,
29908,
29954,
11191,
639,
2117,
2028,
20583,
979,
3255,
5513,
16985,
29892,
13,
12,
29908,
29954,
11191,
20583,
979,
3255,
11118,
1080,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29900,
29941,
29953,
29946,
29947,
29918,
29906,
29906,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
6821,
431,
3815,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
3563,
497,
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,
10365,
287,
402,
11191,
746,
278,
2245,
979,
402,
11191,
338,
29871,
29947,
29889,
29946,
29941,
313,
262,
11118,
1080,
6877,
29952,
13,
28956,
2850,
13,
5097,
376,
29954,
11191,
2087,
5143,
287,
3255,
11118,
1080,
5513,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29896,
29900,
29946,
29929,
29953,
29918,
29941,
5754,
376,
29954,
11191,
20583,
979,
3255,
11118,
1080,
5513,
306,
5265,
6059,
14210,
29947,
29889,
29946,
29941,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29954,
11191,
2087,
5143,
287,
3255,
11118,
1080,
5513,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29896,
29900,
29946,
29929,
29953,
29918,
29941,
5754,
376,
29954,
11191,
20583,
979,
3255,
11118,
1080,
5513,
306,
5265,
6059,
14210,
29947,
29889,
29946,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the adjusted GDP when the nominal GDP is 8.43 (in billions)?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1610496_3 (
"Population (millions)" text,
"GDP per capita Adjusted ($)" numeric,
Year numeric,
"GDP Adjusted ($ billions)" text,
"GDP per capita Nominal ($)" numeric,
"GDP Nominal ($ billions)" text
);
CREATE TABLE table_1_11803648_22 (
Position text,
"Club team" text,
Round numeric,
Player text,
Nationality text,
Overall text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the adjusted GDP when the nominal GDP is 8.43 (in billions)?`
```sql
| SELECT "GDP Adjusted ($ billions)" FROM table_1_1610496_3 WHERE "GDP Nominal ($ billions)" ILIKE '%8.43%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
25039,
1299,
8519,
6093,
341,
2190,
29965,
4519,
1783,
4574,
1001,
22659,
29871,
29906,
29946,
365,
3301,
29903,
29892,
5300,
718,
29896,
29889,
29929,
29953,
29945,
323,
8890,
29914,
1525,
24301,
19386,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29953,
29941,
29929,
29900,
29918,
29906,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29945,
29896,
29896,
29918,
29941,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29953,
29941,
29906,
29947,
29929,
29918,
29941,
313,
13,
12,
29934,
1241,
1426,
29892,
13,
12,
29931,
2547,
1426,
29892,
13,
12,
2517,
9765,
9945,
1426,
29892,
13,
12,
29908,
2481,
29914,
8015,
2859,
29908,
1426,
29892,
13,
12,
5756,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
25039,
1299,
8519,
6093,
341,
2190,
29965,
4519,
1783,
4574,
1001,
22659,
29871,
29906,
29946,
365,
3301,
29903,
29892,
5300,
718,
29896,
29889,
29929,
29953,
29945,
323,
8890,
29914,
1525,
24301,
19386,
29973,
29952,
13,
28956,
2850,
13,
5097,
2315,
9765,
9945,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29953,
29941,
29906,
29947,
29929,
29918,
29941,
5754,
376,
29931,
2547,
29908,
306,
5265,
6059,
14210,
29906,
29946,
29001,
5300,
376,
2481,
29914,
8015,
2859,
29908,
306,
5265,
6059,
14210,
29974,
29896,
29889,
29929,
29953,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
2315,
9765,
9945,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29900,
29953,
29941,
29906,
29947,
29929,
29918,
29941,
5754,
376,
29931,
2547,
29908,
306,
5265,
6059,
14210,
29906,
29946,
29001,
5300,
376,
2481,
29914,
8015,
2859,
29908,
306,
5265,
6059,
14210,
29974,
29896,
29889,
29929,
29953,
29945,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`WHAT IS THE MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12226390_2 (
"Directed by" text,
"No. in series" numeric,
"Production code" numeric,
Title text,
"Written by" text,
"Original air date" text
);
CREATE TABLE table_1_1213511_3 (
Position text,
"Pick #" numeric,
"College/junior/club team" text,
Player text,
Nationality text,
"NHL team" text
);
CREATE TABLE table_2_17063289_3 (
Rider text,
Laps text,
Manufacturer text,
"Time/Retired" text,
Grid text
);
```
### Answer
Here is the SQL query that answers the question:
`WHAT IS THE MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED?`
```sql
| SELECT Manufacturer FROM table_2_17063289_3 WHERE "Laps" ILIKE '%24%' AND "Time/Retired" ILIKE '%+1.965%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
29911,
514,
592,
278,
13888,
393,
9559,
373,
29871,
29896,
29946,
432,
1540,
29871,
29906,
29900,
29900,
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,
29906,
29918,
29896,
29896,
29906,
29941,
29946,
29896,
29941,
29918,
29896,
313,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
6843,
300,
654,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29946,
29955,
29947,
29945,
29906,
29918,
29896,
313,
13,
12,
22814,
1426,
29892,
13,
12,
29908,
13599,
5648,
313,
360,
29911,
1723,
29908,
1426,
29892,
13,
12,
29908,
16885,
310,
19405,
29914,
9802,
300,
29908,
1426,
29892,
13,
12,
29908,
12883,
310,
23736,
362,
29908,
1426,
29892,
13,
12,
29908,
29949,
1233,
287,
1951,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29896,
29945,
29955,
29946,
29947,
29918,
29906,
313,
13,
12,
29908,
26036,
4799,
1256,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
17392,
272,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29945,
29946,
29906,
29929,
29953,
29918,
29896,
313,
13,
12,
29965,
4174,
9998,
16985,
29892,
13,
12,
5494,
19252,
1426,
29892,
13,
12,
2385,
2450,
1426,
29892,
13,
12,
13404,
1426,
29892,
13,
12,
1451,
481,
2153,
16985,
29892,
13,
12,
29943,
7261,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
29911,
514,
592,
278,
13888,
393,
9559,
373,
29871,
29896,
29946,
432,
1540,
29871,
29906,
29900,
29900,
29947,
29952,
13,
28956,
2850,
13,
5097,
24620,
654,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29941,
29946,
29896,
29941,
29918,
29896,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
29896,
29946,
29995,
29926,
1540,
29995,
29906,
29900,
29900,
29947,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
24620,
654,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29941,
29946,
29896,
29941,
29918,
29896,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
29896,
29946,
29995,
29926,
1540,
29995,
29906,
29900,
29900,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Tell me the competition that happened on 14 june 2008`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1123413_1 (
Venue text,
Score text,
Date text,
Result text,
Competition text
);
CREATE TABLE table_1_11147852_1 (
Station text,
"Channel TV ( DT )" text,
"City of license/Market" text,
"Year of affiliation" text,
"Owned since" text
);
CREATE TABLE table_1_11715748_2 (
"Original airdate" text,
"Season #" numeric,
Title text,
"Series #" numeric,
"Director(s)" text,
"Writer(s)" text
);
CREATE TABLE table_1_10054296_1 (
UCCFS numeric,
Headquarters text,
Classification text,
Member text,
Chapters numeric,
Founded text
);
```
### Answer
Here is the SQL query that answers the question:
`Tell me the competition that happened on 14 june 2008`
```sql
| SELECT Competition FROM table_2_1123413_1 WHERE "Date" ILIKE '%14%june%2008%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3001,
1353,
310,
2921,
1338,
15569,
393,
756,
901,
1135,
29871,
29946,
29945,
8984,
29879,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29896,
29947,
29906,
29896,
29946,
29918,
29945,
313,
13,
12,
6821,
431,
1426,
29892,
13,
12,
8003,
16985,
29892,
13,
12,
8537,
29879,
16985,
29892,
13,
12,
29908,
8120,
1338,
27943,
287,
29908,
16985,
29892,
13,
12,
29908,
29954,
1280,
5318,
29908,
16985,
29892,
13,
12,
29908,
8120,
1338,
15569,
29908,
16985,
29892,
13,
12,
29931,
15806,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29956,
1144,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29896,
29900,
29953,
29945,
29918,
29906,
29947,
313,
13,
12,
8514,
287,
16985,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29931,
340,
342,
16985,
29892,
13,
12,
29908,
8897,
8905,
29908,
1426,
29892,
13,
12,
29909,
19698,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
3373,
29914,
6767,
29908,
1426,
29892,
13,
12,
16382,
342,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29900,
29896,
29947,
29896,
29918,
29896,
313,
13,
12,
5809,
1426,
29892,
13,
12,
29908,
2792,
29914,
357,
768,
706,
29908,
1426,
29892,
13,
12,
29908,
7583,
3652,
29908,
1426,
29892,
13,
12,
29908,
1626,
29914,
7042,
12384,
29908,
1426,
29892,
13,
12,
3664,
267,
1426,
29892,
13,
12,
29908,
7583,
269,
1188,
273,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29945,
29896,
29946,
29947,
29918,
29896,
313,
13,
12,
6513,
1426,
29892,
13,
12,
29908,
17936,
4408,
29908,
1426,
29892,
13,
12,
29908,
12883,
4673,
287,
29908,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
12883,
7255,
5958,
518,
29909,
4514,
29908,
16985,
29892,
13,
12,
2008,
1218,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29906,
29929,
29941,
29947,
29918,
29946,
313,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
9207,
29931,
8583,
29908,
1426,
29892,
13,
12,
1625,
4424,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29947,
29953,
29941,
29896,
29918,
29906,
313,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
3001,
1353,
310,
2921,
1338,
15569,
393,
756,
901,
1135,
29871,
29946,
29945,
8984,
29879,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
8120,
1338,
15569,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29896,
29947,
29906,
29896,
29946,
29918,
29945,
5754,
376,
20325,
29908,
1405,
525,
29946,
29945,
29915,
2
] | [
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
703,
8120,
1338,
15569,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29896,
29947,
29906,
29896,
29946,
29918,
29945,
5754,
376,
20325,
29908,
1405,
525,
29946,
29945,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the total number of Goals scored that has more than 45 Points?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18018214_5 (
Club text,
Position numeric,
Draws numeric,
"Goals conceded" numeric,
"Games played" numeric,
"Goals scored" numeric,
Loses numeric,
Points numeric,
Wins numeric
);
CREATE TABLE table_1_1161065_28 (
Hosted numeric,
Venue text,
Lowest numeric,
"Last Year" text,
Average numeric,
Total numeric,
"Up/Down" text,
Highest numeric
);
CREATE TABLE table_1_1000181_1 (
Format text,
"State/territory" text,
"Current series" text,
"Text/background colour" text,
Notes text,
"Current slogan" text
);
CREATE TABLE table_1_1245148_1 (
Length text,
"Track Name" text,
"Year Opened" numeric,
Location text,
"Year Acquired [A ]" numeric,
Seating numeric
);
CREATE TABLE table_1_10812938_4 (
"Pick #" numeric,
Player text,
"CFL Team" text,
College text
);
CREATE TABLE table_1_10718631_2 (
"No. in season" numeric,
"No. in series" numeric,
"Written by" text,
"Original air date" text,
Title text,
"U.S. viewers (millions)" text,
"Directed by" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the total number of Goals scored that has more than 45 Points?`
```sql
| SELECT COUNT("Goals scored") FROM table_2_18018214_5 WHERE "Points" > '45' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
27624,
7811,
746,
278,
8905,
338,
29871,
29906,
29900,
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,
29896,
29918,
29896,
29896,
29929,
29953,
29896,
29945,
29947,
29906,
29918,
29955,
313,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29941,
29900,
29896,
29896,
29945,
29946,
29955,
29918,
29906,
313,
13,
12,
1451,
3103,
1426,
29892,
13,
12,
2208,
7811,
1426,
29892,
13,
12,
16885,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
9182,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29900,
29947,
29955,
29941,
29945,
29918,
29941,
313,
13,
12,
29908,
797,
10147,
358,
382,
2753,
886,
29908,
1426,
29892,
13,
12,
29908,
2792,
669,
14879,
29908,
1426,
29892,
13,
12,
29908,
16107,
9959,
317,
2863,
29908,
1426,
29892,
13,
12,
29908,
4854,
17847,
267,
29908,
1426,
29892,
13,
12,
29908,
11536,
830,
9947,
29908,
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,
29908,
29937,
29908,
16985,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29900,
29955,
29900,
29946,
29900,
29918,
29953,
313,
13,
12,
29908,
29924,
7310,
310,
25619,
29908,
1426,
29892,
13,
12,
29908,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
11757,
6906,
29908,
1426,
29892,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
27624,
7811,
746,
278,
8905,
338,
29871,
29906,
29900,
29900,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
27624,
7811,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29900,
29896,
29896,
29945,
29946,
29955,
29918,
29906,
5754,
376,
12883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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
27624,
7811,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29900,
29896,
29896,
29945,
29946,
29955,
29918,
29906,
5754,
376,
12883,
29908,
353,
525,
29906,
29900,
29900,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the LLWS when the Year is 2003?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11961582_7 (
"High assists" text,
Date text,
Score text,
"Location Attendance" text,
Team text,
Game numeric,
"High points" text,
"High rebounds" text
);
CREATE TABLE table_2_13011547_2 (
Champion text,
LLWS text,
City text,
Year numeric,
Record text
);
CREATE TABLE table_1_11608735_3 (
"Investment Earnings" text,
"State & Federal" text,
"Other Local Sources" text,
"Property Taxes" text,
"Total Revenue" text
);
CREATE TABLE table_1_10470082_8 (
Storyteller text,
"#" numeric,
Director text,
Villains text,
Title text,
"No." numeric,
Writer text,
"US air date" text
);
CREATE TABLE table_1_11207040_6 (
"Manner of departure" text,
"Replaced by" text,
"Date of vacancy" text,
"Outgoing manager" text,
"Date of appointment" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the LLWS when the Year is 2003?`
```sql
| SELECT LLWS FROM table_2_13011547_2 WHERE "Year" = '2003' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2533,
310,
18449,
746,
13283,
338,
7621,
1135,
29871,
29941,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29953,
29946,
29906,
29945,
29946,
29955,
29918,
29941,
313,
13,
12,
29934,
804,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
26729,
369,
16985,
29892,
13,
12,
29933,
1617,
911,
16985,
29892,
13,
12,
29954,
1025,
16985,
29892,
13,
12,
29940,
362,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29929,
29896,
29906,
29896,
29906,
29918,
29906,
313,
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,
1043,
414,
1426,
29892,
13,
12,
8514,
1426,
29892,
13,
12,
29908,
29931,
481,
29899,
1609,
29899,
6984,
29908,
1426,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
29934,
271,
886,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
2533,
310,
18449,
746,
13283,
338,
7621,
1135,
29871,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
29933,
1617,
911,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29953,
29946,
29906,
29945,
29946,
29955,
29918,
29941,
5754,
376,
26729,
369,
29908,
1405,
525,
29941,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29933,
1617,
911,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29953,
29946,
29906,
29945,
29946,
29955,
29918,
29941,
5754,
376,
26729,
369,
29908,
1405,
525,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the sum of bronze when silver is greater than 3?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_10642547_3 (
Rank numeric,
Total numeric,
Silver numeric,
Bronze numeric,
Gold numeric,
Nation text
);
CREATE TABLE table_1_11691212_2 (
"Color commentator(s)" text,
Year numeric,
"Pit reporters" text,
Viewers text,
Host text,
"Lap-by-lap" text,
Network text,
Ratings text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the sum of bronze when silver is greater than 3?`
```sql
| SELECT SUM(Bronze) FROM table_2_10642547_3 WHERE "Silver" > '3' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
4559,
2159,
4113,
1531,
287,
373,
5533,
29871,
29896,
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,
29947,
29900,
29906,
29906,
29947,
29918,
29896,
313,
13,
12,
29908,
29928,
10699,
4408,
29908,
1426,
29892,
13,
12,
1123,
4611,
1426,
29892,
13,
12,
29908,
4557,
310,
20981,
2631,
29908,
16985,
29892,
13,
12,
18984,
1426,
29892,
13,
12,
29908,
2887,
1103,
17450,
601,
29908,
1426,
29892,
13,
12,
17111,
1426,
29892,
13,
12,
29908,
8009,
310,
3295,
2395,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29896,
29896,
313,
13,
12,
29925,
860,
16985,
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,
27325,
537,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29941,
29906,
29955,
29941,
29929,
29918,
29906,
313,
13,
12,
20334,
300,
1426,
29892,
13,
12,
29908,
20334,
300,
5167,
29908,
1426,
29892,
13,
12,
29908,
6362,
522,
519,
491,
6160,
1426,
29892,
13,
12,
29908,
9908,
616,
12885,
313,
29885,
29914,
29879,
5513,
1426,
29892,
13,
12,
29908,
2816,
29890,
2410,
29498,
29908,
1426,
29892,
13,
12,
29908,
28516,
326,
1175,
272,
319,
11497,
313,
319,
29965,
1723,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29947,
29953,
29941,
29896,
29918,
29906,
313,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29900,
29955,
29955,
29955,
29955,
29953,
29918,
29896,
313,
13,
12,
29908,
29925,
3028,
7562,
29908,
1426,
29892,
13,
12,
29908,
2539,
29898,
29879,
29897,
4113,
1531,
287,
29908,
1426,
29892,
13,
12,
29908,
29933,
300,
1017,
4834,
272,
313,
29928,
5513,
1426,
29892,
13,
12,
29908,
29924,
295,
3760,
457,
29920,
313,
29934,
5513,
1426,
29892,
13,
12,
29908,
29924,
3930,
310,
4829,
29908,
1426,
29892,
13,
12,
29908,
17708,
2159,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29896,
29900,
29941,
29918,
29953,
313,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
13020,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
4559,
2159,
4113,
1531,
287,
373,
5533,
29871,
29896,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
703,
17708,
2159,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29900,
29955,
29955,
29955,
29955,
29953,
29918,
29896,
5754,
376,
2539,
29898,
29879,
29897,
4113,
1531,
287,
29908,
306,
5265,
6059,
14210,
20082,
4950,
29995,
29896,
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,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
17708,
2159,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29900,
29955,
29955,
29955,
29955,
29953,
29918,
29896,
5754,
376,
2539,
29898,
29879,
29897,
4113,
1531,
287,
29908,
306,
5265,
6059,
14210,
20082,
4950,
29995,
29896,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the highest sample size administered on October 18?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1180228_1 (
"DVD Name" text,
Released text,
"Number of Episodes" numeric,
Duration text,
"Aspect Ratio" text,
Audio text,
"Num of Discs" numeric
);
CREATE TABLE table_1_1013129_11 (
Pick numeric,
Player text,
"College/junior/club team" text,
"NHL team" text,
Nationality text,
Position text
);
CREATE TABLE table_1_10932739_2 (
Planet text,
"Planet Type" text,
"Detectable by:" text,
"Radial velocity (m/s)" text,
"Orbital Period" text,
"Semimajor Axis ( AU )" text
);
CREATE TABLE table_1_10718631_2 (
"No. in series" numeric,
"No. in season" numeric,
"Original air date" text,
"Written by" text,
"Directed by" text,
Title text,
"U.S. viewers (millions)" text
);
CREATE TABLE table_2_16077776_1 (
"Poll Source" text,
"Date(s) administered" text,
"Betty Castor (D)" text,
"Mel Martinez (R)" text,
"Margin of Error" text,
"Sample size" numeric
);
CREATE TABLE table_1_1140103_6 (
"#" numeric,
"Race Name" text,
Constructor text,
"Winning driver" text,
Date text,
Circuit text,
Report text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the highest sample size administered on October 18?`
```sql
| SELECT MAX("Sample size") FROM table_2_16077776_1 WHERE "Date(s) administered" ILIKE '%october%18%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
526,
278,
11438,
414,
411,
263,
5974,
310,
29871,
29953,
29901,
29941,
29929,
29889,
29946,
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,
29946,
29896,
29941,
29945,
29929,
29955,
29918,
29946,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29020,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29946,
29955,
29946,
29900,
29896,
29918,
29896,
313,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
855,
328,
1974,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29953,
29906,
29953,
29947,
29953,
29918,
29946,
313,
13,
12,
20779,
1426,
29892,
13,
12,
3664,
267,
1426,
29892,
13,
12,
2481,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
4301,
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,
22110,
526,
278,
11438,
414,
411,
263,
5974,
310,
29871,
29953,
29901,
29941,
29929,
29889,
29946,
29929,
29973,
29952,
13,
28956,
2850,
13,
5097,
11438,
414,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29953,
29906,
29953,
29947,
29953,
29918,
29946,
5754,
376,
2481,
29908,
306,
5265,
6059,
14210,
29953,
29901,
29941,
29929,
29889,
29946,
29929,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
11438,
414,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29953,
29906,
29953,
29947,
29953,
29918,
29946,
5754,
376,
2481,
29908,
306,
5265,
6059,
14210,
29953,
29901,
29941,
29929,
29889,
29946,
29929,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who are the Rowers with a Time of 6:39.49?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10413597_4 (
"Original air date" text,
Title text,
"Written by" text,
Setting text,
"No. in series" numeric,
"Directed by" text,
"No. in season" numeric
);
CREATE TABLE table_1_10647401_1 (
Attendance numeric,
Result text,
Stadium text,
Week numeric,
Record text,
Opponent text
);
CREATE TABLE table_2_18662686_4 (
Country text,
Notes text,
Time text,
Rank numeric,
Rowers text
);
```
### Answer
Here is the SQL query that answers the question:
`Who are the Rowers with a Time of 6:39.49?`
```sql
| SELECT Rowers FROM table_2_18662686_4 WHERE "Time" ILIKE '%6:39.49%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
5253,
310,
3001,
2414,
29875,
16485,
746,
395,
29929,
29906,
29945,
29892,
29955,
29946,
29945,
471,
10425,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29896,
29900,
29945,
29918,
29953,
313,
13,
12,
23770,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29941,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29941,
29900,
29906,
29946,
29955,
29918,
29955,
313,
13,
12,
29908,
29907,
1161,
1551,
5166,
29908,
1426,
29892,
13,
12,
29908,
29924,
4992,
1706,
296,
29892,
29871,
29941,
29984,
29908,
1426,
29892,
13,
12,
29908,
3410,
550,
24328,
2347,
29892,
29871,
29941,
29984,
29908,
1426,
29892,
13,
12,
29908,
11536,
24328,
29875,
16485,
29908,
1426,
29892,
13,
12,
29908,
29924,
4992,
390,
1759,
287,
29892,
29871,
29941,
29984,
29908,
1426,
29892,
13,
12,
29908,
13555,
7089,
29873,
29908,
1426,
29892,
13,
12,
29907,
5380,
403,
1426,
29892,
13,
12,
29908,
11536,
7089,
29873,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29896,
29941,
29941,
29900,
29941,
29918,
29906,
313,
13,
12,
29908,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
29908,
29924,
7310,
310,
25619,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
11757,
6906,
29908,
1426,
29892,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
29908,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29947,
29953,
29941,
29896,
29918,
29906,
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,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
5253,
310,
3001,
2414,
29875,
16485,
746,
395,
29929,
29906,
29945,
29892,
29955,
29946,
29945,
471,
10425,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
11536,
24328,
29875,
16485,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29941,
29900,
29906,
29946,
29955,
29918,
29955,
5754,
376,
29924,
4992,
390,
1759,
287,
29892,
29871,
29941,
29984,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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
11536,
24328,
29875,
16485,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29941,
29900,
29906,
29946,
29955,
29918,
29955,
5754,
376,
29924,
4992,
390,
1759,
287,
29892,
29871,
29941,
29984,
29908,
306,
5265,
6059,
14210,
29938,
29929,
29906,
29945,
29892,
29955,
29946,
29945,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the amount of total receipts when $925,745 was raised?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140105_6 (
Constructor text,
Date text,
"Winning driver" text,
Circuit text,
Report text,
"Race Name" text
);
CREATE TABLE table_1_11677691_3 (
Hometown text,
Position text,
College text,
School text,
Player text
);
CREATE TABLE table_2_12030247_7 (
"Cash On Hand" text,
"Money Spent, 3Q" text,
"Loans Received, 3Q" text,
"Total Receipts" text,
"Money Raised, 3Q" text,
"After Debt" text,
Candidate text,
"Total Debt" text
);
CREATE TABLE table_1_11713303_2 (
"Replaced by" text,
"Manner of departure" text,
"Date of vacancy" text,
"Outgoing manager" text,
"Date of appointment" text,
Team text
);
CREATE TABLE table_1_10718631_2 (
"Written by" text,
Title text,
"Directed by" text,
"No. in season" numeric,
"Original air date" text,
"No. in series" numeric,
"U.S. viewers (millions)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the amount of total receipts when $925,745 was raised?`
```sql
| SELECT "Total Receipts" FROM table_2_12030247_7 WHERE "Money Raised, 3Q" ILIKE '%$925,745%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
5802,
3694,
505,
263,
18527,
310,
13601,
2901,
297,
9379,
305,
29973,
29952,
13,
13,
2277,
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,
29946,
313,
13,
12,
7030,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
11848,
1213,
16985,
29892,
13,
12,
19204,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29947,
29953,
29941,
29896,
29918,
29906,
313,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
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,
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,
29896,
29946,
29900,
29896,
29896,
29953,
29918,
29945,
313,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29945,
29929,
29896,
29896,
29945,
29918,
29941,
313,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29906,
29896,
29906,
29900,
29947,
29918,
29896,
313,
13,
12,
12883,
16985,
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,
5328,
1784,
5802,
3694,
505,
263,
18527,
310,
13601,
2901,
297,
9379,
305,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
703,
23665,
428,
11848,
23157,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29929,
29906,
29929,
29941,
29947,
29918,
29946,
5754,
376,
7030,
29908,
306,
5265,
6059,
14210,
27737,
2901,
29995,
262,
29995,
29881,
10519,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
22753,
703,
23665,
428,
11848,
23157,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29929,
29906,
29929,
29941,
29947,
29918,
29946,
5754,
376,
7030,
29908,
306,
5265,
6059,
14210,
27737,
2901,
29995,
262,
29995,
29881,
10519,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many production numbers have a Title of bosko in dutch?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18792938_4 (
Title text,
Director text,
"Release date" text,
"Production Num." numeric,
Series text
);
CREATE TABLE table_1_10718631_2 (
"No. in series" numeric,
"Directed by" text,
"Original air date" text,
"U.S. viewers (millions)" text,
"Written by" text,
"No. in season" numeric
);
CREATE TABLE table_1_1140116_5 (
"Race Name" text,
Date text,
Constructor text,
Report text,
"Winning driver" text,
Circuit text
);
CREATE TABLE table_1_12159115_3 (
"Series #" numeric,
"Directed by" text,
"Production code" text,
"Original air date" text,
"Season #" numeric
);
CREATE TABLE table_1_12121208_1 (
Year numeric,
"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:
`How many production numbers have a Title of bosko in dutch?`
```sql
| SELECT SUM("Production Num.") FROM table_2_18792938_4 WHERE "Title" ILIKE '%bosko%in%dutch%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
4402,
756,
278,
1556,
28495,
411,
29871,
29896,
29900,
7087,
5318,
322,
901,
1135,
29871,
29896,
4216,
29973,
29952,
13,
13,
2277,
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,
29900,
29929,
29945,
29955,
29947,
29918,
29906,
313,
13,
12,
9652,
267,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
8537,
29879,
16985,
29892,
13,
12,
29908,
9182,
313,
10997,
518,
4012,
353,
29871,
29900,
29889,
29945,
21614,
18017,
16985,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29931,
2209,
267,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29955,
29953,
29918,
29906,
313,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
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,
29934,
299,
16985,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29941,
29941,
29900,
29896,
29941,
29918,
29896,
313,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
4402,
756,
278,
1556,
28495,
411,
29871,
29896,
29900,
7087,
5318,
322,
901,
1135,
29871,
29896,
4216,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29931,
2209,
267,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29955,
29900,
29929,
29945,
29955,
29947,
29918,
29906,
5754,
376,
9652,
267,
29908,
353,
525,
29896,
29900,
29915,
5300,
376,
8537,
29879,
29908,
1405,
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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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18134,
29898,
29931,
2209,
267,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29955,
29900,
29929,
29945,
29955,
29947,
29918,
29906,
5754,
376,
9652,
267,
29908,
353,
525,
29896,
29900,
29915,
5300,
376,
8537,
29879,
29908,
1405,
525,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which club has the most losses with 10 matches played and more than 1 draw?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_12709578_2 (
Matches numeric,
Wins numeric,
Draws numeric,
"Record (%) [draw = 0.5 wins]" numeric,
Club text,
Losses numeric
);
CREATE TABLE table_1_1140076_2 (
Race text,
"Fastest Lap" text,
Location text,
Date text,
Report text,
"Race Winner" text,
Constructor text,
Rnd numeric,
"Pole Position" text
);
CREATE TABLE table_1_12033013_1 (
Title text,
"Directed by" text,
"Written by" text,
"Production code" text,
"No. in series" numeric,
"Original air date" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which club has the most losses with 10 matches played and more than 1 draw?`
```sql
| SELECT MAX(Losses) FROM table_2_12709578_2 WHERE "Matches" = '10' AND "Draws" > '1' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
10608,
746,
22274,
7003,
471,
278,
27682,
29973,
29952,
13,
13,
2277,
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,
29946,
29946,
29945,
29906,
29918,
29896,
313,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29923,
12907,
3611,
29908,
1426,
29892,
13,
12,
17392,
272,
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,
29906,
29906,
29906,
29953,
29941,
29929,
29900,
29918,
29946,
313,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29955,
29896,
29896,
29941,
29945,
29918,
29955,
313,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
6116,
2105,
1426,
29892,
13,
12,
11184,
1426,
29892,
13,
12,
6185,
2459,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29900,
29945,
29941,
29906,
29945,
29918,
29946,
313,
13,
12,
17618,
1725,
1426,
29892,
13,
12,
29923,
2576,
262,
630,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
29908,
1433,
2435,
267,
11719,
29908,
1426,
29892,
13,
12,
29908,
29907,
336,
23379,
11719,
29908,
1426,
29892,
13,
12,
29908,
29933,
3389,
359,
11719,
29908,
1426,
29892,
13,
12,
29908,
29931,
575,
11719,
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,
10608,
746,
22274,
7003,
471,
278,
27682,
29973,
29952,
13,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
3826,
2459,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29955,
29896,
29896,
29941,
29945,
29918,
29955,
5754,
376,
6116,
2105,
29908,
306,
5265,
6059,
14210,
28040,
7003,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the decision when Buffalo was the visitor?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11404452_1 (
"Writer(s)" text,
"Series #" numeric,
"Original air date" text,
"Episode title" text,
Director text,
"U.S. viewers (millions)" text
);
CREATE TABLE table_1_12226390_4 (
Title text,
"No. in series" numeric,
"Production code" numeric,
"No. in season" numeric,
"Directed by" text,
"Written by" text
);
CREATE TABLE table_2_17371135_7 (
Attendance numeric,
Record text,
Date text,
Score text,
Visitor text,
Home text,
Decision text
);
CREATE TABLE table_1_12305325_4 (
Safe text,
Eliminated text,
Week numeric,
"Arlenes vote" text,
"Craigs vote" text,
"Brunos vote" text,
"Lens vote" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the decision when Buffalo was the visitor?`
```sql
| SELECT Decision FROM table_2_17371135_7 WHERE "Visitor" ILIKE '%buffalo%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
4523,
29914,
6821,
431,
8583,
411,
263,
4797,
537,
310,
3303,
3900,
363,
826,
1617,
13737,
29880,
7003,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29947,
29946,
29941,
29947,
29945,
29918,
29896,
313,
13,
12,
29908,
17946,
4712,
29908,
1426,
29892,
13,
12,
29908,
22406,
313,
6360,
29879,
29892,
3841,
5513,
1426,
29892,
13,
12,
29908,
29950,
1709,
1840,
29908,
1426,
29892,
13,
12,
29908,
5044,
4712,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
12060,
29908,
1426,
29892,
13,
12,
1123,
6338,
1230,
1426,
29892,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
29908,
2792,
6766,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29953,
29906,
29896,
29929,
29953,
29945,
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,
12883,
29879,
297,
1394,
28514,
29908,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29945,
313,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29947,
29896,
29929,
29906,
29918,
29906,
313,
13,
12,
29908,
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,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
4523,
29914,
6821,
431,
8583,
411,
263,
4797,
537,
310,
3303,
3900,
363,
826,
1617,
13737,
29880,
7003,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
4504,
1507,
29914,
6821,
431,
8583,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29953,
29906,
29896,
29929,
29953,
29945,
29918,
29896,
5754,
376,
27325,
537,
29908,
306,
5265,
6059,
14210,
348,
1573,
29995,
28631,
29001,
5300,
376,
9075,
29908,
306,
5265,
6059,
14210,
279,
1617,
29995,
3470,
29880,
7003,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
4504,
1507,
29914,
6821,
431,
8583,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29953,
29906,
29896,
29929,
29953,
29945,
29918,
29896,
5754,
376,
27325,
537,
29908,
306,
5265,
6059,
14210,
348,
1573,
29995,
28631,
29001,
5300,
376,
9075,
29908,
306,
5265,
6059,
14210,
279,
1617,
29995,
3470,
29880,
7003,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the School/Club Team with a nationality of United States for Arron Afflalo?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10284385_1 (
"Begin Date" text,
"Age (years, days)" text,
"House term" text,
"End Date" text,
"Date of birth" text,
Representative text,
Party text,
"State served" text
);
CREATE TABLE table_2_15621965_1 (
Player text,
"School/Club Team" text,
Nationality text,
"Years in Orlando" text,
Position text
);
CREATE TABLE table_1_11677691_5 (
Position text,
College text,
Hometown text,
School text
);
CREATE TABLE table_1_10718192_2 (
"No. in series" numeric,
"U.S. viewers (millions)" text,
"Written by" text,
"No. in season" numeric,
"Directed by" text,
Title text,
"Original air date" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the School/Club Team with a nationality of United States for Arron Afflalo?`
```sql
| SELECT "School/Club Team" FROM table_2_15621965_1 WHERE "Nationality" ILIKE '%united%states%' AND "Player" ILIKE '%arron%afflalo%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
338,
278,
5741,
11407,
3815,
373,
13034,
29871,
29906,
29900,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29896,
29929,
29945,
29946,
29918,
29941,
313,
13,
12,
20779,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
7083,
25206,
313,
29893,
290,
575,
5513,
16985,
29892,
13,
12,
29908,
29950,
3131,
1085,
25206,
313,
29893,
290,
575,
5513,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29941,
29947,
29945,
29929,
29945,
29918,
29896,
313,
13,
12,
2792,
1426,
29892,
13,
12,
6572,
2576,
262,
4314,
1426,
29892,
13,
12,
10840,
326,
29658,
1426,
29892,
13,
12,
29909,
19698,
1426,
29892,
13,
12,
4074,
1493,
1426,
29892,
13,
12,
29908,
29923,
854,
292,
402,
776,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29955,
29955,
29896,
29929,
29946,
29953,
29918,
29906,
313,
13,
12,
29908,
6116,
11407,
3815,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
8514,
3815,
29908,
1426,
29892,
13,
12,
29908,
15790,
8158,
29908,
1426,
29892,
13,
12,
855,
328,
1974,
1426,
13,
416,
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,
6508,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29906,
299,
15484,
29908,
1426,
29892,
13,
12,
29908,
29946,
386,
15484,
29908,
1426,
29892,
13,
12,
29908,
29896,
303,
15484,
29908,
1426,
29892,
13,
12,
29908,
29941,
5499,
15484,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
338,
278,
5741,
11407,
3815,
373,
13034,
29871,
29906,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
6116,
11407,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29955,
29955,
29896,
29929,
29946,
29953,
29918,
29906,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
7099,
1096,
29995,
29906,
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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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,
5097,
376,
6116,
11407,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29955,
29955,
29896,
29929,
29946,
29953,
29918,
29906,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
7099,
1096,
29995,
29906,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who is the Visiting team on december 20?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11391954_3 (
Country text,
Total numeric,
"Marathon (womens)" numeric,
"Half Marathon (womens)" numeric,
"Marathon (mens)" numeric,
"Half Marathon (mens)" numeric
);
CREATE TABLE table_1_12338595_1 (
State text,
Preliminaries text,
Swimsuit text,
Average text,
Interview text,
"Evening Gown" text
);
CREATE TABLE table_2_12771946_2 (
"Visiting team" text,
Date text,
"Host team" text,
"Final score" text,
Stadium text
);
CREATE TABLE table_1_11577996_1 (
"5th Place" text,
Location text,
Year numeric,
"2nd Place" text,
"4th Place" text,
"1st Place" text,
"3rd Place" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who is the Visiting team on december 20?`
```sql
| SELECT "Visiting team" FROM table_2_12771946_2 WHERE "Date" ILIKE '%december%20%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
11921,
471,
278,
3748,
5318,
746,
278,
1121,
29914,
9264,
471,
2113,
491,
29871,
29955,
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,
29896,
29906,
29900,
29955,
29900,
29946,
29900,
29918,
29953,
313,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
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,
29908,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29947,
29945,
29906,
29945,
29918,
29906,
313,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29941,
313,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29946,
29955,
29941,
29906,
29955,
29918,
29906,
313,
13,
12,
15771,
1426,
29892,
13,
12,
29908,
7083,
1255,
2514,
292,
922,
862,
2486,
29908,
1426,
29892,
13,
12,
29908,
7083,
1255,
2514,
292,
435,
2461,
368,
470,
15146,
2164,
399,
333,
340,
29898,
261,
5513,
1426,
29892,
13,
12,
29908,
5494,
310,
5619,
8948,
29908,
1426,
29892,
13,
12,
29908,
29924,
1191,
979,
16557,
3821,
512,
2763,
17847,
390,
403,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29946,
29929,
29896,
29929,
29896,
29941,
29955,
29918,
29906,
313,
13,
12,
29908,
3591,
29914,
29924,
3930,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29949,
407,
4490,
1426,
29892,
13,
12,
29934,
618,
1426,
29892,
13,
12,
8050,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29931,
328,
672,
20627,
29908,
1426,
29892,
13,
12,
2481,
1426,
29892,
13,
12,
29908,
11184,
29914,
29909,
1582,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29933,
9972,
29883,
1901,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29946,
29955,
29900,
29955,
29918,
29896,
313,
13,
12,
29908,
29924,
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,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
12883,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
11921,
471,
278,
3748,
5318,
746,
278,
1121,
29914,
9264,
471,
2113,
491,
29871,
29955,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
9548,
434,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29929,
29896,
29929,
29896,
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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,
5097,
9548,
434,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29929,
29896,
29929,
29896,
29941,
29955,
29918,
29906,
5754,
376,
3591,
29914,
29924,
3930,
29908,
306,
5265,
6059,
14210,
29956,
1164,
29995,
1609,
29995,
29955,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Where was the game played when the result/margin was won by 70?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11207040_6 (
"Outgoing manager" text,
"Date of appointment" text,
"Date of vacancy" text,
"Manner of departure" text,
"Replaced by" text,
Team text
);
CREATE TABLE table_1_10718525_2 (
"No. in season" numeric,
"Directed by" text,
"U.S. viewers (millions)" text,
"Original air date" text,
Title text,
"Written by" text,
"No. in series" numeric
);
CREATE TABLE table_1_10953197_3 (
Director text,
"Writer(s)" text,
"Production code" text,
"No. in season" numeric
);
CREATE TABLE table_1_11647327_2 (
Single text,
"Married Filing Separately" text,
"Married Filing Jointly or Qualified Widow(er)" text,
"Head of Household" text,
"Marginal Ordinary Income Tax Rate" text
);
CREATE TABLE table_1_24919137_2 (
"Result/Margin" text,
Venue text,
Opposition text,
Round text,
TV text,
Date text,
"Ladder Position" text,
Time text,
"Home/Away" text,
Score text,
Broadcaster text
);
CREATE TABLE table_1_12164707_1 (
"Mens singles" text,
"Mixed doubles" text,
"Mens doubles" text,
"Womens singles" text,
"Womens doubles" text,
Year numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Where was the game played when the result/margin was won by 70?`
```sql
| SELECT Venue FROM table_1_24919137_2 WHERE "Result/Margin" ILIKE '%WON%by%70%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2441,
2635,
310,
278,
12312,
4799,
2635,
310,
29871,
29906,
29953,
29914,
29900,
29896,
29914,
29896,
29929,
29953,
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,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29906,
29896,
313,
13,
12,
27325,
537,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29947,
29941,
29929,
29946,
29918,
29946,
29941,
313,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
23577,
1426,
29892,
13,
12,
29908,
29896,
29929,
29941,
29906,
313,
11083,
1162,
792,
5513,
1426,
29892,
13,
12,
29908,
1576,
14165,
29916,
29908,
1426,
29892,
13,
12,
29908,
25627,
8315,
518,
855,
2579,
1317,
5586,
29908,
1426,
29892,
13,
12,
2517,
29882,
23586,
1426,
29892,
13,
12,
8654,
575,
1426,
29892,
13,
12,
22633,
1426,
29892,
13,
12,
29857,
554,
13493,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29900,
29941,
29896,
29906,
29900,
29918,
29896,
313,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
1184,
29881,
29889,
3399,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
1123,
412,
532,
381,
1256,
29898,
29879,
5513,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
26036,
1466,
1256,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29955,
29941,
29900,
29918,
29896,
313,
13,
12,
4763,
29879,
16985,
29892,
13,
12,
29908,
19409,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
7031,
29871,
29945,
29908,
16985,
29892,
13,
12,
29956,
2559,
886,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
12810,
29887,
29889,
4231,
728,
29908,
1426,
29892,
13,
12,
29908,
12810,
29887,
29889,
7370,
29908,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29908,
7031,
29871,
29896,
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,
2441,
2635,
310,
278,
12312,
4799,
2635,
310,
29871,
29906,
29953,
29914,
29900,
29896,
29914,
29896,
29929,
29953,
29929,
29973,
29952,
13,
28956,
2850,
13,
5097,
8533,
1466,
1256,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29900,
29941,
29896,
29906,
29900,
29918,
29896,
5754,
376,
1123,
412,
532,
381,
1256,
29898,
29879,
5513,
306,
5265,
6059,
14210,
29906,
29953,
29914,
29900,
29896,
29914,
29896,
29929,
29953,
29929,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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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,
5097,
8533,
1466,
1256,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29900,
29941,
29896,
29906,
29900,
29918,
29896,
5754,
376,
1123,
412,
532,
381,
1256,
29898,
29879,
5513,
306,
5265,
6059,
14210,
29906,
29953,
29914,
29900,
29896,
29914,
29896,
29929,
29953,
29929,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the original date of the repeat air date of 26/01/1969?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10015132_21 (
Nationality text,
Player text,
"School/Club Team" text,
"No." numeric,
"Years in Toronto" text,
Position text
);
CREATE TABLE table_1_1108394_43 (
Total numeric,
"%" text,
"1932 (before recount)" text,
"The Bronx" text,
"Richmond [Staten Is.]" text,
Manhattan text,
Queens text,
party text,
Brooklyn text
);
CREATE TABLE table_1_13403120_1 (
"#" numeric,
"Prod.Code" text,
Director text,
"Repeatairdate(s)" text,
Title text,
Originalairdate text,
"Writer(s)" text
);
CREATE TABLE table_1_1012730_1 (
Starts numeric,
"Team(s)" text,
"Top 5" numeric,
Winnings text,
Year numeric,
"Avg. Finish" text,
"Avg. Start" text,
Wins numeric,
Poles numeric,
"Top 10" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the original date of the repeat air date of 26/01/1969?`
```sql
| SELECT Originalairdate FROM table_1_13403120_1 WHERE "Repeatairdate(s)" ILIKE '%26/01/1969%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
12755,
1258,
27974,
2648,
5499,
2041,
515,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29900,
29941,
29953,
29946,
29947,
29918,
29906,
29896,
313,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
6821,
431,
3815,
29908,
1426,
29892,
13,
12,
3563,
497,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29945,
29929,
29929,
29929,
29918,
29896,
313,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29908,
5098,
29931,
8583,
29908,
1426,
29892,
13,
12,
29908,
3563,
497,
23868,
396,
29908,
16985,
29892,
13,
12,
9075,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
12755,
1258,
27974,
2648,
5499,
2041,
515,
29973,
29952,
13,
28956,
2850,
13,
5097,
6346,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29945,
29929,
29929,
29929,
29918,
29896,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29928,
9517,
29995,
2059,
5499,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
6346,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29945,
29929,
29929,
29929,
29918,
29896,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29928,
9517,
29995,
2059,
5499,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which college did Dennis Byrd come from?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11803648_21 (
Nationality text,
"Club team" text,
Overall text,
Round numeric,
Position text
);
CREATE TABLE table_1_12165999_1 (
Position text,
College text,
"AFL Team" text,
"Overall Pick #" numeric,
Player text
);
```
### Answer
Here is the SQL query that answers the question:
`Which college did Dennis Byrd come from?`
```sql
| SELECT College FROM table_1_12165999_1 WHERE "Player" ILIKE '%Dennis%Byrd%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
5233,
338,
1085,
291,
5373,
17387,
8743,
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,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29941,
313,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29359,
29873,
4539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29953,
29929,
29896,
29947,
29945,
29918,
29941,
313,
13,
12,
3591,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
29946,
29889,
29900,
29900,
29908,
1426,
29892,
13,
12,
4782,
1426,
29892,
13,
12,
1170,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
5233,
338,
1085,
291,
5373,
17387,
8743,
363,
29973,
29952,
13,
28956,
2850,
13,
5097,
3086,
537,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29953,
29929,
29896,
29947,
29945,
29918,
29941,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
3034,
291,
29995,
2423,
17387,
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,
5097,
3086,
537,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29945,
29953,
29929,
29896,
29947,
29945,
29918,
29941,
5754,
376,
1170,
29908,
306,
5265,
6059,
14210,
3034,
291,
29995,
2423,
17387,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What nation is Marion Buisson playing for?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10470082_3 (
"US air date" text,
Director text,
Villains text,
Title text,
"No." numeric,
Writer text,
"#" numeric,
Storyteller text
);
CREATE TABLE table_2_18569185_3 (
Result text,
Nationality text,
"4.00" text,
Group text,
Name text
);
```
### Answer
Here is the SQL query that answers the question:
`What nation is Marion Buisson playing for?`
```sql
| SELECT Nationality FROM table_2_18569185_3 WHERE "Name" ILIKE '%marion%buisson%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
526,
278,
6589,
746,
27042,
322,
1134,
338,
3896,
294,
952,
4607,
267,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29953,
29896,
29896,
29946,
29918,
29906,
313,
13,
12,
23785,
1426,
29892,
13,
12,
1888,
14607,
1426,
29892,
13,
12,
29908,
6779,
17907,
10079,
29908,
1426,
29892,
13,
12,
29908,
29963,
12184,
322,
1134,
29908,
1426,
29892,
13,
12,
1523,
1860,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29896,
29945,
29947,
29906,
29918,
29946,
313,
13,
12,
9182,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
14199,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29955,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29929,
29906,
29953,
29953,
29918,
29947,
313,
13,
12,
29934,
804,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
262,
14746,
5513,
1426,
29892,
13,
12,
29908,
2008,
1658,
5730,
406,
29908,
1426,
29892,
13,
12,
29923,
3334,
2631,
16985,
29892,
13,
12,
29908,
8050,
4259,
29908,
1426,
29892,
13,
12,
29908,
2481,
21497,
313,
29923,
1254,
5513,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
2008,
1658,
10996,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29896,
29945,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
526,
278,
6589,
746,
27042,
322,
1134,
338,
3896,
294,
952,
4607,
267,
29973,
29952,
13,
28956,
2850,
13,
5097,
461,
29879,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29953,
29896,
29896,
29946,
29918,
29906,
5754,
376,
29963,
12184,
322,
1134,
29908,
306,
5265,
6059,
14210,
10399,
294,
952,
29995,
24995,
267,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
461,
29879,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29953,
29896,
29896,
29946,
29918,
29906,
5754,
376,
29963,
12184,
322,
1134,
29908,
306,
5265,
6059,
14210,
10399,
294,
952,
29995,
24995,
267,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What are the comments when vendor and type is enterasys switches?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1206114_2 (
Models text,
Implementation text,
"NetFlow Version" text,
"Vendor and type" text,
Comments text
);
CREATE TABLE table_1_11961582_4 (
Record text,
Score text,
"High assists" text,
"High points" text,
Date text,
"High rebounds" text,
"Location Attendance" text,
Team text,
Game numeric
);
CREATE TABLE table_1_11677100_7 (
Position text,
Hometown text,
School text,
Player text,
"MLB Draft" text
);
CREATE TABLE table_1_10819266_8 (
Rank text,
"Viewers (in millions)" text,
"Season premiere" text,
Episodes numeric,
"TV season" text,
"Time slot (EST)" text,
Season numeric,
"Season finale" text
);
CREATE TABLE table_1_11677100_15 (
Hometown text,
Position text
);
```
### Answer
Here is the SQL query that answers the question:
`What are the comments when vendor and type is enterasys switches?`
```sql
| SELECT Comments FROM table_1_1206114_2 WHERE "Vendor and type" ILIKE '%Enterasys%Switches%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
6003,
434,
756,
330,
29896,
408,
278,
2318,
29973,
29952,
13,
13,
2277,
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,
20779,
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,
29906,
29918,
29896,
29941,
29953,
29900,
29929,
29929,
29955,
29918,
29896,
313,
13,
12,
29908,
22676,
313,
9415,
5513,
16985,
29892,
13,
12,
4782,
1426,
29892,
13,
12,
27469,
1426,
29892,
13,
12,
29908,
29956,
3993,
29914,
29906,
299,
29908,
1426,
29892,
13,
12,
29967,
10119,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
2481,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29934,
815,
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,
6003,
434,
756,
330,
29896,
408,
278,
2318,
29973,
29952,
13,
28956,
2850,
13,
5097,
9548,
434,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29953,
29900,
29929,
29929,
29955,
29918,
29896,
5754,
376,
4782,
29908,
306,
5265,
6059,
14210,
29887,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29941,
29953,
29900,
29929,
29929,
29955,
29918,
29896,
5754,
376,
4782,
29908,
306,
5265,
6059,
14210,
29887,
29896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What venue has g1 as the group?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10236830_1 (
"Actors Name" text,
Country text,
Nomination text,
Director text,
"Film Name" text
);
CREATE TABLE table_2_1360997_1 (
"Weight (kg)" numeric,
Group text,
Distance text,
"Winner/2nd" text,
Jockey text,
Date text,
Time text,
Result text,
Venue text,
Race text
);
```
### Answer
Here is the SQL query that answers the question:
`What venue has g1 as the group?`
```sql
| SELECT Venue FROM table_2_1360997_1 WHERE "Group" ILIKE '%g1%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
19604,
1353,
310,
425,
567,
363,
364,
10094,
716,
1171,
411,
975,
29871,
29929,
29953,
3291,
29892,
263,
3151,
1353,
1090,
29871,
29906,
29946,
29892,
29952,
13,
13,
2277,
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,
29955,
29947,
29896,
29929,
29947,
29953,
29918,
29896,
313,
13,
12,
9984,
1426,
29892,
13,
12,
29956,
2559,
886,
1426,
29892,
13,
12,
12376,
1426,
29892,
13,
12,
29931,
2547,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29908,
8179,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29929,
29953,
29929,
29900,
29946,
29918,
29896,
313,
13,
12,
29908,
13799,
297,
18074,
8848,
29908,
16985,
29892,
13,
12,
29908,
12310,
2785,
360,
575,
537,
29871,
29906,
29900,
29896,
29906,
313,
8848,
29871,
29906,
1723,
29908,
16985,
29892,
13,
12,
29908,
29934,
804,
297,
16693,
351,
532,
276,
317,
11142,
29892,
29871,
29906,
29900,
29896,
29906,
29908,
16985,
29892,
13,
12,
29908,
12310,
2785,
29892,
3111,
29871,
29896,
29945,
29892,
29871,
29906,
29900,
29900,
29906,
29908,
16985,
29892,
13,
12,
29908,
12310,
2785,
10726,
29871,
29906,
29900,
29900,
29906,
29899,
29906,
29900,
29896,
29906,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
12310,
2785,
3111,
29871,
29896,
29945,
29892,
29871,
29906,
29900,
29896,
29906,
29908,
16985,
29892,
13,
12,
29903,
3019,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29896,
29941,
29941,
29900,
29941,
29918,
29906,
313,
13,
12,
29908,
29924,
7310,
310,
25619,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
11757,
6906,
29908,
1426,
29892,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29947,
29900,
29941,
29929,
29953,
29918,
29896,
313,
13,
12,
29908,
29923,
2608,
362,
313,
29885,
5513,
16985,
29892,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
29908,
29902,
2929,
362,
313,
8848,
5513,
16985,
29892,
13,
12,
29924,
4376,
2877,
1426,
29892,
13,
12,
29908,
18571,
262,
663,
313,
29885,
5513,
16985,
29892,
13,
12,
15666,
557,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29896,
29900,
29953,
29945,
29918,
29906,
29955,
313,
13,
12,
16382,
342,
16985,
29892,
13,
12,
29908,
3373,
29914,
6767,
29908,
1426,
29892,
13,
12,
8514,
287,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
8897,
8905,
29908,
16985,
29892,
13,
12,
29931,
340,
342,
16985,
29892,
13,
12,
29909,
19698,
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,
1353,
310,
425,
567,
363,
364,
10094,
716,
1171,
411,
975,
29871,
29929,
29953,
3291,
29892,
263,
3151,
1353,
1090,
29871,
29906,
29946,
29892,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
29931,
2547,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29947,
29896,
29929,
29947,
29953,
29918,
29896,
5754,
376,
20325,
29908,
1405,
525,
29929,
29953,
29915,
5300,
376,
8179,
396,
29908,
529,
525,
29906,
29946,
29915,
5300,
376,
12376,
29908,
306,
5265,
6059,
14210,
719,
273,
29995,
1482,
1171,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
341,
1177,
29898,
29931,
2547,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29947,
29896,
29929,
29947,
29953,
29918,
29896,
5754,
376,
20325,
29908,
1405,
525,
29929,
29953,
29915,
5300,
376,
8179,
396,
29908,
529,
525,
29906,
29946,
29915,
5300,
376,
12376,
29908,
306,
5265,
6059,
14210,
719,
273,
29995,
1482,
1171,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the lowest number of laps for ryan newman with over 96 points, a cur number under 24,`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_10781986_1 (
Make text,
Winnings text,
Driver text,
Laps numeric,
Points numeric,
"Car #" numeric
);
CREATE TABLE table_1_12496904_1 (
"Area in sqkm" numeric,
"Population Density 2012 (km 2 )" numeric,
"Rank in Nyagatare Sectors, 2012" numeric,
"Population, August 15, 2002" numeric,
"Population Change 2002-2012 (%)" text,
"Population August 15, 2012" numeric,
Sector text
);
CREATE TABLE table_1_11713303_2 (
"Manner of departure" text,
"Date of appointment" text,
Team text,
"Replaced by" text,
"Date of vacancy" text,
"Outgoing manager" text
);
CREATE TABLE table_1_12280396_1 (
"Elevation (m)" numeric,
County text,
Rank numeric,
"Isolation (km)" numeric,
Municipality text,
"Prominence (m)" numeric,
Peak text
);
CREATE TABLE table_1_1161065_27 (
Highest numeric,
"Up/Down" text,
Hosted numeric,
Total numeric,
"Last Year" numeric,
Lowest numeric,
Average numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the lowest number of laps for ryan newman with over 96 points, a cur number under 24,`
```sql
| SELECT MIN(Laps) FROM table_2_10781986_1 WHERE "Points" > '96' AND "Car #" < '24' AND "Driver" ILIKE '%ryan%newman%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
19604,
3001,
746,
278,
7115,
338,
3109,
1135,
29871,
29906,
322,
18449,
338,
901,
1135,
29871,
29900,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29946,
29900,
29941,
29945,
29918,
29896,
313,
13,
12,
12883,
16985,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29946,
29955,
29941,
29906,
29955,
29918,
29906,
313,
13,
12,
29908,
29924,
1191,
979,
16557,
3821,
512,
2763,
17847,
390,
403,
29908,
1426,
29892,
13,
12,
29908,
5494,
310,
5619,
8948,
29908,
1426,
29892,
13,
12,
29908,
7083,
1255,
2514,
292,
922,
862,
2486,
29908,
1426,
29892,
13,
12,
29908,
7083,
1255,
2514,
292,
435,
2461,
368,
470,
15146,
2164,
399,
333,
340,
29898,
261,
5513,
1426,
29892,
13,
12,
15771,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29955,
29941,
29906,
29896,
29946,
29918,
29941,
313,
13,
12,
29934,
804,
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,
29892,
13,
12,
11536,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29947,
29941,
29953,
29906,
29896,
29918,
29953,
313,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
1748,
22863,
5165,
3122,
29908,
1426,
29892,
13,
12,
29908,
1748,
22863,
5165,
478,
3848,
14091,
1099,
29908,
1426,
29892,
13,
12,
29908,
1748,
22863,
5165,
6932,
29908,
1426,
29892,
13,
12,
29908,
1748,
22863,
5165,
3741,
8228,
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,
19604,
3001,
746,
278,
7115,
338,
3109,
1135,
29871,
29906,
322,
18449,
338,
901,
1135,
29871,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
11536,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29955,
29941,
29906,
29896,
29946,
29918,
29941,
5754,
376,
29934,
804,
29908,
529,
525,
29906,
29915,
5300,
376,
29933,
1617,
911,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
11536,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29906,
29955,
29941,
29906,
29896,
29946,
29918,
29941,
5754,
376,
29934,
804,
29908,
529,
525,
29906,
29915,
5300,
376,
29933,
1617,
911,
29908,
1405,
525,
29900,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the lowest total when the rank is less than 2 and bronze is more than 0?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1214035_1 (
Year numeric,
Playoffs text,
"Regular Season" text,
League text,
Division text,
"Open Cup" text
);
CREATE TABLE table_1_11647327_2 (
"Marginal Ordinary Income Tax Rate" text,
"Head of Household" text,
"Married Filing Separately" text,
"Married Filing Jointly or Qualified Widow(er)" text,
Single text
);
CREATE TABLE table_2_11273214_3 (
Rank numeric,
Bronze numeric,
Silver numeric,
Gold numeric,
Nation text,
Total numeric
);
CREATE TABLE table_1_12283621_6 (
Season text,
"Serbian League West" text,
"Serbian League Vojvodina" text,
"Serbian League East" text,
"Serbian League Belgrade" text
);
```
### Answer
Here is the SQL query that answers the question:
`what is the lowest total when the rank is less than 2 and bronze is more than 0?`
```sql
| SELECT MIN(Total) FROM table_2_11273214_3 WHERE "Rank" < '2' AND "Bronze" > '0' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
8158,
746,
278,
21230,
5318,
2750,
4842,
10268,
29973,
29952,
13,
13,
2277,
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,
29945,
29945,
29955,
29896,
29953,
29918,
29953,
313,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29896,
29955,
29929,
29929,
29918,
29896,
313,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29956,
3993,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
8158,
746,
278,
21230,
5318,
2750,
4842,
10268,
29973,
29952,
13,
28956,
2850,
13,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29945,
29945,
29955,
29896,
29953,
29918,
29953,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
7345,
10268,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29945,
29945,
29955,
29896,
29953,
29918,
29953,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
7345,
10268,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the score when the jazz played against toronto?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_17355716_6 (
"Location Attendance" text,
Team text,
"High points" text,
Score text,
"High assists" text,
Date text,
Game numeric,
Record text,
"High rebounds" text
);
CREATE TABLE table_1_11621799_1 (
Location text,
"1st Prize( $ )" numeric,
"Purse( $ )" numeric,
Tournament text,
Winner text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the score when the jazz played against toronto?`
```sql
| SELECT Score FROM table_2_17355716_6 WHERE "Team" ILIKE '%toronto%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
6588,
1353,
310,
28495,
363,
10907,
411,
1090,
29871,
29946,
28495,
322,
1090,
29871,
29906,
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,
29896,
29918,
29896,
29900,
29945,
29929,
29945,
29953,
29955,
29906,
29918,
29896,
313,
13,
12,
29908,
6508,
29914,
4165,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
11184,
847,
319,
1582,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29955,
29896,
29896,
29929,
29900,
29918,
29896,
29906,
313,
13,
12,
29931,
520,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
8003,
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,
6588,
1353,
310,
28495,
363,
10907,
411,
1090,
29871,
29946,
28495,
322,
1090,
29871,
29906,
29896,
3291,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
29898,
24515,
1233,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29955,
29896,
29896,
29929,
29900,
29918,
29896,
29906,
5754,
376,
29931,
520,
29908,
529,
525,
29946,
29915,
5300,
376,
20325,
29908,
529,
525,
29906,
29896,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
24515,
1233,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29955,
29896,
29896,
29929,
29900,
29918,
29896,
29906,
5754,
376,
29931,
520,
29908,
529,
525,
29946,
29915,
5300,
376,
20325,
29908,
529,
525,
29906,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the average number of losses for teams with under 4 losses and under 21 points?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10595672_1 (
"Location/Attendance" text,
"High points" text,
"High assists" text,
Opponent text,
Record text,
"High rebounds" text,
Date text,
Score text,
"Home / Away" text
);
CREATE TABLE table_2_18771190_12 (
Lost numeric,
Name text,
Points numeric,
Position numeric,
Drawn numeric,
Played numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the average number of losses for teams with under 4 losses and under 21 points?`
```sql
| SELECT AVG(Drawn) FROM table_2_18771190_12 WHERE "Lost" < '4' AND "Points" < '21' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
18449,
12807,
2302,
363,
22125,
29871,
29941,
29941,
746,
278,
13283,
2302,
471,
3109,
1135,
29871,
29906,
322,
278,
3001,
471,
901,
1135,
29871,
29946,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29941,
29929,
29945,
29900,
29929,
29953,
29918,
29896,
313,
13,
12,
29933,
1617,
911,
16985,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
26729,
369,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29954,
1025,
16985,
29892,
13,
12,
29940,
362,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29929,
29955,
29946,
29941,
29918,
29896,
313,
13,
12,
29908,
13404,
7993,
29908,
1426,
29892,
13,
12,
29908,
13454,
29899,
2696,
29908,
16985,
29892,
13,
12,
29908,
5098,
29907,
6536,
29908,
16985,
29892,
13,
12,
29908,
4782,
7408,
29908,
16985,
29892,
13,
12,
20325,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29955,
29906,
29953,
29906,
29918,
29896,
313,
13,
12,
29908,
29906,
29900,
29900,
29946,
29899,
29900,
29945,
29908,
16985,
29892,
13,
12,
1523,
1545,
537,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29941,
29899,
29900,
29946,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29945,
29899,
29900,
29953,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29906,
29899,
29900,
29941,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29896,
29899,
29900,
29906,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29953,
29899,
29900,
29955,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29896,
29941,
29896,
29953,
29918,
29945,
313,
13,
12,
29908,
29943,
579,
342,
931,
313,
29879,
5513,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29909,
386,
2810,
1426,
29892,
13,
12,
29908,
29956,
513,
313,
29885,
29914,
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,
29915,
29879,
278,
18449,
12807,
2302,
363,
22125,
29871,
29941,
29941,
746,
278,
13283,
2302,
471,
3109,
1135,
29871,
29906,
322,
278,
3001,
471,
901,
1135,
29871,
29946,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29933,
1617,
911,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29941,
29929,
29945,
29900,
29929,
29953,
29918,
29896,
5754,
376,
26729,
369,
29908,
529,
525,
29906,
29915,
5300,
376,
11536,
29908,
1405,
525,
29946,
29915,
5300,
376,
29934,
804,
29908,
306,
5265,
6059,
14210,
29941,
29941,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29933,
1617,
911,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29941,
29929,
29945,
29900,
29929,
29953,
29918,
29896,
5754,
376,
26729,
369,
29908,
529,
525,
29906,
29915,
5300,
376,
11536,
29908,
1405,
525,
29946,
29915,
5300,
376,
29934,
804,
29908,
306,
5265,
6059,
14210,
29941,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the bronze medal count for Rank 33 when the silver count was less than 2 and the total was more than 4?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18395096_1 (
Bronze numeric,
Rank text,
Silver numeric,
Total numeric,
Gold numeric,
Nation text
);
CREATE TABLE table_1_1059743_1 (
"Member Association" text,
"Play-off" numeric,
"AFC Cup" numeric,
"Group stage" numeric,
Points text
);
CREATE TABLE table_1_1057262_1 (
"2004-05" numeric,
Commodity text,
"2003-04" numeric,
"2005-06" numeric,
"2002-03" numeric,
"2001-02" numeric,
"2006-07" numeric
);
CREATE TABLE table_1_1231316_5 (
"Fastest time (s)" text,
Date text,
Location text,
Athlete text,
"Wind (m/s)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What's the bronze medal count for Rank 33 when the silver count was less than 2 and the total was more than 4?`
```sql
| SELECT MAX(Bronze) FROM table_2_18395096_1 WHERE "Silver" < '2' AND "Total" > '4' AND "Rank" ILIKE '%33%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
14263,
297,
4287,
2265,
362,
6554,
310,
286,
585,
280,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29900,
29941,
29945,
29953,
29941,
29918,
29906,
313,
13,
12,
29908,
29946,
386,
15484,
29908,
16985,
29892,
13,
12,
29908,
29941,
5499,
15484,
29908,
16985,
29892,
13,
12,
29940,
362,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29934,
5963,
414,
29899,
786,
29908,
16985,
29892,
13,
12,
29956,
16697,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29896,
29955,
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,
29908,
3782,
1213,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29900,
29947,
29953,
29955,
29953,
29918,
29955,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
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,
7030,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29929,
29953,
29929,
29900,
29946,
29918,
29896,
313,
13,
12,
29908,
12310,
2785,
10726,
29871,
29906,
29900,
29900,
29906,
29899,
29906,
29900,
29896,
29906,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
12310,
2785,
29892,
3111,
29871,
29896,
29945,
29892,
29871,
29906,
29900,
29900,
29906,
29908,
16985,
29892,
13,
12,
29903,
3019,
1426,
29892,
13,
12,
29908,
29934,
804,
297,
16693,
351,
532,
276,
317,
11142,
29892,
29871,
29906,
29900,
29896,
29906,
29908,
16985,
29892,
13,
12,
29908,
12310,
2785,
3111,
29871,
29896,
29945,
29892,
29871,
29906,
29900,
29896,
29906,
29908,
16985,
29892,
13,
12,
29908,
13799,
297,
18074,
8848,
29908,
16985,
29892,
13,
12,
29908,
12310,
2785,
360,
575,
537,
29871,
29906,
29900,
29896,
29906,
313,
8848,
29871,
29906,
1723,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29946,
29900,
29929,
29900,
29955,
29918,
29896,
313,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
29908,
7713,
625,
4889,
29908,
1426,
29892,
13,
12,
29908,
11536,
21544,
313,
29906,
29900,
29900,
29945,
5513,
1426,
29892,
13,
12,
29908,
25733,
639,
2117,
2028,
29908,
1426,
29892,
13,
12,
29908,
20647,
603,
6554,
639,
29871,
29896,
29892,
29900,
29900,
29900,
2305,
29908,
16985,
29892,
13,
12,
29924,
4376,
2877,
1426,
29892,
13,
12,
29908,
1666,
16719,
639,
12139,
29908,
16985,
29892,
13,
12,
29908,
7713,
625,
13049,
29908,
16985,
29892,
13,
12,
29908,
8259,
6866,
1145,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29945,
29900,
29946,
29906,
29941,
29941,
29906,
29918,
29941,
29896,
313,
13,
12,
29908,
797,
4287,
2265,
362,
6554,
19361,
744,
29908,
16985,
29892,
13,
12,
29908,
797,
4287,
2265,
362,
6554,
27208,
29908,
16985,
29892,
13,
12,
29908,
20779,
10230,
29908,
1426,
29892,
13,
12,
29908,
4040,
2285,
297,
29885,
1078,
7567,
29908,
16985,
29892,
13,
12,
18457,
1426,
29892,
13,
12,
29908,
4040,
2285,
297,
29885,
1078,
14990,
29908,
16985,
29892,
13,
12,
29908,
4040,
2285,
297,
29885,
1078,
10152,
29908,
16985,
29892,
13,
12,
29908,
797,
4287,
2265,
362,
6554,
14990,
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,
14263,
297,
4287,
2265,
362,
6554,
310,
286,
585,
280,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
703,
797,
4287,
2265,
362,
6554,
27208,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29945,
29900,
29946,
29906,
29941,
29941,
29906,
29918,
29941,
29896,
5754,
376,
18457,
29908,
306,
5265,
6059,
14210,
29924,
585,
280,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
797,
4287,
2265,
362,
6554,
27208,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29945,
29900,
29946,
29906,
29941,
29941,
29906,
29918,
29941,
29896,
5754,
376,
18457,
29908,
306,
5265,
6059,
14210,
29924,
585,
280,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the male incarceration rate of maule?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12303563_2 (
"4th Place" numeric,
"3rd Place" numeric,
Nation text,
"#" numeric,
"Runners-up" numeric,
Winners numeric
);
CREATE TABLE table_1_11545282_17 (
"School/Club Team" text,
"Years for Jazz" text,
"No." numeric,
Player text,
Position text,
Nationality text
);
CREATE TABLE table_1_10908676_7 (
"Original air date" text,
"Written by" text,
"No. in season" numeric,
"No. in series" numeric,
"Directed by" text,
Title text
);
CREATE TABLE table_1_12496904_1 (
"Population Change 2002-2012 (%)" text,
"Population, August 15, 2002" numeric,
Sector text,
"Rank in Nyagatare Sectors, 2012" numeric,
"Population August 15, 2012" numeric,
"Area in sqkm" numeric,
"Population Density 2012 (km 2 )" numeric
);
CREATE TABLE table_1_12340907_1 (
Population numeric,
"Police force" text,
"Total costs (2005)" text,
"Cost per capita" text,
"Crime rate per 1,000 people" numeric,
Municipality text,
"Residents per officer" numeric,
"Police officers" numeric,
"Case burden" numeric
);
CREATE TABLE table_1_25042332_31 (
"Incarceration rate Female" numeric,
"Incarceration rate Male" numeric,
"Country comparison" text,
"Prison inmates Men" numeric,
Region text,
"Prison inmates Total" numeric,
"Prison inmates Women" numeric,
"Incarceration rate Total" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the male incarceration rate of maule?`
```sql
| SELECT MAX("Incarceration rate Male") FROM table_1_25042332_31 WHERE "Region" ILIKE '%Maule%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
29871,
29896,
29929,
29953,
29945,
756,
263,
29871,
29896,
29929,
29953,
29906,
310,
29871,
29900,
29889,
29941,
29945,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29941,
29892,
322,
263,
29871,
29896,
29929,
29953,
29955,
7968,
1135,
29871,
29900,
29889,
29945,
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,
29900,
29941,
29941,
29900,
29896,
29941,
29918,
29941,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
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,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29953,
313,
13,
12,
29908,
12883,
29879,
363,
17429,
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,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29929,
29953,
29953,
29929,
29918,
29953,
313,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29946,
29900,
29941,
29900,
29955,
29918,
29955,
313,
13,
12,
29908,
29896,
29929,
29953,
29941,
29908,
16985,
29892,
13,
12,
29908,
29896,
29929,
29953,
29896,
29908,
16985,
29892,
13,
12,
29908,
29896,
29929,
29953,
29900,
29908,
16985,
29892,
13,
12,
29908,
29896,
29929,
29953,
29953,
29908,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
29896,
29929,
29953,
29946,
29908,
16985,
29892,
13,
12,
29908,
29896,
29929,
29953,
29929,
29908,
16985,
29892,
13,
12,
29908,
29896,
29929,
29953,
29947,
29908,
16985,
29892,
13,
12,
29908,
29896,
29929,
29953,
29906,
29908,
16985,
29892,
13,
12,
29908,
29896,
29929,
29953,
29955,
29908,
16985,
29892,
13,
12,
29908,
29896,
29929,
29953,
29945,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29946,
29896,
29953,
29906,
29918,
29896,
313,
13,
12,
29908,
29928,
575,
537,
20374,
8848,
30088,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
262,
29871,
29906,
29900,
29900,
29947,
5513,
16985,
29892,
13,
12,
29908,
19302,
713,
5046,
313,
262,
29871,
29906,
29900,
29900,
29953,
5513,
1426,
29892,
13,
12,
29908,
13799,
313,
8848,
30088,
5513,
1426,
29892,
13,
12,
29908,
29954,
834,
1803,
287,
408,
263,
7946,
4408,
29908,
1426,
29892,
13,
12,
4035,
9265,
1426,
29892,
13,
12,
29908,
6816,
273,
22329,
2159,
313,
262,
29871,
29906,
29900,
29900,
29953,
5513,
1426,
29892,
13,
12,
29908,
2539,
937,
17141,
408,
263,
1014,
9265,
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,
29871,
29896,
29929,
29953,
29945,
756,
263,
29871,
29896,
29929,
29953,
29906,
310,
29871,
29900,
29889,
29941,
29945,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29941,
29892,
322,
263,
29871,
29896,
29929,
29953,
29955,
7968,
1135,
29871,
29900,
29889,
29945,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
29896,
29929,
29953,
29945,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29946,
29900,
29941,
29900,
29955,
29918,
29955,
5754,
376,
29896,
29929,
29953,
29906,
29908,
353,
525,
29900,
29889,
29941,
29945,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29941,
29915,
5300,
376,
29896,
29929,
29953,
29955,
29908,
529,
525,
29900,
29889,
29945,
29941,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29896,
29929,
29953,
29945,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29946,
29900,
29941,
29900,
29955,
29918,
29955,
5754,
376,
29896,
29929,
29953,
29906,
29908,
353,
525,
29900,
29889,
29941,
29945,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29941,
29915,
5300,
376,
29896,
29929,
29953,
29955,
29908,
529,
525,
29900,
29889,
29945,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12033013_3 (
"Written by" text,
"No. in season" text,
Title text,
"Original air date" text,
"No. in series" text,
"Directed by" text,
"Production code" text
);
CREATE TABLE table_1_11545282_6 (
"Years for Jazz" text,
"No." numeric,
Nationality text,
"School/Club Team" text,
Player text,
Position text
);
CREATE TABLE table_1_11959669_6 (
Record text,
"High points" text,
Date text,
Team text,
"High rebounds" text,
"Location Attendance" text,
Game numeric,
Score text,
"High assists" text
);
CREATE TABLE table_2_18940307_7 (
"1963" numeric,
"1961" numeric,
"1960" numeric,
"1966" numeric,
Country text,
"1964" numeric,
"1969" numeric,
"1968" numeric,
"1962" numeric,
"1967" numeric,
"1965" numeric
);
CREATE TABLE table_1_1174162_1 (
"Density (/km²)" numeric,
"Population (in 2008)" numeric,
"Median age (in 2006)" text,
"Area (km²)" text,
"Gazetted as a Division Name" text,
Suburb text,
"Mean household size (in 2006)" text,
"Date first settled as a suburb" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53?`
```sql
| SELECT MIN(1965) FROM table_2_18940307_7 WHERE "1962" = '0.35000000000000003' AND "1967" < '0.53' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
716,
29914,
2457,
292,
29914,
17642,
3564,
1024,
363,
910,
15511,
297,
23185,
29973,
29952,
13,
13,
2277,
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,
29953,
313,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
10507,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29953,
29929,
29955,
29953,
29953,
29918,
29896,
29941,
313,
13,
12,
29908,
8897,
319,
2859,
29908,
16985,
29892,
13,
12,
29908,
8015,
17707,
408,
29914,
29903,
420,
29908,
1426,
29892,
13,
12,
29908,
6572,
2366,
8527,
29908,
1426,
29892,
13,
12,
11609,
292,
1426,
29892,
13,
12,
29908,
4373,
29914,
11609,
292,
29914,
29903,
420,
8527,
29908,
1426,
29892,
13,
12,
8964,
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,
716,
29914,
2457,
292,
29914,
17642,
3564,
1024,
363,
910,
15511,
297,
23185,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
4373,
29914,
11609,
292,
29914,
29903,
420,
8527,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29929,
29955,
29953,
29953,
29918,
29896,
29941,
5754,
376,
8964,
29908,
306,
5265,
6059,
14210,
4013,
29995,
22606,
29995,
262,
29995,
5160,
2135,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
4373,
29914,
11609,
292,
29914,
29903,
420,
8527,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29929,
29955,
29953,
29953,
29918,
29896,
29941,
5754,
376,
8964,
29908,
306,
5265,
6059,
14210,
4013,
29995,
22606,
29995,
262,
29995,
5160,
2135,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the new/returning/same network name for This Week in Baseball?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10470082_6 (
"#" numeric,
"US air date" text,
Storyteller text,
Title text,
Director text,
Villains text,
Writer text,
"No." numeric
);
CREATE TABLE table_1_169766_13 (
"Last Aired" numeric,
"Retitled as/Same" text,
"Previous Network" text,
Returning text,
"New/Returning/Same Network" text,
Show text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the new/returning/same network name for This Week in Baseball?`
```sql
| SELECT "New/Returning/Same Network" FROM table_1_169766_13 WHERE "Show" ILIKE '%This%Week%in%Baseball%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
15970,
892,
278,
376,
29883,
5380,
403,
29908,
310,
4275,
13397,
29871,
29953,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29953,
29953,
29947,
29906,
29946,
29941,
29918,
29906,
29906,
313,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29907,
5380,
1078,
1426,
29892,
13,
12,
797,
29883,
3774,
296,
1426,
29892,
13,
12,
29908,
6730,
11467,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29953,
29900,
29900,
29941,
29929,
29918,
29896,
313,
13,
12,
9075,
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,
29892,
13,
12,
8003,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
15970,
892,
278,
376,
29883,
5380,
403,
29908,
310,
4275,
13397,
29871,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
315,
5380,
1078,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29953,
29947,
29906,
29946,
29941,
29918,
29906,
29906,
5754,
376,
29928,
6801,
29908,
306,
5265,
6059,
14210,
29903,
2438,
29995,
8179,
324,
1099,
29995,
29953,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
315,
5380,
1078,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29953,
29947,
29906,
29946,
29941,
29918,
29906,
29906,
5754,
376,
29928,
6801,
29908,
306,
5265,
6059,
14210,
29903,
2438,
29995,
8179,
324,
1099,
29995,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`who were the "candidate" of South Carolina 6?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_2668243_22 (
Party text,
District text,
Result text,
Candidates text,
Incumbent text,
"First elected" text
);
CREATE TABLE table_1_10960039_1 (
Player text,
"Pick #" numeric,
College text,
"CFL Team" text,
Position text
);
```
### Answer
Here is the SQL query that answers the question:
`who were the "candidate" of South Carolina 6?`
```sql
| SELECT Candidates FROM table_1_2668243_22 WHERE "District" ILIKE '%South%Carolina%6%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
29915,
29879,
278,
30081,
22633,
30081,
2541,
30081,
3742,
3774,
296,
30081,
915,
292,
674,
2829,
289,
29889,
9124,
2813,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29906,
29929,
29906,
29918,
29906,
313,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
29908,
6730,
11467,
29908,
16985,
29892,
13,
12,
797,
29883,
3774,
296,
1426,
29892,
13,
12,
29907,
5380,
1078,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29928,
6801,
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,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29934,
299,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29955,
313,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
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,
5816,
29915,
29879,
278,
30081,
22633,
30081,
2541,
30081,
3742,
3774,
296,
30081,
915,
292,
674,
2829,
289,
29889,
9124,
2813,
29952,
13,
28956,
2850,
13,
5097,
9173,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29906,
29929,
29906,
29918,
29906,
5754,
376,
797,
29883,
3774,
296,
29908,
306,
5265,
6059,
14210,
12984,
2829,
29995,
29933,
29889,
29995,
29933,
804,
2813,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
9173,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29906,
29929,
29906,
29918,
29906,
5754,
376,
797,
29883,
3774,
296,
29908,
306,
5265,
6059,
14210,
12984,
2829,
29995,
29933,
29889,
29995,
29933,
804,
2813,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`what's the party with incumbent being william b. bankhead`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1342292_2 (
Party text,
"First elected" numeric,
Incumbent text,
Candidates text,
Result text,
District text
);
CREATE TABLE table_1_1140073_2 (
Date text,
"Race Winner" text,
Race text,
Location text,
Report text,
"Pole Position" text,
"Fastest Lap" text,
Constructor text,
Rnd numeric
);
CREATE TABLE table_1_11677100_7 (
School text,
"MLB Draft" text,
Position text,
Hometown text,
Player text
);
```
### Answer
Here is the SQL query that answers the question:
`what's the party with incumbent being william b. bankhead`
```sql
| SELECT Party FROM table_1_1342292_2 WHERE "Incumbent" ILIKE '%William%B.%Bankhead%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
338,
278,
3448,
3815,
393,
5318,
3271,
3815,
10875,
386,
1398,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29953,
29929,
29953,
29946,
29953,
29918,
29906,
29900,
313,
13,
12,
29908,
11184,
3815,
8158,
29908,
1426,
29892,
13,
12,
29907,
798,
29881,
16985,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
8158,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29941,
29941,
29900,
29896,
29941,
29918,
29896,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
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,
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,
22110,
338,
278,
3448,
3815,
393,
5318,
3271,
3815,
10875,
386,
1398,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29909,
1582,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29953,
29929,
29953,
29946,
29953,
29918,
29906,
29900,
5754,
376,
11184,
3815,
29908,
306,
5265,
6059,
14210,
29882,
1450,
386,
1398,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29909,
1582,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29953,
29929,
29953,
29946,
29953,
29918,
29906,
29900,
5754,
376,
11184,
3815,
29908,
306,
5265,
6059,
14210,
29882,
1450,
386,
1398,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who is the away team that played home team Hawthorn?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_10869646_20 (
"Home team score" text,
Crowd numeric,
Venue text,
"Away team" text,
Date text,
"Home team" text,
"Away team score" text
);
CREATE TABLE table_1_12033013_1 (
"Original air date" text,
Title text,
"Directed by" text,
"Production code" text,
"No. in series" numeric,
"Written by" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who is the away team that played home team Hawthorn?`
```sql
| SELECT "Away team" FROM table_2_10869646_20 WHERE "Home team" ILIKE '%hawthorn%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
6003,
434,
746,
278,
1629,
338,
29871,
29906,
29900,
29900,
29953,
29892,
278,
13888,
338,
408,
713,
8090,
322,
278,
1741,
338,
29871,
29946,
29900,
29900,
286,
29973,
29952,
13,
13,
2277,
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,
29906,
29906,
29929,
29941,
29918,
29946,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29941,
29941,
29929,
29953,
29918,
29945,
313,
13,
12,
29908,
8120,
1338,
11454,
303,
7740,
29887,
1213,
1426,
29892,
13,
12,
29908,
3563,
497,
14164,
29908,
1426,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
29908,
16985,
29892,
13,
12,
29908,
8120,
1338,
1152,
29908,
16985,
29892,
13,
12,
29908,
8120,
1338,
1152,
7740,
29887,
1213,
1426,
29892,
13,
12,
6821,
431,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29955,
29929,
29953,
29941,
29918,
29953,
313,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29945,
29945,
29955,
29946,
29945,
29918,
29896,
313,
13,
12,
6843,
300,
654,
1426,
29892,
13,
12,
2624,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
12883,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29941,
29953,
29955,
29918,
29906,
313,
13,
12,
29908,
29937,
310,
21669,
29908,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
29937,
310,
22091,
2113,
29908,
16985,
29892,
13,
12,
29908,
29995,
310,
5972,
11719,
29908,
1426,
29892,
13,
12,
29908,
15263,
8271,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5816,
338,
278,
6003,
434,
746,
278,
1629,
338,
29871,
29906,
29900,
29900,
29953,
29892,
278,
13888,
338,
408,
713,
8090,
322,
278,
1741,
338,
29871,
29946,
29900,
29900,
286,
29973,
29952,
13,
28956,
2850,
13,
5097,
9548,
434,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29945,
29945,
29955,
29946,
29945,
29918,
29896,
5754,
376,
12883,
29908,
353,
525,
29906,
29900,
29900,
29953,
29915,
5300,
376,
6843,
300,
654,
29908,
306,
5265,
6059,
14210,
294,
713,
29995,
29887,
1280,
29001,
5300,
376,
2624,
29908,
306,
5265,
6059,
14210,
29946,
29900,
29900,
29995,
29885,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29947,
29955,
29945,
29945,
29955,
29946,
29945,
29918,
29896,
5754,
376,
12883,
29908,
353,
525,
29906,
29900,
29900,
29953,
29915,
5300,
376,
6843,
300,
654,
29908,
306,
5265,
6059,
14210,
294,
713,
29995,
29887,
1280,
29001,
5300,
376,
2624,
29908,
306,
5265,
6059,
14210,
29946,
29900,
29900,
29995,
29885,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the venue when the year is 2006, the competition is asian games and the event is 400 m?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10812293_4 (
Date text,
"High rebounds" text,
"Location Attendance" text,
"High points" text,
Team text,
Score text,
Game numeric,
Record text,
"High assists" text
);
CREATE TABLE table_1_1253396_5 (
"Goals Against Avg." text,
"Overall Record" text,
"Goals Against" numeric,
"Goals For" numeric,
"Goals For Avg." text,
Club text
);
CREATE TABLE table_1_11907963_6 (
Score text,
Date text,
"Location Attendance" text,
"High rebounds" text
);
CREATE TABLE table_2_18755745_1 (
Competition text,
Event text,
Venue text,
Position text,
Year numeric
);
CREATE TABLE table_1_106367_2 (
"# of candidates" numeric,
Result text,
"# of seats won" numeric,
"% of popular vote" text,
"General election" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`what is the venue when the year is 2006, the competition is asian games and the event is 400 m?`
```sql
| SELECT Venue FROM table_2_18755745_1 WHERE "Year" = '2006' AND "Competition" ILIKE '%asian%games%' AND "Event" ILIKE '%400%m%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
8881,
3796,
411,
838,
21343,
388,
408,
9227,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29896,
29906,
313,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29947,
29896,
29946,
29946,
29955,
29918,
29896,
313,
13,
12,
3434,
29885,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29909,
1328,
1426,
29892,
13,
12,
29908,
23665,
2265,
29898,
29879,
5513,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
17392,
272,
29898,
29879,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29946,
29953,
29955,
29929,
29900,
29918,
29906,
313,
13,
12,
22606,
16985,
29892,
13,
12,
855,
328,
1974,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29947,
29946,
29896,
29955,
29941,
29918,
29896,
313,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
29956,
279,
6669,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
29934,
359,
296,
4077,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
855,
9716,
272,
412,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
3596,
2207,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
29954,
29880,
996,
497,
273,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
18457,
3001,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29946,
29946,
29945,
29900,
29941,
29918,
29896,
313,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
16802,
29899,
786,
29908,
1426,
29892,
13,
12,
29908,
18767,
304,
1741,
950,
28877,
29899,
786,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
18767,
304,
1741,
950,
19576,
29908,
1426,
29892,
13,
12,
29956,
3993,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29896,
29945,
29947,
29906,
29918,
29896,
29900,
313,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
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,
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,
5618,
8881,
3796,
411,
838,
21343,
388,
408,
9227,
29973,
29952,
13,
28956,
2850,
13,
5097,
15944,
29898,
29879,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29947,
29896,
29946,
29946,
29955,
29918,
29896,
5754,
376,
10507,
29898,
29879,
5513,
306,
5265,
6059,
14210,
284,
29995,
29885,
547,
388,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
15944,
29898,
29879,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29947,
29896,
29946,
29946,
29955,
29918,
29896,
5754,
376,
10507,
29898,
29879,
5513,
306,
5265,
6059,
14210,
284,
29995,
29885,
547,
388,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What director worked with Al Mackay as writer?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11545282_12 (
Player text,
Position text,
"School/Club Team" text,
Nationality text,
"Years for Jazz" text,
"No." numeric
);
CREATE TABLE table_2_12181447_1 (
Film text,
"Writer(s)" text,
Award text,
"Producer(s)" text,
Date text,
"Director(s)" text
);
CREATE TABLE table_1_10646790_2 (
Week numeric,
Stadium text,
Attendance numeric,
Result text,
Record text,
Opponent text
);
CREATE TABLE table_1_12584173_1 (
Year numeric,
"Population (Warwick)" numeric,
"Population (Rosenthal)" numeric,
"Population (Stanthorpe)" numeric,
"Population (Allora)" numeric,
"Population (Glengallan)" numeric,
"Population (Region total)" numeric
);
CREATE TABLE table_1_12444503_1 (
Season text,
"Runner-up" text,
"lost to eventual runner-up" text,
Score text,
"lost to eventual winner" text,
Winner text
);
CREATE TABLE table_1_11961582_10 (
Game numeric,
"High rebounds" text,
Series text,
"High points" text,
"High assists" text,
"Location Attendance" text,
Team text
);
```
### Answer
Here is the SQL query that answers the question:
`What director worked with Al Mackay as writer?`
```sql
| SELECT Director(s) FROM table_2_12181447_1 WHERE "Writer(s)" ILIKE '%al%mackay%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
25039,
1299,
8519,
6093,
16641,
18783,
22659,
349,
2965,
29968,
8079,
29871,
29955,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29900,
29941,
29941,
29941,
29953,
29918,
29896,
313,
13,
12,
29908,
12883,
830,
4611,
29908,
1426,
29892,
13,
12,
25058,
1426,
29892,
13,
12,
6572,
311,
985,
943,
1426,
29892,
13,
12,
27065,
1061,
1426,
29892,
13,
12,
29908,
9283,
4056,
365,
8737,
29908,
1426,
29892,
13,
12,
29908,
9323,
21179,
29908,
1426,
29892,
13,
12,
29908,
6595,
1976,
9770,
29908,
1426,
29892,
13,
12,
14191,
943,
1426,
29892,
13,
12,
6271,
29965,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29900,
29900,
29929,
29953,
29896,
29918,
29955,
29900,
313,
13,
12,
29934,
618,
16985,
29892,
13,
12,
3563,
497,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
1625,
4424,
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,
25039,
1299,
8519,
6093,
16641,
18783,
22659,
349,
2965,
29968,
8079,
29871,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
29934,
618,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29900,
29900,
29929,
29953,
29896,
29918,
29955,
29900,
5754,
376,
29925,
860,
29908,
353,
525,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
618,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29896,
29900,
29900,
29929,
29953,
29896,
29918,
29955,
29900,
5754,
376,
29925,
860,
29908,
353,
525,
29955,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`WHAT IS THE ROUND WITH PICK OF 7?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11703336_1 (
"Year Released" text,
RAM text,
Predecessors text,
Calculator text,
"Programming Languages" text,
"Display Size" text,
"Link Abilities" text,
Successors text,
CPU text
);
CREATE TABLE table_2_17100961_70 (
Round numeric,
Overall numeric,
Position text,
Name text,
College text,
Pick numeric
);
```
### Answer
Here is the SQL query that answers the question:
`WHAT IS THE ROUND WITH PICK OF 7?`
```sql
| SELECT SUM(Round) FROM table_2_17100961_70 WHERE "Pick" = '7' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
2522,
487,
29892,
746,
15484,
338,
376,
29911,
29896,
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,
29896,
29929,
29953,
29946,
29900,
29946,
29955,
29918,
29929,
313,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
29931,
1479,
292,
885,
9386,
29908,
1426,
29892,
13,
12,
11184,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
6116,
2105,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
855,
276,
557,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29945,
29906,
29955,
29945,
29896,
29918,
29906,
313,
13,
12,
29908,
11536,
9681,
310,
399,
1036,
29908,
1426,
29892,
13,
12,
29908,
2713,
666,
28025,
5556,
2147,
287,
29908,
1426,
29892,
13,
12,
29908,
29979,
538,
4408,
29908,
1426,
29892,
13,
12,
29908,
29896,
303,
1383,
666,
360,
27657,
4712,
29908,
1426,
29892,
13,
12,
29908,
6508,
313,
12690,
29892,
2106,
5513,
1426,
29892,
13,
12,
29908,
7827,
24479,
4240,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29953,
29896,
29953,
29906,
29918,
29941,
313,
13,
12,
29908,
3332,
6210,
313,
8848,
29914,
29882,
5513,
16985,
29892,
13,
12,
29908,
3317,
29889,
4842,
802,
313,
29940,
29885,
29897,
472,
364,
3358,
29908,
1426,
29892,
13,
12,
29908,
3317,
29889,
3081,
26226,
313,
7024,
29897,
472,
364,
3358,
29908,
1426,
29892,
13,
12,
4299,
1426,
29892,
13,
12,
29908,
2218,
29886,
9552,
21759,
29908,
16985,
29892,
13,
12,
29908,
1270,
29880,
513,
414,
29914,
659,
1960,
29908,
1426,
29892,
13,
12,
29908,
10599,
775,
29908,
1426,
29892,
13,
12,
29908,
24601,
3785,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29929,
29900,
29896,
29945,
29900,
29918,
29945,
313,
13,
12,
29908,
1762,
610,
29908,
16985,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
22150,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29953,
29900,
29906,
29941,
29918,
29896,
313,
13,
12,
29908,
8179,
9081,
1134,
29908,
1426,
29892,
13,
12,
29908,
12883,
4240,
29908,
16985,
29892,
13,
12,
4557,
1426,
29892,
13,
12,
5627,
1426,
29892,
13,
12,
29908,
29911,
4345,
9681,
29908,
1426,
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,
29954,
3504,
5513,
1426,
29892,
13,
12,
29908,
4557,
310,
2305,
29871,
29896,
29929,
29929,
29896,
29908,
16985,
29892,
13,
12,
29908,
29963,
453,
482,
313,
29903,
417,
854,
713,
5513,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
2522,
487,
29892,
746,
15484,
338,
376,
29911,
29896,
8652,
29952,
13,
28956,
2850,
13,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29929,
29900,
29896,
29945,
29900,
29918,
29945,
5754,
376,
22150,
29908,
306,
5265,
6059,
14210,
29873,
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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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,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29929,
29900,
29896,
29945,
29900,
29918,
29945,
5754,
376,
22150,
29908,
306,
5265,
6059,
14210,
29873,
29896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Score, when Place is "T1"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11964047_9 (
Record text,
"Leading scorer" text,
Home text,
"#" numeric,
Visitor text,
Date text,
Attendance text,
Streak text
);
CREATE TABLE table_1_11552751_2 (
"Total Number of Ways" text,
"Ship Types Delivered" text,
"Yard Name" text,
"1st Ship Delivery Date" text,
"Location (city, state)" text,
"total vessels built" text
);
CREATE TABLE table_1_1176162_3 (
"top speed (km/h)" numeric,
"max. torque (Nm) at rpm" text,
"max. power kW (PS) at rpm" text,
model text,
"displacement cc" numeric,
"cylinders/ valves" text,
"engine code" text,
"production period" text
);
CREATE TABLE table_2_17290150_5 (
"To par" numeric,
Score text,
Place text,
Country text,
Player text
);
CREATE TABLE table_1_1166023_1 (
"Carriage type" text,
"Year built" numeric,
Number text,
Builder text,
"TMS Number" text
);
CREATE TABLE table_1_10797463_1 (
"Percent of Slovenes 1951" text,
"Percent of Slovenes 1991" text,
"Village (German)" text,
"Number of people 1991" numeric,
"Village (Slovenian)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Score, when Place is "T1"?`
```sql
| SELECT Score FROM table_2_17290150_5 WHERE "Place" ILIKE '%t1%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
19604,
25133,
363,
12777,
3300,
7207,
14113,
29892,
8984,
29879,
901,
1135,
29871,
29906,
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,
29946,
29900,
29896,
29896,
29953,
29918,
29945,
313,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29929,
29945,
29947,
29896,
29929,
29918,
29896,
313,
13,
12,
29908,
7583,
22102,
24034,
29908,
1426,
29892,
13,
12,
29908,
6730,
1629,
5318,
29908,
16985,
29892,
13,
12,
29908,
29911,
583,
5318,
29908,
16985,
29892,
13,
12,
29908,
10873,
793,
399,
29994,
29931,
29908,
1426,
29892,
13,
12,
29908,
11536,
399,
29994,
29931,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29928,
283,
7586,
399,
29994,
29931,
29908,
1426,
29892,
13,
12,
29908,
7583,
27641,
24034,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29900,
29955,
29955,
29941,
29918,
29945,
313,
13,
12,
17693,
1426,
29892,
13,
12,
4002,
647,
1426,
29892,
13,
12,
12614,
1426,
29892,
13,
12,
29908,
29925,
7202,
5167,
29908,
1426,
29892,
13,
12,
29908,
11816,
292,
10554,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
26246,
29908,
1426,
29892,
13,
12,
29908,
6730,
8373,
26428,
1815,
22603,
29908,
1426,
29892,
13,
12,
29315,
290,
3381,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29941,
29941,
29896,
29945,
29946,
29900,
29918,
29896,
313,
13,
12,
19409,
1426,
29892,
13,
12,
13454,
287,
16985,
29892,
13,
12,
24515,
1233,
16985,
29892,
13,
12,
14769,
475,
303,
16985,
29892,
13,
12,
29931,
520,
16985,
29892,
13,
12,
8003,
16985,
29892,
13,
12,
29928,
17678,
1426,
29892,
13,
12,
20325,
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,
25133,
363,
12777,
3300,
7207,
14113,
29892,
8984,
29879,
901,
1135,
29871,
29906,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
29931,
520,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29941,
29941,
29896,
29945,
29946,
29900,
29918,
29896,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
29879,
1368,
29995,
3274,
7207,
29995,
336,
309,
1582,
29001,
5300,
376,
20325,
29908,
1405,
525,
29906,
29896,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29931,
520,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29941,
29941,
29896,
29945,
29946,
29900,
29918,
29896,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
29879,
1368,
29995,
3274,
7207,
29995,
336,
309,
1582,
29001,
5300,
376,
20325,
29908,
1405,
525,
29906,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the lowest Lost for são paulo railway, Points more than 21?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140116_5 (
Circuit text,
"Winning driver" text,
"Race Name" text,
Constructor text,
Report text,
Date text
);
CREATE TABLE table_1_10295819_1 (
"Current singles ranking" text,
"First year played" numeric,
"Ties played" numeric,
"Singles W–L" text,
"Total W–L" text,
Player text,
"Doubles W–L" text,
"Current doubles ranking" text
);
CREATE TABLE table_1_11900773_5 (
Theme text,
Design text,
Illustration text,
"Paper Type" text,
"Printing Process" text,
"Date of Issue" text,
"First Day Cover Cancellation" text,
Denomination text
);
CREATE TABLE table_2_15331540_1 (
Team text,
Played numeric,
Drawn numeric,
Against numeric,
Lost numeric,
Position numeric,
Difference text,
Points numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the lowest Lost for são paulo railway, Points more than 21?`
```sql
| SELECT MIN(Lost) FROM table_2_15331540_1 WHERE "Team" ILIKE '%são%paulo%railway%' AND "Points" > '21' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
3291,
1258,
540,
505,
746,
540,
756,
297,
278,
29871,
29941,
29946,
386,
2602,
29973,
421,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
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,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
16985,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29945,
29900,
29918,
29946,
313,
13,
12,
29908,
8897,
2246,
8542,
3611,
29908,
1426,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29908,
4557,
310,
20084,
297,
278,
14163,
5165,
29908,
16985,
29892,
13,
12,
29908,
4557,
310,
20084,
297,
2246,
8542,
29908,
16985,
29892,
13,
12,
29908,
8003,
297,
29871,
29906,
29900,
29896,
29906,
29994,
29896,
29941,
29908,
1426,
29892,
13,
12,
29908,
7031,
8542,
17735,
29908,
16985,
29892,
13,
12,
29908,
6730,
4259,
310,
1857,
24779,
297,
2246,
8542,
29908,
1426,
29892,
13,
12,
29908,
6730,
4259,
297,
2246,
8542,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29953,
313,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29946,
29929,
29929,
29947,
29900,
29947,
29947,
29918,
29896,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
29943,
29889,
29931,
1213,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
20325,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
27345,
21425,
16985,
29892,
13,
12,
29934,
3302,
16985,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29953,
29900,
29946,
29946,
29955,
29918,
29896,
313,
13,
12,
29956,
2559,
886,
1426,
29892,
13,
12,
12376,
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,
3291,
1258,
540,
505,
746,
540,
756,
297,
278,
29871,
29941,
29946,
386,
2602,
29973,
421,
13,
28956,
2850,
13,
5097,
8984,
29879,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29929,
29929,
29947,
29900,
29947,
29947,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
29941,
29946,
386,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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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,
5097,
8984,
29879,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29929,
29929,
29947,
29900,
29947,
29947,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
29941,
29946,
386,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many points did he have when he has in the 34th position? `
### 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,
"Years for Rockets" text,
"No.(s)" numeric,
"Height in Ft." text
);
CREATE TABLE table_1_11250_4 (
"Last top division title" text,
Club text,
"Number of seasons in the Premier League" numeric,
"Number of seasons in top division" numeric,
"Position in 2012–13" text,
"Top division titles" numeric,
"First season of current spell in top division" text,
"First season in top division" text
);
CREATE TABLE table_1_11677691_6 (
Position text,
College text,
School text,
Hometown text
);
CREATE TABLE table_1_24998088_1 (
Position text,
"F.L." numeric,
Wins numeric,
Points text,
Season numeric,
Podiums numeric,
Races numeric,
Series text,
Poles numeric,
Team text
);
CREATE TABLE table_1_10160447_1 (
Winnings text,
Driver text
);
```
### Answer
Here is the SQL query that answers the question:
`How many points did he have when he has in the 34th position? `
```sql
| SELECT Points FROM table_1_24998088_1 WHERE "Position" ILIKE '%34th%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
14591,
639,
16445,
947,
278,
26823,
302,
1028,
29906,
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,
29900,
29945,
29947,
29900,
29945,
29955,
29945,
29918,
29896,
313,
13,
12,
29908,
18213,
29889,
5864,
29908,
16985,
29892,
13,
12,
29923,
781,
2200,
537,
16985,
29892,
13,
12,
23665,
428,
16985,
29892,
13,
12,
12415,
2028,
1426,
29892,
13,
12,
26382,
16985,
29892,
13,
12,
29908,
3217,
29871,
29906,
448,
331,
2333,
29908,
16985,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29900,
29929,
29953,
29947,
29918,
29896,
313,
13,
12,
29908,
29924,
1772,
16637,
7688,
413,
27838,
29908,
1426,
29892,
13,
12,
1184,
371,
262,
1426,
29892,
13,
12,
29908,
3505,
313,
269,
2967,
5101,
1723,
29908,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29907,
459,
583,
639,
16445,
29908,
1426,
29892,
13,
12,
29908,
29934,
3521,
6667,
358,
313,
29954,
1600,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29945,
29946,
29896,
29896,
29896,
29918,
29941,
313,
13,
12,
29908,
29164,
8276,
22125,
29908,
16985,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
29940,
523,
22125,
29908,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
29934,
1218,
29914,
2713,
598,
29871,
29896,
29947,
29994,
29946,
29929,
29908,
1426,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29908,
3563,
497,
22125,
29908,
16985,
29892,
13,
12,
29908,
29937,
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,
14591,
639,
16445,
947,
278,
26823,
302,
1028,
29906,
505,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29907,
459,
583,
639,
16445,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29900,
29929,
29953,
29947,
29918,
29896,
5754,
376,
1184,
371,
262,
29908,
306,
5265,
6059,
14210,
29876,
1028,
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,
29907,
459,
583,
639,
16445,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29900,
29929,
29953,
29947,
29918,
29896,
5754,
376,
1184,
371,
262,
29908,
306,
5265,
6059,
14210,
29876,
1028,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many copies per particle does the protein nsp2 have?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10580575_1 (
"Prim. energy" numeric,
Electricity numeric,
Production numeric,
Capita text,
Export numeric,
"CO 2 -emission" numeric,
"unnamed_0" numeric
);
CREATE TABLE table_2_140968_1 (
"Molecular weight kDa" text,
Protein text,
"Size ( s base pair )" numeric,
Location text,
"Copies per particle" text,
"RNA Segment (Gene)" numeric
);
CREATE TABLE table_1_11354111_3 (
"Timeslot Rank" numeric,
"Viewers (m)" text,
"Air Date" text,
"Night Rank" text,
Episode text,
Rating text,
"Rating/Share 18–49" text,
Share numeric,
"Overall Rank" numeric,
"#" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`How many copies per particle does the protein nsp2 have?`
```sql
| SELECT "Copies per particle" FROM table_2_140968_1 WHERE "Protein" ILIKE '%nsp2%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
15569,
297,
278,
29871,
29906,
29900,
29896,
29900,
9755,
408,
713,
5733,
22401,
29973,
29952,
13,
13,
2277,
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,
29955,
29946,
29929,
29941,
29896,
29900,
29918,
29906,
313,
13,
12,
3591,
1426,
29892,
13,
12,
6843,
300,
654,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29903,
2616,
287,
16985,
29892,
13,
12,
29963,
264,
434,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29896,
29946,
29906,
29918,
29896,
313,
13,
12,
29908,
4782,
350,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
4782,
360,
399,
3993,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
4782,
315,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
4782,
319,
399,
3993,
29908,
1426,
13,
416,
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,
1625,
4424,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
15569,
297,
278,
29871,
29906,
29900,
29896,
29900,
9755,
408,
713,
5733,
22401,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29903,
2616,
287,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29946,
29929,
29941,
29896,
29900,
29918,
29906,
5754,
376,
6843,
300,
654,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29896,
29900,
29995,
23027,
29995,
294,
713,
29995,
20012,
29995,
305,
3103,
3527,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29903,
2616,
287,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29955,
29946,
29929,
29941,
29896,
29900,
29918,
29906,
5754,
376,
6843,
300,
654,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29896,
29900,
29995,
23027,
29995,
294,
713,
29995,
20012,
29995,
305,
3103,
3527,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the highest scored in the 2010 east asian football championship?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_10749310_2 (
Result text,
Competition text,
Date text,
Scored numeric,
Venue text
);
CREATE TABLE table_1_1137142_1 (
"Group B Winner" text,
"Group D Winner" text,
Season text,
"Group C Winner" text,
"Group A Winner" text
);
CREATE TABLE table_1_11677691_10 (
School text,
College text,
Player text,
Hometown text,
Position text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the highest scored in the 2010 east asian football championship?`
```sql
| SELECT MAX(Scored) FROM table_2_10749310_2 WHERE "Competition" ILIKE '%2010%east%asian%football%championship%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
12246,
10947,
505,
263,
14990,
310,
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,
29900,
29953,
29946,
29955,
29953,
29941,
29929,
29918,
29896,
313,
13,
12,
29908,
14199,
3268,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
3591,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29929,
29896,
29929,
29953,
29946,
29918,
29941,
313,
13,
12,
29933,
1617,
911,
16985,
29892,
13,
12,
29940,
362,
1426,
29892,
13,
12,
29954,
1025,
16985,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
26729,
369,
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,
12246,
10947,
505,
263,
14990,
310,
29871,
29929,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
29933,
1617,
911,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29929,
29896,
29929,
29953,
29946,
29918,
29941,
5754,
376,
11536,
29908,
353,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29933,
1617,
911,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29929,
29896,
29929,
29953,
29946,
29918,
29941,
5754,
376,
11536,
29908,
353,
525,
29929,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many bronzes have a Total of 9?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10647639_1 (
"Game site" text,
Date text,
Opponent text,
Week numeric,
Attendance numeric,
Record text,
Result text
);
CREATE TABLE table_2_18991964_3 (
Bronze numeric,
Nation text,
Gold numeric,
Rank text,
Total numeric,
Silver numeric
);
```
### Answer
Here is the SQL query that answers the question:
`How many bronzes have a Total of 9?`
```sql
| SELECT SUM(Bronze) FROM table_2_18991964_3 WHERE "Total" = '9' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
2113,
278,
281,
290,
575,
22102,
1741,
278,
1629,
393,
9937,
294,
8626,
700,
305,
2113,
29973,
29952,
13,
13,
2277,
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,
29929,
29941,
29906,
29906,
29896,
29918,
29946,
313,
13,
12,
5261,
3825,
1426,
29892,
13,
12,
1523,
2037,
1426,
29892,
13,
12,
29968,
24455,
1426,
29892,
13,
12,
18552,
292,
1426,
29892,
13,
12,
8325,
1426,
29892,
13,
12,
29956,
7261,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29896,
29906,
29941,
29955,
29918,
29946,
313,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29941,
29900,
29953,
29896,
29906,
29918,
29929,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29941,
29941,
29947,
29955,
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,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
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,
29896,
29906,
29896,
29946,
29906,
29896,
29906,
29918,
29896,
313,
13,
12,
29908,
29940,
18771,
4371,
491,
25488,
29908,
16985,
29892,
13,
12,
29908,
29940,
18771,
4371,
491,
13718,
29908,
16985,
29892,
13,
12,
29908,
4597,
8306,
310,
263,
9461,
2278,
29908,
16985,
29892,
13,
12,
29908,
29940,
4680,
310,
435,
3304,
16708,
16896,
4908,
18363,
4034,
29908,
16985,
29892,
13,
12,
29908,
4597,
8306,
491,
916,
2794,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29955,
29946,
29946,
29896,
29918,
29896,
313,
13,
12,
29908,
12310,
2785,
313,
29906,
29900,
29900,
29946,
12678,
5513,
16985,
29892,
13,
12,
29908,
13799,
313,
8848,
30088,
5513,
16985,
29892,
13,
12,
29928,
575,
537,
1426,
29892,
13,
12,
29908,
29954,
11191,
639,
2117,
29889,
313,
29906,
29900,
29900,
29941,
29892,
297,
25540,
5513,
16985,
29892,
13,
12,
1184,
29894,
1239,
1426,
29892,
13,
12,
29908,
29954,
11191,
313,
29906,
29900,
29900,
29941,
29892,
349,
7024,
297,
2316,
29889,
25540,
1723,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
2113,
278,
281,
290,
575,
22102,
1741,
278,
1629,
393,
9937,
294,
8626,
700,
305,
2113,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29956,
290,
575,
22102,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29941,
29941,
29947,
29955,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
290,
575,
22102,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29941,
29941,
29947,
29955,
29918,
29896,
5754,
376,
29924,
575,
22102,
29908,
306,
5265,
6059,
14210,
29967,
27835,
29995,
29931,
29891,
700,
305,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who won the womens singles event the year that Jonas Lyduch won?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11793221_4 (
Commander text,
Complement text,
Killed text,
Missing text,
Unit text,
Wounded text
);
CREATE TABLE table_1_11951237_4 (
Title text,
"Season #" numeric,
"Directed by" text,
"Original air date" text,
"Production code" text,
"Series #" numeric,
"Written by" text
);
CREATE TABLE table_1_12030612_9 (
"Directed by" text,
"Original air date" text,
"Season #" numeric
);
CREATE TABLE table_1_12163387_1 (
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Mixed doubles" text,
Year numeric,
"Womens doubles" text
);
CREATE TABLE table_1_11214212_1 (
"Naturalisation by residence" numeric,
"Naturalisation by marriage" numeric,
"Registration of a minor child" numeric,
"Numer of Jamaicans granted British citizenship" numeric,
"Registration by other means" numeric
);
CREATE TABLE table_1_1067441_1 (
"Population (2004 estimate)" numeric,
"Area (km²)" numeric,
Density text,
"GDP per cap. (2003, in €)" numeric,
Province text,
"GDP (2003, PPS in mil. € )" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Who won the womens singles event the year that Jonas Lyduch won?`
```sql
| SELECT "Womens singles" FROM table_1_12163387_1 WHERE "Mens singles" ILIKE '%Jonas%Lyduch%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1763,
610,
310,
278,
14574,
411,
263,
2522,
487,
310,
29871,
29955,
29941,
29899,
29953,
29955,
29899,
29953,
29947,
29922,
29906,
29900,
29947,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29906,
29900,
29896,
29955,
29947,
29918,
29896,
313,
13,
12,
29908,
12883,
310,
7632,
29908,
16985,
29892,
13,
12,
29908,
1170,
310,
278,
9459,
29908,
1426,
29892,
13,
12,
29908,
29907,
5060,
3309,
313,
2527,
414,
5513,
16985,
29892,
13,
12,
29908,
7011,
313,
2527,
414,
5513,
16985,
29892,
13,
12,
29907,
11960,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
1170,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29900,
29955,
29906,
29929,
29906,
29918,
29945,
313,
13,
12,
20779,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
1762,
610,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
22150,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29953,
29918,
29947,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29953,
29929,
29946,
29906,
29955,
29918,
29941,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
29892,
13,
12,
29909,
381,
1256,
1426,
29892,
13,
12,
29908,
29923,
12907,
396,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
1763,
610,
310,
278,
14574,
411,
263,
2522,
487,
310,
29871,
29955,
29941,
29899,
29953,
29955,
29899,
29953,
29947,
29922,
29906,
29900,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
1762,
610,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
1762,
610,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29947,
29900,
29955,
29906,
29929,
29906,
29918,
29945,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29955,
29941,
29899,
29953,
29955,
29899,
29953,
29947,
29922,
29906,
29900,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the To par of the Player with a Score of 73-67-68=208?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10020178_1 (
"Year of construction" numeric,
"Name of the Lake" text,
"Crest length (meters)" numeric,
"Height (meters)" numeric,
Canton text,
Type text,
Name text
);
CREATE TABLE table_2_17807292_5 (
Country text,
Player text,
"To par" text,
Score text,
Place text
);
CREATE TABLE table_1_11111116_8 (
"Original air date" text,
"U.S. viewers (million)" text,
"Directed by" text,
Title text,
"No. in series" numeric,
"Written by" text,
"No. in season" numeric
);
CREATE TABLE table_1_10269427_3 (
"Directed by" text,
"Production code" numeric,
Airdate text,
"Episode #" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the To par of the Player with a Score of 73-67-68=208?`
```sql
| SELECT "To par" FROM table_2_17807292_5 WHERE "Score" ILIKE '%73-67-68=208%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
10401,
29871,
29929,
29901,
29946,
29955,
29901,
29941,
29947,
338,
278,
931,
313,
329,
29883,
29897,
920,
1784,
20398,
310,
26271,
526,
727,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29953,
29906,
29906,
29896,
29946,
29918,
29896,
313,
13,
12,
29908,
5323,
428,
5167,
29908,
1426,
29892,
13,
12,
29908,
2539,
313,
4591,
5513,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
2539,
313,
1762,
5513,
1426,
29892,
13,
12,
3664,
267,
1426,
29892,
13,
12,
29908,
1170,
310,
2184,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29946,
29896,
29929,
29906,
29896,
29929,
29900,
29918,
29896,
313,
13,
12,
13992,
4279,
1426,
29892,
13,
12,
8208,
4279,
1426,
29892,
13,
12,
29908,
2481,
313,
26913,
5513,
1426,
29892,
13,
12,
8498,
386,
1426,
29892,
13,
12,
29924,
4211,
4279,
1426,
29892,
13,
12,
29908,
2539,
313,
14995,
14995,
29899,
7428,
29899,
7858,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29953,
29918,
29947,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
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,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
10401,
29871,
29929,
29901,
29946,
29955,
29901,
29941,
29947,
338,
278,
931,
313,
329,
29883,
29897,
920,
1784,
20398,
310,
26271,
526,
727,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
13992,
4279,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29896,
29929,
29906,
29896,
29929,
29900,
29918,
29896,
5754,
376,
2481,
313,
26913,
5513,
306,
5265,
6059,
14210,
29929,
29901,
29946,
29955,
29901,
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,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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,
5097,
21122,
29898,
13992,
4279,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29896,
29929,
29906,
29896,
29929,
29900,
29918,
29896,
5754,
376,
2481,
313,
26913,
5513,
306,
5265,
6059,
14210,
29929,
29901,
29946,
29955,
29901,
29941,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`When 9:47:38 is the time (utc) how many measurements of latitude are there?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12562214_1 (
"Traction Type" text,
"Date (From)" text,
Location text,
"Date (To)" text,
Notes text,
"Name of System" text
);
CREATE TABLE table_1_24192190_1 (
Latitude text,
Longitude text,
"Time (UTC)" text,
Depth text,
Magnitude text,
"Date (YYYY-MM-DD)" text
);
CREATE TABLE table_1_11111116_8 (
"Directed by" text,
Title text,
"Original air date" text,
"No. in series" numeric,
"Written by" text,
"U.S. viewers (million)" text,
"No. in season" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`When 9:47:38 is the time (utc) how many measurements of latitude are there?`
```sql
| SELECT COUNT(Latitude) FROM table_1_24192190_1 WHERE "Time (UTC)" ILIKE '%9:47:38%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
1353,
310,
4628,
889,
5861,
3291,
363,
29871,
29941,
3748,
29952,
13,
13,
2277,
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,
29906,
29941,
29896,
29941,
29918,
29946,
313,
13,
12,
13072,
29873,
482,
1426,
29892,
13,
12,
29908,
29931,
29906,
7090,
29908,
1426,
29892,
13,
12,
23923,
23860,
1426,
29892,
13,
12,
29908,
7439,
1353,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
6857,
1213,
1426,
29892,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
29943,
1744,
1426,
29892,
13,
12,
29908,
3195,
1353,
29908,
1426,
29892,
13,
12,
29908,
19729,
8666,
313,
3148,
29928,
1723,
29908,
1426,
29892,
13,
12,
29911,
11191,
1426,
29892,
13,
12,
29908,
29879,
10299,
1353,
29908,
1426,
29892,
13,
12,
11373,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29929,
29946,
29929,
29945,
29900,
29918,
29896,
313,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
10844,
1312,
16985,
29892,
13,
12,
29908,
6572,
2366,
16377,
29908,
1426,
29892,
13,
12,
1168,
1659,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29896,
29900,
29929,
29896,
29896,
29946,
29945,
29918,
29896,
313,
13,
12,
29949,
407,
265,
1237,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
18700,
8360,
5861,
3291,
29908,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
14199,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29947,
29906,
29945,
29929,
29953,
29918,
29896,
313,
13,
12,
29908,
19409,
13853,
978,
29908,
1426,
29892,
13,
12,
27867,
2638,
362,
1426,
29892,
13,
12,
29908,
26666,
21362,
29908,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29941,
29953,
29947,
29941,
29900,
29918,
29946,
313,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3434,
29885,
4408,
29908,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
2865,
943,
4408,
29908,
1426,
29892,
13,
12,
29940,
290,
3381,
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,
4628,
889,
5861,
3291,
363,
29871,
29941,
3748,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
18700,
8360,
5861,
3291,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29896,
29900,
29929,
29896,
29896,
29946,
29945,
29918,
29896,
5754,
376,
14199,
29908,
353,
525,
29941,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
703,
18700,
8360,
5861,
3291,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29896,
29900,
29929,
29896,
29896,
29946,
29945,
29918,
29896,
5754,
376,
14199,
29908,
353,
525,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the number of black knights points for 3 game`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11602313_4 (
Voltage text,
"L2 cache" text,
Frequency text,
"Part number(s)" text,
"Mult." text,
"Release date" text,
FSB text,
"Model number" text,
"Release price ( USD )" text,
TDP text,
"sSpec number" text,
Socket text
);
CREATE TABLE table_1_11094950_1 (
Division text,
Joined numeric,
"Previous Conference" text,
Conference text,
Location text,
Team text
);
CREATE TABLE table_1_21091145_1 (
Opponents numeric,
Opponent text,
Result text,
"Black Knights points" numeric,
Record text,
Date text,
Game numeric
);
CREATE TABLE table_1_10082596_1 (
"Team Nickname" text,
Affiliation text,
"Primary conference" text,
Enrollment numeric,
Founded numeric,
School text
);
CREATE TABLE table_1_10236830_4 (
Director text,
"Film Name" text,
Country text,
"Actors Name" text,
Nomination text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the number of black knights points for 3 game`
```sql
| SELECT COUNT("Black Knights points") FROM table_1_21091145_1 WHERE "Game" = '3' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
10868,
363,
29871,
29896,
29900,
29941,
29889,
29955,
5864,
285,
29885,
28191,
1189,
20463,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29946,
29900,
29900,
29906,
29947,
29918,
29896,
313,
13,
12,
20755,
1426,
29892,
13,
12,
29908,
6730,
10097,
29908,
1426,
29892,
13,
12,
29908,
8897,
10097,
29908,
1426,
29892,
13,
12,
29923,
3334,
2631,
1426,
29892,
13,
12,
29908,
2290,
25724,
491,
29908,
1426,
29892,
13,
12,
18984,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29906,
313,
13,
12,
9075,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
1426,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29900,
29906,
29941,
29947,
29947,
29918,
29896,
313,
13,
12,
12883,
16985,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
29908,
4597,
29889,
24791,
29908,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
13454,
22450,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29955,
29929,
29896,
29946,
29900,
29955,
29953,
29918,
29896,
313,
13,
12,
29933,
9502,
292,
1426,
29892,
13,
12,
23923,
23860,
1426,
29892,
13,
12,
29908,
21472,
26226,
29908,
1426,
29892,
13,
12,
29907,
4293,
647,
1426,
29892,
13,
12,
29907,
957,
482,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29955,
29955,
29900,
29945,
29918,
29896,
313,
13,
12,
4299,
1426,
29892,
13,
12,
29908,
3317,
29889,
4842,
802,
472,
364,
3358,
29908,
1426,
29892,
13,
12,
29908,
10599,
12272,
9552,
29908,
1426,
29892,
13,
12,
29908,
10599,
5285,
669,
11486,
29871,
29900,
29899,
29896,
29900,
29900,
8848,
29914,
29882,
29908,
1426,
29892,
13,
12,
29908,
3317,
29889,
3184,
573,
3081,
29908,
1426,
29892,
13,
12,
29908,
10599,
1134,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29929,
29945,
29947,
29896,
29929,
29918,
29896,
313,
13,
12,
29908,
7583,
22102,
24034,
29908,
1426,
29892,
13,
12,
29908,
6730,
1629,
5318,
29908,
16985,
29892,
13,
12,
29908,
29928,
283,
7586,
399,
29994,
29931,
29908,
1426,
29892,
13,
12,
29908,
29911,
583,
5318,
29908,
16985,
29892,
13,
12,
29908,
10873,
793,
399,
29994,
29931,
29908,
1426,
29892,
13,
12,
29908,
7583,
27641,
24034,
29908,
1426,
29892,
13,
12,
29908,
11536,
399,
29994,
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,
1170,
278,
10868,
363,
29871,
29896,
29900,
29941,
29889,
29955,
5864,
285,
29885,
28191,
1189,
20463,
13,
28956,
2850,
13,
5097,
3878,
23860,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29929,
29896,
29946,
29900,
29955,
29953,
29918,
29896,
5754,
376,
29933,
9502,
292,
29908,
306,
5265,
6059,
14210,
29896,
29900,
29941,
29889,
29955,
29995,
29923,
1089,
1927,
29995,
22192,
29995,
29928,
666,
1189,
29930,
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,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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,
5097,
3878,
23860,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29929,
29896,
29946,
29900,
29955,
29953,
29918,
29896,
5754,
376,
29933,
9502,
292,
29908,
306,
5265,
6059,
14210,
29896,
29900,
29941,
29889,
29955,
29995,
29923,
1089,
1927,
29995,
22192,
29995,
29928,
666,
1189,
29930,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the frequency for 103.7 energy fm dipolog*`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11240028_1 (
Character text,
"First appearance" text,
"Last appearance" text,
Episodes text,
"Portrayed by" text,
Duration text
);
CREATE TABLE table_1_10015132_2 (
Player text,
Nationality text,
Position text,
"School/Club Team" text,
"No." text,
"Years in Toronto" text
);
CREATE TABLE table_1_12002388_1 (
Year numeric,
League text,
"Reg. Season" text,
"Open Cup" text,
Division text,
Playoffs text
);
CREATE TABLE table_1_27914076_1 (
Branding text,
Frequency text,
"Power kW" text,
Callsign text,
Coverage text
);
CREATE TABLE table_1_1147705_1 (
model text,
"max. torque at rpm" text,
"engine displacement" text,
"engine configuration & notes 0-100km/h" text,
"max. motive power" text,
"engine type" text
);
CREATE TABLE table_1_10295819_1 (
"Current singles ranking" text,
"First year played" numeric,
"Doubles W–L" text,
"Ties played" numeric,
"Singles W–L" text,
"Current doubles ranking" text,
"Total W–L" text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the frequency for 103.7 energy fm dipolog*`
```sql
| SELECT Frequency FROM table_1_27914076_1 WHERE "Branding" ILIKE '%103.7%Energy%FM%Dipolog*%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
9939,
1353,
263,
7303,
756,
26642,
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,
29906,
29900,
29946,
29906,
29946,
29896,
29946,
29900,
29918,
29941,
313,
13,
12,
29908,
29934,
804,
491,
6588,
29908,
16985,
29892,
13,
12,
22150,
16985,
29892,
13,
12,
29909,
19698,
1426,
29892,
13,
12,
29908,
11536,
3291,
29908,
16985,
29892,
13,
12,
29908,
4557,
310,
270,
2925,
29908,
16985,
29892,
13,
12,
29907,
283,
552,
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,
29908,
27933,
11454,
303,
29908,
1426,
29892,
13,
12,
29967,
332,
275,
29467,
1426,
29892,
13,
12,
29908,
27933,
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,
5618,
29915,
29879,
278,
9939,
1353,
263,
7303,
756,
26642,
472,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
22150,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29900,
29946,
29906,
29946,
29896,
29946,
29900,
29918,
29941,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
22150,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29900,
29946,
29906,
29946,
29896,
29946,
29900,
29918,
29941,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the highest number a couple has ranked at?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_20424140_3 (
"Rank by average" numeric,
Place numeric,
Average text,
"Total points" numeric,
"Number of dances" numeric,
Couple text
);
CREATE TABLE table_1_120778_1 (
"Against Prohibition" numeric,
"For Prohibition" numeric,
"Percent Against" text,
Jurisdiction text,
"Percent For" text
);
```
### Answer
Here is the SQL query that answers the question:
`What's the highest number a couple has ranked at?`
```sql
| SELECT MAX(Place) FROM table_1_20424140_3 |