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,
22110,
471,
297,
278,
29871,
29906,
29900,
29900,
29945,
2706,
411,
278,
6297,
2791,
274,
14899,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29906,
29945,
29947,
29947,
29918,
29941,
313,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29953,
29946,
29941,
29953,
29918,
29906,
313,
13,
12,
29908,
29906,
29900,
29900,
29947,
9550,
23768,
4643,
29908,
1426,
29892,
13,
12,
29908,
26036,
23291,
4834,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29945,
2706,
29908,
1426,
29892,
13,
12,
16727,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29896,
5947,
29899,
29933,
9972,
1582,
11459,
2561,
29908,
1426,
29892,
13,
12,
29908,
19984,
16239,
27207,
4834,
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,
297,
278,
29871,
29906,
29900,
29900,
29945,
2706,
411,
278,
6297,
2791,
274,
14899,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
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,
5097,
376,
29906,
29900,
29900,
29945,
2706,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29946,
29941,
29953,
29918,
29906,
5754,
376,
16727,
29908,
306,
5265,
6059,
14210,
9802,
29995,
29907,
14899,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who was in the 2005 film with the role mark cohen?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1132588_3 (
"Fastest Lap" text,
Constructor text,
"Grand Prix" text,
"Pole Position" text,
"Rd." numeric,
Report text,
"Winning Driver" text
);
CREATE TABLE table_1_26436_2 (
"2008 Final Performance Film" text,
"Original Broadway Cast" text,
"2005 film" text,
Role text,
"2011 Off-Broadway Revival" text,
"Hollywood Bowl Cast" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who was in the 2005 film with the role mark cohen?`
```sql
| SELECT "2005 film" FROM table_1_26436_2 WHERE "Role" ILIKE '%Mark%Cohen%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
29911,
514,
592,
278,
6588,
21614,
363,
770,
310,
29871,
29945,
29900,
617,
322,
7115,
310,
29871,
29947,
386,
29952,
13,
13,
2277,
29937,
5470,
1102,
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,
29908,
29924,
575,
13853,
978,
29908,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29908,
29956,
290,
575,
13853,
978,
29908,
1426,
29892,
13,
12,
10844,
1312,
1426,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29896,
29929,
29953,
29918,
29941,
313,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
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,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29941,
29946,
29953,
29900,
29946,
29900,
29918,
29906,
313,
13,
12,
12883,
16985,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
2385,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
29911,
514,
592,
278,
6588,
21614,
363,
770,
310,
29871,
29945,
29900,
617,
322,
7115,
310,
29871,
29947,
386,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
29898,
29956,
1144,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29941,
29946,
29953,
29900,
29946,
29900,
29918,
29906,
5754,
376,
2385,
29908,
306,
5265,
6059,
14210,
29945,
29900,
617,
29001,
5300,
376,
29934,
804,
29908,
306,
5265,
6059,
14210,
29947,
386,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29956,
1144,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29941,
29946,
29953,
29900,
29946,
29900,
29918,
29906,
5754,
376,
2385,
29908,
306,
5265,
6059,
14210,
29945,
29900,
617,
29001,
5300,
376,
29934,
804,
29908,
306,
5265,
6059,
14210,
29947,
386,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Tell me the average wins for class of 50cc and rank of 8th`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10577579_2 (
"Mens Nickname" text,
Type text,
Institution text,
Founded numeric,
Enrollment numeric,
"Womens Nickname" text,
Joined text,
Location text
);
CREATE TABLE table_1_11960196_3 (
Score text,
"High assists" text,
Game numeric,
"High rebounds" text,
"Location Attendance" text,
"High points" text,
Series text,
Date text
);
CREATE TABLE table_2_10346040_2 (
Year numeric,
Rank text,
Team text,
Points numeric,
Wins numeric,
Class text
);
```
### Answer
Here is the SQL query that answers the question:
`Tell me the average wins for class of 50cc and rank of 8th`
```sql
| SELECT AVG(Wins) FROM table_2_10346040_2 WHERE "Class" ILIKE '%50cc%' AND "Rank" ILIKE '%8th%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
2706,
471,
15074,
373,
29871,
29906,
29906,
29914,
29941,
29914,
29900,
29953,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29955,
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,
29896,
29955,
29896,
29941,
29941,
29900,
29941,
29918,
29906,
313,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
29924,
7310,
310,
25619,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
11757,
6906,
29908,
1426,
29892,
13,
12,
29908,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29900,
29900,
29945,
29906,
29900,
29918,
29906,
313,
13,
12,
2539,
1426,
29892,
13,
12,
1123,
7334,
993,
1426,
29892,
13,
12,
29909,
1328,
1426,
29892,
13,
12,
3434,
29885,
1426,
29892,
13,
12,
29908,
17392,
272,
29898,
29879,
5513,
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,
7030,
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,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29955,
29955,
29947,
29918,
29896,
313,
13,
12,
29908,
14769,
475,
303,
1019,
6335,
654,
29908,
16985,
29892,
13,
12,
29908,
27933,
1152,
29908,
1426,
29892,
13,
12,
29908,
27933,
11454,
303,
29908,
1426,
29892,
13,
12,
29967,
332,
275,
29467,
1426,
29892,
13,
12,
29908,
2831,
1019,
6335,
654,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
2706,
471,
15074,
373,
29871,
29906,
29906,
29914,
29941,
29914,
29900,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
4643,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29900,
29900,
29945,
29906,
29900,
29918,
29906,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
29906,
29906,
29914,
29941,
29914,
29900,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What film was awarded on 22/3/06?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677100_7 (
Hometown text,
School text,
"MLB Draft" text,
Player text,
Position text
);
CREATE TABLE table_1_11713303_2 (
Team text,
"Manner of departure" text,
"Date of appointment" text,
"Date of vacancy" text,
"Replaced by" text,
"Outgoing manager" text
);
CREATE TABLE table_2_12200520_2 (
Date text,
Recipient text,
Award text,
Film text,
"Director(s)" text
);
CREATE TABLE table_1_10718192_2 (
"No. in series" numeric,
Title text,
"Original air date" text,
"U.S. viewers (millions)" text,
"Directed by" text,
"Written by" text,
"No. in season" numeric
);
CREATE TABLE table_1_120778_1 (
"Against Prohibition" numeric,
"Percent For" text,
"Percent Against" text,
Jurisdiction text,
"For Prohibition" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What film was awarded on 22/3/06?`
```sql
| SELECT Film FROM table_2_12200520_2 WHERE "Date" ILIKE '%22/3/06%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
2831,
385,
20431,
310,
29871,
29896,
29899,
29941,
29892,
825,
471,
278,
29871,
29906,
299,
2814,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29896,
29900,
29900,
29947,
29955,
29918,
29953,
313,
13,
12,
7030,
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,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29953,
29896,
29896,
29946,
29918,
29906,
313,
13,
12,
29908,
6779,
17907,
10079,
29908,
1426,
29892,
13,
12,
23785,
1426,
29892,
13,
12,
29908,
29963,
12184,
322,
1134,
29908,
1426,
29892,
13,
12,
1523,
1860,
1426,
29892,
13,
12,
1888,
14607,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29906,
29906,
29955,
29946,
29946,
29918,
29906,
313,
13,
12,
28867,
1426,
29892,
13,
12,
5809,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
11882,
1266,
10343,
29908,
1426,
29892,
13,
12,
29908,
19729,
4712,
29908,
1426,
29892,
13,
12,
29908,
29907,
3968,
9681,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29953,
29929,
29929,
29947,
29906,
29953,
29918,
29906,
313,
13,
12,
29908,
19409,
29871,
29906,
29908,
1426,
29892,
13,
12,
29908,
29909,
1505,
1213,
1426,
29892,
13,
12,
29908,
19409,
29871,
29896,
29908,
1426,
29892,
13,
12,
29908,
29906,
299,
2814,
29908,
1426,
29892,
13,
12,
29908,
29896,
303,
2814,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
2831,
385,
20431,
310,
29871,
29896,
29899,
29941,
29892,
825,
471,
278,
29871,
29906,
299,
2814,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29906,
299,
2814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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,
5097,
376,
29906,
299,
2814,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29953,
29929,
29929,
29947,
29906,
29953,
29918,
29906,
5754,
376,
29909,
1505,
1213,
306,
5265,
6059,
14210,
29896,
29899,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`For an aggregate of 1-3, what was the 2nd leg?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10610087_6 (
Title text,
"No. in season" numeric,
"No. in series" numeric,
"Written by" text,
"Directed by" text,
"Original air date" text
);
CREATE TABLE table_1_1206114_2 (
"NetFlow Version" text,
Models text,
"Vendor and type" text,
Comments text,
Implementation text
);
CREATE TABLE table_1_11222744_2 (
Studio text,
Format text,
Year numeric,
"Copyright Information" text,
"Release Date" text,
"Catalog Number" text
);
CREATE TABLE table_2_12699826_2 (
"Team 2" text,
"Agg." text,
"Team 1" text,
"2nd leg" text,
"1st leg" text
);
```
### Answer
Here is the SQL query that answers the question:
`For an aggregate of 1-3, what was the 2nd leg?`
```sql
| SELECT "2nd leg" FROM table_2_12699826_2 WHERE "Agg." ILIKE '%1-3%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
260,
986,
793,
505,
385,
2441,
4799,
2635,
310,
4779,
29871,
29896,
29929,
29892,
29871,
29896,
29929,
29929,
29947,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29900,
29955,
29945,
29946,
29953,
29918,
29906,
313,
13,
12,
27795,
1426,
29892,
13,
12,
29909,
386,
2810,
1426,
29892,
13,
12,
10840,
25217,
1426,
29892,
13,
12,
29934,
4821,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29943,
16750,
1426,
29892,
13,
12,
29903,
1251,
11427,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29945,
29929,
29929,
29929,
29918,
29896,
313,
13,
12,
29908,
5098,
29931,
8583,
29908,
1426,
29892,
13,
12,
29908,
3563,
497,
23868,
396,
29908,
16985,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29945,
29906,
29955,
29945,
29896,
29918,
29906,
313,
13,
12,
29908,
6508,
313,
12690,
29892,
2106,
5513,
1426,
29892,
13,
12,
29908,
11536,
9681,
310,
399,
1036,
29908,
1426,
29892,
13,
12,
29908,
29979,
538,
4408,
29908,
1426,
29892,
13,
12,
29908,
7827,
24479,
4240,
29908,
1426,
29892,
13,
12,
29908,
2713,
666,
28025,
5556,
2147,
287,
29908,
1426,
29892,
13,
12,
29908,
29896,
303,
1383,
666,
360,
27657,
4712,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29896,
29945,
313,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
16985,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29896,
29906,
29941,
29955,
29918,
29946,
313,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29955,
313,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
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,
260,
986,
793,
505,
385,
2441,
4799,
2635,
310,
4779,
29871,
29896,
29929,
29892,
29871,
29896,
29929,
29929,
29947,
29952,
13,
28956,
2850,
13,
5097,
18527,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29896,
29906,
29941,
29955,
29918,
29946,
5754,
376,
26036,
4799,
2635,
29908,
306,
5265,
6059,
14210,
29924,
1279,
29995,
29896,
29929,
24163,
29896,
29929,
29929,
29947,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18527,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29896,
29906,
29941,
29955,
29918,
29946,
5754,
376,
26036,
4799,
2635,
29908,
306,
5265,
6059,
14210,
29924,
1279,
29995,
29896,
29929,
24163,
29896,
29929,
29929,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which tittles have an original air date of March 19, 1998`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12407546_2 (
Running text,
Athlete text,
Swimming text,
Riding text,
"#" numeric,
Total numeric,
Fencing text,
Shooting text
);
CREATE TABLE table_1_12165999_1 (
"AFL Team" text,
"Overall Pick #" numeric,
College text,
Position text,
Player text
);
CREATE TABLE table_1_11552751_2 (
"Location (city, state)" text,
"Total Number of Ways" text,
"Yard Name" text,
"total vessels built" text,
"Ship Types Delivered" text,
"1st Ship Delivery Date" text
);
CREATE TABLE table_1_11734041_15 (
"Height in Ft." text,
"No.(s)" numeric,
"School/Club Team/Country" text,
"Years for Rockets" text
);
CREATE TABLE table_1_11951237_4 (
"Season #" numeric,
"Original air date" text,
"Written by" text,
"Series #" numeric,
"Production code" text,
"Directed by" text,
Title text
);
CREATE TABLE table_1_11545282_7 (
Nationality text,
"No." numeric,
"School/Club Team" text,
"Years for Jazz" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which tittles have an original air date of March 19, 1998`
```sql
| SELECT Title FROM table_1_11951237_4 WHERE "Original air date" ILIKE '%March%19,%1998%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
22746,
4812,
29891,
18266,
29892,
746,
22746,
537,
4360,
9841,
338,
376,
29946,
29899,
29946,
29899,
29900,
813,
288,
3634,
29877,
813,
7902,
2185,
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,
29945,
29896,
29906,
29941,
29955,
29918,
29906,
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,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
14958,
936,
17838,
322,
4823,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29946,
29947,
29953,
29929,
29953,
29918,
29941,
313,
13,
12,
29908,
29956,
10552,
24628,
29908,
1426,
29892,
13,
12,
29908,
22930,
537,
1754,
29908,
1426,
29892,
13,
12,
29908,
12883,
1754,
29908,
1426,
29892,
13,
12,
2385,
1426,
29892,
13,
12,
2517,
9765,
9945,
1426,
29892,
13,
12,
29908,
22930,
537,
21634,
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,
22746,
4812,
29891,
18266,
29892,
746,
22746,
537,
4360,
9841,
338,
376,
29946,
29899,
29946,
29899,
29900,
813,
288,
3634,
29877,
813,
7902,
2185,
8652,
29952,
13,
28956,
2850,
13,
5097,
376,
22930,
537,
1754,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29946,
29947,
29953,
29929,
29953,
29918,
29941,
5754,
376,
22930,
537,
21634,
29908,
306,
5265,
6059,
14210,
29946,
29899,
29946,
29899,
29900,
29995,
30003,
29995,
3634,
3634,
29995,
30003,
29995,
4183,
2185,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
22930,
537,
1754,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29946,
29947,
29953,
29929,
29953,
29918,
29941,
5754,
376,
22930,
537,
21634,
29908,
306,
5265,
6059,
14210,
29946,
29899,
29946,
29899,
29900,
29995,
30003,
29995,
3634,
3634,
29995,
30003,
29995,
4183,
2185,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Quantitiy Made, when Quantity Preserved is "4-4-0 — oooo — american"?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11951237_2 (
"Directed by" text,
"Season #" numeric,
"Original air date" text,
"Production code" text,
"Series #" numeric,
"Written by" text,
Title text,
"Musical guest and song" text
);
CREATE TABLE table_2_17248696_3 (
"Wheel arrangement" text,
"Quantity made" text,
"Year made" text,
Class text,
Manufacturer text,
"Quantity preserved" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Quantitiy Made, when Quantity Preserved is "4-4-0 — oooo — american"?`
```sql
| SELECT "Quantity made" FROM table_2_17248696_3 WHERE "Quantity preserved" ILIKE '%4-4-0%—%oooo%—%american%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
9939,
1353,
310,
2750,
746,
278,
4328,
471,
29871,
29945,
29947,
322,
278,
3001,
5318,
471,
901,
1135,
29871,
29906,
29906,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29946,
29929,
29953,
29918,
29896,
313,
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,
2539,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29956,
3993,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29955,
29947,
29953,
29955,
29918,
29906,
313,
13,
12,
29907,
2904,
513,
414,
1426,
29892,
13,
12,
3664,
267,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
2539,
4240,
29908,
1426,
29892,
13,
12,
4557,
1426,
29892,
13,
12,
29908,
29928,
1150,
292,
21266,
1379,
29908,
1426,
29892,
13,
12,
29908,
8431,
3955,
12959,
29908,
1426,
29892,
13,
12,
29908,
29956,
10552,
24628,
29908,
1426,
29892,
13,
12,
5627,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29900,
29900,
29941,
29955,
29945,
29918,
29896,
313,
13,
12,
8003,
16985,
29892,
13,
12,
14769,
475,
303,
16985,
29892,
13,
12,
13454,
287,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29931,
520,
16985,
29892,
13,
12,
29928,
17678,
1426,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
24515,
1233,
16985,
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,
29923,
12907,
1426,
29892,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
1043,
414,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
9939,
1353,
310,
2750,
746,
278,
4328,
471,
29871,
29945,
29947,
322,
278,
3001,
5318,
471,
901,
1135,
29871,
29906,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
14769,
475,
303,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29900,
29900,
29941,
29955,
29945,
29918,
29896,
5754,
376,
29928,
17678,
29908,
306,
5265,
6059,
14210,
29945,
29947,
29001,
5300,
376,
13454,
287,
29908,
1405,
525,
29906,
29906,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18134,
29898,
14769,
475,
303,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29900,
29900,
29941,
29955,
29945,
29918,
29896,
5754,
376,
29928,
17678,
29908,
306,
5265,
6059,
14210,
29945,
29947,
29001,
5300,
376,
13454,
287,
29908,
1405,
525,
29906,
29906,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the highest number of against when the difference was 58 and the total played was more than 22?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11622496_1 (
"Purse( $ )" numeric,
Score text,
Tournament text,
Date text,
"1st Prize( $ )" text,
Location text,
Winner text
);
CREATE TABLE table_1_1157867_2 (
Cylinders text,
Notes text,
Name text,
"Date built" text,
Number text,
"Driving wheels" text,
"Boiler pressure" text,
"Wheel arrangement" text,
Builder text
);
CREATE TABLE table_2_15400375_1 (
Position numeric,
Against numeric,
Played numeric,
Team text,
Lost numeric,
Difference text,
Points numeric,
Drawn numeric
);
CREATE TABLE table_1_11235334_2 (
"Weekly Rank for Living" text,
Episode text,
Timeslot text,
"#" numeric,
"Air Date" text,
Viewers text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the highest number of against when the difference was 58 and the total played was more than 22?`
```sql
| SELECT MAX(Against) FROM table_2_15400375_1 WHERE "Difference" ILIKE '%58%' AND "Played" > '22' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
20084,
322,
281,
16697,
393,
4799,
29879,
29871,
29906,
29947,
10111,
653,
29871,
29906,
29900,
29900,
29955,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29896,
29900,
313,
13,
12,
27325,
537,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29925,
860,
16985,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29941,
29947,
29900,
29906,
29918,
29896,
313,
13,
12,
12412,
1426,
29892,
13,
12,
29908,
19111,
3090,
914,
330,
799,
11959,
29908,
1426,
29892,
13,
12,
29908,
21472,
29892,
2125,
2696,
29908,
1426,
29892,
13,
12,
29908,
21472,
29892,
9126,
29908,
1426,
29892,
13,
12,
29908,
1523,
2590,
11959,
29908,
1426,
29892,
13,
12,
29908,
25375,
1662,
21700,
29908,
1426,
29892,
13,
12,
29908,
29928,
719,
7688,
29908,
1426,
29892,
13,
12,
29908,
29907,
768,
936,
5272,
4279,
910,
338,
278,
9939,
5272,
4279,
472,
607,
278,
6012,
508,
6176,
967,
2989,
9126,
3081,
21700,
29889,
319,
29205,
445,
5272,
4279,
29892,
3081,
20074,
1283,
411,
3171,
408,
411,
263,
18180,
7051,
381,
630,
6012,
869,
2823,
5670,
3090,
914,
29937,
24528,
4279,
9545,
363,
4902,
1213,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29953,
29947,
29947,
29946,
29945,
29955,
29929,
29918,
29896,
313,
13,
12,
29925,
1745,
10883,
1426,
29892,
13,
12,
29908,
8514,
29898,
29879,
5513,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29967,
566,
2710,
1426,
29892,
13,
12,
29908,
2008,
7040,
322,
399,
16697,
29908,
1426,
29892,
13,
12,
13724,
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,
20084,
322,
281,
16697,
393,
4799,
29879,
29871,
29906,
29947,
10111,
653,
29871,
29906,
29900,
29900,
29955,
29952,
13,
28956,
2850,
13,
5097,
376,
2008,
7040,
322,
399,
16697,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29947,
29947,
29946,
29945,
29955,
29929,
29918,
29896,
5754,
376,
29925,
1745,
10883,
29908,
306,
5265,
6059,
14210,
29906,
29947,
29995,
29967,
15623,
653,
29995,
29906,
29900,
29900,
29955,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
2008,
7040,
322,
399,
16697,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29953,
29947,
29947,
29946,
29945,
29955,
29929,
29918,
29896,
5754,
376,
29925,
1745,
10883,
29908,
306,
5265,
6059,
14210,
29906,
29947,
29995,
29967,
15623,
653,
29995,
29906,
29900,
29900,
29955,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the seasons and winners that airs 28 january 2007`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1013129_10 (
Nationality text,
Player text,
Pick numeric,
"NHL team" text,
"College/junior/club team" text,
Position text
);
CREATE TABLE table_1_1123802_1 (
Engine text,
"Supercharger gear ratio" text,
"Power, takeoff" text,
"Power, continuous" text,
"Compression ratio" text,
"Octane rating" text,
"Dry weight" text,
"Critical altitude This is the highest altitude at which the engine can achieve its full continuous power rating. Above this altitude, power falls off with height as with a naturally aspirated engine . See Supercharger#Altitude effects for details." text
);
CREATE TABLE table_1_16884579_1 (
Premiere text,
"Host(s)" text,
Name text,
Country text,
Judges text,
"Seasons and Winners" text,
Network text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the seasons and winners that airs 28 january 2007`
```sql
| SELECT "Seasons and Winners" FROM table_1_16884579_1 WHERE "Premiere" ILIKE '%28%January%2007%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
2635,
746,
278,
3448,
3815,
338,
9232,
17418,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29906,
29953,
29941,
29918,
29896,
29941,
313,
13,
12,
19204,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29929,
29946,
29946,
29918,
29953,
313,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
9182,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29955,
29906,
29945,
29941,
29918,
29896,
313,
13,
12,
2539,
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,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
8158,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5816,
338,
278,
2635,
746,
278,
3448,
3815,
338,
9232,
17418,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29955,
29906,
29945,
29941,
29918,
29896,
5754,
376,
29909,
1582,
3815,
29908,
306,
5265,
6059,
14210,
12873,
17418,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29955,
29906,
29945,
29941,
29918,
29896,
5754,
376,
29909,
1582,
3815,
29908,
306,
5265,
6059,
14210,
12873,
17418,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the date when the away team is melbourne?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11964263_13 (
Series text,
Game numeric,
"High assists" text,
Team text,
"Location Attendance" text,
Score text,
"High points" text,
"High rebounds" text
);
CREATE TABLE table_1_11960944_6 (
Date text,
Score text,
"High rebounds" text,
"Location Attendance" text,
Record text
);
CREATE TABLE table_2_10807253_1 (
Date text,
"Home team" text,
"Home team score" text,
Crowd numeric,
"Away team" text,
"Away team score" text,
Venue text
);
```
### Answer
Here is the SQL query that answers the question:
`what is the date when the away team is melbourne?`
```sql
| SELECT Date FROM table_2_10807253_1 WHERE "Away team" ILIKE '%melbourne%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
4086,
411,
263,
3444,
17745,
3464,
310,
29871,
29896,
29929,
29929,
29906,
29994,
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,
29906,
29918,
29896,
29946,
29953,
29955,
29906,
29953,
29955,
29918,
29906,
313,
13,
12,
29908,
19858,
362,
3464,
29908,
1426,
29892,
13,
12,
23923,
23860,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29902,
13429,
1426,
29892,
13,
12,
29908,
6268,
5167,
29908,
1426,
29892,
13,
12,
5709,
1426,
29892,
13,
12,
21233,
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,
9075,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29955,
29929,
29906,
29941,
29900,
29918,
29945,
313,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
29908,
29934,
290,
1175,
29875,
3611,
29908,
1426,
29892,
13,
12,
7422,
1426,
29892,
13,
12,
29949,
2200,
265,
16985,
29892,
13,
12,
29908,
29967,
21419,
968,
3611,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29947,
29946,
29896,
29955,
29941,
29918,
29896,
313,
13,
12,
29908,
12310,
2785,
313,
3596,
2207,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
29956,
279,
6669,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
855,
9716,
272,
412,
5513,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
29934,
359,
296,
4077,
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,
29900,
29953,
29896,
29900,
29900,
29947,
29955,
29918,
29941,
313,
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,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
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,
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,
29892,
13,
12,
29908,
20325,
15074,
313,
3247,
21203,
398,
5513,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
4086,
411,
263,
3444,
17745,
3464,
310,
29871,
29896,
29929,
29929,
29906,
29994,
29906,
29900,
29900,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
365,
19453,
29965,
10461,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29953,
29955,
29906,
29953,
29955,
29918,
29906,
5754,
376,
20779,
29908,
306,
5265,
6059,
14210,
29888,
11115,
29001,
5300,
376,
19858,
362,
3464,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29929,
29906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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
365,
19453,
29965,
10461,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29953,
29955,
29906,
29953,
29955,
29918,
29906,
5754,
376,
20779,
29908,
306,
5265,
6059,
14210,
29888,
11115,
29001,
5300,
376,
19858,
362,
3464,
29908,
306,
5265,
6059,
14210,
29896,
29929,
29929,
29906,
29994,
29906,
29900,
29900,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the language with a France publication range of 1992–2003?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1467267_2 (
"Publication range" text,
Frequency text,
Country text,
ISSN text,
"Document Type" text,
Status text,
Language text
);
CREATE TABLE table_1_11677691_10 (
School text,
Player text,
Hometown text,
College text,
Position text
);
CREATE TABLE table_1_10979230_5 (
"Release date" text,
"Romaji title" text,
Reference text,
Oricon numeric,
"Japanese title" text
);
CREATE TABLE table_1_12584173_1 (
"Population (Allora)" numeric,
"Population (Warwick)" numeric,
"Population (Stanthorpe)" numeric,
Year numeric,
"Population (Rosenthal)" numeric,
"Population (Glengallan)" numeric,
"Population (Region total)" numeric
);
CREATE TABLE table_1_10610087_3 (
"Written by" text,
"Directed by" text,
Title text,
"No. in series" numeric,
"Original air date" text,
"No. in season" numeric
);
CREATE TABLE table_1_11254821_2 (
"Points awarded (Gold)" numeric,
"Finishing position" text,
"Points awarded (Silver)" numeric,
"Points awarded (Satellite)" numeric,
"Points awarded (Platinum)" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the language with a France publication range of 1992–2003?`
```sql
| SELECT LANGUAGE FROM table_2_1467267_2 WHERE "Country" ILIKE '%france%' AND "Publication range" ILIKE '%1992–2003%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
797,
825,
4259,
892,
727,
29871,
29906,
29955,
14433,
322,
29871,
29945,
29947,
3291,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29900,
29900,
29953,
29896,
29918,
29955,
313,
13,
12,
29954,
1280,
1426,
29892,
13,
12,
20325,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
8120,
1338,
1426,
29892,
13,
12,
7900,
2879,
1426,
29892,
13,
12,
2008,
1658,
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,
29943,
16750,
1426,
29892,
13,
12,
29903,
1251,
11427,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
27795,
1426,
29892,
13,
12,
10840,
25217,
1426,
29892,
13,
12,
29908,
29909,
386,
2810,
313,
6632,
29907,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29896,
29896,
29947,
29941,
29918,
29906,
313,
13,
12,
29908,
10095,
307,
4038,
29908,
1426,
29892,
13,
12,
29908,
4557,
310,
22057,
313,
3289,
1718,
29933,
5513,
16985,
29892,
13,
12,
29908,
4557,
310,
22057,
313,
29956,
29967,
29907,
5513,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
399,
29967,
29907,
1723,
29908,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
1718,
7698,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29945,
29929,
29896,
29896,
29945,
29918,
29906,
313,
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,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
797,
825,
4259,
892,
727,
29871,
29906,
29955,
14433,
322,
29871,
29945,
29947,
3291,
29973,
29952,
13,
28956,
2850,
13,
5097,
24791,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29900,
29900,
29953,
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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
24791,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29900,
29900,
29953,
29896,
29918,
29955,
5754,
376,
8120,
1338,
29908,
306,
5265,
6059,
14210,
29906,
29955,
29001,
5300,
376,
20325,
29908,
306,
5265,
6059,
14210,
29945,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`In what season were there 27 goals and 58 points?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1790061_7 (
Games text,
Points text,
Name text,
Goals text,
Assists text,
Season text
);
CREATE TABLE table_1_12407546_1 (
Riding text,
Fencing text,
Shooting text,
"#" numeric,
Total numeric,
Running text,
Swimming text,
"Athlete (NOC)" text
);
CREATE TABLE table_1_1131183_2 (
"Metro area" text,
"Number of Jews (ASARB)" numeric,
"Number of Jews (WJC)" numeric,
"Rank ( WJC )" numeric,
"Rank (ARDA)" numeric
);
CREATE TABLE table_1_12159115_2 (
"Written by" text,
"Directed by" text,
"Series #" numeric,
"U.S. viewers (millions)" text,
"Production code" text,
"Original air date" text,
Title text
);
```
### Answer
Here is the SQL query that answers the question:
`In what season were there 27 goals and 58 points?`
```sql
| SELECT Season FROM table_2_1790061_7 WHERE "Goals" ILIKE '%27%' AND "Points" ILIKE '%58%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1629,
746,
2522,
566,
8749,
365,
14006,
2994,
344,
22071,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
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,
29900,
29955,
29896,
29896,
29918,
29946,
313,
13,
12,
370,
1030,
14641,
1426,
29892,
13,
12,
29908,
29967,
21419,
968,
14219,
5275,
29908,
1426,
29892,
13,
12,
29908,
24636,
4408,
29908,
1426,
29892,
13,
12,
28077,
16985,
29892,
13,
12,
29925,
1617,
283,
455,
362,
1426,
29892,
13,
12,
29908,
6980,
29898,
10764,
29902,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29941,
29906,
29955,
29941,
29929,
29918,
29906,
313,
13,
12,
29908,
2816,
29890,
2410,
29498,
29908,
1426,
29892,
13,
12,
29908,
20334,
300,
5167,
29908,
1426,
29892,
13,
12,
20334,
300,
1426,
29892,
13,
12,
29908,
6362,
522,
519,
491,
6160,
1426,
29892,
13,
12,
29908,
28516,
326,
1175,
272,
319,
11497,
313,
319,
29965,
1723,
29908,
1426,
29892,
13,
12,
29908,
9908,
616,
12885,
313,
29885,
29914,
29879,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29941,
29906,
29947,
29946,
29941,
29918,
29896,
313,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29941,
29941,
29947,
29906,
29929,
29918,
29896,
313,
13,
12,
19409,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29931,
2547,
16985,
29892,
13,
12,
2385,
1426,
29892,
13,
12,
29908,
9135,
1213,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29953,
29906,
29896,
29946,
29929,
29918,
29896,
313,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
19132,
29881,
2931,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
1426,
29892,
13,
12,
7030,
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,
5618,
338,
278,
1629,
746,
2522,
566,
8749,
365,
14006,
2994,
344,
22071,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29941,
29941,
29947,
29906,
29929,
29918,
29896,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
1557,
566,
8749,
29995,
6468,
1512,
29995,
2616,
344,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29941,
29941,
29947,
29906,
29929,
29918,
29896,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
1557,
566,
8749,
29995,
6468,
1512,
29995,
2616,
344,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the year when Scuderia Lancia Corse competed?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11390711_4 (
abbreviation text,
"Japanese orthography" text,
"English Name" text,
Foundation numeric,
Pronouciation text,
"Provider(IAI)" text
);
CREATE TABLE table_1_10932739_2 (
"Orbital Period" text,
"Planet Type" text,
Planet text,
"Detectable by:" text,
"Semimajor Axis ( AU )" text,
"Radial velocity (m/s)" text
);
CREATE TABLE table_1_12232843_1 (
"Mens doubles" text,
"Mens singles" text,
Season numeric,
"Mixed doubles" text,
"Womens singles" text,
"Womens doubles" text
);
CREATE TABLE table_2_1233829_1 (
Team text,
Year numeric,
Laps numeric,
Class text,
"Pos." text
);
CREATE TABLE table_1_11562149_1 (
"U.S. viewers (million)" text,
"Directed by" text,
"Original air date" text,
"Featured character(s)" text,
"No. in season" text,
"No. in series" text,
Title text,
"Written by" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the year when Scuderia Lancia Corse competed?`
```sql
| SELECT COUNT(YEAR) FROM table_2_1233829_1 WHERE "Team" ILIKE '%scuderia%lancia%corse%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
19604,
5253,
310,
5685,
943,
1156,
7115,
29871,
29896,
297,
278,
1605,
453,
1974,
313,
690,
1693,
616,
29897,
5214,
29973,
29952,
13,
13,
2277,
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,
29941,
29941,
29929,
29945,
29946,
29945,
29918,
29896,
313,
13,
12,
7011,
1426,
29892,
13,
12,
26010,
16985,
29892,
13,
12,
29943,
417,
943,
16985,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
8893,
292,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29896,
29906,
313,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29947,
313,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
29925,
860,
16985,
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,
19604,
5253,
310,
5685,
943,
1156,
7115,
29871,
29896,
297,
278,
1605,
453,
1974,
313,
690,
1693,
616,
29897,
5214,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
29943,
417,
943,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29941,
29941,
29929,
29945,
29946,
29945,
29918,
29896,
5754,
376,
29934,
804,
29908,
1405,
525,
29896,
29915,
5300,
376,
8893,
292,
29908,
306,
5265,
6059,
14210,
1552,
29995,
509,
453,
1974,
29995,
29898,
690,
1693,
616,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29943,
417,
943,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29941,
29941,
29929,
29945,
29946,
29945,
29918,
29896,
5754,
376,
29934,
804,
29908,
1405,
525,
29896,
29915,
5300,
376,
8893,
292,
29908,
306,
5265,
6059,
14210,
1552,
29995,
509,
453,
1974,
29995,
29898,
690,
1693,
616,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the lowest amount of floors after rank 1 in the Trillium (residential) building?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_11339545_1 (
Height text,
Completed numeric,
Floors numeric,
Rank numeric,
Building text
);
CREATE TABLE table_1_11677691_12 (
School text,
College text,
Hometown text,
Player text,
Position text
);
CREATE TABLE table_1_1013129_8 (
Nationality text,
"College/junior/club team" text,
"NHL team" text,
Pick numeric,
Position text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the lowest amount of floors after rank 1 in the Trillium (residential) building?`
```sql
| SELECT MIN(Floors) FROM table_2_11339545_1 WHERE "Rank" > '1' AND "Building" ILIKE '%the%trillium%(residential)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
756,
29871,
29945,
28495,
322,
756,
5318,
29871,
29896,
29896,
7087,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29953,
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,
29906,
29918,
29896,
29941,
29900,
29906,
29946,
29946,
29947,
29918,
29896,
313,
13,
12,
29956,
1144,
1426,
29892,
13,
12,
9652,
267,
1426,
29892,
13,
12,
29931,
2209,
267,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
8537,
29879,
1426,
29892,
13,
12,
29853,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29947,
29896,
29955,
29900,
29896,
29918,
29941,
313,
13,
12,
4062,
1426,
29892,
13,
12,
4435,
1426,
29892,
13,
12,
29875,
3267,
1426,
29892,
13,
12,
7685,
1426,
29892,
13,
12,
18700,
17104,
719,
1426,
29892,
13,
12,
8136,
1426,
29892,
13,
12,
29908,
25548,
22863,
847,
10488,
29871,
29946,
29900,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
16107,
1426,
29892,
13,
12,
29933,
1114,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29941,
29941,
29929,
29953,
29918,
29945,
313,
13,
12,
29908,
8120,
1338,
1152,
7740,
29887,
1213,
1426,
29892,
13,
12,
29908,
8120,
1338,
1152,
29908,
16985,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
7740,
29887,
1213,
1426,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
29908,
16985,
29892,
13,
12,
29908,
3563,
497,
14164,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29955,
29945,
29955,
29946,
29955,
29918,
29946,
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,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
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,
22110,
756,
29871,
29945,
28495,
322,
756,
5318,
29871,
29896,
29896,
7087,
29973,
29952,
13,
28956,
2850,
13,
5097,
4408,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29900,
29906,
29946,
29946,
29947,
29918,
29896,
5754,
376,
29931,
2209,
267,
29908,
306,
5265,
6059,
14210,
29945,
29001,
5300,
376,
9652,
267,
29908,
306,
5265,
6059,
14210,
29896,
29896,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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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,
5097,
4408,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29900,
29906,
29946,
29946,
29947,
29918,
29896,
5754,
376,
29931,
2209,
267,
29908,
306,
5265,
6059,
14210,
29945,
29001,
5300,
376,
9652,
267,
29908,
306,
5265,
6059,
14210,
29896,
29896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who has 5 losses and has played 11 matches?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1166023_1 (
"Carriage type" text,
"Year built" numeric,
Number text,
Builder text,
"TMS Number" text
);
CREATE TABLE table_2_1302448_1 (
Wins text,
Matches text,
Losses text,
Name text,
Draws text,
Period text
);
CREATE TABLE table_1_11381701_3 (
Method text,
Source text,
iOS text,
Windows text,
BlackBerry text,
Android text,
"Symbian / Series 40" text,
Date text,
Other text,
Bada text
);
CREATE TABLE table_1_1253396_5 (
"Goals For Avg." text,
"Goals For" numeric,
"Goals Against Avg." text,
Club text,
"Goals Against" numeric,
"Overall Record" text
);
CREATE TABLE table_1_11075747_4 (
"Directed by" text,
Title text,
"Original air date" text,
"Series #" numeric,
"Written by" text,
"Episode #" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Who has 5 losses and has played 11 matches?`
```sql
| SELECT Name FROM table_2_1302448_1 WHERE "Losses" ILIKE '%5%' AND "Matches" ILIKE '%11%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
15484,
756,
263,
2522,
487,
310,
29871,
29955,
29896,
29899,
29955,
29900,
29922,
29896,
29946,
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,
29947,
29900,
29953,
29900,
29946,
29953,
29955,
29918,
29945,
313,
13,
12,
22150,
1426,
29892,
13,
12,
29908,
1762,
610,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
20779,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29946,
29929,
29941,
29953,
29955,
29918,
29941,
313,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
7129,
287,
3026,
1426,
29892,
13,
12,
29908,
3057,
29899,
29873,
5790,
29908,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
1451,
11768,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29955,
29941,
29900,
29918,
29896,
313,
13,
12,
29908,
7031,
29871,
29896,
29900,
29908,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
7031,
29871,
29945,
29908,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
29908,
12810,
29887,
29889,
7370,
29908,
1426,
29892,
13,
12,
29956,
2559,
886,
1426,
29892,
13,
12,
4763,
29879,
16985,
29892,
13,
12,
29908,
12810,
29887,
29889,
4231,
728,
29908,
1426,
29892,
13,
12,
29908,
19409,
29898,
29879,
5513,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
15484,
756,
263,
2522,
487,
310,
29871,
29955,
29896,
29899,
29955,
29900,
29922,
29896,
29946,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
15484,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29953,
29900,
29946,
29953,
29955,
29918,
29945,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29955,
29896,
29899,
29955,
29900,
29922,
29896,
29946,
29896,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
15484,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29953,
29900,
29946,
29953,
29955,
29918,
29945,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29955,
29896,
29899,
29955,
29900,
29922,
29896,
29946,
29896,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Place has a Score of 71-70=141?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18060467_5 (
Place text,
"To par" text,
Player text,
Score text,
Country text
);
CREATE TABLE table_1_10749367_3 (
"#" numeric,
Winner text,
"Passed?" text,
"Test-taker" text,
"Air Date" text,
Challenge text
);
CREATE TABLE table_1_1012730_1 (
"Top 10" numeric,
Wins numeric,
Position text,
"Top 5" numeric,
Year numeric,
Poles numeric,
"Avg. Start" text,
Winnings text,
Starts numeric,
"Avg. Finish" text,
"Team(s)" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Place has a Score of 71-70=141?`
```sql
| SELECT Place FROM table_2_18060467_5 WHERE "Score" ILIKE '%71-70=141%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
1353,
310,
13677,
13340,
746,
278,
3001,
9978,
338,
901,
1135,
29871,
29941,
29906,
322,
278,
28869,
338,
3109,
1135,
29871,
29896,
29945,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29896,
29947,
29946,
29953,
29906,
29918,
29906,
29929,
313,
13,
12,
29315,
290,
3381,
1426,
29892,
13,
12,
2369,
1467,
358,
16985,
29892,
13,
12,
29908,
4504,
1507,
1530,
2470,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
29908,
12742,
29914,
8431,
20272,
29908,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29908,
797,
13888,
1951,
29908,
16985,
29892,
13,
12,
4920,
1030,
14641,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29953,
29945,
29955,
29947,
29918,
29906,
313,
13,
12,
29908,
3782,
29889,
310,
14368,
29908,
16985,
29892,
13,
12,
29908,
13799,
2383,
30088,
313,
29896,
29929,
29929,
29947,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
310,
11984,
29908,
16985,
29892,
13,
12,
12415,
2410,
1426,
29892,
13,
12,
29908,
12310,
2785,
313,
29896,
29929,
29947,
29900,
5513,
1426,
29892,
13,
12,
29963,
29877,
440,
2631,
4034,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29941,
29955,
29953,
29918,
29896,
313,
13,
12,
29908,
11536,
9978,
29908,
16985,
29892,
13,
12,
1252,
3296,
16985,
29892,
13,
12,
29908,
29933,
1169,
16716,
29908,
16985,
29892,
13,
12,
10140,
16985,
29892,
13,
12,
10140,
928,
392,
16985,
29892,
13,
12,
29908,
1252,
3296,
24003,
29908,
16985,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29908,
4557,
310,
13677,
13340,
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,
1353,
310,
13677,
13340,
746,
278,
3001,
9978,
338,
901,
1135,
29871,
29941,
29906,
322,
278,
28869,
338,
3109,
1135,
29871,
29896,
29945,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
4557,
310,
13677,
13340,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29941,
29955,
29953,
29918,
29896,
5754,
376,
11536,
9978,
29908,
1405,
525,
29941,
29906,
29915,
5300,
376,
1252,
3296,
29908,
529,
525,
29896,
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,
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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,
5097,
376,
4557,
310,
13677,
13340,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29941,
29955,
29953,
29918,
29896,
5754,
376,
11536,
9978,
29908,
1405,
525,
29941,
29906,
29915,
5300,
376,
1252,
3296,
29908,
529,
525,
29896,
29945,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the number of decimal digits when the total bits is more than 32 and the exponent is less than 15?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11318462_29 (
Denomination text,
Enrolment numeric,
"School Colours" text,
Location text,
Founded numeric,
"Day/Boarding" text,
School text,
"In competition since" numeric,
Abbreviation text
);
CREATE TABLE table_1_11656578_2 (
"No. of cities" numeric,
"Area km² (1998)" text,
"No. of communes" numeric,
Capital text,
"Population (1980)" text,
Voivodeship text
);
CREATE TABLE table_2_11376_1 (
"Total bits" numeric,
Exponent numeric,
"Bits precision" numeric,
Sign numeric,
Significand numeric,
"Exponent bias" numeric,
Type text,
"Number of decimal digits" text
);
```
### Answer
Here is the SQL query that answers the question:
`What's the number of decimal digits when the total bits is more than 32 and the exponent is less than 15?`
```sql
| SELECT "Number of decimal digits" FROM table_2_11376_1 WHERE "Total bits" > '32' AND "Exponent" < '15' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2533,
310,
278,
3001,
363,
263,
26529,
8158,
310,
29871,
29906,
29953,
29889,
29953,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29941,
29941,
29947,
29955,
29918,
29896,
313,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29941,
29906,
29945,
29947,
29929,
29947,
29918,
29896,
313,
13,
12,
29908,
26023,
3953,
29891,
8158,
29908,
1426,
29892,
13,
12,
29954,
12050,
579,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
29908,
24254,
457,
8158,
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,
2533,
310,
278,
3001,
363,
263,
26529,
8158,
310,
29871,
29906,
29953,
29889,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
11536,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29906,
29945,
29947,
29929,
29947,
29918,
29896,
5754,
376,
24254,
457,
8158,
29908,
353,
525,
29906,
29953,
29889,
29953,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
11536,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29941,
29906,
29945,
29947,
29929,
29947,
29918,
29896,
5754,
376,
24254,
457,
8158,
29908,
353,
525,
29906,
29953,
29889,
29953,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the sum of the total for a routine score of 26.6?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12163387_1 (
"Mixed doubles" text,
"Womens singles" text,
"Mens singles" text,
"Womens doubles" text,
Year numeric,
"Mens doubles" text
);
CREATE TABLE table_2_1325898_1 (
"Difficulty score" text,
Gymnast text,
Total numeric,
Rank numeric,
"Routine score" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the sum of the total for a routine score of 26.6?`
```sql
| SELECT SUM(Total) FROM table_2_1325898_1 WHERE "Routine score" = '26.6' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
471,
278,
5528,
3774,
296,
297,
11653,
29871,
29941,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29900,
29955,
29945,
29946,
29953,
29918,
29896,
313,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29909,
386,
2810,
313,
6632,
29907,
5513,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29903,
1251,
11427,
1426,
29892,
13,
12,
10840,
25217,
1426,
29892,
13,
12,
29943,
16750,
1426,
29892,
13,
12,
27795,
1426,
29892,
13,
12,
29934,
4821,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29896,
29953,
29945,
29946,
29955,
29918,
29896,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
2499,
2404,
1024,
29908,
1426,
29892,
13,
12,
29908,
21238,
16151,
29914,
3293,
29908,
1426,
29892,
13,
12,
17936,
1426,
29892,
13,
12,
29931,
29891,
2200,
391,
1426,
29892,
13,
12,
29908,
17936,
3611,
29908,
1426,
29892,
13,
12,
18984,
1426,
29892,
13,
12,
29908,
29931,
4316,
1199,
10929,
29914,
3293,
29908,
1426,
29892,
13,
12,
29908,
29924,
1175,
272,
11395,
29898,
29879,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29896,
29946,
29906,
29918,
29896,
313,
13,
12,
29908,
4782,
319,
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,
350,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
4782,
315,
399,
3993,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29941,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
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,
29896,
29918,
29906,
29953,
29953,
29947,
29941,
29955,
29946,
29918,
29896,
29947,
313,
13,
12,
797,
29883,
3774,
296,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
29908,
6730,
11467,
29908,
1426,
29892,
13,
12,
29907,
5380,
1078,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29945,
29941,
29945,
29900,
29918,
29896,
313,
13,
12,
29908,
2525,
1169,
7138,
1133,
29908,
16985,
29892,
13,
12,
21472,
1426,
29892,
13,
12,
29908,
2182,
1131,
1336,
10069,
6599,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
29498,
29908,
1426,
29892,
13,
12,
29908,
12412,
5915,
5946,
29908,
1426,
29892,
13,
12,
29908,
7976,
24839,
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,
5528,
3774,
296,
297,
11653,
29871,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
9266,
3774,
296,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29953,
29947,
29941,
29955,
29946,
29918,
29896,
29947,
5754,
376,
29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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
9266,
3774,
296,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29953,
29947,
29941,
29955,
29946,
29918,
29896,
29947,
5754,
376,
29928,
6801,
29908,
306,
5265,
6059,
14210,
29963,
381,
5359,
423,
29995,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who was the incumbent in Virginia 3?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12407546_1 (
"#" numeric,
"Athlete (NOC)" text,
Total numeric,
Shooting text,
Swimming text,
Fencing text,
Running text,
Riding text
);
CREATE TABLE table_1_10416547_1 (
Date text,
"Album name" text,
"Music genre/style" text,
Track text,
Lyricist text,
"Track title" text,
Duration text,
"Lyrics theme/style" text,
"Major instrument(s)" text
);
CREATE TABLE table_1_1137142_1 (
"Group A Winner" text,
"Group D Winner" text,
Season text,
"Group B Winner" text,
"Group C Winner" text
);
CREATE TABLE table_1_11677100_3 (
Position text,
"MLB Draft" text,
Player text,
School text,
Hometown text
);
CREATE TABLE table_1_2668374_18 (
Incumbent text,
Result text,
District text,
Party text,
"First elected" text,
Candidates text
);
CREATE TABLE table_1_1245350_1 (
"Units Produced" numeric,
Power text,
"Quattroporte IV" text,
"Production Period" text,
"Engine Capacity" text,
"Max Speed" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who was the incumbent in Virginia 3?`
```sql
| SELECT Incumbent FROM table_1_2668374_18 WHERE "District" ILIKE '%Virginia%3%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
1556,
11005,
330,
776,
363,
6588,
3109,
1135,
29871,
29947,
29889,
29955,
29929,
29941,
411,
15593,
310,
29871,
29947,
29889,
29945,
29896,
322,
2381,
326,
29658,
3109,
1135,
29871,
29947,
29889,
29896,
29906,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29896,
29945,
29946,
29900,
29896,
29918,
29896,
313,
13,
12,
29909,
19698,
16985,
29892,
13,
12,
10840,
326,
29658,
16985,
29892,
13,
12,
29908,
29923,
854,
292,
402,
776,
29908,
16985,
29892,
13,
12,
2792,
1426,
29892,
13,
12,
4074,
1493,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29900,
29900,
29941,
29953,
29947,
29918,
29896,
313,
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,
12883,
310,
17745,
29908,
1426,
29892,
13,
12,
29908,
14058,
22125,
292,
313,
29896,
5513,
1426,
29892,
13,
12,
29908,
3220,
313,
12883,
5513,
1426,
29892,
13,
12,
29908,
13720,
847,
14059,
847,
7562,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29906,
29896,
29896,
29945,
29947,
29918,
29941,
313,
13,
12,
29908,
29907,
8842,
1754,
20605,
16985,
29892,
13,
12,
29908,
29911,
2905,
20060,
5318,
29908,
16985,
29892,
13,
12,
29908,
29906,
299,
29908,
16985,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29879,
29908,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
29903,
2616,
292,
7115,
29908,
1426,
29892,
13,
12,
29908,
29903,
2616,
292,
6588,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29924,
4992,
1051,
7115,
29908,
1426,
29892,
13,
12,
29908,
25353,
8341,
29908,
1426,
29892,
13,
12,
29908,
29923,
2753,
886,
3255,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29945,
29896,
29896,
29918,
29955,
313,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
29908,
29925,
860,
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,
1170,
278,
1556,
11005,
330,
776,
363,
6588,
3109,
1135,
29871,
29947,
29889,
29955,
29929,
29941,
411,
15593,
310,
29871,
29947,
29889,
29945,
29896,
322,
2381,
326,
29658,
3109,
1135,
29871,
29947,
29889,
29896,
29906,
29952,
13,
28956,
2850,
13,
5097,
18134,
703,
29923,
854,
292,
402,
776,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29896,
29945,
29946,
29900,
29896,
29918,
29896,
5754,
376,
29909,
19698,
29908,
529,
525,
29947,
29889,
29955,
29929,
29941,
29915,
5300,
376,
10840,
326,
29658,
29908,
529,
525,
29947,
29889,
29896,
29906,
29915,
5300,
376,
4074,
1493,
29908,
353,
525,
29947,
29889,
29945,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29923,
854,
292,
402,
776,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29900,
29896,
29945,
29946,
29900,
29896,
29918,
29896,
5754,
376,
29909,
19698,
29908,
529,
525,
29947,
29889,
29955,
29929,
29941,
29915,
5300,
376,
10840,
326,
29658,
29908,
529,
525,
29947,
29889,
29896,
29906,
29915,
5300,
376,
4074,
1493,
29908,
353,
525,
29947,
29889,
29945,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the most evening gown for average less than 8.793 with interview of 8.51 and swimsuit less than 8.12`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_12015401_1 (
Average numeric,
Swimsuit numeric,
"Evening Gown" numeric,
State text,
Interview numeric
);
CREATE TABLE table_1_12000368_1 (
"Ranking L.A. (2)" text,
"Countries sampled" numeric,
"Year of publication" text,
"World Ranking (1)" text,
"Index (Year)" text,
"Author / Editor / Source" text
);
CREATE TABLE table_1_10021158_3 (
"Cuts made*" numeric,
"Tournaments played" numeric,
"2nd" numeric,
"Top 10s" numeric,
Wins numeric,
"Scoring rank" text,
"Scoring average" text,
Year numeric,
"Money list rank" text,
"Best finish" text,
"Earnings ($)" numeric
);
CREATE TABLE table_1_1213511_7 (
"College/junior/club team" text,
Nationality text,
Position text,
"NHL team" text,
"Pick #" numeric,
Player text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the most evening gown for average less than 8.793 with interview of 8.51 and swimsuit less than 8.12`
```sql
| SELECT MAX("Evening Gown") FROM table_2_12015401_1 WHERE "Average" < '8.793' AND "Swimsuit" < '8.12' AND "Interview" = '8.51' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
13994,
526,
2183,
363,
278,
1570,
19083,
363,
278,
1248,
1847,
3464,
2610,
29871,
29896,
29896,
29994,
29941,
29896,
29892,
29871,
29906,
29900,
29896,
29900,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29929,
29900,
29945,
29953,
29947,
29918,
29955,
313,
13,
12,
8003,
1426,
29892,
13,
12,
19409,
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,
2539,
310,
28573,
29908,
1426,
29892,
13,
12,
29908,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29900,
29955,
29946,
29945,
29906,
29918,
29941,
313,
13,
12,
3195,
1426,
29892,
13,
12,
29908,
29943,
280,
300,
10488,
313,
22930,
537,
5513,
1426,
29892,
13,
12,
29908,
7514,
8905,
29908,
1426,
29892,
13,
12,
29908,
29943,
2491,
18264,
25381,
29908,
1426,
29892,
13,
12,
29908,
29925,
340,
814,
6038,
313,
12412,
29914,
4300,
6737,
5513,
1426,
29892,
13,
12,
2517,
9765,
9945,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29900,
29947,
29946,
29918,
29946,
313,
13,
12,
29908,
29933,
5371,
3118,
3001,
1776,
292,
29908,
16985,
29892,
13,
12,
29908,
29933,
5371,
3118,
22125,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29933,
5371,
7803,
22125,
29908,
1426,
29892,
13,
12,
29908,
29933,
5371,
7803,
3001,
1776,
292,
29908,
1426,
29892,
13,
12,
29908,
29933,
9972,
4384,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29906,
29896,
29896,
29906,
29955,
29918,
29896,
313,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29928,
1078,
310,
9870,
5297,
29841,
29908,
1426,
29892,
13,
12,
29908,
3904,
20462,
1024,
29908,
1426,
29892,
13,
12,
29908,
22537,
713,
6297,
29908,
1426,
29892,
13,
12,
29908,
4557,
310,
4648,
5834,
9701,
29908,
1426,
29892,
13,
12,
29908,
3904,
20462,
3611,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29946,
29955,
29955,
29947,
29947,
29946,
29955,
29918,
29906,
313,
13,
12,
6595,
1426,
29892,
13,
12,
29908,
14470,
573,
15312,
1230,
29908,
16985,
29892,
13,
12,
29908,
7713,
1847,
383,
3568,
29908,
1426,
29892,
13,
12,
29908,
4373,
19083,
29908,
16985,
29892,
13,
12,
29931,
12347,
284,
16985,
29892,
13,
12,
29908,
2539,
310,
2043,
1847,
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,
13994,
526,
2183,
363,
278,
1570,
19083,
363,
278,
1248,
1847,
3464,
2610,
29871,
29896,
29896,
29994,
29941,
29896,
29892,
29871,
29906,
29900,
29896,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
4373,
19083,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29955,
29955,
29947,
29947,
29946,
29955,
29918,
29906,
5754,
376,
2539,
310,
2043,
1847,
29908,
306,
5265,
6059,
14210,
12703,
29995,
29896,
29896,
29994,
29941,
29896,
24163,
29906,
29900,
29896,
29900,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
21122,
703,
4373,
19083,
1159,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29955,
29955,
29947,
29947,
29946,
29955,
29918,
29906,
5754,
376,
2539,
310,
2043,
1847,
29908,
306,
5265,
6059,
14210,
12703,
29995,
29896,
29896,
29994,
29941,
29896,
24163,
29906,
29900,
29896,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many figures are given for the New Democratic for the polling range May 11–31, 2010?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11190568_7 (
Position text,
Team text,
"Manner of departure" text,
"Date of vacancy" text,
"Date of appointment" text,
"Replaced by" text,
"Outgoing manager" text
);
CREATE TABLE table_1_10007452_3 (
Model text,
"Fleet Series (Quantity)" text,
"Order Year" text,
"Fuel Propulsion" text,
"Powertrain (Engine/Transmission)" text,
Manufacturer text
);
CREATE TABLE table_1_103084_4 (
"BBC One total viewing" numeric,
"BBC One Rank" text,
Year numeric,
"BBC Two Rank" text,
"BBC Two total viewing" text,
"Broadcast date" text
);
CREATE TABLE table_1_10121127_1 (
Location text,
"Dates of Australian involvement" text,
"UN Operation name" text,
"Australian role" text,
"Number of Australians involved" text,
"UN Operation title" text
);
CREATE TABLE table_1_24778847_2 (
Link text,
"Progressive Conservative" numeric,
"Polling Firm" text,
"New Democratic" numeric,
Liberal numeric,
"Date of Polling" text
);
```
### Answer
Here is the SQL query that answers the question:
`How many figures are given for the New Democratic for the polling range May 11–31, 2010?`
```sql
| SELECT COUNT("New Democratic") FROM table_1_24778847_2 WHERE "Date of Polling" ILIKE '%May%11–31,%2010%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
6588,
18449,
750,
263,
13283,
7621,
1135,
29871,
29906,
322,
263,
7684,
7200,
1135,
29871,
29955,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29946,
29900,
29941,
29941,
29918,
29896,
313,
13,
12,
29908,
29928,
4154,
23868,
396,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29908,
29928,
4154,
4134,
29908,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29906,
29946,
29946,
29955,
29918,
29906,
313,
13,
12,
29908,
5015,
24733,
399,
4339,
3831,
7261,
29908,
1426,
29892,
13,
12,
29908,
29950,
774,
3973,
1734,
29908,
1426,
29892,
13,
12,
29908,
5015,
24733,
396,
29908,
1426,
29892,
13,
12,
29908,
5015,
24733,
4103,
20889,
362,
29908,
1426,
29892,
13,
12,
29908,
24636,
1706,
7807,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29896,
29947,
29906,
29906,
29918,
29945,
313,
13,
12,
29908,
17734,
1076,
5823,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
23012,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
2602,
29908,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
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,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
8003,
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,
29946,
29906,
29896,
29947,
29945,
29953,
29918,
29941,
313,
13,
12,
29933,
1617,
911,
16985,
29892,
13,
12,
29954,
1025,
16985,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
26729,
369,
16985,
29892,
13,
12,
11536,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
6588,
18449,
750,
263,
13283,
7621,
1135,
29871,
29906,
322,
263,
7684,
7200,
1135,
29871,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
29898,
29933,
1617,
911,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29946,
29906,
29896,
29947,
29945,
29953,
29918,
29941,
5754,
376,
26729,
369,
29908,
1405,
525,
29906,
29915,
5300,
376,
29954,
1025,
29908,
1405,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29933,
1617,
911,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29946,
29906,
29896,
29947,
29945,
29953,
29918,
29941,
5754,
376,
26729,
369,
29908,
1405,
525,
29906,
29915,
5300,
376,
29954,
1025,
29908,
1405,
525,
29955,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which average bronze had a silver greater than 2 and a gold larger than 7?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1004033_1 (
"Draft Pick #" text,
Nationality text,
Position text,
Season numeric,
Player text,
College text,
"Draft Class" text,
Team text
);
CREATE TABLE table_1_1242447_2 (
"Strongs Words Compounded" text,
"Hebrew word" text,
"Strongs #" text,
"Strongs Transliteration" text,
"English Spelling" text
);
CREATE TABLE table_1_12161822_5 (
"Winning constructor" text,
"Fastest lap" text,
"Pole position" text,
"Rd." numeric,
"Grand Prix" text,
Report text,
"Winning driver" text
);
CREATE TABLE table_1_11545282_6 (
"School/Club Team" text,
Position text,
"Years for Jazz" text,
"No." numeric
);
CREATE TABLE table_2_12421856_3 (
Bronze numeric,
Gold numeric,
Rank text,
Silver numeric,
Total numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which average bronze had a silver greater than 2 and a gold larger than 7?`
```sql
| SELECT AVG(Bronze) FROM table_2_12421856_3 WHERE "Silver" > '2' AND "Gold" > '7' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
22775,
2602,
363,
278,
8175,
411,
278,
5172,
342,
23012,
491,
19135,
7362,
12621,
322,
278,
5823,
338,
16541,
1306,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
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,
29955,
29953,
29918,
29906,
313,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29906,
29929,
29941,
29947,
29918,
29946,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
9207,
29931,
8583,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29900,
29906,
29900,
29896,
29947,
29918,
29896,
313,
13,
12,
29908,
29911,
272,
10268,
847,
23291,
29908,
1426,
29892,
13,
12,
29908,
3308,
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,
19960,
6371,
29908,
1426,
29892,
13,
12,
26682,
265,
1426,
29892,
13,
12,
29908,
10512,
29891,
313,
29316,
273,
29892,
9184,
29892,
8602,
4196,
5513,
1426,
29892,
13,
12,
29933,
9504,
309,
1426,
29892,
13,
12,
20755,
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,
22775,
2602,
363,
278,
8175,
411,
278,
5172,
342,
23012,
491,
19135,
7362,
12621,
322,
278,
5823,
338,
16541,
1306,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29925,
1772,
20627,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29955,
29953,
29918,
29906,
5754,
376,
29943,
579,
342,
20298,
29908,
306,
5265,
6059,
14210,
29940,
295,
1100,
29995,
29925,
8105,
300,
29001,
5300,
376,
23770,
29908,
306,
5265,
6059,
14210,
29943,
3127,
1306,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29925,
1772,
20627,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29955,
29953,
29918,
29906,
5754,
376,
29943,
579,
342,
20298,
29908,
306,
5265,
6059,
14210,
29940,
295,
1100,
29995,
29925,
8105,
300,
29001,
5300,
376,
23770,
29908,
306,
5265,
6059,
14210,
29943,
3127,
1306,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the pole position for the race with the fastest lap by Nelson Piquet and the constructor is Ferrari?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140076_2 (
Constructor text,
"Fastest Lap" text,
Location text,
Race text,
"Race Winner" text,
Date text,
Report text,
"Pole Position" text,
Rnd numeric
);
CREATE TABLE table_1_10812938_4 (
Player text,
"CFL Team" text,
Position text,
College text,
"Pick #" numeric
);
CREATE TABLE table_1_10402018_1 (
"Toronto / Broadway" text,
"US Tour" text,
"Australia & New Zealand (Sydney - first run, Melbourne, Auckland)" text,
"UK Tour" text,
London text,
"Italy (Milan, Rome, Trieste)" text,
Brazil text,
Character text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the pole position for the race with the fastest lap by Nelson Piquet and the constructor is Ferrari?`
```sql
| SELECT "Pole Position" FROM table_1_1140076_2 WHERE "Fastest Lap" ILIKE '%Nelson%Piquet%' AND "Constructor" ILIKE '%Ferrari%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
10150,
11314,
7823,
2318,
297,
297,
278,
16493,
411,
278,
274,
4316,
453,
293,
1024,
4724,
29824,
1305,
10766,
8163,
29996,
29973,
29952,
13,
13,
2277,
29937,
5470,
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,
29945,
29953,
29906,
29945,
29955,
29906,
29918,
29946,
29946,
313,
13,
12,
29908,
12310,
2785,
313,
29906,
29900,
29896,
29896,
5513,
16985,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29908,
29907,
4316,
453,
293,
4408,
5901,
14706,
29908,
1426,
29892,
13,
12,
29908,
29931,
1191,
342,
11314,
7823,
2318,
313,
29906,
29900,
29900,
29906,
5513,
1426,
29892,
13,
12,
29903,
1803,
944,
1426,
29892,
13,
12,
29908,
29928,
5817,
424,
13433,
313,
29906,
29900,
29900,
29906,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29955,
29929,
29906,
29941,
29900,
29918,
29945,
313,
13,
12,
7422,
1426,
29892,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
29908,
29967,
21419,
968,
3611,
29908,
1426,
29892,
13,
12,
29949,
2200,
265,
16985,
29892,
13,
12,
29908,
29934,
290,
1175,
29875,
3611,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29941,
29900,
29900,
29900,
29947,
29918,
29955,
313,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
29892,
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,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29906,
29947,
29953,
29929,
29896,
29918,
29946,
313,
13,
12,
4205,
1285,
262,
6742,
1426,
29892,
13,
12,
29908,
7976,
12539,
3370,
29908,
1426,
29892,
13,
12,
29908,
15449,
3370,
29908,
1426,
29892,
13,
12,
29908,
6271,
29965,
24839,
29908,
1426,
29892,
13,
12,
25898,
1426,
29892,
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,
11816,
6210,
313,
29925,
13427,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29929,
29945,
29945,
29896,
29929,
29918,
29896,
313,
13,
12,
14994,
3381,
1426,
29892,
13,
12,
23182,
1426,
29892,
13,
12,
29908,
5323,
262,
4408,
29908,
1426,
29892,
13,
12,
23923,
23860,
1426,
29892,
13,
12,
29908,
5323,
262,
1939,
1213,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
10150,
11314,
7823,
2318,
297,
297,
278,
16493,
411,
278,
274,
4316,
453,
293,
1024,
4724,
29824,
1305,
10766,
8163,
29996,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29931,
1191,
342,
11314,
7823,
2318,
313,
29906,
29900,
29900,
29906,
5513,
3895,
1591,
29918,
29896,
29918,
29906,
29945,
29953,
29906,
29945,
29955,
29906,
29918,
29946,
29946,
5754,
376,
29907,
4316,
453,
293,
4408,
5901,
14706,
29908,
306,
5265,
6059,
14210,
30031,
14611,
29932,
1305,
29995,
30014,
1515,
8163,
29996,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29931,
1191,
342,
11314,
7823,
2318,
313,
29906,
29900,
29900,
29906,
5513,
3895,
1591,
29918,
29896,
29918,
29906,
29945,
29953,
29906,
29945,
29955,
29906,
29918,
29946,
29946,
5754,
376,
29907,
4316,
453,
293,
4408,
5901,
14706,
29908,
306,
5265,
6059,
14210,
30031,
14611,
29932,
1305,
29995,
30014,
1515,
8163,
29996,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the largest ethnic group in in the settlement with the cyrillic name банатски карловац?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_2562572_44 (
"Population (2011)" numeric,
Type text,
"Cyrillic Name Other Names" text,
"Largest ethnic group (2002)" text,
Settlement text,
"Dominant religion (2002)" text
);
CREATE TABLE table_1_10979230_5 (
Reference text,
"Release date" text,
"Japanese title" text,
Oricon numeric,
"Romaji title" text
);
CREATE TABLE table_1_11630008_7 (
"Production code" numeric,
Title text,
"Season #" numeric,
"Directed by" text,
"Written by" text,
"Series #" numeric,
"Original air date" text
);
CREATE TABLE table_1_10528691_4 (
Discontinued text,
"Maximum memory" text,
"Standard memory" text,
"CPU Speed" text,
Introduction text,
"Print resolution (DPI) Resolution is given in dots per inch (DPI)" text,
Model numeric,
"Print speed (PPM)" text
);
CREATE TABLE table_1_12095519_1 (
Destination text,
Origin text,
"Train Name" text,
Frequency text,
"Train No." text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the largest ethnic group in in the settlement with the cyrillic name банатски карловац?`
```sql
| SELECT "Largest ethnic group (2002)" FROM table_1_2562572_44 WHERE "Cyrillic Name Other Names" ILIKE '%Банатски%Карловац%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
3001,
304,
610,
310,
718,
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,
29929,
29953,
29900,
29953,
29896,
29900,
29918,
29896,
29900,
313,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
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,
16382,
3291,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
14199,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29896,
29953,
29945,
29929,
29945,
29918,
29906,
313,
13,
12,
12881,
728,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
1762,
610,
29908,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
12883,
29898,
29879,
29897,
2113,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29906,
29953,
29896,
29906,
29946,
29918,
29941,
313,
13,
12,
3744,
2763,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
18482,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
14769,
475,
303,
1426,
29892,
13,
12,
3853,
654,
16985,
29892,
13,
12,
29934,
618,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29953,
29896,
29900,
29918,
29953,
313,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29941,
29906,
29947,
29946,
29941,
29918,
29896,
313,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
3001,
304,
610,
310,
718,
29929,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
11536,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29896,
29953,
29945,
29929,
29945,
29918,
29906,
5754,
376,
1762,
610,
29908,
306,
5265,
6059,
14210,
29974,
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,
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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,
5097,
18134,
29898,
11536,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29896,
29953,
29945,
29929,
29945,
29918,
29906,
5754,
376,
1762,
610,
29908,
306,
5265,
6059,
14210,
29974,
29929,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the highest total to par of +9?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11960610_10 (
Record text,
"High assists" text,
Date text,
Team text,
"High rebounds" text,
"High points" text,
Score text,
"Location Attendance" text,
Game numeric
);
CREATE TABLE table_2_18116595_2 (
Finish text,
Country text,
"To par" text,
Total numeric,
Player text,
"Year(s) won" text
);
CREATE TABLE table_1_11326124_3 (
Outcome text,
Opponent text,
Result text,
Zone text,
Surface text,
Against text,
Edition numeric,
Round text
);
CREATE TABLE table_1_11960610_6 (
"Location Attendance" text,
Score text,
Date text,
"High rebounds" text
);
CREATE TABLE table_1_12232843_1 (
"Mixed doubles" text,
"Mens singles" text,
"Womens doubles" text,
"Mens doubles" text,
Season numeric,
"Womens singles" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the highest total to par of +9?`
```sql
| SELECT MAX(Total) FROM table_2_18116595_2 WHERE "To par" ILIKE '%+9%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
8158,
607,
756,
23995,
296,
310,
1886,
29888,
1562,
6898,
29894,
3270,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29947,
29953,
29906,
29918,
29896,
313,
13,
12,
6508,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29929,
29906,
29941,
29946,
29906,
29955,
29918,
29941,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
3744,
2763,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29896,
29947,
29946,
29953,
29906,
29918,
29945,
313,
13,
12,
29908,
6585,
29871,
29906,
299,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29941,
5499,
6599,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29945,
386,
6599,
29908,
1426,
29892,
13,
12,
29908,
6585,
29871,
29941,
5499,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29946,
386,
6599,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29953,
29871,
29906,
299,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29953,
29871,
29941,
5499,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29953,
386,
6599,
29908,
1426,
29892,
13,
12,
29908,
6585,
29871,
29896,
303,
15682,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29953,
29871,
29896,
303,
15682,
29908,
1426,
29892,
13,
12,
29907,
3973,
16985,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29896,
303,
6599,
29908,
1426,
29892,
13,
12,
29908,
29965,
29896,
29945,
29871,
29906,
299,
6599,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29946,
29955,
29900,
29955,
29918,
29896,
313,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
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,
12883,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29900,
29941,
29953,
29946,
29918,
29906,
313,
13,
12,
29908,
29903,
735,
11959,
313,
25006,
5513,
16985,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
7827,
5513,
16985,
29892,
13,
12,
29908,
29954,
798,
386,
313,
29896,
29929,
29929,
29896,
29994,
29906,
29900,
29900,
29896,
5513,
1426,
29892,
13,
12,
29908,
5531,
27577,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
12310,
2785,
1273,
29908,
1426,
29892,
13,
12,
29908,
24938,
4135,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
9662,
335,
2738,
2318,
29908,
1426,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
29878,
3631,
5513,
16985,
29892,
13,
12,
29908,
29903,
735,
11959,
313,
5145,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29929,
29946,
29929,
29945,
29900,
29918,
29896,
313,
13,
12,
10844,
1312,
16985,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
29908,
6572,
2366,
16377,
29908,
1426,
29892,
13,
12,
1168,
1659,
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,
1170,
278,
8158,
607,
756,
23995,
296,
310,
1886,
29888,
1562,
6898,
29894,
3270,
29952,
13,
28956,
2850,
13,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29929,
29906,
29941,
29946,
29906,
29955,
29918,
29941,
5754,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
303,
1389,
1562,
29995,
23014,
29894,
3270,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29906,
29929,
29906,
29941,
29946,
29906,
29955,
29918,
29941,
5754,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
303,
1389,
1562,
29995,
23014,
29894,
3270,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the score which has opponent of stefano galvani`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11622862_1 (
Location text,
Winner text,
"1st Prize( $ )" numeric,
"Purse( $ )" numeric,
Date text
);
CREATE TABLE table_2_12923427_3 (
Tournament text,
Opponent text,
Score text,
Surface text,
Outcome text
);
CREATE TABLE table_1_11318462_5 (
"Open 2nd VIII" text,
"U15 3rd IV" text,
"U15 5th IV" text,
"Open 3rd VIII" text,
"U15 4th IV" text,
"U16 2nd VIII" text,
"U16 3rd VIII" text,
"U15 6th IV" text,
"Open 1st VIII" text,
"U16 1st VIII" text,
Crew numeric,
"U15 1st IV" text,
"U15 2nd IV" text
);
CREATE TABLE table_1_12164707_1 (
"Mens doubles" text,
"Womens singles" text,
"Mens singles" text,
"Womens doubles" text,
"Mixed doubles" text,
Year numeric
);
CREATE TABLE table_1_10710364_2 (
"Sex ratio (urban)" numeric,
"Sex ratio (total)" numeric,
"Growth (1991–2001)" text,
"Work participation (%)" text,
"Population %" text,
"Literacy (%)" text,
"Religious group" text,
"Sex ratio (rural)" numeric,
"Sex ratio (child)" numeric
);
CREATE TABLE table_1_11094950_1 (
Joined numeric,
Division text,
"Previous Conference" text,
Conference text,
Team text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the score which has opponent of stefano galvani`
```sql
| SELECT Score FROM table_2_12923427_3 WHERE "Opponent" ILIKE '%stefano%galvani%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
14990,
756,
385,
15248,
293,
18449,
12807,
391,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
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,
29906,
29953,
29906,
29918,
29896,
313,
13,
12,
29908,
29906,
29900,
29900,
29896,
29899,
29900,
29906,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29906,
29899,
29900,
29941,
29908,
16985,
29892,
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,
29953,
29899,
29900,
29955,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29945,
29899,
29900,
29953,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29929,
29946,
29946,
29918,
29946,
313,
13,
12,
2539,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29929,
29896,
29946,
29900,
29955,
29918,
29946,
313,
13,
12,
2624,
1426,
29892,
13,
12,
29908,
29934,
804,
3291,
29908,
1426,
29892,
13,
12,
11536,
1426,
29892,
13,
12,
29903,
1251,
17084,
1426,
29892,
13,
12,
29908,
20097,
3291,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
14990,
756,
385,
15248,
293,
18449,
12807,
391,
29973,
29952,
13,
28956,
2850,
13,
5097,
14990,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
14990,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29929,
29896,
29946,
29900,
29955,
29918,
29946,
5754,
376,
29934,
804,
3291,
29908,
306,
5265,
6059,
14210,
324,
962,
16447,
29995,
1182,
265,
911,
29995,
2168,
284,
391,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Total has an olympic bronze medalist?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1057262_1 (
"2001-02" numeric,
"2002-03" numeric,
"2004-05" numeric,
Commodity text,
"2003-04" numeric,
"2006-07" numeric,
"2005-06" numeric
);
CREATE TABLE table_1_11960944_4 (
Date text,
Team text,
"Location Attendance" text,
Game numeric,
"High assists" text,
"High points" text,
Score text,
Record text,
"High rebounds" text
);
CREATE TABLE table_2_18191407_4 (
Event text,
"Rank points" text,
Total text,
Shooter text,
"Score points" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Total has an olympic bronze medalist?`
```sql
| SELECT Total FROM table_2_18191407_4 WHERE "Rank points" ILIKE '%olympic%bronze%medalist%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
4402,
3815,
338,
2431,
12512,
2142,
12371,
1708,
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,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29896,
29906,
313,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29953,
29906,
29941,
29906,
29929,
29918,
29896,
313,
13,
12,
29908,
22400,
5167,
29908,
1426,
29892,
13,
12,
10923,
545,
1426,
29892,
13,
12,
29908,
2481,
29898,
7898,
5513,
1426,
29892,
13,
12,
29908,
3253,
13244,
573,
5167,
29908,
1426,
29892,
13,
12,
29908,
15637,
313,
30073,
29907,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29906,
29945,
29900,
29918,
29896,
313,
13,
12,
25255,
1426,
29892,
13,
12,
29908,
3247,
403,
1026,
2302,
29908,
1426,
29892,
13,
12,
29908,
7439,
616,
266,
456,
29890,
459,
4230,
262,
931,
29908,
1426,
29892,
13,
12,
29908,
1184,
386,
456,
2109,
931,
29908,
1426,
29892,
13,
12,
29908,
29933,
280,
21219,
931,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29896,
29896,
313,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
29925,
860,
16985,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29900,
29955,
29900,
29946,
29900,
29918,
29945,
313,
13,
12,
29909,
19698,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29931,
340,
342,
16985,
29892,
13,
12,
12415,
5946,
16985,
29892,
13,
12,
855,
328,
1974,
1426,
29892,
13,
12,
16382,
342,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29929,
29946,
29947,
29941,
29906,
29918,
29896,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
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,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
7030,
1426,
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,
5618,
4402,
3815,
338,
2431,
12512,
2142,
12371,
1708,
363,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29896,
29896,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
5894,
29995,
29954,
504,
2142,
12371,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29896,
29896,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
5894,
29995,
29954,
504,
2142,
12371,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What club team is Per Gustafsson play for?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11545282_12 (
"Years for Jazz" text,
"No." numeric,
Position text,
"School/Club Team" text
);
CREATE TABLE table_1_10262329_1 (
"Assembly Type" text,
Pressure text,
"Time(Sec)" text,
"Adhesive Type" text,
"Temp (°C)" text
);
CREATE TABLE table_1_1226250_1 (
Condition text,
"Platelet count" text,
"Partial thromboplastin time" text,
"Prothrombin time" text,
"Bleeding time" text
);
CREATE TABLE table_1_1013129_11 (
"College/junior/club team" text,
Pick numeric,
"NHL team" text,
Position text,
Player text,
Nationality text
);
CREATE TABLE table_1_11207040_5 (
Average numeric,
Team text,
Lowest numeric,
Capacity numeric,
Stadium text,
Highest numeric
);
CREATE TABLE table_1_11694832_1 (
"Original air date" text,
"Written by" text,
"U.S. viewers (millions)" text,
"No. in series" numeric,
"Production code" text,
Title text,
"No. in season" numeric,
"Directed by" text
);
```
### Answer
Here is the SQL query that answers the question:
`What club team is Per Gustafsson play for?`
```sql
| SELECT "College/junior/club team" FROM table_1_1013129_11 WHERE "Player" ILIKE '%Per%Gustafsson%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
20183,
1134,
411,
385,
938,
1296,
310,
29871,
29953,
29900,
322,
263,
360,
9295,
29943,
1353,
3109,
1135,
29871,
29941,
29941,
29947,
29953,
411,
278,
19087,
4587,
16470,
1353,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29955,
29945,
29945,
29945,
29896,
29918,
29896,
313,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29896,
29953,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29900,
29906,
29941,
29896,
29941,
29918,
29946,
313,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
29908,
7439,
1353,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
29879,
10299,
1353,
29908,
1426,
29892,
13,
12,
13072,
29873,
482,
1426,
29892,
13,
12,
23923,
23860,
1426,
29892,
13,
12,
29908,
6857,
1213,
1426,
29892,
13,
12,
11373,
1426,
29892,
13,
12,
29908,
3195,
1353,
29908,
1426,
29892,
13,
12,
29908,
19729,
8666,
313,
3148,
29928,
1723,
29908,
1426,
29892,
13,
12,
29908,
29931,
29906,
7090,
29908,
1426,
29892,
13,
12,
29911,
11191,
1426,
29892,
13,
12,
29943,
1744,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29900,
29947,
29929,
29941,
29906,
29929,
29918,
29941,
313,
13,
12,
14206,
389,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29908,
2776,
16470,
1353,
29908,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
2928,
1296,
16985,
29892,
13,
12,
29908,
29928,
9295,
29943,
1353,
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,
20183,
1134,
411,
385,
938,
1296,
310,
29871,
29953,
29900,
322,
263,
360,
9295,
29943,
1353,
3109,
1135,
29871,
29941,
29941,
29947,
29953,
411,
278,
19087,
4587,
16470,
1353,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
703,
2776,
16470,
1353,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29900,
29947,
29929,
29941,
29906,
29929,
29918,
29941,
5754,
376,
2928,
1296,
29908,
353,
525,
29953,
29900,
29915,
5300,
376,
1542,
29908,
306,
5265,
6059,
14210,
29926,
348,
1611,
29001,
5300,
376,
29928,
9295,
29943,
1353,
29908,
529,
525,
29941,
29941,
29947,
29953,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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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,
5097,
341,
1177,
703,
2776,
16470,
1353,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29900,
29947,
29929,
29941,
29906,
29929,
29918,
29941,
5754,
376,
2928,
1296,
29908,
353,
525,
29953,
29900,
29915,
5300,
376,
1542,
29908,
306,
5265,
6059,
14210,
29926,
348,
1611,
29001,
5300,
376,
29928,
9295,
29943,
1353,
29908,
529,
525,
29941,
29941,
29947,
29953,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the junior type with an intake of 60 and a DCSF number less than 3386 with the smallest Ofsted number?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12275551_1 (
"Mens singles" text,
"Womens singles" text,
"Mixed doubles" text,
Year numeric,
"Mens doubles" text,
"Womens doubles" text
);
CREATE TABLE table_1_11677100_16 (
Player text,
Hometown text,
Position text,
School text,
"MLB Draft" text
);
CREATE TABLE table_1_11602313_4 (
"Release date" text,
"Part number(s)" text,
"sSpec number" text,
Voltage text,
Frequency text,
"Mult." text,
Socket text,
"Model number" text,
"Release price ( USD )" text,
"L2 cache" text,
TDP text,
FSB text
);
CREATE TABLE table_2_15089329_3 (
Faith text,
Type text,
"Ofsted number" numeric,
Name text,
Intake numeric,
"DCSF number" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the junior type with an intake of 60 and a DCSF number less than 3386 with the smallest Ofsted number?`
```sql
| SELECT MIN("Ofsted number") FROM table_2_15089329_3 WHERE "Intake" = '60' AND "Type" ILIKE '%junior%' AND "DCSF number" < '3386' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
2831,
385,
306,
8254,
310,
341,
1307,
29892,
825,
338,
278,
306,
5454,
29949,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29896,
29947,
29946,
29953,
29906,
29918,
29906,
29929,
313,
13,
12,
4920,
1030,
14641,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
29908,
797,
13888,
1951,
29908,
16985,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29315,
290,
3381,
1426,
29892,
13,
12,
29908,
12742,
29914,
8431,
20272,
29908,
1426,
29892,
13,
12,
2369,
1467,
358,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
4504,
1507,
1530,
2470,
29908,
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,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29929,
29946,
29906,
29918,
29906,
313,
13,
12,
29908,
19334,
512,
25606,
538,
681,
5244,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
29923,
4599,
1711,
10731,
20986,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
5938,
29453,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
1426,
29892,
13,
12,
29908,
5938,
29453,
313,
29900,
29900,
29900,
29879,
5513,
16985,
29892,
13,
12,
29908,
29923,
4599,
1711,
10731,
20986,
313,
29900,
29900,
29900,
29879,
5513,
16985,
29892,
13,
12,
29908,
3596,
20986,
313,
29900,
29900,
29900,
29879,
5513,
16985,
29892,
13,
12,
29908,
19334,
512,
25606,
538,
681,
5244,
313,
29900,
29900,
29900,
29879,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29945,
29945,
29941,
29945,
29900,
29946,
29918,
29906,
313,
13,
12,
2965,
29909,
29949,
1426,
29892,
13,
12,
16885,
1426,
29892,
13,
12,
29909,
381,
637,
1426,
29892,
13,
12,
29902,
8254,
1426,
29892,
13,
12,
20779,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
2831,
385,
306,
8254,
310,
341,
1307,
29892,
825,
338,
278,
306,
5454,
29949,
29973,
29952,
13,
28956,
2850,
13,
5097,
306,
5454,
29949,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29945,
29945,
29941,
29945,
29900,
29946,
29918,
29906,
5754,
376,
29902,
8254,
29908,
306,
5265,
6059,
14210,
29885,
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,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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,
306,
5454,
29949,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29945,
29945,
29941,
29945,
29900,
29946,
29918,
29906,
5754,
376,
29902,
8254,
29908,
306,
5265,
6059,
14210,
29885,
280,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`For an IATA of MLE, what is the ICAO?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11318462_29 (
Abbreviation text,
Founded numeric,
"In competition since" numeric,
School text,
Denomination text,
"Day/Boarding" text,
Enrolment numeric,
Location text,
"School Colours" text
);
CREATE TABLE table_1_11230937_2 (
"Directed by" text,
"Written by" text,
"No. in series" numeric,
"Original air date" text,
Title text,
"No. in season" numeric,
"U.S. viewers (millions)" text
);
CREATE TABLE table_1_101942_2 (
"Children In Hazardous Work (%)" text,
"Economically Active Children (%)" text,
"Child Labour (%)" text,
"unnamed_0" text,
"Child Labour (000s)" numeric,
"Economically Active Children (000s)" numeric,
"All Children (000s)" numeric,
"Children In Hazardous Work (000s)" numeric
);
CREATE TABLE table_2_14553504_2 (
ICAO text,
City text,
Airport text,
IATA text,
Country text
);
```
### Answer
Here is the SQL query that answers the question:
`For an IATA of MLE, what is the ICAO?`
```sql
| SELECT ICAO FROM table_2_14553504_2 WHERE "IATA" ILIKE '%mle%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
7525,
29871,
29906,
29892,
746,
7525,
29871,
29896,
338,
29871,
29906,
29901,
29900,
29929,
29889,
29900,
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,
29906,
29896,
29946,
29906,
29896,
29906,
29918,
29896,
313,
13,
12,
29908,
4597,
8306,
491,
916,
2794,
29908,
16985,
29892,
13,
12,
29908,
4597,
8306,
310,
263,
9461,
2278,
29908,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29940,
18771,
4371,
491,
13718,
29908,
16985,
29892,
13,
12,
29908,
29940,
18771,
4371,
491,
25488,
29908,
16985,
29892,
13,
12,
29908,
29940,
4680,
310,
435,
3304,
16708,
16896,
4908,
18363,
4034,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29929,
29946,
29946,
29896,
29900,
29955,
29918,
29906,
313,
13,
12,
29908,
6558,
29871,
29941,
29908,
1426,
29892,
13,
12,
15790,
1426,
29892,
13,
12,
29908,
6558,
29871,
29946,
29908,
1426,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
29908,
6558,
29871,
29906,
29908,
1426,
29892,
13,
12,
29908,
6558,
29871,
29896,
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,
338,
7525,
29871,
29906,
29892,
746,
7525,
29871,
29896,
338,
29871,
29906,
29901,
29900,
29929,
29889,
29900,
29929,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
6558,
29871,
29906,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29929,
29946,
29946,
29896,
29900,
29955,
29918,
29906,
5754,
376,
6558,
29871,
29896,
29908,
306,
5265,
6059,
14210,
29906,
29901,
29900,
29929,
29889,
29900,
29929,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
6558,
29871,
29906,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29929,
29946,
29946,
29896,
29900,
29955,
29918,
29906,
5754,
376,
6558,
29871,
29896,
29908,
306,
5265,
6059,
14210,
29906,
29901,
29900,
29929,
29889,
29900,
29929,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Run 2, when Run 1 is 2:09.09?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11214212_1 (
"Registration by other means" numeric,
"Registration of a minor child" numeric,
Year numeric,
"Naturalisation by marriage" numeric,
"Naturalisation by residence" numeric,
"Numer of Jamaicans granted British citizenship" numeric
);
CREATE TABLE table_2_16944107_2 (
"Run 3" text,
Final text,
"Run 4" text,
Rank text,
"Run 2" text,
"Run 1" text,
Team text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Run 2, when Run 1 is 2:09.09?`
```sql
| SELECT "Run 2" FROM table_2_16944107_2 WHERE "Run 1" ILIKE '%2:09.09%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1293,
599,
310,
278,
405,
2208,
17612,
8027,
10769,
29889,
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,
29900,
29929,
29955,
29929,
29906,
29941,
29900,
29918,
29946,
313,
13,
12,
29908,
29934,
290,
1175,
29875,
3611,
29908,
1426,
29892,
13,
12,
29908,
29967,
21419,
968,
3611,
29908,
1426,
29892,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
29949,
2200,
265,
16985,
29892,
13,
12,
7422,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29946,
29955,
29953,
29941,
29929,
29918,
29896,
313,
13,
12,
22606,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29908,
14199,
3268,
29908,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
9182,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29953,
29896,
29900,
29918,
29896,
29900,
313,
13,
12,
14199,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29947,
29900,
29946,
29906,
29946,
29900,
29929,
29918,
29896,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
2499,
655,
341,
1008,
29908,
1426,
29892,
13,
12,
29908,
27325,
21095,
1883,
344,
5165,
29908,
1426,
29892,
13,
12,
29908,
17579,
1288,
24620,
654,
29908,
1426,
29892,
13,
12,
29908,
29924,
1175,
272,
5165,
21095,
1883,
344,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
1293,
599,
310,
278,
405,
2208,
17612,
8027,
10769,
29889,
421,
13,
28956,
2850,
13,
5097,
14574,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29900,
29946,
29906,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
14574,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29900,
29946,
29906,
29946,
29900,
29929,
29918,
29896,
5754,
376,
27325,
21095,
1883,
344,
5165,
29908,
306,
5265,
6059,
14210,
29911,
272,
10268,
29995,
29934,
1698,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`List all of the NLL Toronto Rock players. `
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10979230_4 (
"Romaji title" text,
"Japanese title" text,
"Release date" text,
Oricon numeric,
Reference text
);
CREATE TABLE table_1_10647639_1 (
Week numeric,
Date text,
Opponent text,
"Game site" text,
Result text,
Attendance numeric,
Record text
);
CREATE TABLE table_1_11960610_10 (
Game numeric,
Team text,
Score text,
"High rebounds" text,
"High points" text,
"Location Attendance" text,
"High assists" text
);
CREATE TABLE table_1_18042409_1 (
Player text,
"Alma Mater" text,
"National Lacrosse League" text,
"International Competition" text,
"Major League Lacrosse" text
);
```
### Answer
Here is the SQL query that answers the question:
`List all of the NLL Toronto Rock players. `
```sql
| SELECT Player FROM table_1_18042409_1 WHERE "National Lacrosse League" ILIKE '%Toronto%Rock%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
4660,
363,
4832,
13449,
716,
3033,
1049,
29952,
13,
13,
2277,
29937,
5470,
1102,
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,
8003,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
9207,
29931,
8583,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29946,
29929,
29941,
29896,
29918,
29896,
313,
13,
12,
1170,
1426,
29892,
13,
12,
797,
26100,
16985,
29892,
13,
12,
6585,
287,
1426,
29892,
13,
12,
5709,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29925,
935,
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,
4660,
363,
4832,
13449,
716,
3033,
1049,
29952,
13,
28956,
2850,
13,
5097,
16034,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29946,
29929,
29941,
29896,
29918,
29896,
5754,
376,
29925,
935,
29908,
306,
5265,
6059,
14210,
28319,
29995,
15764,
29995,
1482,
29995,
996,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
16034,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29906,
29946,
29929,
29941,
29896,
29918,
29896,
5754,
376,
29925,
935,
29908,
306,
5265,
6059,
14210,
28319,
29995,
15764,
29995,
1482,
29995,
996,
1049,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the status for six flags new england`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10812938_3 (
Position text,
"Pick #" numeric,
College text,
Player text,
"CFL Team" text
);
CREATE TABLE table_2_1224931_1 (
Name text,
Inversions numeric,
Opened text,
Status text,
Country text,
Park text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the status for six flags new england`
```sql
| SELECT Status FROM table_2_1224931_1 WHERE "Park" ILIKE '%six%flags%new%england%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
797,
278,
1629,
988,
3218,
3100,
7813,
4006,
750,
263,
26654,
6588,
310,
29871,
29955,
29896,
29889,
29953,
29906,
29892,
920,
1784,
3064,
1258,
1183,
2125,
1473,
2058,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29946,
29947,
29941,
29953,
29896,
29947,
29945,
29918,
29941,
313,
13,
12,
29908,
29906,
299,
29908,
16985,
29892,
13,
12,
29908,
29903,
2616,
292,
7115,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29907,
8842,
1754,
20605,
16985,
29892,
13,
12,
29908,
29903,
2616,
292,
6588,
29908,
1426,
29892,
13,
12,
29908,
7031,
29871,
29896,
29900,
29879,
29908,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
29908,
29923,
2753,
886,
3255,
5513,
16985,
29892,
13,
12,
29908,
29911,
2905,
20060,
5318,
29908,
16985,
29892,
13,
12,
29908,
25353,
8341,
29908,
1426,
29892,
13,
12,
29908,
29941,
5499,
29908,
16985,
29892,
13,
12,
29908,
29924,
4992,
1051,
7115,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29953,
29947,
29918,
29906,
313,
13,
12,
29908,
1123,
1658,
363,
1735,
29908,
1426,
29892,
13,
12,
14191,
272,
1426,
29892,
13,
12,
29908,
2792,
313,
1990,
5513,
1426,
29892,
13,
12,
29908,
2539,
310,
2551,
943,
11595,
11161,
29908,
1426,
29892,
13,
12,
29963,
562,
1061,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
797,
278,
1629,
988,
3218,
3100,
7813,
4006,
750,
263,
26654,
6588,
310,
29871,
29955,
29896,
29889,
29953,
29906,
29892,
920,
1784,
3064,
1258,
1183,
2125,
1473,
2058,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29906,
299,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29946,
29947,
29941,
29953,
29896,
29947,
29945,
29918,
29941,
5754,
376,
29903,
2616,
292,
6588,
29908,
306,
5265,
6059,
14210,
29955,
29896,
29889,
29953,
29906,
29001,
2
] | [
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,
5097,
21122,
29898,
29906,
299,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29946,
29947,
29941,
29953,
29896,
29947,
29945,
29918,
29941,
5754,
376,
29903,
2616,
292,
6588,
29908,
306,
5265,
6059,
14210,
29955,
29896,
29889,
29953,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`In the year where Angela Stanford had a scoring average of 71.62, how many times did she take second place?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_14836185_3 (
"2nd" numeric,
"Scoring rank" text,
Year numeric,
"Cuts made*" numeric,
"Scoring average" text,
"Top 10s" numeric,
Wins numeric,
"Earnings ($)" numeric,
"Tournaments played" numeric,
"Best finish" text,
"3rd" numeric,
"Money list rank" numeric
);
CREATE TABLE table_1_1013168_2 (
"Reason for change" text,
Successor text,
"State (class)" text,
"Date of successors formal installation" text,
Vacator text
);
```
### Answer
Here is the SQL query that answers the question:
`In the year where Angela Stanford had a scoring average of 71.62, how many times did she take second place?`
```sql
| SELECT COUNT(2nd) FROM table_1_14836185_3 WHERE "Scoring average" ILIKE '%71.62%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
10768,
319,
373,
12720,
29871,
29906,
29941,
29955,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29947,
29900,
29929,
29946,
29918,
29941,
313,
13,
12,
8091,
16985,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
10844,
1312,
16985,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
7583,
16377,
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,
24601,
3785,
29908,
1426,
29892,
13,
12,
29908,
3317,
29889,
3081,
26226,
313,
7024,
29897,
472,
364,
3358,
29908,
1426,
29892,
13,
12,
29908,
2218,
29886,
9552,
21759,
29908,
16985,
29892,
13,
12,
29908,
3317,
29889,
4842,
802,
313,
29940,
29885,
29897,
472,
364,
3358,
29908,
1426,
29892,
13,
12,
29908,
10599,
775,
29908,
1426,
29892,
13,
12,
29908,
1270,
29880,
513,
414,
29914,
659,
1960,
29908,
1426,
29892,
13,
12,
4299,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29955,
29946,
29946,
29896,
29918,
29896,
313,
13,
12,
29928,
575,
537,
1426,
29892,
13,
12,
29908,
13799,
313,
8848,
30088,
5513,
16985,
29892,
13,
12,
29908,
29954,
11191,
639,
2117,
29889,
313,
29906,
29900,
29900,
29941,
29892,
297,
25540,
5513,
16985,
29892,
13,
12,
29908,
29954,
11191,
313,
29906,
29900,
29900,
29941,
29892,
349,
7024,
297,
2316,
29889,
25540,
1723,
29908,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
29906,
29900,
29900,
29946,
12678,
5513,
16985,
29892,
13,
12,
1184,
29894,
1239,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29900,
29918,
29906,
313,
13,
12,
23770,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29934,
299,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29945,
29896,
29947,
29955,
29955,
29941,
29945,
29918,
29896,
29929,
313,
13,
12,
29908,
17669,
358,
350,
29908,
1426,
29892,
13,
12,
29908,
17669,
358,
319,
29908,
1426,
29892,
13,
12,
29908,
17669,
358,
360,
29908,
1426,
29892,
13,
12,
29908,
17669,
358,
315,
29908,
1426,
29892,
13,
12,
29923,
12907,
16985,
29892,
13,
12,
29908,
19204,
14055,
1213,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
10768,
319,
373,
12720,
29871,
29906,
29941,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
17669,
358,
319,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29945,
29896,
29947,
29955,
29955,
29941,
29945,
29918,
29896,
29929,
5754,
376,
29923,
12907,
29908,
353,
525,
29906,
29941,
29955,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
17669,
358,
319,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29945,
29896,
29947,
29955,
29955,
29941,
29945,
29918,
29896,
29929,
5754,
376,
29923,
12907,
29908,
353,
525,
29906,
29941,
29955,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the segment A on episode 237?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11658094_3 (
Left numeric,
Institution text,
Joined numeric,
Type text,
Founded numeric,
Enrollment numeric,
Nickname text,
Location text,
"Current Conference" text
);
CREATE TABLE table_1_1176162_3 (
"top speed (km/h)" numeric,
"production period" text,
"max. power kW (PS) at rpm" text,
"displacement cc" numeric,
"max. torque (Nm) at rpm" text,
"engine code" text,
"cylinders/ valves" text,
model text
);
CREATE TABLE table_1_1067441_1 (
Density text,
"Area (km²)" numeric,
"GDP per cap. (2003, in €)" numeric,
"GDP (2003, PPS in mil. € )" numeric,
"Population (2004 estimate)" numeric,
Province text
);
CREATE TABLE table_1_1140080_2 (
Constructor text,
Report text,
"Pole Position" text,
Date text,
"Fastest Lap" text,
"Race Winner" text,
Race text,
Rnd numeric
);
CREATE TABLE table_1_15187735_19 (
"Segment B" text,
"Segment A" text,
"Segment D" text,
"Segment C" text,
Episode numeric,
"Series Ep." text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the segment A on episode 237?`
```sql
| SELECT "Segment A" FROM table_1_15187735_19 WHERE "Episode" = '237' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
3644,
278,
4423,
338,
27583,
265,
29892,
1619,
273,
3034,
29892,
825,
338,
278,
23995,
296,
3001,
1353,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29953,
29955,
29945,
29955,
29918,
29896,
313,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
2008,
1658,
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,
27641,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29945,
29946,
29906,
29947,
29953,
29906,
29929,
29918,
29896,
313,
13,
12,
29908,
2568,
713,
2522,
272,
414,
29908,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
855,
328,
1974,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29947,
29941,
29953,
29906,
29896,
29918,
29953,
313,
13,
12,
29908,
1748,
22863,
5165,
478,
3848,
14091,
1099,
29908,
1426,
29892,
13,
12,
29908,
1748,
22863,
5165,
6932,
29908,
1426,
29892,
13,
12,
29908,
1748,
22863,
5165,
3122,
29908,
1426,
29892,
13,
12,
29908,
1748,
22863,
5165,
3741,
8228,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29929,
29945,
29947,
29896,
29929,
29918,
29896,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
7583,
22102,
24034,
29908,
1426,
29892,
13,
12,
29908,
7583,
27641,
24034,
29908,
1426,
29892,
13,
12,
29908,
11536,
399,
29994,
29931,
29908,
1426,
29892,
13,
12,
29908,
29928,
283,
7586,
399,
29994,
29931,
29908,
1426,
29892,
13,
12,
29908,
10873,
793,
399,
29994,
29931,
29908,
1426,
29892,
13,
12,
29908,
6730,
1629,
5318,
29908,
16985,
29892,
13,
12,
29908,
29911,
583,
5318,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29941,
29941,
29929,
29953,
29918,
29945,
313,
13,
12,
29908,
8120,
1338,
1152,
29908,
16985,
29892,
13,
12,
29908,
3563,
497,
14164,
29908,
1426,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
7740,
29887,
1213,
1426,
29892,
13,
12,
29908,
8120,
1338,
1152,
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,
3644,
278,
4423,
338,
27583,
265,
29892,
1619,
273,
3034,
29892,
825,
338,
278,
23995,
296,
3001,
1353,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29949,
407,
265,
296,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29945,
29946,
29906,
29947,
29953,
29906,
29929,
29918,
29896,
5754,
376,
6508,
29908,
306,
5265,
6059,
14210,
29979,
574,
265,
24163,
3421,
273,
3034,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
29898,
29949,
407,
265,
296,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29945,
29946,
29906,
29947,
29953,
29906,
29929,
29918,
29896,
5754,
376,
6508,
29908,
306,
5265,
6059,
14210,
29979,
574,
265,
24163,
3421,
273,
3034,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`If the location is Yangon, Myanmar, what is the opponent total number?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12266757_1 (
"Womens singles" text,
"Mens singles" text,
Season text,
"Mixed doubles" text,
"Mens doubles" text,
"Womens doubles" text
);
CREATE TABLE table_1_25428629_1 (
"Indian Scorers" text,
Tournament text,
Location text,
Date text,
Score text,
Opponent text,
Stadium text
);
CREATE TABLE table_1_12283621_6 (
"Serbian League Vojvodina" text,
"Serbian League East" text,
"Serbian League West" text,
"Serbian League Belgrade" text
);
CREATE TABLE table_1_10295819_1 (
Player text,
"Current singles ranking" text,
"Current doubles ranking" text,
"Total W–L" text,
"Doubles W–L" text,
"Singles W–L" text,
"First year played" numeric,
"Ties played" numeric
);
CREATE TABLE table_1_1253396_5 (
"Goals For" numeric,
"Overall Record" text,
Club text,
"Goals Against Avg." text,
"Goals For Avg." text,
"Goals Against" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`If the location is Yangon, Myanmar, what is the opponent total number?`
```sql
| SELECT COUNT(Opponent) FROM table_1_25428629_1 WHERE "Location" ILIKE '%Yangon,%Myanmar%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
2186,
8158,
373,
4779,
29871,
29906,
29953,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29929,
29953,
29953,
29929,
29918,
29955,
313,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29896,
29946,
29945,
29947,
29896,
29918,
29941,
313,
13,
12,
29908,
1170,
297,
10637,
29908,
1426,
29892,
13,
12,
29954,
6170,
272,
403,
1426,
29892,
13,
12,
29908,
13799,
29892,
297,
17202,
310,
2383,
29871,
29906,
29908,
16985,
29892,
13,
12,
2008,
271,
1426,
29892,
13,
12,
29908,
12310,
2785,
29892,
297,
17202,
22657,
29871,
29896,
29929,
29900,
29945,
1723,
29908,
16985,
29892,
13,
12,
29908,
1170,
297,
19919,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29955,
29945,
29945,
29945,
29896,
29918,
29896,
313,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29955,
29941,
29896,
29953,
29918,
29896,
313,
13,
12,
29908,
9125,
1353,
29908,
1426,
29892,
13,
12,
29908,
29956,
10552,
24628,
313,
3750,
371,
12640,
1723,
29908,
1426,
29892,
13,
12,
4205,
3283,
1426,
29892,
13,
12,
29908,
7094,
1288,
12271,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
8893,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29929,
29906,
29953,
29953,
29918,
29947,
313,
13,
12,
29908,
8050,
4259,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
5730,
406,
29908,
1426,
29892,
13,
12,
29923,
3334,
2631,
16985,
29892,
13,
12,
29908,
2008,
1658,
10996,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
29908,
1043,
414,
313,
262,
14746,
5513,
1426,
29892,
13,
12,
29908,
2481,
21497,
313,
29923,
1254,
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,
2186,
8158,
373,
4779,
29871,
29906,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
2522,
487,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29929,
29953,
29953,
29929,
29918,
29955,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
29924,
1279,
29995,
29906,
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,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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
2522,
487,
3895,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29929,
29953,
29953,
29929,
29918,
29955,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
29924,
1279,
29995,
29906,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the final score on March 26?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11959669_7 (
"High rebounds" text,
Score text,
Date text,
"High points" text,
Game numeric,
"High assists" text,
Record text,
"Location Attendance" text,
Team text
);
CREATE TABLE table_1_11614581_3 (
"Name in Russian" text,
Governorate text,
"Area, in thousands of km 2" numeric,
Seat text,
"Population, in thousands,( 1905 )" numeric,
"Name in Polish" text
);
CREATE TABLE table_1_12275551_1 (
"Mens singles" text,
Year numeric,
"Womens doubles" text,
"Mens doubles" text,
"Mixed doubles" text,
"Womens singles" text
);
CREATE TABLE table_1_1057316_1 (
"Serial number" text,
"Wheel arrangement ( Whyte notation )" text,
Disposition text,
"Operational owner(s)" text,
"Build date" text
);
CREATE TABLE table_1_10819266_8 (
"TV season" text,
"Season premiere" text,
Episodes numeric,
"Season finale" text,
Season numeric,
Rank text,
"Viewers (in millions)" text,
"Time slot (EST)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the final score on March 26?`
```sql
| SELECT Score FROM table_1_11959669_7 WHERE "Date" ILIKE '%March%26%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
338,
278,
4847,
411,
263,
1629,
2678,
1135,
29871,
29906,
29900,
29900,
29955,
322,
278,
12755,
29914,
9812,
3762,
29914,
29066,
310,
23716,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29953,
29906,
29896,
29941,
29941,
29918,
29941,
313,
13,
12,
29908,
2539,
411,
19811,
1233,
29908,
1426,
29892,
13,
12,
29908,
2539,
7802,
2669,
29908,
1426,
29892,
13,
12,
29908,
2713,
4512,
1024,
29908,
1426,
29892,
13,
12,
29911,
3409,
482,
16985,
29892,
13,
12,
29908,
1542,
310,
1383,
666,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29900,
29900,
29947,
29906,
29918,
29947,
313,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29359,
29873,
4539,
1426,
29892,
13,
12,
29908,
3308,
4799,
2635,
29908,
1426,
29892,
13,
12,
29963,
2911,
1144,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
10507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29900,
29947,
29955,
29941,
29945,
29918,
29941,
313,
13,
12,
29908,
16107,
9959,
317,
2863,
29908,
1426,
29892,
13,
12,
29908,
797,
10147,
358,
382,
2753,
886,
29908,
1426,
29892,
13,
12,
29908,
4854,
17847,
267,
29908,
1426,
29892,
13,
12,
29908,
2792,
669,
14879,
29908,
1426,
29892,
13,
12,
29908,
11536,
830,
9947,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29953,
29929,
29953,
29896,
29945,
29918,
29946,
313,
13,
12,
29934,
618,
1426,
29892,
13,
12,
29908,
1625,
4424,
29914,
16382,
4523,
29914,
6821,
431,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
27325,
537,
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,
22110,
338,
278,
4847,
411,
263,
1629,
2678,
1135,
29871,
29906,
29900,
29900,
29955,
322,
278,
12755,
29914,
9812,
3762,
29914,
29066,
310,
23716,
29973,
29952,
13,
28956,
2850,
13,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29953,
29929,
29953,
29896,
29945,
29918,
29946,
5754,
376,
12883,
29908,
1405,
525,
29906,
29900,
29900,
29955,
29915,
5300,
376,
1625,
4424,
29914,
16382,
4523,
29914,
6821,
431,
29908,
306,
5265,
6059,
14210,
279,
466,
2681,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29955,
29906,
29953,
29929,
29953,
29896,
29945,
29918,
29946,
5754,
376,
12883,
29908,
1405,
525,
29906,
29900,
29900,
29955,
29915,
5300,
376,
1625,
4424,
29914,
16382,
4523,
29914,
6821,
431,
29908,
306,
5265,
6059,
14210,
279,
466,
2681,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who is the player with a year later than 2007 and the college/high school/club of Arizona?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11662133_3 (
"Date withdrawn" text,
"Date entered service" text,
"Ships name" text,
Tonnage numeric,
"Type of Ship" text
);
CREATE TABLE table_1_10470082_8 (
"#" numeric,
Storyteller text,
"US air date" text,
Villains text,
Title text,
"No." numeric,
Director text,
Writer text
);
CREATE TABLE table_1_11608735_3 (
"Other Local Sources" text,
"Investment Earnings" text,
"Property Taxes" text,
"State & Federal" text,
"Total Revenue" text
);
CREATE TABLE table_2_17269615_4 (
Round text,
"College/High School/Club" text,
Player text,
Year numeric,
Nationality text,
Position text
);
```
### Answer
Here is the SQL query that answers the question:
`Who is the player with a year later than 2007 and the college/high school/club of Arizona?`
```sql
| SELECT Player FROM table_2_17269615_4 WHERE "Year" > '2007' AND "College/High School/Club" ILIKE '%arizona%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
10733,
314,
1212,
1024,
393,
756,
263,
29871,
29906,
29900,
29900,
29896,
310,
29871,
29896,
29878,
322,
29871,
29906,
29900,
29896,
29896,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29945,
29946,
29946,
29953,
29946,
29918,
29955,
313,
13,
12,
29908,
29906,
29900,
29896,
29896,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29946,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29955,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29900,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29906,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29947,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29906,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29941,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29896,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29945,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29900,
29908,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29953,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29929,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29900,
29896,
29953,
29896,
29953,
29918,
29946,
313,
13,
12,
5709,
1426,
29892,
13,
12,
2369,
509,
424,
1426,
29892,
13,
12,
29908,
8179,
8561,
29908,
1426,
29892,
13,
12,
12376,
1426,
29892,
13,
12,
29908,
8179,
4408,
29908,
1426,
29892,
13,
12,
29908,
8179,
1939,
1213,
16985,
29892,
13,
12,
4763,
16985,
29892,
13,
12,
12881,
728,
16985,
29892,
13,
12,
29931,
2547,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29929,
29947,
29929,
29906,
29947,
29918,
29896,
313,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
3434,
29885,
3611,
1304,
297,
2245,
3381,
29908,
1426,
29892,
13,
12,
29908,
12883,
313,
29907,
14992,
2592,
5513,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
26036,
3611,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29953,
29955,
29945,
29955,
29918,
29896,
313,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29953,
29906,
29896,
29946,
29941,
29918,
29896,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
19132,
29881,
2931,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
7030,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29941,
29947,
29900,
29906,
29918,
29896,
313,
13,
12,
29908,
21472,
29892,
2125,
2696,
29908,
1426,
29892,
13,
12,
29908,
19111,
3090,
914,
330,
799,
11959,
29908,
1426,
29892,
13,
12,
29908,
1523,
2590,
11959,
29908,
1426,
29892,
13,
12,
29908,
25375,
1662,
21700,
29908,
1426,
29892,
13,
12,
29908,
29928,
719,
7688,
29908,
1426,
29892,
13,
12,
29908,
21472,
29892,
9126,
29908,
1426,
29892,
13,
12,
12412,
1426,
29892,
13,
12,
29908,
29907,
768,
936,
5272,
4279,
910,
338,
278,
9939,
5272,
4279,
472,
607,
278,
6012,
508,
6176,
967,
2989,
9126,
3081,
21700,
29889,
319,
29205,
445,
5272,
4279,
29892,
3081,
20074,
1283,
411,
3171,
408,
411,
263,
18180,
7051,
381,
630,
6012,
869,
2823,
5670,
3090,
914,
29937,
24528,
4279,
9545,
363,
4902,
1213,
1426,
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,
10733,
314,
1212,
1024,
393,
756,
263,
29871,
29906,
29900,
29900,
29896,
310,
29871,
29896,
29878,
322,
29871,
29906,
29900,
29896,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
29427,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29945,
29946,
29946,
29953,
29946,
29918,
29955,
5754,
376,
29906,
29900,
29900,
29896,
29908,
306,
5265,
6059,
14210,
29896,
29878,
29001,
5300,
376,
29906,
29900,
29896,
29896,
29908,
306,
5265,
6059,
14210,
29874,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
29427,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29945,
29946,
29946,
29953,
29946,
29918,
29955,
5754,
376,
29906,
29900,
29900,
29896,
29908,
306,
5265,
6059,
14210,
29896,
29878,
29001,
5300,
376,
29906,
29900,
29896,
29896,
29908,
306,
5265,
6059,
14210,
29874,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the tournamnet name that has a 2001 of 1r and 2011?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1554464_7 (
"2011" text,
"2004" text,
"2007" text,
"2010" text,
"2012" text,
"2008" text,
"2002" text,
"2003" text,
"2001" text,
"2005" text,
"2000" text,
Tournament text,
"2006" text,
"2009" text
);
CREATE TABLE table_1_12001616_4 (
Status text,
Entrant text,
"Car Make" text,
Driver text,
"Car Name" text,
"Car No." numeric,
Start numeric,
Finish numeric,
Laps numeric
);
CREATE TABLE table_1_10798928_1 (
Result text,
"Film title used in nomination" text,
"Year (Ceremony)" text,
Director text,
"Original title" text
);
CREATE TABLE table_1_12266757_1 (
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text,
"Mens singles" text,
Season text,
"Womens singles" text
);
CREATE TABLE table_1_11562143_1 (
"Directed by" text,
"Featured character(s)" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text,
"No. in season" numeric,
"No. in series" numeric,
Title text
);
CREATE TABLE table_1_1123802_1 (
"Power, takeoff" text,
"Supercharger gear ratio" text,
"Compression ratio" text,
"Octane rating" text,
"Dry weight" text,
"Power, continuous" text,
Engine text,
"Critical altitude This is the highest altitude at which the engine can achieve its full continuous power rating. Above this altitude, power falls off with height as with a naturally aspirated engine . See Supercharger#Altitude effects for details." text
);
```
### Answer
Here is the SQL query that answers the question:
`What's the tournamnet name that has a 2001 of 1r and 2011?`
```sql
| SELECT Tournament FROM table_2_1554464_7 WHERE "2001" ILIKE '%1r%' AND "2011" ILIKE '%a%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
11979,
672,
2602,
746,
278,
8158,
471,
29871,
29896,
29945,
29889,
29929,
313,
29929,
29929,
29897,
29994,
29896,
29946,
29889,
29953,
313,
29929,
29900,
6877,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29906,
29953,
29941,
29918,
29896,
29941,
313,
13,
12,
14199,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29953,
29900,
29918,
29906,
313,
13,
12,
29908,
29943,
814,
1793,
19257,
29908,
1426,
29892,
13,
12,
29908,
29940,
18771,
1735,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
29908,
23859,
12060,
29879,
29908,
1426,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
16985,
29892,
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,
29907,
582,
311,
4892,
6554,
313,
546,
29871,
29896,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
2772,
493,
29879,
1426,
29892,
13,
12,
29908,
29940,
18771,
1735,
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,
12596,
2459,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
29908,
4597,
29889,
24791,
29908,
1426,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
3226,
3437,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29896,
29945,
29946,
29918,
29955,
313,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29946,
29929,
29896,
29929,
29896,
29941,
29955,
29918,
29906,
313,
13,
12,
29933,
9972,
29883,
1901,
1426,
29892,
13,
12,
29934,
618,
1426,
29892,
13,
12,
29908,
3591,
29914,
29924,
3930,
29908,
1426,
29892,
13,
12,
2481,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
8050,
1426,
29892,
13,
12,
29949,
407,
4490,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
11184,
29914,
29909,
1582,
29908,
1426,
29892,
13,
12,
29908,
29931,
328,
672,
20627,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29953,
29946,
29929,
29945,
29955,
29918,
29906,
313,
13,
12,
29908,
1184,
29890,
3097,
310,
263,
4216,
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,
29892,
13,
12,
29908,
29906,
299,
10769,
7348,
29908,
1426,
29892,
13,
12,
29908,
1184,
29890,
3097,
29871,
29896,
303,
4847,
21614,
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,
11979,
672,
2602,
746,
278,
8158,
471,
29871,
29896,
29945,
29889,
29929,
313,
29929,
29929,
29897,
29994,
29896,
29946,
29889,
29953,
313,
29929,
29900,
6877,
29952,
13,
28956,
2850,
13,
5097,
376,
29931,
328,
672,
20627,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29929,
29896,
29929,
29896,
29941,
29955,
29918,
29906,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29896,
29945,
29889,
29929,
29995,
29898,
29929,
29929,
29897,
29994,
29896,
29946,
29889,
29953,
29995,
29898,
29929,
29900,
29897,
29001,
2
] | [
1,
1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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29931,
328,
672,
20627,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29946,
29929,
29896,
29929,
29896,
29941,
29955,
29918,
29906,
5754,
376,
20097,
29908,
306,
5265,
6059,
14210,
29896,
29945,
29889,
29929,
29995,
29898,
29929,
29929,
29897,
29994,
29896,
29946,
29889,
29953,
29995,
29898,
29929,
29900,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the ladder position when the score was 15.9 (99)–14.6 (90)?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11964263_13 (
Game numeric,
Team text,
Series text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"High points" text
);
CREATE TABLE table_1_12060_2 (
"Fertility rates" text,
"Natural change (per 1000)" text,
"Live births" text,
"unnamed_0" numeric,
"Average population (x 1000)" text,
"Crude birth rate (per 1000)" text,
"Crude death rate (per 1000)" text,
Deaths text,
"Natural change" text
);
CREATE TABLE table_1_12002388_1 (
Year numeric,
Division text,
"Open Cup" text,
"Reg. Season" text,
Playoffs text,
League text
);
CREATE TABLE table_1_11964154_7 (
Record text,
"Location Attendance" text,
Date text,
Score text,
"High rebounds" text
);
CREATE TABLE table_1_24919137_2 (
Broadcaster text,
Round text,
"Result/Margin" text,
Time text,
Date text,
TV text,
Opposition text,
Venue text,
Score text,
"Home/Away" text,
"Ladder Position" text
);
CREATE TABLE table_1_10664957_2 (
"Probability of a draw" text,
"Probability 2nd player wins" text,
"1st players choice" text,
"2nd players choice" text,
"Probability 1st player wins" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the ladder position when the score was 15.9 (99)–14.6 (90)?`
```sql
| SELECT "Ladder Position" FROM table_1_24919137_2 WHERE "Score" ILIKE '%15.9%(99)–14.6%(90)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
338,
278,
12616,
1627,
363,
19444,
13353,
4306,
29973,
29952,
13,
13,
2277,
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,
29953,
29955,
29955,
29947,
29947,
29955,
29918,
29896,
313,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29945,
29929,
29929,
29929,
29918,
29896,
313,
13,
12,
29908,
3563,
497,
23868,
396,
29908,
16985,
29892,
13,
12,
29908,
5098,
29931,
8583,
29908,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29953,
29955,
29945,
29918,
29896,
313,
13,
12,
4300,
18411,
1426,
29892,
13,
12,
20622,
1426,
29892,
13,
12,
1451,
3314,
16985,
29892,
13,
12,
1451,
8233,
1426,
29892,
13,
12,
29925,
4901,
262,
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,
12616,
1627,
363,
19444,
13353,
4306,
29973,
29952,
13,
28956,
2850,
13,
5097,
14574,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29953,
29955,
29955,
29947,
29947,
29955,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
339,
4254,
1627,
29001,
5300,
376,
1625,
4424,
29908,
306,
5265,
6059,
14210,
935,
13353,
29995,
3859,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29953,
29953,
29955,
29955,
29947,
29947,
29955,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
339,
4254,
1627,
29001,
5300,
376,
1625,
4424,
29908,
306,
5265,
6059,
14210,
935,
13353,
29995,
3859,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who is the quarterback for Arkansas State?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_16677887_1 (
Position text,
College text,
Round numeric,
"Pick #" numeric,
Player text
);
CREATE TABLE table_1_12165999_1 (
"Overall Pick #" numeric,
"AFL Team" text,
Position text
);
CREATE TABLE table_1_1216675_1 (
Translation text,
Subject text,
Chapter numeric,
Chinese text,
Pinyin text
);
```
### Answer
Here is the SQL query that answers the question:
`Who is the quarterback for Arkansas State?`
```sql
| SELECT Player FROM table_2_16677887_1 WHERE "Position" ILIKE '%quarterback%' AND "College" ILIKE '%arkansas%state%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
438,
407,
265,
1237,
505,
263,
7867,
310,
6410,
29892,
322,
263,
8448,
7968,
1135,
29871,
29946,
29929,
29892,
322,
405,
688,
20078,
3291,
310,
29871,
29896,
29900,
29947,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29896,
29945,
29946,
29918,
29929,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29953,
29896,
29946,
29953,
29946,
29918,
29941,
313,
13,
12,
14199,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29949,
407,
265,
1237,
16985,
29892,
13,
12,
855,
276,
557,
1426,
29892,
13,
12,
29908,
29940,
688,
20078,
3291,
29908,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29929,
29929,
29955,
29900,
29896,
29918,
29906,
313,
13,
12,
29908,
2385,
319,
23184,
29908,
1426,
29892,
13,
12,
29908,
2385,
319,
6344,
29909,
29908,
1426,
29892,
13,
12,
29908,
4504,
1507,
8905,
29908,
1426,
29892,
13,
12,
29908,
2385,
319,
6344,
29908,
1426,
29892,
13,
12,
29908,
2385,
22704,
29908,
1426,
29892,
13,
12,
29908,
2385,
319,
29908,
1426,
13,
416,
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,
340,
1847,
22135,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29900,
29918,
29906,
313,
13,
12,
29934,
299,
16985,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29934,
815,
1426,
13,
416,
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,
1625,
4424,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
9207,
29931,
8583,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5328,
1784,
438,
407,
265,
1237,
505,
263,
7867,
310,
6410,
29892,
322,
263,
8448,
7968,
1135,
29871,
29946,
29929,
29892,
322,
405,
688,
20078,
3291,
310,
29871,
29896,
29900,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29949,
407,
265,
1237,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29953,
29896,
29946,
29953,
29946,
29918,
29941,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
6758,
29001,
5300,
376,
14199,
29908,
529,
525,
29946,
29929,
29915,
5300,
376,
29940,
688,
20078,
3291,
29908,
353,
525,
29896,
29900,
29947,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
29898,
29949,
407,
265,
1237,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29906,
29953,
29896,
29946,
29953,
29946,
29918,
29941,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
6758,
29001,
5300,
376,
14199,
29908,
529,
525,
29946,
29929,
29915,
5300,
376,
29940,
688,
20078,
3291,
29908,
353,
525,
29896,
29900,
29947,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many Opponents have a Result of loss, and a Game smaller than 49, and Nuggets points of 108?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11964154_9 (
Date text,
"High points" text,
"Location Attendance" text,
"High assists" text,
"High rebounds" text,
Score text,
Team text
);
CREATE TABLE table_2_17261464_3 (
Game numeric,
Record text,
Result text,
Opponents numeric,
Streak text,
"Nuggets points" numeric,
Opponent text,
Date text
);
CREATE TABLE table_1_10399701_2 (
"Class AAAAA" text,
"Class AAAA" text,
"School Year" text,
"Class AAA" text,
"Class AA" text,
"Class A" text
);
CREATE TABLE table_1_11950720_3 (
"First Class Team" text,
"Bowling Style" text,
"No." text,
"Batting Style" text,
"Date of Birth" text,
Player text
);
CREATE TABLE table_1_1140080_2 (
Rnd numeric,
Constructor text,
"Pole Position" text,
"Race Winner" text,
Report text,
"Fastest Lap" text,
Location text,
Race text
);
CREATE TABLE table_1_10812938_3 (
"Pick #" numeric,
College text,
Position text,
"CFL Team" text
);
```
### Answer
Here is the SQL query that answers the question:
`How many Opponents have a Result of loss, and a Game smaller than 49, and Nuggets points of 108?`
```sql
| SELECT COUNT(Opponents) FROM table_2_17261464_3 WHERE "Result" ILIKE '%loss%' AND "Game" < '49' AND "Nuggets points" = '108' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
15178,
338,
278,
4726,
3527,
310,
6657,
4939,
297,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29945,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29900,
29953,
29929,
29896,
29947,
29918,
29906,
313,
13,
12,
3591,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
4557,
16985,
29892,
13,
12,
3206,
11259,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29911,
277,
793,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29896,
29947,
29906,
29906,
29918,
29945,
313,
13,
12,
29908,
17734,
1076,
5823,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
23012,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
2602,
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,
2008,
1658,
10996,
29908,
1426,
29892,
13,
12,
29908,
8050,
4259,
29908,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
1043,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
29164,
8276,
313,
382,
29911,
1723,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
5730,
406,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29945,
29946,
29896,
29945,
29953,
29918,
29896,
313,
13,
12,
29908,
16802,
29899,
3373,
29908,
1426,
29892,
13,
12,
29908,
29925,
374,
911,
341,
4992,
29908,
1426,
29892,
13,
12,
2369,
509,
1934,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29931,
14556,
5166,
29908,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
17734,
1076,
5166,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29947,
29953,
29900,
29900,
29955,
29953,
29900,
29918,
29896,
29945,
313,
13,
12,
29908,
22677,
313,
18074,
2460,
1723,
29908,
1426,
29892,
13,
12,
29908,
2190,
5425,
775,
29908,
16985,
29892,
13,
12,
29908,
1692,
29949,
3553,
29908,
16985,
29892,
13,
12,
29911,
776,
3527,
1426,
29892,
13,
12,
13992,
4279,
1426,
29892,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
8208,
4279,
1426,
29892,
13,
12,
29908,
12310,
29889,
313,
29906,
29900,
29896,
29900,
5513,
16985,
29892,
13,
12,
29908,
29956,
1008,
313,
3044,
2460,
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,
15178,
338,
278,
4726,
3527,
310,
6657,
4939,
297,
29973,
29952,
13,
28956,
2850,
13,
5097,
5127,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29953,
29900,
29900,
29955,
29953,
29900,
29918,
29896,
29945,
5754,
376,
29911,
776,
3527,
29908,
306,
5265,
6059,
14210,
24768,
4939,
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,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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
5127,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29953,
29900,
29900,
29955,
29953,
29900,
29918,
29896,
29945,
5754,
376,
29911,
776,
3527,
29908,
306,
5265,
6059,
14210,
24768,
4939,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What county is the township of Osborn in?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677100_5 (
Hometown text,
Player text,
"MLB Draft" text,
Position text,
School text
);
CREATE TABLE table_1_12206918_2 (
Result text,
Date text,
Opponent text,
Number numeric,
Defenses numeric,
Name text,
Titles text
);
CREATE TABLE table_1_12161822_5 (
"Winning constructor" text,
"Fastest lap" text,
"Winning driver" text,
"Rd." numeric,
Report text,
"Grand Prix" text,
"Pole position" text
);
CREATE TABLE table_1_10120207_8 (
Rank text,
"Season finale" text,
"TV season" text,
Season numeric,
"Viewers (millions)" text,
"Timeslot ( ET )" text,
"Season premiere" text
);
CREATE TABLE table_1_12454156_1 (
"Runner-Up" text,
"Prize Money" text,
Entrants numeric,
Year numeric,
"Losing Hand" text,
Winner text,
"Winning Hand" text
);
CREATE TABLE table_1_18600760_15 (
"Land ( sqmi )" text,
"ANSI code" numeric,
"GEO ID" numeric,
Township text,
Latitude text,
County text,
Longitude text,
"Pop. (2010)" numeric,
"Water (sqmi)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What county is the township of Osborn in?`
```sql
| SELECT County FROM table_1_18600760_15 WHERE "Township" ILIKE '%Osborn%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
8158,
373,
3786,
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,
29900,
29896,
29896,
29929,
29953,
29918,
29896,
313,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
29908,
29902,
29878,
728,
1024,
29908,
1426,
29892,
13,
12,
3981,
29891,
1426,
29892,
13,
12,
29908,
24636,
1024,
29908,
1426,
29892,
13,
12,
29908,
29902,
29878,
728,
7726,
414,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29929,
29953,
29900,
29946,
29900,
29955,
29918,
29947,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
15121,
3885,
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,
4504,
1507,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
8158,
373,
3786,
29871,
29906,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29929,
29953,
29900,
29946,
29900,
29955,
29918,
29947,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
481,
4115,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
2522,
487,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29929,
29953,
29900,
29946,
29900,
29955,
29918,
29947,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
481,
4115,
29995,
29906,
29900,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the score on April 20?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_101196_1 (
Population numeric,
"Irish name" text,
County text,
"English name" text,
"Irish speakers" text
);
CREATE TABLE table_2_11960407_8 (
Date text,
"High points" text,
Record text,
Team text,
Score text,
"High assists" text,
"Location Attendance" text,
Game numeric,
"High rebounds" text
);
CREATE TABLE table_1_11677691_3 (
Hometown text,
School text,
Player text,
Position text,
College text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the score on April 20?`
```sql
| SELECT Score FROM table_2_11960407_8 WHERE "Date" ILIKE '%april%20%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2407,
746,
432,
420,
261,
2032,
1100,
313,
29896,
29929,
29897,
750,
278,
29871,
1880,
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,
29906,
29955,
29955,
29900,
29900,
29945,
29941,
29900,
29918,
29896,
29900,
313,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29953,
29906,
29896,
29946,
29929,
29918,
29896,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
1426,
29892,
13,
12,
29908,
19132,
29881,
2931,
29898,
29879,
5513,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
2407,
746,
432,
420,
261,
2032,
1100,
313,
29896,
29929,
29897,
750,
278,
29871,
1880,
3291,
29973,
29952,
13,
28956,
2850,
13,
5097,
14164,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29955,
29900,
29900,
29945,
29941,
29900,
29918,
29896,
29900,
5754,
376,
16382,
3291,
29908,
306,
5265,
6059,
14210,
29967,
420,
261,
29995,
29940,
295,
1100,
29995,
29898,
29896,
29929,
29897,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
14164,
3895,
1591,
29918,
29896,
29918,
29906,
29955,
29955,
29900,
29900,
29945,
29941,
29900,
29918,
29896,
29900,
5754,
376,
16382,
3291,
29908,
306,
5265,
6059,
14210,
29967,
420,
261,
29995,
29940,
295,
1100,
29995,
29898,
29896,
29929,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the record when jameer nelson (19) had the high points?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_27700530_10 (
"Location Attendance" text,
Score text,
Record text,
"High rebounds" text,
Game numeric,
"High assists" text,
Team text,
"High points" text,
Date text
);
CREATE TABLE table_1_11562149_1 (
"Original air date" text,
"Directed by" text,
"No. in series" text,
"Featured character(s)" text,
Title text,
"Written by" text,
"U.S. viewers (million)" text,
"No. in season" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the record when jameer nelson (19) had the high points?`
```sql
| SELECT Record FROM table_1_27700530_10 WHERE "High points" ILIKE '%Jameer%Nelson%(19)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
8984,
29879,
505,
263,
5974,
29914,
8015,
2859,
310,
718,
29946,
29929,
29889,
29906,
29906,
29906,
409,
2395,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29947,
29955,
29946,
29941,
29929,
29900,
29918,
29906,
313,
13,
12,
29908,
2481,
29914,
8015,
2859,
29908,
1426,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29931,
2547,
16985,
29892,
13,
12,
5756,
16985,
29892,
13,
12,
12376,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29946,
29906,
29941,
29946,
29946,
29918,
29896,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
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,
29900,
29906,
29953,
29946,
29896,
29955,
29929,
29918,
29906,
313,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
8583,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
23495,
3121,
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,
284,
1450,
16952,
1450,
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,
1450,
9564,
585,
25887,
29908,
1426,
29892,
13,
12,
29908,
29968,
24456,
9564,
585,
25887,
29908,
1426,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
1426,
29892,
13,
12,
29908,
29968,
284,
585,
476,
1450,
585,
25887,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29955,
29896,
29947,
29918,
29906,
313,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
8984,
29879,
505,
263,
5974,
29914,
8015,
2859,
310,
718,
29946,
29929,
29889,
29906,
29906,
29906,
409,
2395,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
20325,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29947,
29955,
29946,
29941,
29929,
29900,
29918,
29906,
5754,
376,
2481,
29914,
8015,
2859,
29908,
306,
5265,
6059,
14210,
29974,
29946,
29929,
29889,
29906,
29906,
29906,
29995,
344,
2395,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18134,
29898,
20325,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29947,
29955,
29946,
29941,
29929,
29900,
29918,
29906,
5754,
376,
2481,
29914,
8015,
2859,
29908,
306,
5265,
6059,
14210,
29974,
29946,
29929,
29889,
29906,
29906,
29906,
29995,
344,
2395,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Points have a Time/Retired of +49.222 secs?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_16874390_2 (
"Time/Retired" text,
Points numeric,
Laps numeric,
Grid numeric,
Driver text,
Team text
);
CREATE TABLE table_1_10842344_1 (
"Directed by" text,
"U.S. viewers (millions)" text,
"Original air date" text,
Title text,
"Written by" text,
"No. in series" numeric,
"Production code" text,
"No. in season" numeric
);
CREATE TABLE table_1_10264179_2 (
"Pole Position" text,
"Winning Team" text,
"Winning Driver" text,
Date text,
"Fastest Lap" text,
Round numeric,
Circuit text
);
CREATE TABLE table_1_1015914_15 (
"Kalaw Lagaw Ya" text,
"Kauraraigau Ya (Kowrareg)" text,
"Kawalgau Ya" text,
"Kulkalgau Ya" text,
"unnamed_0" text,
"Kalau Kawau Ya" text
);
CREATE TABLE table_1_1137718_2 (
"Fastest Lap" text,
Report text,
Location text,
Constructor text,
"Rd." numeric,
"Grand Prix" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Points have a Time/Retired of +49.222 secs?`
```sql
| SELECT MAX(Points) FROM table_2_16874390_2 WHERE "Time/Retired" ILIKE '%+49.222%secs%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
15970,
338,
278,
278,
30081,
3742,
3774,
296,
30081,
2541,
30081,
29883,
5380,
1078,
30081,
915,
292,
3856,
274,
5705,
575,
313,
29881,
29897,
6888,
407,
2662,
29952,
13,
13,
2277,
29937,
5470,
1102,
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,
29941,
29941,
29896,
29918,
29945,
313,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
797,
29883,
3774,
296,
1426,
29892,
13,
12,
29908,
6730,
11467,
29908,
16985,
29892,
13,
12,
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,
29906,
29941,
29900,
29945,
29941,
29906,
29945,
29918,
29946,
313,
13,
12,
29908,
1433,
2435,
267,
11719,
29908,
1426,
29892,
13,
12,
29908,
29907,
336,
23379,
11719,
29908,
1426,
29892,
13,
12,
29923,
2576,
262,
630,
1426,
29892,
13,
12,
29908,
29933,
3389,
359,
11719,
29908,
1426,
29892,
13,
12,
17618,
1725,
1426,
29892,
13,
12,
29908,
29931,
575,
11719,
29908,
1426,
29892,
13,
12,
22606,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29941,
29953,
29947,
29941,
29900,
29918,
29953,
313,
13,
12,
29908,
3434,
29885,
4408,
29908,
1426,
29892,
13,
12,
29908,
2865,
943,
4408,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29940,
290,
3381,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29947,
29900,
29896,
29955,
29929,
29918,
29896,
313,
13,
12,
29908,
13799,
313,
8848,
30088,
5513,
16985,
29892,
13,
12,
29908,
29954,
11191,
313,
11522,
979,
5513,
1426,
29892,
13,
12,
29908,
29954,
11191,
639,
2117,
2028,
313,
11522,
979,
5513,
1426,
29892,
13,
12,
12310,
2785,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29946,
29896,
29945,
29896,
29947,
29918,
29896,
313,
13,
12,
29908,
6330,
4320,
20084,
29908,
1426,
29892,
13,
12,
29908,
2290,
25724,
491,
29908,
1426,
29892,
13,
12,
29908,
4789,
1038,
292,
4320,
20084,
29908,
1426,
29892,
13,
12,
29908,
29937,
310,
23238,
29908,
16985,
29892,
13,
12,
20755,
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,
338,
278,
278,
30081,
3742,
3774,
296,
30081,
2541,
30081,
29883,
5380,
1078,
30081,
915,
292,
3856,
274,
5705,
575,
313,
29881,
29897,
6888,
407,
2662,
29952,
13,
28956,
2850,
13,
5097,
9266,
3774,
296,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29941,
29941,
29896,
29918,
29945,
5754,
376,
29907,
5380,
1078,
29908,
306,
5265,
6059,
14210,
20841,
29995,
29907,
5705,
575,
29995,
29898,
29928,
29897,
29995,
29965,
1217,
407,
2662,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
9266,
3774,
296,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29941,
29941,
29896,
29918,
29945,
5754,
376,
29907,
5380,
1078,
29908,
306,
5265,
6059,
14210,
20841,
29995,
29907,
5705,
575,
29995,
29898,
29928,
29897,
29995,
29965,
1217,
407,
2662,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`who is the the incumbent with candidates being ben cravens (d) unopposed`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1342331_5 (
Party text,
Incumbent text,
"First elected" numeric,
Candidates text,
Result text,
District text
);
CREATE TABLE table_1_12305325_4 (
"Arlenes vote" text,
"Craigs vote" text,
Eliminated text,
"Brunos vote" text,
Safe text,
"Lens vote" text,
Week numeric
);
CREATE TABLE table_1_10236830_6 (
"Film Name" text,
"Actors Name" text,
Director text,
Country text,
Nomination text
);
CREATE TABLE table_1_11780179_1 (
"Area (km²)" numeric,
"GDP (nominal)" text,
"GDP per capita (nominal)" text,
Population numeric
);
CREATE TABLE table_1_12441518_1 (
"Main cast seasons" text,
"Portrayed by" text,
"Recurring cast seasons" text,
"# of episodes" numeric,
Character text
);
```
### Answer
Here is the SQL query that answers the question:
`who is the the incumbent with candidates being ben cravens (d) unopposed`
```sql
| SELECT Incumbent FROM table_1_1342331_5 WHERE "Candidates" ILIKE '%Ben%Cravens%(D)%Unopposed%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
14990,
746,
278,
7751,
471,
301,
6621,
29920,
340,
29892,
322,
263,
29871,
29896,
29906,
29899,
22466,
3109,
1135,
29871,
29947,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29941,
313,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29929,
29953,
29947,
29906,
29900,
29947,
29918,
29953,
313,
13,
12,
2713,
666,
1426,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
29896,
29906,
29899,
22466,
29908,
16985,
29892,
13,
12,
29908,
29896,
29941,
29889,
29945,
29899,
22466,
29914,
29896,
29906,
29945,
29900,
27728,
29908,
16985,
29892,
13,
12,
29908,
29896,
29941,
29889,
29945,
29899,
22466,
29914,
29896,
29946,
29900,
29900,
27728,
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,
14990,
746,
278,
7751,
471,
301,
6621,
29920,
340,
29892,
322,
263,
29871,
29896,
29906,
29899,
22466,
3109,
1135,
29871,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
11536,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29929,
29953,
29947,
29906,
29900,
29947,
29918,
29953,
5754,
376,
2713,
666,
29908,
306,
5265,
6059,
14210,
29880,
6621,
29920,
340,
29001,
5300,
376,
29896,
29906,
29899,
22466,
29908,
529,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18134,
29898,
11536,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29929,
29953,
29947,
29906,
29900,
29947,
29918,
29953,
5754,
376,
2713,
666,
29908,
306,
5265,
6059,
14210,
29880,
6621,
29920,
340,
29001,
5300,
376,
29896,
29906,
29899,
22466,
29908,
529,
525,
29947,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the highest Total when the ship was lützow, and a 12-inch less than 8?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677100_3 (
Player text,
"MLB Draft" text,
Hometown text,
School text,
Position text
);
CREATE TABLE table_2_15968208_6 (
Ship text,
Total numeric,
"12-inch" numeric,
"13.5-inch/1250lb" numeric,
"13.5-inch/1400lb" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the highest Total when the ship was lützow, and a 12-inch less than 8?`
```sql
| SELECT MAX(Total) FROM table_2_15968208_6 WHERE "Ship" ILIKE '%lützow%' AND "12-inch" < '8' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
1886,
1338,
363,
278,
4847,
1058,
750,
29871,
29896,
29906,
29896,
15121,
3885,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29906,
29947,
29906,
29946,
29941,
29900,
29906,
29918,
29941,
313,
13,
12,
7900,
2879,
16985,
29892,
13,
12,
29908,
20475,
498,
5727,
29908,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
7789,
1338,
16985,
29892,
13,
12,
7445,
29879,
16985,
29892,
13,
12,
29908,
29954,
1280,
7412,
287,
29908,
16985,
29892,
13,
12,
29908,
3073,
2921,
1338,
29908,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29934,
774,
3885,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29946,
29947,
29955,
29929,
29906,
29918,
29906,
313,
13,
12,
29903,
20510,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29943,
2429,
388,
1426,
29892,
13,
12,
29956,
287,
4515,
3250,
1426,
29892,
13,
12,
29924,
898,
388,
1426,
29892,
13,
12,
29911,
1041,
3250,
1426,
29892,
13,
12,
29903,
870,
388,
1426,
29892,
13,
12,
1349,
1295,
3250,
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,
1886,
1338,
363,
278,
4847,
1058,
750,
29871,
29896,
29906,
29896,
15121,
3885,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
7789,
1338,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29947,
29906,
29946,
29941,
29900,
29906,
29918,
29941,
5754,
376,
29934,
774,
3885,
29908,
353,
525,
29896,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
7789,
1338,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29947,
29906,
29946,
29941,
29900,
29906,
29918,
29941,
5754,
376,
29934,
774,
3885,
29908,
353,
525,
29896,
29906,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many steals for the player who had 121 rebounds?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_22824302_3 (
Assists numeric,
"Free Throws" numeric,
Player text,
Steals numeric,
Blocks numeric,
"Games Played" numeric,
"Field Goals" numeric,
Points numeric,
Rebounds numeric
);
CREATE TABLE table_1_11748792_2 (
Saturday text,
Series text,
Friday text,
Wednesday text,
Monday text,
Tuesday text,
Sunday text,
Thursday text
);
```
### Answer
Here is the SQL query that answers the question:
`How many steals for the player who had 121 rebounds?`
```sql
| SELECT MIN(Steals) FROM table_1_22824302_3 WHERE "Rebounds" = '121' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
5839,
29879,
1258,
278,
6346,
310,
3148,
29907,
8805,
701,
2805,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29906,
29896,
29947,
29955,
29900,
29918,
29941,
29906,
313,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
8120,
1338,
1426,
29892,
13,
12,
29853,
1426,
29892,
13,
12,
9652,
267,
1426,
29892,
13,
12,
20779,
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,
4259,
29908,
16985,
29892,
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,
3652,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29953,
29945,
29945,
29953,
29945,
29955,
29918,
29896,
313,
13,
12,
29934,
618,
1426,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29945,
29896,
29941,
29955,
29953,
29918,
29941,
313,
13,
12,
29908,
2008,
1658,
29871,
29941,
14055,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
5593,
1256,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
19204,
14055,
396,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
5920,
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,
5839,
29879,
1258,
278,
6346,
310,
3148,
29907,
8805,
701,
2805,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
29925,
860,
396,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29953,
29945,
29945,
29953,
29945,
29955,
29918,
29896,
5754,
376,
1625,
4424,
29908,
306,
5265,
6059,
14210,
22142,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
703,
29925,
860,
396,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29953,
29945,
29945,
29953,
29945,
29955,
29918,
29896,
5754,
376,
1625,
4424,
29908,
306,
5265,
6059,
14210,
22142,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many picks did the College of USC wind up getting?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12321870_32 (
"Player name" text,
Goals text,
Period text,
Matches text,
Country text
);
CREATE TABLE table_1_10908676_7 (
"No. in season" numeric,
"Written by" text,
Title text,
"Directed by" text,
"No. in series" numeric,
"Original air date" text
);
CREATE TABLE table_2_14655657_1 (
Round text,
College text,
Player text,
Position text,
"Pick #" numeric
);
CREATE TABLE table_1_12451376_3 (
"Season 3 Ep #" numeric,
"Original Airdate" text,
Director text,
"Writer(s)" text,
"Series Ep #" numeric,
"Production Code" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`How many picks did the College of USC wind up getting?`
```sql
| SELECT COUNT("Pick #") FROM table_2_14655657_1 WHERE "College" ILIKE '%usc%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
24577,
1629,
310,
278,
379,
14287,
10863,
411,
263,
8341,
310,
29871,
29946,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29896,
29945,
29955,
29945,
29947,
29918,
29945,
313,
13,
12,
1451,
465,
275,
1426,
29892,
13,
12,
12412,
1426,
29892,
13,
12,
4763,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
12881,
728,
16985,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29941,
313,
13,
12,
8003,
1426,
29892,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
1625,
4424,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
24577,
1629,
310,
278,
379,
14287,
10863,
411,
263,
8341,
310,
29871,
29946,
29973,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29896,
29945,
29955,
29945,
29947,
29918,
29945,
5754,
376,
12412,
29908,
306,
5265,
6059,
14210,
29882,
14287,
29001,
5300,
376,
12881,
728,
29908,
353,
525,
29946,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
341,
1177,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29896,
29945,
29955,
29945,
29947,
29918,
29945,
5754,
376,
12412,
29908,
306,
5265,
6059,
14210,
29882,
14287,
29001,
5300,
376,
12881,
728,
29908,
353,
525,
29946,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the earliest year of the Honda Engine with a finish of 4?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1615758_5 (
Chassis text,
Engine text,
Start text,
Year numeric,
Finish numeric,
Team text
);
CREATE TABLE table_1_11677691_3 (
Position text,
School text,
Hometown text,
Player text,
College text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the earliest year of the Honda Engine with a finish of 4?`
```sql
| SELECT MIN(YEAR) FROM table_2_1615758_5 WHERE "Engine" ILIKE '%honda%' AND "Finish" = '4' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
9939,
4723,
411,
263,
281,
29871,
29906,
29896,
29899,
29896,
29955,
1121,
29892,
322,
901,
1135,
29871,
29946,
29945,
29892,
29906,
29945,
29946,
297,
14333,
749,
29973,
29952,
13,
13,
2277,
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,
29947,
29900,
29947,
29896,
29955,
29918,
29896,
313,
13,
12,
3591,
1426,
29892,
13,
12,
22606,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
4165,
21642,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29896,
29946,
29955,
29955,
29906,
29918,
29896,
313,
13,
12,
1451,
3103,
1426,
29892,
13,
12,
29908,
29903,
14208,
29899,
15790,
391,
396,
29906,
29908,
1426,
29892,
13,
12,
12883,
1426,
29892,
13,
12,
29908,
16802,
29899,
3373,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29903,
14208,
29899,
15790,
391,
396,
29896,
29908,
1426,
29892,
13,
12,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29953,
313,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29896,
29945,
29947,
29906,
29918,
29896,
29900,
313,
13,
12,
19409,
1426,
29892,
13,
12,
19204,
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,
29892,
13,
12,
29908,
16382,
1223,
2879,
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,
9939,
4723,
411,
263,
281,
29871,
29906,
29896,
29899,
29896,
29955,
1121,
29892,
322,
901,
1135,
29871,
29946,
29945,
29892,
29906,
29945,
29946,
297,
14333,
749,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
8851,
29923,
29968,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29947,
29900,
29947,
29896,
29955,
29918,
29896,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
29893,
29995,
29906,
29896,
29899,
29896,
29955,
29001,
5300,
376,
4165,
21642,
29908,
1405,
525,
29946,
29945,
29892,
29906,
29945,
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,
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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,
5097,
18134,
29898,
8851,
29923,
29968,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29947,
29900,
29947,
29896,
29955,
29918,
29896,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
29893,
29995,
29906,
29896,
29899,
29896,
29955,
29001,
5300,
376,
4165,
21642,
29908,
1405,
525,
29946,
29945,
29892,
29906,
29945,
29946,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the highest week with a w 21-17 result, and more than 45,254 in attendance?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18680817_1 (
Result text,
Week numeric,
Date text,
Opponent text,
Attendance numeric
);
CREATE TABLE table_1_11214772_1 (
Champion text,
"Semi-Finalist #2" text,
Year text,
"Runner-Up" text,
Score text,
"Semi-Finalist #1" text,
Location text
);
CREATE TABLE table_1_11545282_6 (
"No." numeric,
"School/Club Team" text,
Player text,
Position text,
Nationality text,
"Years for Jazz" text
);
CREATE TABLE table_1_11961582_10 (
Team text,
Series text,
Game numeric,
"High rebounds" text,
"High points" text,
"Location Attendance" text,
"High assists" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the highest week with a w 21-17 result, and more than 45,254 in attendance?`
```sql
| SELECT MAX(WEEK) FROM table_2_18680817_1 WHERE "Result" ILIKE '%w%21-17%' AND "Attendance" > '45,254' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
317,
1691,
29974,
363,
8583,
443,
983,
1764,
394,
1050,
1553,
988,
278,
317,
1691,
29899,
892,
3109,
1135,
29871,
29906,
29896,
322,
278,
8984,
29879,
29974,
892,
3109,
1135,
29871,
29896,
29946,
29929,
29955,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29896,
29900,
29941,
29918,
29953,
313,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29955,
29955,
29929,
29929,
29953,
29918,
29896,
313,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29946,
386,
15484,
29908,
1426,
29892,
13,
12,
29908,
29896,
303,
15484,
29908,
1426,
29892,
13,
12,
29908,
29945,
386,
15484,
29908,
1426,
29892,
13,
12,
29908,
29906,
299,
15484,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29941,
5499,
15484,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29945,
29941,
29900,
29947,
29900,
29918,
29906,
313,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
29896,
29947,
29899,
29946,
29929,
29908,
1426,
29892,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29908,
22606,
368,
22125,
29908,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
1043,
414,
1426,
29892,
13,
12,
2713,
598,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29900,
29947,
29953,
29896,
29896,
29918,
29906,
313,
13,
12,
29908,
20325,
13578,
16985,
29892,
13,
12,
29908,
29903,
1691,
13578,
16985,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
29903,
1691,
29994,
29908,
16985,
29892,
13,
12,
29908,
20325,
29994,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29929,
29947,
29929,
29906,
29947,
29918,
29896,
313,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3434,
29885,
3611,
1304,
297,
2245,
3381,
29908,
1426,
29892,
13,
12,
29908,
12883,
313,
29907,
14992,
2592,
5513,
1426,
29892,
13,
12,
29908,
26036,
3611,
29908,
1426,
29892,
13,
12,
3591,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
317,
1691,
29974,
363,
8583,
443,
983,
1764,
394,
1050,
1553,
988,
278,
317,
1691,
29899,
892,
3109,
1135,
29871,
29906,
29896,
322,
278,
8984,
29879,
29974,
892,
3109,
1135,
29871,
29896,
29946,
29929,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
1660,
9375,
28135,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29900,
29947,
29953,
29896,
29896,
29918,
29906,
5754,
376,
29903,
1691,
29994,
29908,
529,
525,
29906,
29896,
29915,
5300,
376,
19409,
29908,
306,
5265,
6059,
14210,
348,
983,
1764,
29995,
284,
1050,
1553,
29001,
5300,
376,
20325,
13578,
529,
525,
29896,
29946,
29929,
29955,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
1660,
9375,
28135,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29941,
29900,
29947,
29953,
29896,
29896,
29918,
29906,
5754,
376,
29903,
1691,
29994,
29908,
529,
525,
29906,
29896,
29915,
5300,
376,
19409,
29908,
306,
5265,
6059,
14210,
348,
983,
1764,
29995,
284,
1050,
1553,
29001,
5300,
376,
20325,
13578,
529,
525,
29896,
29946,
29929,
29955,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the Sets+ for Team unicaja almería where the Sets- were less than 21 and the Points+ were less than 1497?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140103_6 (
"Race Name" text,
Constructor text,
Circuit text,
Report text,
Date text,
"#" numeric,
"Winning driver" text
);
CREATE TABLE table_1_11577996_1 (
Location text,
"4th Place" text,
"1st Place" text,
"5th Place" text,
"2nd Place" text,
Year numeric,
"3rd Place" text
);
CREATE TABLE table_1_11753080_2 (
"Air Date" text,
"18-49" text,
Timeslot text,
"Weekly Rank" text,
Rating text,
Episode text,
Viewers text,
Share numeric
);
CREATE TABLE table_2_17308611_2 (
"Points+" numeric,
"Sets+" numeric,
Team text,
"Sets–" numeric,
"Points–" numeric
);
CREATE TABLE table_1_10798928_1 (
Director text,
"Film title used in nomination" text,
"Year (Ceremony)" text,
"Original title" text,
Result text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the Sets+ for Team unicaja almería where the Sets- were less than 21 and the Points+ were less than 1497?`
```sql
| SELECT SUM(SETS+) FROM table_2_17308611_2 WHERE "Sets–" < '21' AND "Team" ILIKE '%unicaja%almería%' AND "Points+" < '1497' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
6909,
746,
278,
2058,
471,
260,
29947,
322,
278,
8158,
471,
29871,
29955,
29946,
29899,
29955,
29906,
29899,
29955,
29945,
29899,
29955,
29896,
29922,
29906,
29929,
29906,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29941,
29906,
29947,
29955,
29946,
29918,
29946,
313,
13,
12,
22150,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
1762,
610,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
29924,
4992,
313,
395,
1723,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29900,
29946,
29955,
29896,
29955,
29918,
29896,
313,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29945,
29947,
29900,
29929,
29946,
29918,
29941,
313,
13,
12,
1542,
1426,
29892,
13,
12,
2369,
1245,
358,
16985,
29892,
13,
12,
29908,
7583,
16377,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
3379,
5008,
1426,
29892,
13,
12,
10844,
1312,
16985,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
29940,
860,
978,
1426,
29892,
13,
12,
8091,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29953,
29941,
29929,
29900,
29918,
29906,
313,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29955,
29946,
29946,
29900,
29896,
29918,
29906,
313,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
29937,
5513,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
29896,
29947,
29994,
29946,
29929,
313,
29934,
1218,
29914,
2713,
598,
5513,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
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,
6909,
746,
278,
2058,
471,
260,
29947,
322,
278,
8158,
471,
29871,
29955,
29946,
29899,
29955,
29906,
29899,
29955,
29945,
29899,
29955,
29896,
29922,
29906,
29929,
29906,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29924,
4992,
313,
395,
1723,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29941,
29906,
29947,
29955,
29946,
29918,
29946,
5754,
376,
22150,
29908,
306,
5265,
6059,
14210,
29873,
29947,
29001,
5300,
376,
20097,
29908,
306,
5265,
6059,
14210,
29955,
29946,
29899,
29955,
29906,
29899,
29955,
29945,
29899,
29955,
29896,
29922,
29906,
29929,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29924,
4992,
313,
395,
1723,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29941,
29906,
29947,
29955,
29946,
29918,
29946,
5754,
376,
22150,
29908,
306,
5265,
6059,
14210,
29873,
29947,
29001,
5300,
376,
20097,
29908,
306,
5265,
6059,
14210,
29955,
29946,
29899,
29955,
29906,
29899,
29955,
29945,
29899,
29955,
29896,
29922,
29906,
29929,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the money when the place was t8 and the score was 74-72-75-71=292?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18132874_4 (
Place text,
Player text,
"To par" text,
Score text,
Country text,
"Money ( $ )" numeric
);
CREATE TABLE table_1_12204717_1 (
Year numeric,
"Mens singles" text,
"Womens doubles" text,
"Mens doubles" text,
"Womens singles" text,
"Mixed doubles" text
);
CREATE TABLE table_1_11658094_3 (
Type text,
Enrollment numeric,
"Current Conference" text,
Location text,
Institution text,
Joined numeric,
Founded numeric,
Nickname text,
Left numeric
);
CREATE TABLE table_1_12226390_2 (
"No. in series" numeric,
Title text,
"Original air date" text,
"Written by" text,
"Directed by" text,
"Production code" numeric
);
CREATE TABLE table_1_11274401_2 (
Timeslot text,
Rating text,
"Rank (#)" text,
Episode text,
"No." numeric,
"18–49 (Rating/Share)" text,
"Air Date" text,
Share numeric,
"Viewers (m)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the money when the place was t8 and the score was 74-72-75-71=292?`
```sql
| SELECT "Money ( $ )" FROM table_2_18132874_4 WHERE "Place" ILIKE '%t8%' AND "Score" ILIKE '%74-72-75-71=292%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
4145,
28157,
9862,
411,
19576,
310,
301,
4664,
454,
888,
269,
29064,
29952,
13,
13,
2277,
29937,
5470,
1102,
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,
29941,
313,
13,
12,
29908,
2290,
25724,
491,
29908,
1426,
29892,
13,
12,
9662,
800,
4034,
1426,
29892,
13,
12,
29908,
6730,
10097,
29908,
1426,
29892,
13,
12,
20755,
1426,
29892,
13,
12,
29908,
8897,
10097,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29946,
29900,
29955,
29918,
29906,
313,
13,
12,
9182,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
14199,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29946,
29941,
29929,
29945,
29929,
29906,
29900,
29918,
29906,
313,
13,
12,
29908,
3492,
865,
364,
1241,
12965,
29908,
1426,
29892,
13,
12,
29908,
20325,
12965,
29908,
1426,
29892,
13,
12,
29908,
19409,
12965,
29908,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
29908,
15263,
12965,
29908,
1426,
29892,
13,
12,
27276,
1426,
29892,
13,
12,
29908,
1523,
29890,
28157,
9862,
29908,
1426,
29892,
13,
12,
29908,
27648,
2708,
12965,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
1170,
278,
4145,
28157,
9862,
411,
19576,
310,
301,
4664,
454,
888,
269,
29064,
29952,
13,
28956,
2850,
13,
5097,
376,
1523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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,
5097,
376,
1523,
29890,
28157,
9862,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29946,
29941,
29929,
29945,
29929,
29906,
29900,
29918,
29906,
5754,
376,
29956,
3993,
29908,
306,
5265,
6059,
14210,
29880,
4664,
29995,
280,
888,
29995,
29879,
29064,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the combativity award with winner of luis león sánchez`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11240028_3 (
"Portrayed by" text,
Relationship text,
"First appearance" text,
Character text,
"Last appearance" text
);
CREATE TABLE table_1_11960407_2 (
Record text,
Score text,
Date text,
"Location Attendance" text,
"High points" text,
"High assists" text,
"High rebounds" text,
Team text,
Game numeric
);
CREATE TABLE table_2_14395920_2 (
"Young rider classification" text,
"Points classification" text,
"Team classification" text,
Winner text,
"General classification" text,
Stage text,
"Combativity award" text,
"Mountains classification" text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the combativity award with winner of luis león sánchez`
```sql
| SELECT "Combativity award" FROM table_2_14395920_2 WHERE "Winner" ILIKE '%luis%león%sánchez%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
12755,
1258,
10255,
28376,
14333,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
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,
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,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29906,
29896,
29955,
29953,
29918,
29896,
313,
13,
12,
29908,
4519,
6536,
2401,
29879,
313,
4035,
5513,
1426,
29892,
13,
12,
29908,
11536,
2401,
29879,
313,
4035,
5513,
1426,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
29908,
4519,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2401,
29879,
313,
4035,
5513,
16985,
29892,
13,
12,
29908,
16107,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
11536,
2921,
1338,
29908,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
16107,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
10536,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
10536,
6536,
2401,
29879,
313,
4035,
5513,
16985,
29892,
13,
12,
29908,
3226,
3437,
2921,
1338,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29941,
29953,
29896,
29929,
29945,
29918,
29906,
313,
13,
12,
6508,
1426,
29892,
13,
12,
17734,
1076,
19409,
1426,
29892,
13,
12,
29908,
3338,
392,
9550,
2539,
29908,
1426,
29892,
13,
12,
29908,
29907,
9258,
6291,
453,
18416,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29954,
29943,
6212,
21642,
29908,
16985,
29892,
13,
12,
29931,
14556,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29896,
29945,
29941,
29896,
29955,
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,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29941,
29955,
29953,
29946,
29941,
29953,
29918,
29896,
313,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29908,
29940,
10536,
8583,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
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,
24456,
9564,
585,
25887,
29908,
1426,
29892,
13,
12,
29908,
29968,
284,
585,
476,
1450,
585,
25887,
29908,
1426,
29892,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
1426,
29892,
13,
12,
29908,
29968,
6698,
2518,
335,
585,
25887,
313,
29968,
340,
336,
1727,
5513,
1426,
29892,
13,
12,
29908,
29968,
1450,
9564,
585,
25887,
29908,
1426,
29892,
13,
12,
29908,
29968,
284,
1450,
16952,
1450,
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,
12755,
1258,
10255,
28376,
14333,
29973,
29952,
13,
28956,
2850,
13,
5097,
6346,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29941,
29955,
29953,
29946,
29941,
29953,
29918,
29896,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
280,
265,
29995,
546,
719,
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,
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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,
5097,
6346,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29941,
29955,
29953,
29946,
29941,
29953,
29918,
29896,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
280,
265,
29995,
546,
719,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What college did Leon Perry attend?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10413597_4 (
"Directed by" text,
"No. in season" numeric,
"No. in series" numeric,
"Original air date" text,
Title text,
"Written by" text,
Setting text
);
CREATE TABLE table_1_1112176_1 (
"FA Cup Apps (Sub)" text,
"Total Apps (Sub)" text,
Division text,
"FA Cup Goals" numeric,
"League Apps (Sub)" numeric,
"Other Apps" numeric,
"Total Goals" numeric,
Season text,
"Other Goals" numeric,
"FL Cup Goals" numeric,
"FL Cup Apps (Sub)" numeric,
"League Goals" numeric
);
CREATE TABLE table_1_11236195_2 (
Location text,
WinningTeam text,
"Grand FinalDate" text,
"Clive Churchill Medal" text,
Score text,
"GF Attendance" numeric,
LosingTeam text
);
CREATE TABLE table_1_10715317_2 (
"No. in season" numeric,
"Directed by" text,
"Original air date" text,
"U.S. viewers (millions)" text
);
CREATE TABLE table_2_16376436_1 (
"Pick #" numeric,
College text,
"NFL Team" text,
Player text,
Position text
);
CREATE TABLE table_1_1015914_15 (
"Kulkalgau Ya" text,
"Kalau Kawau Ya" text,
"unnamed_0" text,
"Kauraraigau Ya (Kowrareg)" text,
"Kawalgau Ya" text,
"Kalaw Lagaw Ya" text
);
```
### Answer
Here is the SQL query that answers the question:
`What college did Leon Perry attend?`
```sql
| SELECT College FROM table_2_16376436_1 WHERE "Player" ILIKE '%leon%perry%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3001,
1353,
310,
4216,
29879,
746,
727,
526,
28145,
1135,
29871,
29941,
21614,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29941,
29953,
29945,
29900,
29953,
29918,
29896,
29941,
313,
13,
12,
2059,
267,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
8537,
29879,
16985,
29892,
13,
12,
14769,
475,
303,
16985,
29892,
13,
12,
29931,
2209,
267,
16985,
29892,
13,
12,
29908,
29954,
1025,
264,
390,
1536,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29941,
29945,
29918,
29896,
313,
13,
12,
7094,
1288,
1426,
29892,
13,
12,
29908,
12787,
326,
630,
4892,
29879,
29908,
1426,
29892,
13,
12,
29908,
7583,
4234,
310,
4423,
29908,
1426,
29892,
13,
12,
29908,
26666,
2794,
363,
4158,
12088,
886,
29908,
1426,
29892,
13,
12,
29908,
22034,
786,
1000,
20123,
29908,
1426,
29892,
13,
12,
29907,
1160,
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,
4216,
29879,
746,
727,
526,
28145,
1135,
29871,
29941,
21614,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
8537,
29879,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29941,
29953,
29945,
29900,
29953,
29918,
29896,
29941,
5754,
376,
29956,
1144,
29908,
529,
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,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
29898,
8537,
29879,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29900,
29941,
29953,
29945,
29900,
29953,
29918,
29896,
29941,
5754,
376,
29956,
1144,
29908,
529,
525,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the total number of draws when there are fewer than 3 wins?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18036506_13 (
Byes numeric,
Wins numeric,
Draws numeric,
Against numeric,
Losses numeric,
"Golden Rivers" text
);
CREATE TABLE table_1_10335_1 (
Operational text,
"Estimated deaths" text,
"Current country of location" text,
"Primary means for mass killings" text,
"Occupied territory" text,
Camp text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the total number of draws when there are fewer than 3 wins?`
```sql
| SELECT COUNT(Draws) FROM table_2_18036506_13 WHERE "Wins" < '3' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
1629,
471,
278,
472,
1600,
29877,
316,
767,
4233,
16372,
11091,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29955,
29955,
29906,
29906,
29946,
29918,
29896,
313,
13,
12,
29908,
29903,
1022,
284,
2920,
29908,
1426,
29892,
13,
12,
29908,
29925,
26310,
3309,
29908,
1426,
29892,
13,
12,
10649,
2478,
1426,
29892,
13,
12,
29908,
29925,
26310,
2920,
29908,
1426,
29892,
13,
12,
29908,
29903,
1022,
284,
3309,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29955,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
16985,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29896,
29945,
29947,
29906,
29918,
29955,
313,
13,
12,
9182,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29953,
29946,
29955,
29900,
29955,
29918,
29896,
313,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
12883,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29906,
29896,
29955,
29896,
29929,
29955,
29947,
29918,
29896,
313,
13,
12,
29908,
29909,
386,
1026,
293,
25985,
978,
29908,
1426,
29892,
13,
12,
2369,
1245,
358,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
29908,
4504,
1507,
29183,
29908,
1426,
29892,
13,
12,
3379,
5008,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29947,
29941,
29945,
29953,
29918,
29941,
313,
13,
12,
1451,
3103,
3527,
1426,
29892,
13,
12,
18498,
2161,
1426,
29892,
13,
12,
29949,
407,
265,
1237,
1426,
29892,
13,
12,
7439,
1089,
1426,
29892,
13,
12,
3744,
2763,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
1629,
471,
278,
472,
1600,
29877,
316,
767,
4233,
16372,
11091,
29973,
29952,
13,
28956,
2850,
13,
5097,
383,
7261,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29896,
29955,
29896,
29929,
29955,
29947,
29918,
29896,
5754,
376,
3379,
5008,
29908,
306,
5265,
6059,
14210,
29909,
841,
29872,
29877,
29995,
311,
29995,
2517,
4233,
29995,
11574,
537,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
383,
7261,
3895,
1591,
29918,
29896,
29918,
29906,
29906,
29896,
29955,
29896,
29929,
29955,
29947,
29918,
29896,
5754,
376,
3379,
5008,
29908,
306,
5265,
6059,
14210,
29909,
841,
29872,
29877,
29995,
311,
29995,
2517,
4233,
29995,
11574,
537,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What year was the ateneo de manila university founded?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10477224_1 (
"Sepal width" text,
"Petal length" text,
Species text,
"Petal width" text,
"Sepal length" text
);
CREATE TABLE table_1_11734041_7 (
Position text,
"Height in Ft." text,
"No.(s)" numeric,
"School/Club Team/Country" text,
"Years for Rockets" text,
Player text
);
CREATE TABLE table_1_11961582_7 (
Record text,
Team text,
"High rebounds" text,
Score text,
Date text,
"High assists" text,
"High points" text,
Game numeric,
"Location Attendance" text
);
CREATE TABLE table_1_12164707_1 (
"Mens doubles" text,
"Womens singles" text,
"Mens singles" text,
"Mixed doubles" text,
"Womens doubles" text,
Year numeric
);
CREATE TABLE table_1_22171978_1 (
"Athletic nickname" text,
Enrollment text,
Location text,
Founded numeric,
"School Colors" text,
Institution text
);
CREATE TABLE table_1_1028356_3 (
Championship text,
Surface text,
Opponents text,
Partner text,
Outcome text
);
```
### Answer
Here is the SQL query that answers the question:
`What year was the ateneo de manila university founded?`
```sql
| SELECT Founded FROM table_1_22171978_1 WHERE "Institution" ILIKE '%Ateneo%de%Manila%University%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
18492,
363,
2071,
336,
29129,
1362,
2766,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
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,
29956,
16697,
16985,
29892,
13,
12,
29908,
29941,
5499,
15484,
29908,
16985,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29934,
5963,
414,
29899,
786,
29908,
16985,
29892,
13,
12,
29908,
29946,
386,
15484,
29908,
16985,
29892,
13,
12,
29940,
362,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29945,
29896,
29896,
29900,
29918,
29955,
313,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29908,
12739,
319,
19698,
29908,
1426,
29892,
13,
12,
29908,
29954,
1280,
7412,
287,
29908,
16985,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
8120,
1338,
11454,
303,
29908,
16985,
29892,
13,
12,
29931,
15806,
16985,
29892,
13,
12,
8140,
2667,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29956,
1144,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29946,
29955,
29955,
29900,
29896,
29918,
29941,
313,
13,
12,
19409,
1426,
29892,
13,
12,
20325,
1426,
29892,
13,
12,
29931,
520,
1426,
29892,
13,
12,
8537,
1426,
29892,
13,
12,
9652,
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,
18492,
363,
2071,
336,
29129,
1362,
2766,
29973,
29952,
13,
28956,
2850,
13,
5097,
18492,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29946,
29955,
29955,
29900,
29896,
29918,
29941,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
808,
336,
29995,
29893,
1503,
1362,
2766,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18492,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29946,
29955,
29955,
29900,
29896,
29918,
29941,
5754,
376,
19409,
29908,
306,
5265,
6059,
14210,
808,
336,
29995,
29893,
1503,
1362,
2766,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the Draw for skra warszawa?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12303563_2 (
Winners numeric,
"3rd Place" numeric,
"#" numeric,
"Runners-up" numeric,
"4th Place" numeric,
Nation text
);
CREATE TABLE table_1_1255110_7 (
Club text,
"GA Average" text,
"Games Played" numeric,
"No." numeric,
"Goals Against" numeric,
Loses numeric,
Minutes numeric,
Player text,
Wins numeric
);
CREATE TABLE table_2_15447701_3 (
Team text,
Points text,
Lost text,
Draw text,
Match text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the Draw for skra warszawa?`
```sql
| SELECT Draw FROM table_2_15447701_3 WHERE "Team" ILIKE '%skra%warszawa%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
3815,
750,
278,
14333,
749,
310,
29871,
29896,
29953,
29892,
29946,
29953,
29947,
322,
5714,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29946,
29946,
29945,
29906,
29918,
29896,
313,
13,
12,
29908,
29923,
12907,
3611,
29908,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
19204,
396,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29953,
29946,
29945,
29896,
29941,
29918,
29945,
313,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
29931,
2209,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29946,
313,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29953,
29918,
29947,
313,
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,
3652,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29955,
29945,
29929,
29900,
29918,
29896,
313,
13,
12,
29908,
29979,
3163,
29914,
4165,
3456,
29908,
1426,
29892,
13,
12,
29934,
1218,
1426,
29892,
13,
12,
29908,
29954,
1280,
4687,
29908,
16985,
29892,
13,
12,
29954,
1280,
16985,
29892,
13,
12,
4165,
3456,
29879,
16985,
29892,
13,
12,
29908,
28958,
1273,
29908,
1426,
29892,
13,
12,
4074,
1441,
29879,
16985,
29892,
13,
12,
29979,
3163,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
8909,
29873,
1080,
16985,
29892,
13,
12,
15852,
3204,
29879,
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,
3782,
14030,
29879,
5513,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
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,
3815,
750,
278,
14333,
749,
310,
29871,
29896,
29953,
29892,
29946,
29953,
29947,
322,
5714,
29973,
29952,
13,
28956,
2850,
13,
5097,
365,
2209,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29953,
29946,
29945,
29896,
29941,
29918,
29945,
5754,
376,
4165,
21642,
29908,
306,
5265,
6059,
14210,
29896,
29953,
29892,
29946,
29953,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
365,
2209,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29896,
29953,
29946,
29945,
29896,
29941,
29918,
29945,
5754,
376,
4165,
21642,
29908,
306,
5265,
6059,
14210,
29896,
29953,
29892,
29946,
29953,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which team had the attendance of 16,468 and lost?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11404452_1 (
"Episode title" text,
"Writer(s)" text,
"U.S. viewers (millions)" text,
Director text,
"Series #" numeric,
"Original air date" text
);
CREATE TABLE table_2_12164513_5 (
Opponent text,
Score text,
Attendance text,
Loss text,
Date text
);
CREATE TABLE table_1_10953197_4 (
"No. in season" numeric,
Title text,
"Production code" text,
"Writer(s)" text,
"No. in series" numeric
);
CREATE TABLE table_1_11111116_8 (
"Written by" text,
"U.S. viewers (million)" text,
"No. in series" numeric,
"Directed by" text
);
CREATE TABLE table_1_1037590_1 (
"Yards/Attempt" text,
Rating text,
"Games started" numeric,
Games numeric,
Attempts numeric,
"Completion %" text,
Interceptions numeric,
Yards numeric,
Year numeric,
Completions numeric,
Touchdowns numeric
);
CREATE TABLE table_1_11734041_18 (
"No.(s)" text,
"Height in Ft." text,
"Years for Rockets" text,
Position text,
Player text,
"School/Club Team/Country" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which team had the attendance of 16,468 and lost?`
```sql
| SELECT Loss FROM table_2_12164513_5 WHERE "Attendance" ILIKE '%16,468%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
5802,
297,
29871,
29906,
29900,
29896,
29900,
411,
7115,
310,
29871,
29947,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29947,
29941,
29945,
29918,
29896,
313,
13,
12,
12883,
16985,
29892,
13,
12,
29924,
3930,
16985,
29892,
13,
12,
4421,
2361,
1426,
29892,
13,
12,
29908,
3338,
392,
9550,
391,
29908,
1426,
29892,
13,
12,
29956,
16697,
1426,
29892,
13,
12,
29908,
2008,
1658,
7867,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29907,
798,
29881,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29946,
29941,
29953,
29918,
29906,
313,
13,
12,
29934,
804,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29900,
29908,
1426,
29892,
13,
12,
29908,
29906,
29900,
29900,
29929,
29908,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
29906,
29900,
29896,
29896,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29947,
29918,
29953,
313,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
13020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29941,
29906,
29945,
29906,
29953,
29918,
29906,
313,
13,
12,
2385,
1426,
29892,
13,
12,
9842,
1426,
29892,
13,
12,
29908,
29950,
913,
11848,
2596,
29908,
16985,
29892,
13,
12,
23182,
1426,
29892,
13,
12,
29908,
2713,
666,
4408,
29908,
1426,
29892,
13,
12,
29908,
3170,
2440,
29908,
1426,
29892,
13,
12,
6572,
16604,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29929,
29946,
29946,
29918,
29953,
313,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
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,
5802,
297,
29871,
29906,
29900,
29896,
29900,
411,
7115,
310,
29871,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
29871,
29906,
29900,
29896,
29900,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29946,
29941,
29953,
29918,
29906,
5754,
376,
29934,
804,
29908,
306,
5265,
6059,
14210,
29947,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
29871,
29906,
29900,
29896,
29900,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29946,
29941,
29953,
29918,
29906,
5754,
376,
29934,
804,
29908,
306,
5265,
6059,
14210,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the production in 2010 with rank of 8?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1139835_1 (
Year numeric,
Margin numeric,
Scores text,
"Grand Finalist" text,
Winners text,
"Season Result" text,
Venue text,
Crowd numeric
);
CREATE TABLE table_2_12436_2 (
Rank text,
"2010" text,
"2009" text,
Country text,
"2011" text
);
CREATE TABLE table_1_1140088_6 (
"Race Name" text,
"Winning driver" text,
Date text,
Circuit text,
Constructor text,
Report text
);
CREATE TABLE table_1_12232526_2 (
Class text,
Note text,
"Hull Numbers" numeric,
Origin text,
"Ship Name" text,
"Service years" text,
Previously text
);
CREATE TABLE table_1_11960944_6 (
Game numeric,
"Location Attendance" text,
"High points" text,
Score text,
Team text,
Record text,
"High rebounds" text,
"High assists" text
);
```
### Answer
Here is the SQL query that answers the question:
`what is the production in 2010 with rank of 8?`
```sql
| SELECT 2010 FROM table_2_12436_2 WHERE "Rank" ILIKE '%8%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
10624,
278,
321,
1066,
680,
393,
471,
20654,
491,
29871,
29896,
29889,
29929,
29945,
7284,
3148,
1776,
414,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29946,
29929,
29941,
29953,
29955,
29918,
29941,
313,
13,
12,
29908,
7129,
287,
3026,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
1451,
11768,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
3057,
29899,
29873,
5790,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29946,
29900,
29900,
29906,
29947,
29918,
29941,
313,
13,
12,
20755,
1426,
29892,
13,
12,
29908,
6730,
10097,
29908,
1426,
29892,
13,
12,
9662,
800,
4034,
1426,
29892,
13,
12,
29908,
2290,
25724,
491,
29908,
1426,
29892,
13,
12,
29908,
8897,
10097,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29946,
29945,
29929,
29918,
29896,
313,
13,
12,
3047,
19811,
1233,
16985,
29892,
13,
12,
29908,
4557,
12146,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
5373,
2782,
29908,
16985,
29892,
13,
12,
2928,
3518,
1133,
16985,
29892,
13,
12,
5627,
1426,
29892,
13,
12,
18457,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29953,
29946,
29896,
29955,
29929,
29918,
29906,
313,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
8583,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29953,
29955,
29941,
29953,
29941,
29946,
29906,
29918,
29896,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
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,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29906,
29955,
29906,
29896,
29945,
29918,
29941,
313,
13,
12,
13020,
1426,
29892,
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,
1170,
1426,
29892,
13,
12,
29908,
17734,
1076,
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,
22110,
10624,
278,
321,
1066,
680,
393,
471,
20654,
491,
29871,
29896,
29889,
29929,
29945,
7284,
3148,
1776,
414,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
17392,
287,
491,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29955,
29941,
29953,
29941,
29946,
29906,
29918,
29896,
5754,
376,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
306,
5265,
6059,
14210,
29896,
29889,
29929,
29945,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29896,
29918,
29906,
29953,
29955,
29941,
29953,
29941,
29946,
29906,
29918,
29896,
5754,
376,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
306,
5265,
6059,
14210,
29896,
29889,
29929,
29945,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who directed the eposide that was watched by 1.95 million US viewers?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10749367_3 (
"Passed?" text,
"#" numeric,
Winner text,
Challenge text,
"Air Date" text,
"Test-taker" text
);
CREATE TABLE table_1_11240028_3 (
Character text,
"First appearance" text,
Relationship text,
"Portrayed by" text,
"Last appearance" text
);
CREATE TABLE table_1_1081459_1 (
Withdrawn numeric,
"Number Range" text,
"No. Built" numeric,
Introduced numeric,
Builder text,
Region text
);
CREATE TABLE table_1_10264179_2 (
"Winning Driver" text,
"Winning Team" text,
Round numeric,
Date text,
"Pole Position" text,
Circuit text,
"Fastest Lap" text
);
CREATE TABLE table_1_26736342_1 (
"Original air date" text,
"U.S. viewers (millions)" text,
"No. in series" numeric,
Title text,
"Directed by" text,
"No. in season" numeric,
"Written by" text
);
CREATE TABLE table_1_10527215_3 (
Report text,
Rd numeric,
"Winning driver" text,
"Fastest Lap" text,
Name text,
"Winning team" text
);
```
### Answer
Here is the SQL query that answers the question:
`Who directed the eposide that was watched by 1.95 million US viewers?`
```sql
| SELECT "Directed by" FROM table_1_26736342_1 WHERE "U.S. viewers (millions)" ILIKE '%1.95%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
1629,
393,
4092,
2113,
29892,
746,
278,
8278,
29915,
29879,
10842,
471,
19663,
29891,
20572,
12554,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
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,
29941,
29918,
29953,
313,
13,
12,
2539,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29953,
29947,
29918,
29941,
313,
13,
12,
29908,
2539,
29433,
409,
630,
29908,
1426,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
14191,
272,
1426,
29892,
13,
12,
29963,
562,
1061,
1426,
29892,
13,
12,
29908,
1123,
1658,
363,
1735,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29953,
29947,
29896,
29941,
29918,
29896,
313,
13,
12,
20097,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
15654,
10842,
29908,
1426,
29892,
13,
12,
29908,
27019,
10842,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29908,
17734,
1076,
3815,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29941,
29953,
29918,
29896,
313,
13,
12,
29908,
29907,
719,
11195,
3829,
29908,
1426,
29892,
13,
12,
2500,
2497,
1426,
29892,
13,
12,
29908,
3782,
29889,
310,
10406,
29899,
29949,
3814,
267,
297,
5190,
3038,
29908,
16985,
29892,
13,
12,
3664,
362,
1426,
29892,
13,
12,
29908,
29911,
274,
313,
29968,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29945,
29946,
29896,
29896,
29896,
29918,
29941,
313,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29908,
29164,
8276,
22125,
29908,
16985,
29892,
13,
12,
29908,
29934,
1218,
29914,
2713,
598,
29871,
29896,
29947,
29994,
29946,
29929,
29908,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
3563,
497,
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,
29934,
1218,
1426,
29892,
13,
12,
29908,
29940,
523,
22125,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29906,
29900,
29896,
29955,
29947,
29918,
29896,
313,
13,
12,
29908,
29907,
5060,
3309,
313,
2527,
414,
5513,
16985,
29892,
13,
12,
29908,
12883,
310,
7632,
29908,
16985,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
1170,
310,
278,
9459,
29908,
1426,
29892,
13,
12,
29907,
11960,
1426,
29892,
13,
12,
29908,
7011,
313,
2527,
414,
5513,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
1629,
393,
4092,
2113,
29892,
746,
278,
8278,
29915,
29879,
10842,
471,
19663,
29891,
20572,
12554,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29953,
29947,
29896,
29941,
29918,
29896,
5754,
376,
17734,
1076,
3815,
29908,
306,
5265,
6059,
14210,
29872,
3214,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18134,
29898,
29979,
26441,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29953,
29947,
29896,
29941,
29918,
29896,
5754,
376,
17734,
1076,
3815,
29908,
306,
5265,
6059,
14210,
29872,
3214,
29001,
5300,
376,
27019,
10842,
29908,
306,
5265,
6059,
14210,
29895,
493,
29891,
29995,
1332,
277,
12554,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the highest year that Europe won, when the USA's Captain was Kathy Whitworth?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140103_6 (
Date text,
Constructor text,
"Winning driver" text,
"#" numeric,
Report text,
"Race Name" text,
Circuit text
);
CREATE TABLE table_1_1013168_3 (
"Date successor seated" text,
District text,
Successor text,
Vacator text,
"Reason for change" text
);
CREATE TABLE table_2_1546813_1 (
Score text,
Year numeric,
"Europe Captain" text,
"USA Captain" text,
Venue text,
"Winning team" text
);
CREATE TABLE table_1_101336_1 (
"Crystal structure" text,
Formula text,
"No. of Cu-O planes in unit cell" numeric,
Notation text,
"T c (K)" numeric
);
CREATE TABLE table_1_11354111_3 (
Share numeric,
"Timeslot Rank" numeric,
"Rating/Share 18–49" text,
Episode text,
"Overall Rank" numeric,
"Viewers (m)" text,
"Air Date" text,
Rating text,
"Night Rank" text
);
CREATE TABLE table_1_10020178_1 (
"Crest length (meters)" numeric,
"Year of construction" numeric,
Type text,
Name text,
"Name of the Lake" text,
Canton text,
"Height (meters)" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the highest year that Europe won, when the USA's Captain was Kathy Whitworth?`
```sql
| SELECT MAX(YEAR) FROM table_2_1546813_1 WHERE "Winning team" ILIKE '%europe%' AND "USA Captain" ILIKE '%kathy%whitworth%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
10624,
278,
12720,
411,
263,
5802,
775,
310,
29871,
29941,
29900,
29896,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29946,
29900,
29929,
29900,
29955,
29918,
29896,
313,
13,
12,
29908,
1666,
16719,
639,
12139,
29908,
16985,
29892,
13,
12,
29924,
4376,
2877,
1426,
29892,
13,
12,
29908,
7713,
625,
13049,
29908,
16985,
29892,
13,
12,
29908,
7713,
625,
4889,
29908,
1426,
29892,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
29908,
11536,
21544,
313,
29906,
29900,
29900,
29945,
5513,
1426,
29892,
13,
12,
29908,
20647,
603,
6554,
639,
29871,
29896,
29892,
29900,
29900,
29900,
2305,
29908,
16985,
29892,
13,
12,
29908,
8259,
6866,
1145,
29908,
16985,
29892,
13,
12,
29908,
25733,
639,
2117,
2028,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29953,
29929,
29929,
29896,
29941,
29918,
29896,
313,
13,
12,
29908,
12883,
313,
29907,
14992,
2592,
5513,
1426,
29892,
13,
12,
29908,
26036,
3611,
29908,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
3434,
29885,
3611,
1304,
297,
2245,
3381,
29908,
1426,
29892,
13,
12,
3591,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29947,
29946,
29906,
29946,
29946,
29941,
29945,
29918,
29946,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
6028,
328,
713,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
6028,
328,
713,
4799,
2635,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29946,
29941,
29947,
29941,
29918,
29896,
313,
13,
12,
29908,
22406,
472,
15069,
2633,
29908,
1426,
29892,
13,
12,
13504,
1693,
1426,
29892,
13,
12,
29908,
2539,
310,
15069,
2633,
29908,
1426,
29892,
13,
12,
29931,
361,
267,
8357,
1426,
29892,
13,
12,
29908,
2539,
310,
12060,
29908,
1426,
29892,
13,
12,
29908,
5044,
310,
1840,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
4892,
29908,
1426,
29892,
13,
12,
29908,
6513,
310,
3240,
19211,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29953,
29900,
29953,
29945,
29953,
29918,
29896,
313,
13,
12,
29934,
618,
16985,
29892,
13,
12,
3563,
497,
16985,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
29620,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
1625,
4424,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
22110,
10624,
278,
12720,
411,
263,
5802,
775,
310,
29871,
29941,
29900,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
17392,
287,
491,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29946,
29906,
29946,
29946,
29941,
29945,
29918,
29946,
5754,
376,
23665,
428,
775,
29908,
353,
525,
29941,
29900,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
17392,
287,
491,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29946,
29906,
29946,
29946,
29941,
29945,
29918,
29946,
5754,
376,
23665,
428,
775,
29908,
353,
525,
29941,
29900,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who directed the episode with a production code of 301?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_12340907_1 (
"Residents per officer" numeric,
Municipality text,
"Police officers" numeric,
"Police force" text,
Population numeric,
"Total costs (2005)" text,
"Crime rate per 1,000 people" numeric,
"Case burden" numeric,
"Cost per capita" text
);
CREATE TABLE table_1_12369913_1 (
"Year (Ceremony)" text,
"Original title" text,
Director text,
"Film title used in nomination" text,
Result text
);
CREATE TABLE table_1_18424435_4 (
"Directed by" text,
"No." numeric,
Title text,
"Canadian viewers (million)" text,
"#" numeric,
"Written by" text,
"Production code" numeric,
"U.S. air date" text,
"Canadian air date" text
);
CREATE TABLE table_1_12134383_1 (
"Age at inauguration" text,
President text,
"Date of inauguration" text,
Lifespan text,
"Date of birth" text,
"End of term" text,
"Date of death" text,
"Length of retirement" text
);
CREATE TABLE table_1_10360656_1 (
Round numeric,
Overall numeric,
"Player name" text,
Choice numeric,
Position text,
College text
);
```
### Answer
Here is the SQL query that answers the question:
`Who directed the episode with a production code of 301?`
```sql
| SELECT "Directed by" FROM table_1_18424435_4 WHERE "Production code" = '301' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
29887,
573,
278,
3203,
1353,
310,
3064,
385,
12720,
471,
4318,
515,
29871,
29896,
29929,
29929,
29955,
29899,
29896,
29929,
29929,
29947,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29953,
313,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29896,
29900,
29941,
29918,
29953,
313,
13,
12,
2539,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29953,
29946,
29955,
29946,
29953,
29918,
29896,
313,
13,
12,
29908,
22175,
1156,
29908,
1426,
29892,
13,
12,
29943,
7261,
16985,
29892,
13,
12,
1625,
2470,
1426,
29892,
13,
12,
1523,
3283,
1426,
29892,
13,
12,
29908,
29950,
1709,
4408,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29929,
29906,
29929,
29900,
29953,
29918,
29906,
313,
13,
12,
29908,
15790,
8158,
29908,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29968,
860,
2696,
1426,
29892,
13,
12,
29908,
19409,
2407,
29908,
1426,
29892,
13,
12,
29908,
14199,
3268,
29908,
1426,
29892,
13,
12,
22606,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
29887,
573,
278,
3203,
1353,
310,
3064,
385,
12720,
471,
4318,
515,
29871,
29896,
29929,
29929,
29955,
29899,
29896,
29929,
29929,
29947,
29952,
13,
28956,
2850,
13,
5097,
341,
1177,
703,
3782,
29889,
297,
4259,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29953,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
341,
1177,
703,
3782,
29889,
297,
4259,
1159,
3895,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29953,
2
] | ### Task
Generate a SQL query to answer the following question:
`give the least number of times an episode was shown from 1997-1998`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10953197_6 (
Director text,
"Production code" text,
Title text,
"No. in season" numeric,
"Writer(s)" text,
"Original air date" text,
"No. in series" numeric
);
CREATE TABLE table_1_1140103_6 (
Date text,
Report text,
Circuit text,
"Race Name" text,
"Winning driver" text,
Constructor text,
"#" numeric
);
CREATE TABLE table_1_11464746_1 (
"Named after" text,
Founded numeric,
Colours text,
Composition text,
"House Name" text
);
CREATE TABLE table_1_10392906_2 (
"Final score" text,
Attendance numeric,
Opponent text,
Kickoff text,
"Team record" text,
"Game site" text,
Week numeric
);
```
### Answer
Here is the SQL query that answers the question:
`give the least number of times an episode was shown from 1997-1998`
```sql
| SELECT MIN("No. in season") FROM table_1_10953197_6 |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5816,
338,
278,
9939,
2258,
18002,
14433,
746,
278,
3001,
14433,
338,
901,
1135,
29871,
29941,
322,
3001,
11446,
338,
29871,
29941,
29896,
313,
29896,
6877,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29929,
29896,
29955,
29900,
29896,
29918,
29896,
313,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
3226,
3437,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
6536,
2401,
29879,
29908,
1426,
29892,
13,
12,
29908,
4519,
6536,
2401,
29879,
29908,
1426,
29892,
13,
12,
29908,
11536,
2401,
29879,
29908,
1426,
29892,
13,
12,
29908,
3226,
3437,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
11536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2401,
29879,
29908,
1426,
29892,
13,
12,
29908,
4519,
6536,
2921,
1338,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29896,
29896,
313,
13,
12,
9075,
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,
29896,
29946,
29900,
29900,
29955,
29941,
29918,
29906,
313,
13,
12,
29934,
815,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29947,
29941,
29945,
29918,
29929,
313,
13,
12,
20097,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29925,
1745,
4285,
4034,
1426,
29892,
13,
12,
29925,
1745,
631,
1426,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
16802,
5020,
29908,
1426,
29892,
13,
12,
4165,
21642,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29946,
29941,
29896,
29906,
29918,
29945,
313,
13,
12,
29908,
4557,
310,
16493,
29879,
322,
18481,
29908,
16985,
29892,
13,
12,
29908,
12310,
2785,
472,
29871,
29906,
29900,
29896,
29900,
20121,
29908,
16985,
29892,
13,
12,
29908,
24636,
1024,
29908,
1426,
29892,
13,
12,
29908,
26036,
1024,
29908,
1426,
29892,
13,
12,
29908,
13799,
297,
2383,
30088,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29955,
29947,
29953,
29955,
29918,
29906,
313,
13,
12,
29908,
29956,
10552,
24628,
29908,
1426,
29892,
13,
12,
29908,
29928,
1150,
292,
21266,
1379,
29908,
1426,
29892,
13,
12,
29908,
8431,
3955,
12959,
29908,
1426,
29892,
13,
12,
5627,
1426,
29892,
13,
12,
4557,
1426,
29892,
13,
12,
3664,
267,
1426,
29892,
13,
12,
29908,
2539,
4240,
29908,
1426,
29892,
13,
12,
29907,
2904,
513,
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,
5816,
338,
278,
9939,
2258,
18002,
14433,
746,
278,
3001,
14433,
338,
901,
1135,
29871,
29941,
322,
3001,
11446,
338,
29871,
29941,
29896,
313,
29896,
6877,
29952,
13,
28956,
2850,
13,
5097,
18134,
703,
4519,
6536,
2921,
1338,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29929,
29896,
29955,
29900,
29896,
29918,
29896,
5754,
376,
11536,
2921,
1338,
29908,
1405,
525,
29941,
29915,
5300,
376,
11536,
2401,
29879,
29908,
306,
5265,
6059,
14210,
29941,
29896,
29995,
29898,
29896,
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,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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
4519,
6536,
2921,
1338,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29929,
29896,
29955,
29900,
29896,
29918,
29896,
5754,
376,
11536,
2921,
1338,
29908,
1405,
525,
29941,
29915,
5300,
376,
11536,
2401,
29879,
29908,
306,
5265,
6059,
14210,
29941,
29896,
29995,
29898,
29896,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`what is the highest fa cup goals when the total goals is more than 3 and total apps is 31 (1)?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18891701_1 (
Position text,
"League Goals" numeric,
"League Cup Apps" text,
"FA Cup Apps" text,
"Total Apps" text,
"League Cup Goals" numeric,
Name text,
"Total Goals" numeric,
"League Apps" text,
"FA Cup Goals" numeric
);
CREATE TABLE table_1_11677691_11 (
Player text,
College text,
Hometown text,
School text
);
CREATE TABLE table_1_1140073_2 (
Race text,
Location text,
"Race Winner" text,
"Pole Position" text,
Constructor text,
Rnd numeric,
Report text,
Date text,
"Fastest Lap" text
);
CREATE TABLE table_1_1139835_9 (
Score text,
Venue text,
Premiership text,
Premier text,
Season numeric,
"Runner Up" text,
Attendance numeric
);
CREATE TABLE table_1_1104312_5 (
"Number of settlements and villages" numeric,
"Population at 2010 Census" numeric,
"English name" text,
"Original name" text,
"Area in km²" text
);
CREATE TABLE table_1_1157867_2 (
"Wheel arrangement" text,
"Driving wheels" text,
"Boiler pressure" text,
Builder text,
Number text,
Notes text,
"Date built" text,
Cylinders text
);
```
### Answer
Here is the SQL query that answers the question:
`what is the highest fa cup goals when the total goals is more than 3 and total apps is 31 (1)?`
```sql
| SELECT MAX("FA Cup Goals") FROM table_2_18891701_1 WHERE "Total Goals" > '3' AND "Total Apps" ILIKE '%31%(1)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
951,
328,
349,
2335,
29914,
4317,
756,
263,
3455,
9681,
310,
18696,
459,
29906,
29946,
29914,
29906,
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,
29946,
29953,
29900,
29955,
29896,
29918,
29896,
313,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
12596,
2459,
16985,
29892,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29906,
29896,
29947,
29900,
29945,
29918,
29896,
313,
13,
12,
17392,
272,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
12883,
313,
29907,
14992,
2592,
5513,
1426,
29892,
13,
12,
29908,
3434,
29885,
3611,
1304,
297,
2245,
3381,
29908,
1426,
29892,
13,
12,
29908,
26036,
3611,
29908,
1426,
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,
23770,
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,
29934,
299,
16985,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29906,
29955,
29929,
29946,
29918,
29906,
313,
13,
12,
29908,
8434,
365,
1477,
29914,
4317,
29908,
16985,
29892,
13,
12,
29908,
29931,
1479,
349,
2335,
29914,
4317,
29908,
16985,
29892,
13,
12,
29908,
7439,
9681,
29908,
1426,
29892,
13,
12,
29925,
1144,
1426,
29892,
13,
12,
29908,
8434,
21485,
29914,
4317,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29900,
29947,
29955,
29918,
29906,
313,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
13020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29906,
29929,
29896,
29906,
29941,
29918,
29896,
313,
13,
12,
29908,
10717,
4712,
29908,
1426,
29892,
13,
12,
29908,
10717,
9548,
434,
29908,
1426,
29892,
13,
12,
29908,
29923,
12907,
5593,
4712,
29908,
1426,
29892,
13,
12,
29908,
29909,
566,
654,
4412,
29908,
1426,
29892,
13,
12,
29908,
6730,
8612,
654,
9548,
434,
29908,
1426,
29892,
13,
12,
29908,
29954,
1025,
264,
323,
860,
1691,
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,
951,
328,
349,
2335,
29914,
4317,
756,
263,
3455,
9681,
310,
18696,
459,
29906,
29946,
29914,
29906,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
703,
29931,
1479,
349,
2335,
29914,
4317,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29906,
29955,
29929,
29946,
29918,
29906,
5754,
376,
7439,
9681,
29908,
306,
5265,
6059,
14210,
1372,
459,
29906,
29946,
29914,
29906,
29947,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
18134,
703,
29931,
1479,
349,
2335,
29914,
4317,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29955,
29906,
29955,
29929,
29946,
29918,
29906,
5754,
376,
7439,
9681,
29908,
306,
5265,
6059,
14210,
1372,
459,
29906,
29946,
29914,
29906,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Lead Pitch/mm has a Part Number of tsop24/28?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1046071_1 (
"Regular Season" text,
Playoffs text,
Year numeric,
Division numeric,
League text,
"Open Cup" text
);
CREATE TABLE table_1_10321805_1 (
Director text,
Result text,
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text
);
CREATE TABLE table_1_1140076_2 (
"Pole Position" text,
Constructor text,
"Race Winner" text,
Race text,
Location text,
Report text,
Rnd numeric,
"Fastest Lap" text,
Date text
);
CREATE TABLE table_2_1872794_2 (
"Body Length/mm" numeric,
"Lead Pitch/mm" numeric,
"Part Number" text,
Pins text,
"Body Width/mm" numeric
);
CREATE TABLE table_1_1139087_2 (
"Fastest Lap" text,
"Winning Driver" text,
"Rd." numeric,
"Grand Prix" text,
Location text,
Report text
);
CREATE TABLE table_1_11129123_1 (
"Callback Date" text,
"Callback Venue" text,
"Episode Air Date" text,
"Audition City" text,
"First Audition Venue" text,
"Golden Tickets" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Which Lead Pitch/mm has a Part Number of tsop24/28?`
```sql
| SELECT MAX("Lead Pitch/mm") FROM table_2_1872794_2 WHERE "Part Number" ILIKE '%tsop24/28%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
2441,
4799,
2635,
363,
278,
9227,
10345,
8245,
528,
262,
18544,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
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,
29955,
313,
13,
12,
8003,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29953,
29945,
29929,
29896,
29946,
29941,
29946,
29918,
29896,
313,
13,
12,
29908,
29934,
271,
886,
313,
29968,
550,
1794,
5513,
1426,
29892,
13,
12,
29923,
12907,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29934,
271,
886,
313,
29968,
5361,
5513,
1426,
29892,
13,
12,
17392,
272,
1426,
29892,
13,
12,
29908,
26036,
4799,
1256,
29908,
1426,
29892,
13,
12,
10507,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29929,
29947,
29929,
29906,
29947,
29918,
29896,
313,
13,
12,
29908,
3434,
29885,
3611,
1304,
297,
2245,
3381,
29908,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
12883,
313,
29907,
14992,
2592,
5513,
1426,
29892,
13,
12,
29908,
26036,
3611,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29896,
29900,
29953,
29945,
29918,
29906,
29955,
313,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
8897,
8905,
29908,
16985,
29892,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
3373,
29914,
6767,
29908,
1426,
29892,
13,
12,
8514,
287,
16985,
29892,
13,
12,
16382,
342,
16985,
29892,
13,
12,
29931,
340,
342,
16985,
29892,
13,
12,
29909,
19698,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29896,
29955,
29929,
29929,
29918,
29896,
313,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
6508,
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,
2441,
4799,
2635,
363,
278,
9227,
10345,
8245,
528,
262,
18544,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
26036,
4799,
1256,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29945,
29929,
29896,
29946,
29941,
29946,
29918,
29896,
5754,
376,
10507,
29908,
306,
5265,
6059,
14210,
29911,
273,
8245,
29995,
2713,
262,
18544,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
26036,
4799,
1256,
29908,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29945,
29929,
29896,
29946,
29941,
29946,
29918,
29896,
5754,
376,
10507,
29908,
306,
5265,
6059,
14210,
29911,
273,
8245,
29995,
2713,
262,
18544,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the original air date for the writer tanaka shinichi?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11545282_7 (
Position text,
Player text,
"No." numeric,
"School/Club Team" text,
"Years for Jazz" text,
Nationality text
);
CREATE TABLE table_1_26591434_1 (
"Ratings (Kansai)" text,
Episode numeric,
Title text,
"Ratings (Kanto)" text,
Director text,
"Original airdate" text,
Writer text
);
CREATE TABLE table_1_10798928_1 (
"Film title used in nomination" text,
Result text,
"Year (Ceremony)" text,
"Original title" text
);
CREATE TABLE table_1_1161065_27 (
Team text,
"Last Year" numeric,
Total numeric,
"Up/Down" text,
Hosted numeric,
Highest numeric,
Lowest numeric,
Average numeric
);
CREATE TABLE table_1_11621799_1 (
"1st Prize( $ )" numeric,
Date text,
Tournament text,
Score text,
"Purse( $ )" numeric,
Winner text,
Location text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the original air date for the writer tanaka shinichi?`
```sql
| SELECT "Original airdate" FROM table_1_26591434_1 WHERE "Writer" ILIKE '%Tanaka%Shinichi%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
10435,
756,
263,
29871,
29953,
29945,
29889,
29947,
29953,
29941,
1121,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29946,
29900,
29955,
29918,
29946,
313,
13,
12,
2539,
1426,
29892,
13,
12,
14199,
16985,
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,
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,
29953,
29900,
29906,
29946,
29953,
29906,
29918,
29929,
313,
13,
12,
2385,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29909,
386,
2810,
1426,
29892,
13,
12,
2624,
1426,
29892,
13,
12,
29934,
804,
1426,
29892,
13,
12,
17241,
344,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29896,
29955,
313,
13,
12,
29908,
3782,
14030,
29879,
5513,
16985,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29947,
29946,
29896,
29955,
29941,
29918,
29896,
313,
13,
12,
29908,
12310,
2785,
313,
18457,
3001,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
3596,
2207,
5513,
16985,
29892,
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,
29954,
29880,
996,
497,
273,
5513,
16985,
29892,
13,
12,
29908,
12310,
2785,
313,
855,
9716,
272,
412,
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,
10435,
756,
263,
29871,
29953,
29945,
29889,
29947,
29953,
29941,
1121,
29973,
29952,
13,
28956,
2850,
13,
5097,
6912,
344,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29900,
29906,
29946,
29953,
29906,
29918,
29929,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
29953,
29945,
29889,
29947,
29953,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
6912,
344,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29953,
29900,
29906,
29946,
29953,
29906,
29918,
29929,
5754,
376,
3591,
29908,
306,
5265,
6059,
14210,
29953,
29945,
29889,
29947,
29953,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What horse has a 65.863 result?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11960407_4 (
Date text,
Game numeric,
Score text,
Record text,
"High assists" text,
"High points" text,
Team text,
"Location Attendance" text,
"High rebounds" text
);
CREATE TABLE table_2_18602462_9 (
Class text,
Result text,
Athlete text,
Event text,
Rank text,
Horse text
);
CREATE TABLE table_1_11734041_17 (
"No.(s)" numeric,
"Years for Rockets" text,
Player text,
Position text,
"School/Club Team/Country" text,
"Height in Ft." text
);
CREATE TABLE table_1_12584173_1 (
"Population (Region total)" numeric,
"Population (Allora)" numeric,
Year numeric,
"Population (Warwick)" numeric,
"Population (Rosenthal)" numeric,
"Population (Glengallan)" numeric,
"Population (Stanthorpe)" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What horse has a 65.863 result?`
```sql
| SELECT Horse FROM table_2_18602462_9 WHERE "Result" ILIKE '%65.863%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
8984,
29879,
29892,
746,
20627,
338,
3109,
1135,
29871,
29946,
29892,
746,
11243,
666,
358,
338,
796,
1107,
448,
11400,
29907,
29892,
322,
746,
3457,
446,
1939,
338,
3109,
1135,
29871,
29896,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29906,
29906,
29945,
29900,
29953,
29918,
29953,
313,
13,
12,
29908,
1451,
3103,
3527,
8448,
29908,
16985,
29892,
13,
12,
29908,
6489,
568,
382,
523,
29908,
16985,
29892,
13,
12,
29908,
29903,
16668,
18372,
9404,
29908,
16985,
29892,
13,
12,
1168,
1659,
1426,
29892,
13,
12,
29908,
29937,
310,
350,
4841,
29908,
16985,
29892,
13,
12,
29908,
17734,
1273,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
29934,
618,
310,
29871,
29941,
29906,
29908,
16985,
29892,
13,
12,
29908,
15790,
12458,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29929,
29946,
29896,
29941,
29900,
29946,
29918,
29946,
313,
13,
12,
29908,
29933,
9345,
1939,
29908,
16985,
29892,
13,
12,
8003,
16985,
29892,
13,
12,
29908,
12376,
847,
6978,
15109,
29908,
1426,
29892,
13,
12,
6108,
666,
358,
1426,
29892,
13,
12,
20325,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29945,
29918,
29906,
313,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
23770,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29929,
29947,
29941,
29945,
29918,
29929,
313,
13,
12,
29925,
1745,
4285,
4034,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29925,
1745,
631,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16802,
5020,
29908,
1426,
29892,
13,
12,
29963,
264,
434,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
9939,
8984,
29879,
29892,
746,
20627,
338,
3109,
1135,
29871,
29946,
29892,
746,
11243,
666,
358,
338,
796,
1107,
448,
11400,
29907,
29892,
322,
746,
3457,
446,
1939,
338,
3109,
1135,
29871,
29896,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
20325,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29929,
29946,
29896,
29941,
29900,
29946,
29918,
29946,
5754,
376,
8003,
29908,
529,
525,
29946,
29915,
5300,
376,
6108,
666,
358,
29908,
306,
5265,
6059,
14210,
29920,
1107,
29995,
19222,
6925,
29883,
29001,
5300,
376,
29933,
9345,
1939,
29908,
529,
525,
29896,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5097,
18134,
29898,
20325,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29929,
29946,
29896,
29941,
29900,
29946,
29918,
29946,
5754,
376,
8003,
29908,
529,
525,
29946,
29915,
5300,
376,
6108,
666,
358,
29908,
306,
5265,
6059,
14210,
29920,
1107,
29995,
19222,
6925,
29883,
29001,
5300,
376,
29933,
9345,
1939,
29908,
529,
525,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the highest Points, when Position is less than 4, when Equipment is Zabel - VMC, and when Bike No is less than 1?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10722506_6 (
"Championship Game" numeric,
"Elite Eight" numeric,
"Sweet Sixteen" numeric,
Conference text,
"# of Bids" numeric,
"Win %" text,
Record text,
"Round of 32" numeric,
"Final Four" numeric
);
CREATE TABLE table_2_16941304_4 (
"Bike No" numeric,
Position numeric,
"Driver / Passenger" text,
Equipment text,
Points numeric
);
CREATE TABLE table_1_1140085_2 (
Report text,
"Race Winner" text,
"Fastest Lap" text,
Rnd numeric,
Race text,
Location text,
Date text,
"Pole Position" text,
Constructor text
);
CREATE TABLE table_1_1139835_9 (
Premiership text,
Attendance numeric,
Season numeric,
Premier text,
Score text,
"Runner Up" text,
Venue text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the highest Points, when Position is less than 4, when Equipment is Zabel - VMC, and when Bike No is less than 1?`
```sql
| SELECT MAX(Points) FROM table_2_16941304_4 WHERE "Position" < '4' AND "Equipment" ILIKE '%zabel%-%vmc%' AND "Bike No" < '1' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
22110,
29915,
29879,
278,
4847,
363,
278,
1570,
3088,
390,
13873,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
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,
29945,
29918,
29906,
313,
13,
12,
6508,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29934,
815,
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,
27325,
537,
1426,
29892,
13,
12,
29908,
29925,
860,
396,
29908,
16985,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29906,
29900,
29955,
29929,
29929,
29918,
29906,
313,
13,
12,
12881,
728,
1426,
29892,
13,
12,
1888,
29885,
6997,
1426,
29892,
13,
12,
1252,
2356,
1426,
29892,
13,
12,
29908,
29923,
12907,
11810,
793,
29908,
1426,
29892,
13,
12,
29923,
2576,
262,
630,
1426,
29892,
13,
12,
29908,
6730,
4799,
2635,
29908,
1426,
29892,
13,
12,
29963,
866,
1426,
29892,
13,
12,
29934,
809,
538,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29955,
29896,
29896,
29946,
29945,
29918,
29896,
313,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29896,
29947,
29929,
29906,
29918,
29946,
313,
13,
12,
29908,
23665,
428,
5920,
29908,
1426,
29892,
13,
12,
29908,
29963,
2911,
262,
29914,
29879,
29908,
1426,
29892,
13,
12,
29908,
4557,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
5593,
4712,
29908,
1426,
29892,
13,
12,
29908,
29933,
9972,
4384,
8170,
29908,
1426,
29892,
13,
12,
7030,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29945,
29955,
29900,
29906,
29900,
29955,
29918,
29896,
313,
13,
12,
29908,
11536,
11069,
29908,
16985,
29892,
13,
12,
29943,
2784,
4727,
16985,
29892,
13,
12,
29934,
1698,
3391,
12533,
16985,
29892,
13,
12,
29908,
29924,
29873,
20549,
29908,
16985,
29892,
13,
12,
29931,
4357,
12734,
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,
29915,
29879,
278,
4847,
363,
278,
1570,
3088,
390,
13873,
29973,
29952,
13,
28956,
2850,
13,
5097,
14574,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29945,
29896,
29896,
29918,
29906,
5754,
376,
29940,
15444,
3815,
29908,
306,
5265,
6059,
14210,
4373,
29995,
29979,
548,
29995,
29934,
13873,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
14574,
3895,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29945,
29896,
29896,
29918,
29906,
5754,
376,
29940,
15444,
3815,
29908,
306,
5265,
6059,
14210,
4373,
29995,
29979,
548,
29995,
29934,
13873,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Who's the player for the New York Rangers?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140085_2 (
Location text,
Date text,
Constructor text,
"Race Winner" text,
Rnd numeric,
Report text,
"Fastest Lap" text,
"Pole Position" text,
Race text
);
CREATE TABLE table_1_1213511_2 (
"College/junior/club team" text,
Nationality text,
"Pick #" numeric,
"NHL team" text,
Player text,
Position text
);
CREATE TABLE table_1_11220799_2 (
Finish text,
Immunity text,
Exiled text,
"Episode Titles" text,
Eliminated text,
"First air date" text,
Vote text,
Reward text
);
CREATE TABLE table_1_12171145_1 (
"Mixed doubles" text,
"Mens doubles" text,
Year numeric,
"Womens doubles" text,
"Mens singles" text,
"Womens singles" text
);
CREATE TABLE table_1_1231892_4 (
"Production Code" text,
"Villain/s" text,
"Number in series" numeric,
"U.S. Air Date" text,
"Broadcast Order" text,
Title text
);
CREATE TABLE table_1_12570207_1 (
"Total Region" numeric,
Fitzroy numeric,
Rockhampton numeric,
"Mt Morgan" numeric,
Livingstone numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Who's the player for the New York Rangers?`
```sql
| SELECT Player FROM table_1_1213511_2 WHERE "NHL team" ILIKE '%New%York%Rangers%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3001,
297,
29871,
29906,
29900,
29900,
29900,
29994,
29906,
29900,
29896,
29906,
29892,
411,
901,
1135,
29871,
29906,
13283,
29892,
29871,
29900,
14165,
911,
29892,
322,
263,
22125,
7968,
1135,
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,
29906,
29918,
29896,
29947,
29947,
29945,
29945,
29906,
29946,
29946,
29918,
29896,
313,
13,
12,
11536,
16985,
29892,
13,
12,
29954,
1280,
1426,
29892,
13,
12,
29903,
637,
1426,
29892,
13,
12,
12883,
29879,
1426,
29892,
13,
12,
29954,
1025,
16985,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
26729,
369,
16985,
29892,
13,
12,
29940,
362,
1426,
29892,
13,
12,
29933,
1617,
911,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29929,
29946,
29946,
29918,
29896,
29896,
313,
13,
12,
19204,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29929,
29945,
29953,
29955,
29906,
29918,
29896,
313,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
6508,
29914,
4165,
21642,
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,
29906,
29906,
29906,
29953,
29941,
29929,
29900,
29918,
29906,
313,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
7030,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29941,
29946,
29900,
29946,
29896,
29918,
29896,
29896,
313,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29914,
20779,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
7011,
297,
383,
29873,
1213,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
8027,
1691,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
3782,
14030,
29879,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29900,
29955,
29945,
29946,
29953,
29918,
29896,
313,
13,
12,
27795,
1426,
29892,
13,
12,
10840,
25217,
1426,
29892,
13,
12,
29903,
1251,
11427,
1426,
29892,
13,
12,
29943,
16750,
1426,
29892,
13,
12,
29934,
4821,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29909,
386,
2810,
313,
6632,
29907,
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,
3001,
297,
29871,
29906,
29900,
29900,
29900,
29994,
29906,
29900,
29896,
29906,
29892,
411,
901,
1135,
29871,
29906,
13283,
29892,
29871,
29900,
14165,
911,
29892,
322,
263,
22125,
7968,
1135,
29871,
29955,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
11536,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29945,
29945,
29906,
29946,
29946,
29918,
29896,
5754,
376,
12883,
29879,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29900,
29900,
29994,
29906,
29900,
29896,
29906,
29001,
5300,
376,
26729,
369,
29908,
1405,
525,
29906,
29915,
5300,
376,
29933,
1617,
911,
29908,
353,
525,
29900,
29915,
5300,
376,
29934,
804,
29908,
529,
525,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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,
5097,
22753,
29898,
11536,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29947,
29945,
29945,
29906,
29946,
29946,
29918,
29896,
5754,
376,
12883,
29879,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29900,
29900,
29994,
29906,
29900,
29896,
29906,
29001,
5300,
376,
26729,
369,
29908,
1405,
525,
29906,
29915,
5300,
376,
29933,
1617,
911,
29908,
353,
525,
29900,
29915,
5300,
376,
29934,
804,
29908,
529,
525,
29955,
29900,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the total in 2000–2012, with more than 2 silver, 0 Bronze, and a Rank smaller than 70?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18855244_1 (
Total numeric,
Games text,
Sport text,
Years text,
Gold numeric,
Rank numeric,
Silver numeric,
Nation text,
Bronze numeric
);
CREATE TABLE table_1_11960944_11 (
Series text,
"High points" text,
Team text,
Score text,
"High rebounds" text,
Game numeric,
"High assists" text,
Date text,
"Location Attendance" text
);
CREATE TABLE table_1_10595672_1 (
Record text,
"High assists" text,
"High points" text,
"Location/Attendance" text,
Opponent text,
"Home / Away" text
);
CREATE TABLE table_1_12226390_2 (
"Production code" numeric,
"Written by" text,
"Directed by" text,
"Original air date" text,
"No. in series" numeric,
Title text
);
CREATE TABLE table_1_11734041_11 (
"School/Club Team/Country" text,
Position text,
"Height in Ft." text,
"Years for Rockets" text,
Player text,
"No.(s)" text
);
CREATE TABLE table_1_12407546_1 (
Running text,
Swimming text,
Shooting text,
Fencing text,
Riding text,
"#" numeric,
"Athlete (NOC)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the total in 2000–2012, with more than 2 silver, 0 Bronze, and a Rank smaller than 70?`
```sql
| SELECT SUM(Total) FROM table_2_18855244_1 WHERE "Years" ILIKE '%2000–2012%' AND "Silver" > '2' AND "Bronze" = '0' AND "Rank" < '70' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
2831,
278,
14743,
5318,
373,
3839,
29871,
29906,
29945,
29892,
29871,
29896,
29929,
29929,
29945,
29892,
1058,
471,
278,
9550,
29879,
23995,
296,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29955,
29900,
29906,
29953,
29896,
29918,
29906,
313,
13,
12,
29908,
17734,
1076,
8158,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
1451,
3103,
3527,
1426,
29892,
13,
12,
29908,
29924,
3930,
310,
15354,
29908,
1426,
29892,
13,
12,
29908,
16802,
29898,
29879,
6817,
786,
29908,
1426,
29892,
13,
12,
29908,
29945,
29946,
26532,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29946,
29906,
29929,
29941,
29953,
29918,
29906,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
29949,
407,
265,
296,
297,
278,
2186,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
18498,
2161,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29900,
29941,
29945,
29953,
29941,
29918,
29906,
313,
13,
12,
29908,
29934,
5963,
414,
29899,
786,
29908,
16985,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29940,
362,
1426,
29892,
13,
12,
29908,
29941,
5499,
15484,
29908,
16985,
29892,
13,
12,
29908,
29946,
386,
15484,
29908,
16985,
29892,
13,
12,
29956,
16697,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
2831,
278,
14743,
5318,
373,
3839,
29871,
29906,
29945,
29892,
29871,
29896,
29929,
29929,
29945,
29892,
1058,
471,
278,
9550,
29879,
23995,
296,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29949,
407,
265,
296,
297,
278,
2186,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29946,
29906,
29929,
29941,
29953,
29918,
29906,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
344,
3266,
29995,
29906,
29945,
24163,
29896,
29929,
29929,
29945,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29949,
407,
265,
296,
297,
278,
2186,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29946,
29906,
29929,
29941,
29953,
29918,
29906,
5754,
376,
2539,
29908,
306,
5265,
6059,
14210,
344,
3266,
29995,
29906,
29945,
24163,
29896,
29929,
29929,
29945,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`For the tournament played on September 25, 1995, who was the Finals opponent?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11570261_2 (
"Winning score" text,
Year numeric,
Championship text,
"Margin of victory" text,
"Runner(s)-up" text,
"54 holes" text
);
CREATE TABLE table_2_15442936_2 (
Date text,
Tournament text,
"Opponent in the final" text,
Score text,
Surface text
);
CREATE TABLE table_1_12303563_2 (
"Runners-up" numeric,
"#" numeric,
Nation text,
"3rd Place" numeric,
"4th Place" numeric,
Winners numeric
);
```
### Answer
Here is the SQL query that answers the question:
`For the tournament played on September 25, 1995, who was the Finals opponent?`
```sql
| SELECT "Opponent in the final" FROM table_2_15442936_2 WHERE "Date" ILIKE '%september%25,%1995%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
8090,
892,
2750,
7509,
1171,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29896,
29941,
29896,
29953,
29918,
29955,
313,
13,
12,
29909,
386,
2810,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
29908,
29956,
513,
313,
29885,
29914,
29879,
5513,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29940,
362,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
931,
313,
29879,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29896,
29945,
29946,
29918,
29955,
313,
13,
12,
29908,
6508,
6212,
21642,
29908,
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,
20097,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
19409,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29900,
29955,
29946,
29945,
29946,
29946,
29946,
29918,
29896,
313,
13,
12,
9182,
1426,
29892,
13,
12,
29949,
407,
265,
1237,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29908,
29911,
279,
940,
1379,
3291,
29908,
16985,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29896,
29900,
29900,
29918,
29896,
29953,
313,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
29908,
1988,
29933,
360,
4154,
29908,
1426,
29892,
13,
12,
9075,
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,
5328,
1784,
8090,
892,
2750,
7509,
1171,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
29898,
14199,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29900,
29955,
29946,
29945,
29946,
29946,
29946,
29918,
29896,
5754,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
29943,
332,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
14199,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29900,
29955,
29946,
29945,
29946,
29946,
29946,
29918,
29896,
5754,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
29943,
332,
1171,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many games were against Furman?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1231316_7 (
Athlete text,
Rank numeric,
"Wind (m/s)" text,
Location text,
Nation text,
"Fastest time (s)" text
);
CREATE TABLE table_1_11964154_7 (
"Location Attendance" text,
"High assists" text,
"High points" text,
Date text,
Score text,
"High rebounds" text,
Team text
);
CREATE TABLE table_1_20745444_1 (
Record text,
Opponents numeric,
Result text,
Game numeric,
Opponent text,
"Tar Heels points" numeric,
Date text
);
CREATE TABLE table_1_11677100_16 (
School text,
Hometown text,
"MLB Draft" text,
Player text,
Position text
);
```
### Answer
Here is the SQL query that answers the question:
`How many games were against Furman?`
```sql
| SELECT MAX(Game) FROM table_1_20745444_1 WHERE "Opponent" ILIKE '%Furman%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
3001,
1353,
310,
28495,
393,
756,
4216,
29879,
7200,
1135,
29871,
29896,
322,
263,
3371,
1049,
360,
10536,
310,
15782,
29879,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29953,
29918,
29947,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29953,
29900,
29947,
29906,
29941,
29918,
29896,
313,
13,
12,
3563,
497,
16985,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29620,
16985,
29892,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29955,
29947,
29906,
29955,
29896,
29918,
29896,
313,
13,
12,
2713,
598,
16985,
29892,
13,
12,
29908,
1043,
414,
313,
29885,
5513,
1426,
29892,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
29896,
29947,
29994,
29946,
29929,
313,
29934,
1218,
29914,
2713,
598,
5513,
1426,
29892,
13,
12,
29908,
22606,
368,
22125,
29908,
16985,
29892,
13,
12,
29934,
1218,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29947,
29896,
29946,
29945,
29929,
29918,
29896,
313,
13,
12,
2928,
3518,
1133,
16985,
29892,
13,
12,
29908,
4557,
12146,
29908,
1426,
29892,
13,
12,
18457,
1426,
29892,
13,
12,
5627,
1426,
29892,
13,
12,
3047,
19811,
1233,
16985,
29892,
13,
12,
29908,
3782,
29889,
5373,
2782,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29900,
29900,
29947,
29945,
29953,
29918,
29896,
313,
13,
12,
29908,
29906,
6625,
1169,
29908,
16985,
29892,
13,
12,
3481,
1426,
29892,
13,
12,
29908,
29946,
6625,
1169,
29908,
16985,
29892,
13,
12,
29908,
29896,
16200,
29908,
16985,
29892,
13,
12,
29908,
29945,
6625,
1169,
29908,
1426,
29892,
13,
12,
29908,
29941,
6625,
1169,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29955,
29946,
29953,
29900,
29941,
29955,
29918,
29896,
313,
13,
12,
2059,
267,
16985,
29892,
13,
12,
29908,
2290,
1049,
360,
10536,
29908,
1426,
29892,
13,
12,
8537,
29879,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
14769,
475,
303,
16985,
29892,
13,
12,
29931,
2209,
267,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
3001,
1353,
310,
28495,
393,
756,
4216,
29879,
7200,
1135,
29871,
29896,
322,
263,
3371,
1049,
360,
10536,
310,
15782,
29879,
29973,
29952,
13,
28956,
2850,
13,
5097,
22753,
29898,
29931,
2209,
267,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29955,
29946,
29953,
29900,
29941,
29955,
29918,
29896,
5754,
376,
2290,
1049,
360,
10536,
29908,
306,
5265,
6059,
14210,
22741,
29879,
29001,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29955,
29955,
29946,
29953,
29900,
29941,
29955,
29918,
29896,
5754,
376,
2290,
1049,
360,
10536,
29908,
306,
5265,
6059,
14210,
22741,
29879,
29001,
5300,
376,
8537,
29879,
29908,
1405,
525,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the total number of losses that has draws larger than 1 and a Portland DFL of westerns?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11111116_8 (
"Written by" text,
"Original air date" text,
Title text,
"No. in season" numeric,
"No. in series" numeric,
"U.S. viewers (million)" text,
"Directed by" text
);
CREATE TABLE table_1_10360823_1 (
Overall numeric,
Round numeric,
Position text,
Choice numeric,
College text,
"Player name" text
);
CREATE TABLE table_1_11178271_1 (
Share numeric,
"Viewers (m)" text,
"Air Date" text,
"#" numeric,
Episode text,
"18–49 (Rating/Share)" text,
"Weekly Rank" numeric,
Rating text
);
CREATE TABLE table_1_1081459_1 (
Introduced numeric,
"Number Range" text,
Region text,
Builder text,
Withdrawn numeric,
"No. Built" numeric
);
CREATE TABLE table_1_11200856_1 (
"2 credits" numeric,
Hand text,
"4 credits" numeric,
"1 credit" numeric,
"5 credits" text,
"3 credits" numeric
);
CREATE TABLE table_2_17746037_1 (
Byes numeric,
"Portland DFL" text,
Draws numeric,
Wins numeric,
Against numeric,
Losses numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the total number of losses that has draws larger than 1 and a Portland DFL of westerns?`
```sql
| SELECT SUM(Losses) FROM table_2_17746037_1 WHERE "Portland DFL" ILIKE '%westerns%' AND "Draws" > '1' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
19035,
28920,
393,
750,
29871,
29945,
29941,
3291,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29955,
29929,
29946,
29896,
29900,
29941,
29906,
29918,
29906,
313,
13,
12,
24515,
1233,
1426,
29892,
13,
12,
29908,
29911,
2722,
363,
29908,
1426,
29892,
13,
12,
29931,
520,
1426,
29892,
13,
12,
29908,
29911,
2722,
2750,
29908,
1426,
29892,
13,
12,
13454,
287,
1426,
29892,
13,
12,
29908,
15870,
28920,
29908,
1426,
29892,
13,
12,
20325,
1426,
29892,
13,
12,
29908,
20325,
363,
29908,
1426,
29892,
13,
12,
6821,
431,
1426,
29892,
13,
12,
29908,
20325,
2750,
29908,
1426,
29892,
13,
12,
29956,
265,
1426,
29892,
13,
12,
29908,
29931,
14556,
28920,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29896,
29946,
29906,
29918,
29896,
313,
13,
12,
2008,
1658,
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,
360,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
4782,
350,
399,
3993,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29945,
29953,
29906,
29955,
29947,
29918,
29941,
313,
13,
12,
29908,
17734,
1076,
3815,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
23012,
29908,
1426,
29892,
13,
12,
29908,
29934,
815,
4408,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
29925,
1772,
2602,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29947,
29945,
29918,
29906,
313,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
2539,
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,
6508,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29946,
29900,
29941,
29945,
29918,
29896,
313,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
3226,
3437,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29947,
29906,
29929,
29918,
29896,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
29925,
332,
344,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29896,
303,
20604,
29898,
395,
1723,
29908,
16985,
29892,
13,
12,
29956,
3993,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
19035,
28920,
393,
750,
29871,
29945,
29941,
3291,
29973,
29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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29931,
14556,
28920,
29908,
3895,
1591,
29918,
29896,
29918,
29896,
29955,
29929,
29946,
29896,
29900,
29941,
29906,
29918,
29906,
5754,
376,
20325,
29908,
306,
5265,
6059,
14210,
29945,
29941,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the losing bonus that had 53 points?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_17941032_2 (
Drawn text,
"Tries for" text,
Lost text,
"Tries against" text,
Played text,
"Try bonus" text,
Points text,
"Points for" text,
Club text,
"Points against" text,
Won text,
"Losing bonus" text
);
CREATE TABLE table_1_1137142_1 (
Season text,
"Group A Winner" text,
"Group C Winner" text,
"Group D Winner" text,
"Group B Winner" text
);
CREATE TABLE table_1_11056278_3 (
"Winning team" text,
"Fastest lap" text,
"Race Name" text,
Rnd numeric,
"Winning driver" text,
Report text,
"Pole position" text
);
CREATE TABLE table_1_1140085_2 (
"Race Winner" text,
"Pole Position" text,
Date text,
Race text,
"Fastest Lap" text,
Constructor text,
Location text
);
CREATE TABLE table_1_1214035_1 (
"Regular Season" text,
Year numeric,
Playoffs text,
Division text,
"Open Cup" text,
League text
);
CREATE TABLE table_1_11622829_1 (
Tournament text,
"Purse( $ )" numeric,
Score text,
"1st Prize( $ )" numeric,
Winner text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the losing bonus that had 53 points?`
```sql
| SELECT "Losing bonus" FROM table_1_17941032_2 WHERE "Points" ILIKE '%53%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1353,
310,
278,
1274,
23493,
310,
1053,
297,
278,
29871,
29906,
29900,
29900,
29906,
4259,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29955,
29946,
29946,
29896,
29918,
29896,
313,
13,
12,
29908,
13799,
313,
8848,
30088,
5513,
16985,
29892,
13,
12,
29928,
575,
537,
1426,
29892,
13,
12,
29908,
29954,
11191,
313,
29906,
29900,
29900,
29941,
29892,
349,
7024,
297,
2316,
29889,
25540,
1723,
29908,
16985,
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,
12310,
2785,
313,
29906,
29900,
29900,
29946,
12678,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29896,
29906,
29941,
29955,
29918,
29906,
313,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
14958,
936,
17838,
322,
4823,
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,
29908,
23665,
428,
775,
29908,
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,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29953,
29947,
29918,
29941,
313,
13,
12,
29908,
1123,
1658,
363,
1735,
29908,
1426,
29892,
13,
12,
14191,
272,
1426,
29892,
13,
12,
29908,
2539,
29433,
409,
630,
29908,
1426,
29892,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
29963,
562,
1061,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29953,
29941,
29896,
29947,
29947,
29918,
29947,
313,
13,
12,
4557,
16985,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
10644,
23493,
3025,
29908,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29946,
29945,
29906,
29947,
29906,
29918,
29896,
29929,
313,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
12883,
29879,
363,
17429,
29908,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
1353,
310,
278,
1274,
23493,
310,
1053,
297,
278,
29871,
29906,
29900,
29900,
29906,
4259,
29973,
29952,
13,
28956,
2850,
13,
5097,
9681,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29953,
29941,
29896,
29947,
29947,
29918,
29947,
5754,
376,
10644,
23493,
3025,
29908,
306,
5265,
6059,
14210,
5215,
29001,
5300,
376,
2008,
1658,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29900,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
9681,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29953,
29941,
29896,
29947,
29947,
29918,
29947,
5754,
376,
10644,
23493,
3025,
29908,
306,
5265,
6059,
14210,
5215,
29001,
5300,
376,
2008,
1658,
29908,
306,
5265,
6059,
14210,
29906,
29900,
29900,
29906,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the number of the acquisition of import in the 2002 season?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1067441_1 (
"Area (km²)" numeric,
Density text,
"GDP (2003, PPS in mil. € )" numeric,
"GDP per cap. (2003, in €)" numeric,
Province text,
"Population (2004 estimate)" numeric
);
CREATE TABLE table_1_11951237_2 (
"Written by" text,
Title text,
"Directed by" text,
"Musical guest and song" text,
"Original air date" text,
"Series #" numeric,
"Season #" numeric,
"Production code" text
);
CREATE TABLE table_1_11411026_2 (
"Directed by" text,
"Original air date" text,
"U.S. viewers (millions)" text,
"No. in series" numeric,
"No. in season" numeric
);
CREATE TABLE table_1_1013168_3 (
"Reason for change" text,
Successor text,
"Date successor seated" text,
District text,
Vacator text
);
CREATE TABLE table_2_15463188_8 (
Number numeric,
Season text,
"Acquisition via" text,
Name text,
Position text
);
CREATE TABLE table_1_11545282_19 (
Nationality text,
"Years for Jazz" text,
"School/Club Team" text,
Player text,
"No." numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the number of the acquisition of import in the 2002 season?`
```sql
| SELECT Number FROM table_2_15463188_8 WHERE "Acquisition via" ILIKE '%import%' AND "Season" ILIKE '%2002%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
6588,
1757,
29915,
29879,
18875,
305,
1466,
746,
5866,
29915,
29879,
18875,
305,
1466,
338,
3109,
1135,
29871,
29900,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29900,
29955,
29896,
29947,
29929,
29955,
29918,
29896,
313,
13,
12,
29908,
4074,
1727,
1949,
9698,
29908,
1426,
29892,
13,
12,
29908,
3981,
3793,
271,
457,
310,
278,
7861,
457,
29908,
1426,
29892,
13,
12,
29908,
4074,
1727,
1949,
4689,
29908,
1426,
29892,
13,
12,
18984,
1426,
29892,
13,
12,
29908,
3981,
3793,
271,
457,
310,
18574,
2592,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29900,
29906,
29906,
29929,
29946,
29918,
29896,
313,
13,
12,
2772,
493,
29879,
1426,
29892,
13,
12,
5620,
29879,
1426,
29892,
13,
12,
10923,
545,
1426,
29892,
13,
12,
29956,
513,
5965,
5779,
1426,
29892,
13,
12,
29908,
29909,
12588,
15201,
29908,
1426,
29892,
13,
12,
29908,
29928,
1078,
6136,
29908,
1426,
29892,
13,
12,
29908,
29928,
314,
482,
313,
3308,
29928,
5513,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
15666,
557,
12965,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29896,
29941,
29906,
29955,
29945,
29918,
29945,
313,
13,
12,
11536,
16985,
29892,
13,
12,
29908,
28154,
29915,
29879,
8175,
29908,
16985,
29892,
13,
12,
29908,
29956,
2770,
29915,
29879,
399,
10552,
305,
1466,
29908,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
29956,
2770,
29915,
29879,
8175,
29908,
16985,
29892,
13,
12,
29908,
28154,
29915,
29879,
18875,
305,
1466,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29947,
29906,
29941,
29896,
29946,
29918,
29945,
313,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29906,
29900,
29900,
29929,
5513,
16985,
29892,
13,
12,
29908,
27933,
313,
29906,
29900,
29900,
29929,
5513,
1426,
29892,
13,
12,
29908,
27933,
313,
29896,
29929,
29929,
29900,
5513,
1426,
29892,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29896,
29929,
29929,
29900,
5513,
16985,
29892,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29906,
29900,
29900,
29900,
5513,
16985,
29892,
13,
12,
29908,
29940,
272,
7872,
713,
23035,
313,
29896,
29929,
29947,
29900,
5513,
16985,
29892,
13,
12,
29908,
27933,
313,
29906,
29900,
29900,
29900,
5513,
1426,
29892,
13,
12,
2792,
1426,
29892,
13,
12,
29908,
27933,
313,
29896,
29929,
29947,
29900,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29946,
29900,
29955,
29918,
29906,
313,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
20097,
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,
14199,
16985,
29892,
13,
12,
19409,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
6588,
1757,
29915,
29879,
18875,
305,
1466,
746,
5866,
29915,
29879,
18875,
305,
1466,
338,
3109,
1135,
29871,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
16884,
29954,
703,
28154,
29915,
29879,
18875,
305,
1466,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29896,
29941,
29906,
29955,
29945,
29918,
29945,
5754,
376,
29956,
2770,
29915,
29879,
399,
10552,
305,
1466,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
28154,
29915,
29879,
18875,
305,
1466,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29896,
29941,
29906,
29955,
29945,
29918,
29945,
5754,
376,
29956,
2770,
29915,
29879,
399,
10552,
305,
1466,
29908,
529,
525,
29900,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the average men's wheelchair when women's wheelchair is less than 0?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11071897_1 (
"Interregnum ended" text,
"Count Palatine of the Rhine" text,
"Interregnum began" text,
Duration text,
"Count Palatine of Saxony" text
);
CREATE TABLE table_1_10602294_1 (
Deaths text,
Refs text,
Pressure text,
Windspeeds text,
"Areas affected" text,
"Dates active" text,
"Damage (USD)" text,
Name text,
"Peak classification" text
);
CREATE TABLE table_2_15413275_5 (
Total numeric,
"Men's race" numeric,
"Women's Wheelchair" numeric,
Country text,
"Women's race" numeric,
"Men's wheelchair" numeric
);
CREATE TABLE table_1_1182314_5 (
"Norwegian Americans (2009)" numeric,
"Percent (2009)" text,
"Percent (1990)" text,
"Norwegian Americans (1990)" numeric,
"Norwegian Americans (2000)" numeric,
"Norwegian Americans (1980)" numeric,
"Percent (2000)" text,
State text,
"Percent (1980)" text
);
CREATE TABLE table_1_11960407_2 (
"Location Attendance" text,
Record text,
"High points" text,
Score text,
"High rebounds" text,
Date text,
"High assists" text,
Game numeric,
Team text
);
```
### Answer
Here is the SQL query that answers the question:
`What's the average men's wheelchair when women's wheelchair is less than 0?`
```sql
| SELECT AVG("Men's wheelchair") FROM table_2_15413275_5 WHERE "Women's Wheelchair" < '0' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
8905,
756,
263,
7946,
7200,
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,
29896,
29918,
29896,
29900,
29929,
29953,
29900,
29900,
29941,
29929,
29918,
29953,
313,
13,
12,
9075,
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,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29906,
29946,
29946,
29955,
29918,
29906,
313,
13,
12,
29908,
5015,
24733,
4103,
20889,
362,
29908,
1426,
29892,
13,
12,
29908,
5015,
24733,
396,
29908,
1426,
29892,
13,
12,
29908,
29950,
774,
3973,
1734,
29908,
1426,
29892,
13,
12,
29908,
24636,
1706,
7807,
29908,
1426,
29892,
13,
12,
29908,
5015,
24733,
399,
4339,
3831,
7261,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29929,
29929,
29947,
29900,
29941,
29918,
29896,
313,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
29908,
1576,
8905,
29908,
16985,
29892,
13,
12,
12596,
2459,
16985,
29892,
13,
12,
13454,
22450,
1426,
29892,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
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,
23770,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29908,
17734,
1076,
7156,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
8905,
756,
263,
7946,
7200,
1135,
29871,
29941,
29973,
29952,
13,
28956,
2850,
13,
5097,
18134,
703,
1576,
8905,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29929,
29929,
29947,
29900,
29941,
29918,
29896,
5754,
376,
12596,
2459,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
1576,
8905,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29953,
29955,
29929,
29929,
29947,
29900,
29941,
29918,
29896,
5754,
376,
12596,
2459,
29908,
1405,
525,
29941,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which Year has a Division larger than 3?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_10960039_6 (
Player text,
"Pick #" numeric,
"CFL Team" text,
College text,
Position text
);
CREATE TABLE table_1_1242447_2 (
"Strongs Transliteration" text,
"Strongs #" text,
"Hebrew word" text,
"English Spelling" text,
"Strongs Words Compounded" text
);
CREATE TABLE table_2_16799803_1 (
League text,
"The Year" numeric,
Division numeric,
Playoffs text,
"Regular Season" text
);
CREATE TABLE table_1_1140116_5 (
"Race Name" text,
Constructor text,
Date text,
Circuit text,
Report text,
"Winning driver" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which Year has a Division larger than 3?`
```sql
| SELECT MAX("The Year") FROM table_2_16799803_1 WHERE "Division" > '3' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
1134,
338,
278,
16493,
310,
26469,
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,
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,
29908,
29933,
340,
1847,
22135,
29908,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29955,
29946,
29947,
29955,
29906,
29955,
29918,
29896,
313,
13,
12,
29934,
3302,
16985,
29892,
13,
12,
27345,
21425,
16985,
29892,
13,
12,
29925,
6544,
16985,
29892,
13,
12,
20325,
1426,
29892,
13,
12,
29908,
19409,
4408,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
29908,
29943,
29914,
29931,
2547,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29945,
29953,
29906,
29945,
29955,
29906,
29918,
29896,
29929,
313,
13,
12,
29908,
29928,
5817,
424,
13433,
313,
29906,
29900,
29900,
29906,
5513,
1426,
29892,
13,
12,
1542,
1426,
29892,
13,
12,
29903,
1803,
944,
1426,
29892,
13,
12,
29908,
12310,
2785,
313,
29906,
29900,
29896,
29896,
5513,
16985,
29892,
13,
12,
29908,
29931,
1191,
342,
11314,
7823,
2318,
313,
29906,
29900,
29900,
29906,
5513,
1426,
29892,
13,
12,
29908,
29907,
4316,
453,
293,
4408,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29900,
29906,
29941,
29896,
29941,
29918,
29946,
313,
13,
12,
29908,
6857,
1213,
1426,
29892,
13,
12,
29908,
29931,
29906,
7090,
29908,
1426,
29892,
13,
12,
29908,
7439,
1353,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
19729,
8666,
313,
3148,
29928,
1723,
29908,
1426,
29892,
13,
12,
29908,
19729,
2635,
29908,
1426,
29892,
13,
12,
23923,
23860,
1426,
29892,
13,
12,
11373,
1426,
29892,
13,
12,
29908,
3195,
1353,
29908,
1426,
29892,
13,
12,
29911,
11191,
1426,
29892,
13,
12,
29943,
1744,
1426,
29892,
13,
12,
29908,
29879,
10299,
1353,
29908,
1426,
29892,
13,
12,
13072,
29873,
482,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29941,
29900,
29900,
29900,
29947,
29918,
29941,
313,
13,
12,
29908,
23665,
428,
5920,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
19204,
694,
1213,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
1134,
338,
278,
16493,
310,
26469,
29973,
421,
13,
28956,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
323,
6959,
3895,
1591,
29918,
29896,
29918,
29906,
29945,
29953,
29906,
29945,
29955,
29906,
29918,
29896,
29929,
5754,
376,
29903,
1803,
944,
29908,
306,
5265,
6059,
14210,
29931,
554,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What type is the settlement of Lok? `
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11950720_4 (
"First Class Team" text,
"Date of Birth" text,
"No." text,
"Batting Style" text,
"Bowling Style" text,
Player text
);
CREATE TABLE table_1_10748727_1 (
Races numeric,
Podiums numeric,
Poles numeric,
Points text,
"Team Name" text,
Position text,
Season text,
Wins numeric,
Series text,
"F/Laps" numeric
);
CREATE TABLE table_1_2562572_19 (
"Dominant religion (2002)" text,
Type text,
Settlement text,
"Population (2011)" numeric,
"Largest ethnic group (2002)" text,
"Cyrillic Name" text
);
CREATE TABLE table_1_11602313_4 (
"Mult." text,
"L2 cache" text,
"Part number(s)" text,
"Release price ( USD )" text,
"Release date" text,
Frequency text,
Socket text,
"Model number" text,
TDP text,
FSB text,
"sSpec number" text,
Voltage text
);
CREATE TABLE table_1_11630008_3 (
"Production Code" numeric,
"Directed by" text,
"Series no." numeric,
"Written by" text,
"Original air date" text,
Title text
);
```
### Answer
Here is the SQL query that answers the question:
`What type is the settlement of Lok? `
```sql
| SELECT TYPE FROM table_1_2562572_19 WHERE "Settlement" ILIKE '%Lok%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
1530,
6251,
363,
278,
19224,
411,
385,
11858,
362,
310,
29871,
29906,
29892,
29941,
29900,
29947,
27881,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29946,
29955,
29896,
29955,
29900,
29918,
29896,
313,
13,
12,
29908,
29923,
2608,
362,
313,
29885,
5513,
16985,
29892,
13,
12,
29908,
18571,
262,
663,
313,
29885,
5513,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
15666,
557,
1426,
29892,
13,
12,
29908,
1625,
313,
29885,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29900,
29946,
29955,
29918,
29947,
313,
13,
12,
855,
276,
557,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
4165,
21642,
1426,
29892,
13,
12,
6116,
2105,
1426,
29892,
13,
12,
29908,
29931,
1479,
292,
885,
9386,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
11184,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29953,
29900,
29955,
29896,
29918,
29896,
313,
13,
12,
3226,
3437,
1426,
29892,
13,
12,
29908,
6585,
6536,
29908,
1426,
29892,
13,
12,
12596,
2459,
16985,
29892,
13,
12,
29908,
4597,
1070,
24791,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
13454,
22450,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29906,
29953,
29941,
29929,
29900,
29918,
29953,
313,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
1530,
6251,
363,
278,
19224,
411,
385,
11858,
362,
310,
29871,
29906,
29892,
29941,
29900,
29947,
27881,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
1625,
313,
29885,
25760,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29946,
29955,
29896,
29955,
29900,
29918,
29896,
5754,
376,
29923,
2608,
362,
313,
29885,
5513,
353,
525,
29906,
29892,
29941,
29900,
29947,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
703,
1625,
313,
29885,
25760,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29946,
29955,
29896,
29955,
29900,
29918,
29896,
5754,
376,
29923,
2608,
362,
313,
29885,
5513,
353,
525,
29906,
29892,
29941,
29900,
29947,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the Col entry for the peak with an elevation of 2,308 meters?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18947170_1 (
"Elevation (m)" numeric,
"Prominence (m)" numeric,
Country text,
Peak text,
"Col (m)" numeric
);
CREATE TABLE table_1_11964047_8 (
Streak text,
Record text,
Date text,
Attendance text,
Visitor text,
"Leading scorer" text,
Score text,
"#" numeric,
Home text
);
CREATE TABLE table_1_1046071_1 (
League text,
"Open Cup" text,
Division numeric,
"Regular Season" text,
Year numeric,
Playoffs text
);
CREATE TABLE table_1_12226390_6 (
"Original air date" text,
"Production code" numeric,
Title text,
"No. in season" numeric,
"Directed by" text,
"No. in series" numeric,
"Written by" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the Col entry for the peak with an elevation of 2,308 meters?`
```sql
| SELECT COUNT("Col (m)") FROM table_2_18947170_1 WHERE "Elevation (m)" = '2,308' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
405,
15444,
3815,
393,
756,
263,
3815,
313,
3226,
3437,
29897,
310,
23030,
2987,
29874,
306,
1133,
12099,
313,
10330,
6877,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29896,
29896,
29896,
29896,
29953,
29918,
29953,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
291,
5513,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29906,
29906,
29953,
29941,
29906,
29918,
29896,
29955,
313,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29908,
1625,
4424,
29914,
29967,
348,
1611,
29914,
6821,
431,
3815,
313,
3226,
3437,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29953,
29900,
29900,
29941,
29929,
29918,
29953,
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,
29896,
29918,
29896,
29896,
29929,
29953,
29900,
29953,
29896,
29900,
29918,
29953,
313,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
405,
15444,
3815,
393,
756,
263,
3815,
313,
3226,
3437,
29897,
310,
23030,
2987,
29874,
306,
1133,
12099,
313,
10330,
6877,
29952,
13,
28956,
2850,
13,
5097,
376,
29940,
15444,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29906,
29906,
29953,
29941,
29906,
29918,
29896,
29955,
5754,
376,
1625,
4424,
29914,
29967,
348,
1611,
29914,
6821,
431,
3815,
313,
3226,
3437,
5513,
306,
5265,
6059,
14210,
9894,
790,
2987,
29874,
29995,
7612,
12099,
29995,
29898,
10330,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29940,
15444,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29906,
29906,
29953,
29941,
29906,
29918,
29896,
29955,
5754,
376,
1625,
4424,
29914,
29967,
348,
1611,
29914,
6821,
431,
3815,
313,
3226,
3437,
5513,
306,
5265,
6059,
14210,
9894,
790,
2987,
29874,
29995,
7612,
12099,
29995,
29898,
10330,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the NHL team that has a team (League) of Mississauga Icedogs (ohl)?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11111116_6 (
"Directed by" text,
Title text,
"U.S. viewers (million)" text,
"Original air date" text,
"No. in series" numeric,
"No. in season" numeric,
"Written by" text
);
CREATE TABLE table_2_11622632_17 (
Nationality text,
"NHL team" text,
Player text,
Round numeric,
"College/Junior/Club team (League)" text
);
CREATE TABLE table_1_10960039_6 (
Position text,
"CFL Team" text,
College text,
"Pick #" numeric
);
CREATE TABLE table_1_11960610_6 (
"Location Attendance" text,
"High rebounds" text,
Team text,
Score text,
"High assists" text,
Record text,
Date text,
Game numeric,
"High points" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the NHL team that has a team (League) of Mississauga Icedogs (ohl)?`
```sql
| SELECT "NHL team" FROM table_2_11622632_17 WHERE "College/Junior/Club team (League)" ILIKE '%mississauga%icedogs%(ohl)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
2635,
471,
278,
6507,
746,
278,
3402,
471,
301,
29886,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29953,
29953,
29906,
29929,
29918,
29941,
313,
13,
12,
2539,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
4775,
1426,
29892,
13,
12,
5809,
1426,
29892,
13,
12,
29907,
3968,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29896,
29941,
29947,
29947,
29947,
29918,
29896,
313,
13,
12,
5627,
1426,
29892,
13,
12,
4557,
16985,
29892,
13,
12,
3727,
2782,
1426,
29892,
13,
12,
29908,
4421,
336,
2986,
29914,
29903,
1025,
29908,
1426,
29892,
13,
12,
29934,
774,
29884,
2782,
1426,
29892,
13,
12,
29908,
1170,
408,
337,
16145,
29908,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
2635,
471,
278,
6507,
746,
278,
3402,
471,
301,
29886,
29973,
29952,
13,
28956,
2850,
13,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29953,
29953,
29906,
29929,
29918,
29941,
5754,
376,
5809,
29908,
306,
5265,
6059,
14210,
22833,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
4712,
3895,
1591,
29918,
29906,
29918,
29896,
29945,
29946,
29953,
29953,
29906,
29929,
29918,
29941,
5754,
376,
5809,
29908,
306,
5265,
6059,
14210,
22833,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What date was the release when the format was lp?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1546629_3 (
Date text,
Country text,
Label text,
Format text,
Catalog text
);
CREATE TABLE table_1_12113888_1 (
Builder text,
Number numeric,
Built text,
"Scrapped/Sold" text,
Rebuilt text,
"Name as rebuilt" text
);
```
### Answer
Here is the SQL query that answers the question:
`What date was the release when the format was lp?`
```sql
| SELECT Date FROM table_2_1546629_3 WHERE "Format" ILIKE '%lp%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
10104,
310,
278,
8589,
746,
5335,
298,
3437,
750,
263,
2407,
310,
29871,
29896,
29945,
29899,
29955,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29955,
29929,
29953,
29941,
29918,
29953,
313,
13,
12,
19409,
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,
15121,
3885,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29946,
29953,
29941,
29906,
29896,
29955,
29918,
29906,
313,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
1666,
1213,
1426,
29892,
13,
12,
4062,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2481,
1426,
29892,
13,
12,
2624,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29896,
29945,
29896,
29941,
29906,
29918,
29941,
313,
13,
12,
9075,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
4504,
1507,
29914,
6821,
431,
8583,
29908,
1426,
29892,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29908,
3782,
1213,
16985,
29892,
13,
12,
29908,
12883,
29879,
297,
17612,
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,
10104,
310,
278,
8589,
746,
5335,
298,
3437,
750,
263,
2407,
310,
29871,
29896,
29945,
29899,
29955,
29973,
29952,
13,
28956,
2850,
13,
5097,
2538,
29889,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29946,
29953,
29941,
29906,
29896,
29955,
29918,
29906,
5754,
376,
9182,
29908,
306,
5265,
6059,
14210,
29896,
29945,
29899,
29955,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
2538,
29889,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29946,
29953,
29941,
29906,
29896,
29955,
29918,
29906,
5754,
376,
9182,
29908,
306,
5265,
6059,
14210,
29896,
29945,
29899,
29955,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the resolution of the fight when tim hague had a record of 15-7?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11907963_6 (
Team text,
"Location Attendance" text,
Game numeric,
Score text,
"High rebounds" text,
Date text,
"High assists" text,
"High points" text
);
CREATE TABLE table_2_17463217_2 (
Opponent text,
Location text,
"Res." text,
Method text,
Round numeric,
Record text,
Time text,
Event text
);
CREATE TABLE table_1_10015132_3 (
Player text,
Position text,
"School/Club Team" text,
Nationality text,
"No." numeric,
"Years in Toronto" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the resolution of the fight when tim hague had a record of 15-7?`
```sql
| SELECT Res. FROM table_2_17463217_2 WHERE "Record" ILIKE '%15-7%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
29871,
29896,
29929,
29947,
29945,
995,
363,
278,
1629,
746,
402,
11191,
408,
310,
29871,
29906,
29900,
29896,
29906,
1156,
349,
18009,
471,
29871,
29941,
29953,
29929,
29889,
29941,
29947,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29955,
29953,
29918,
29906,
313,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
13020,
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,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29941,
29900,
29896,
29941,
29941,
29918,
29941,
313,
13,
12,
29923,
4599,
29891,
1426,
29892,
13,
12,
29908,
29954,
481,
515,
498,
26517,
408,
310,
29871,
29906,
29900,
29896,
29906,
313,
3706,
5513,
1426,
29892,
13,
12,
29908,
29896,
29929,
29947,
29945,
29908,
16985,
29892,
13,
12,
29908,
29896,
29929,
29929,
29945,
29908,
16985,
29892,
13,
12,
29908,
29954,
11191,
408,
310,
29871,
29906,
29900,
29896,
29906,
1156,
10596,
5832,
3081,
610,
537,
313,
18009,
29925,
29897,
17203,
313,
3308,
29928,
11118,
1080,
5513,
1426,
29892,
13,
12,
29908,
29954,
11191,
639,
2117,
2028,
408,
310,
29871,
29906,
29900,
29896,
29906,
313,
18009,
29925,
5513,
16985,
29892,
13,
12,
29908,
29906,
29900,
29896,
29906,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29896,
29900,
29908,
16985,
29892,
13,
12,
29908,
29896,
29929,
29947,
29900,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29900,
29908,
16985,
29892,
13,
12,
29908,
29896,
29929,
29929,
29900,
29908,
16985,
29892,
13,
12,
29908,
29906,
29900,
29900,
29945,
29908,
16985,
29892,
13,
12,
29908,
29954,
481,
515,
498,
26517,
408,
310,
29871,
29896,
29929,
29947,
29900,
313,
3706,
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,
29871,
29896,
29929,
29947,
29945,
995,
363,
278,
1629,
746,
402,
11191,
408,
310,
29871,
29906,
29900,
29896,
29906,
1156,
349,
18009,
471,
29871,
29941,
29953,
29929,
29889,
29941,
29947,
29973,
29952,
13,
28956,
2850,
13,
5097,
29871,
29896,
29929,
29947,
29945,
3895,
1591,
29918,
29896,
29918,
29941,
29900,
29896,
29941,
29941,
29918,
29941,
5754,
376,
29954,
11191,
3339,
310,
29871,
29906,
29900,
29896,
29906,
1156,
10596,
5832,
3081,
610,
537,
313,
18009,
29925,
29897,
17203,
313,
3308,
29928,
11118,
1080,
5513,
306,
5265,
6059,
14210,
29941,
29953,
29929,
29889,
29941,
29947,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29871,
29896,
29929,
29947,
29945,
3895,
1591,
29918,
29896,
29918,
29941,
29900,
29896,
29941,
29941,
29918,
29941,
5754,
376,
29954,
11191,
3339,
310,
29871,
29906,
29900,
29896,
29906,
1156,
10596,
5832,
3081,
610,
537,
313,
18009,
29925,
29897,
17203,
313,
3308,
29928,
11118,
1080,
5513,
306,
5265,
6059,
14210,
29941,
29953,
29929,
29889,
29941,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the 1985 value for the year when GDP as of 2012 after PPP was 369.38?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140076_2 (
"Fastest Lap" text,
Rnd numeric,
Report text,
"Race Winner" text,
Race text,
Location text,
"Pole Position" text,
Constructor text,
Date text
);
CREATE TABLE table_1_30133_3 (
Economy text,
"Gap from Thailand as of 2012 (times)" text,
"1985" numeric,
"1995" numeric,
"GDP as of 2012 after purchasing power parity (PPP) calculations (USD billions)" text,
"GDP per capita as of 2012 (PPP)" numeric,
"2012" numeric,
"2010" numeric,
"1980" numeric,
"2000" numeric,
"1990" numeric,
"2005" numeric,
"Gap from Thailand as of 1980 (times)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is the 1985 value for the year when GDP as of 2012 after PPP was 369.38?`
```sql
| SELECT 1985 FROM table_1_30133_3 WHERE "GDP AS of 2012 after purchasing power parity (PPP) calculations (USD billions)" ILIKE '%369.38%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
995,
363,
5318,
746,
3291,
338,
29871,
29947,
322,
2602,
338,
29871,
29896,
29896,
386,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
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,
29955,
29900,
29906,
29953,
29896,
29918,
29906,
313,
13,
12,
10840,
326,
29658,
1426,
29892,
13,
12,
4074,
1493,
1426,
29892,
13,
12,
6572,
2576,
262,
4314,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
29923,
854,
292,
402,
776,
29908,
1426,
29892,
13,
12,
29909,
19698,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29906,
29906,
29947,
29953,
29906,
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,
2539,
1426,
29892,
13,
12,
29956,
3993,
1426,
29892,
13,
12,
20097,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29900,
29941,
29945,
29953,
29941,
29918,
29906,
313,
13,
12,
29908,
29934,
5963,
414,
29899,
786,
29908,
16985,
29892,
13,
12,
29956,
16697,
16985,
29892,
13,
12,
29940,
362,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
29892,
13,
12,
29908,
29941,
5499,
15484,
29908,
16985,
29892,
13,
12,
29908,
29946,
386,
15484,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29955,
29947,
29953,
29929,
29945,
29918,
29896,
313,
13,
12,
13454,
287,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29931,
520,
1426,
29892,
13,
12,
20325,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29953,
29906,
29896,
29947,
29906,
29918,
29906,
313,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
29911,
277,
793,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
4557,
16985,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
3206,
11259,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
29915,
29879,
278,
995,
363,
5318,
746,
3291,
338,
29871,
29947,
322,
2602,
338,
29871,
29896,
29896,
386,
29973,
29952,
13,
28956,
2850,
13,
5097,
7412,
287,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29955,
29947,
29953,
29929,
29945,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
29896,
29896,
386,
29001,
5300,
376,
20325,
29908,
306,
5265,
6059,
14210,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
7412,
287,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29953,
29955,
29947,
29953,
29929,
29945,
29918,
29896,
5754,
376,
8003,
29908,
306,
5265,
6059,
14210,
29896,
29896,
386,
29001,
5300,
376,
20325,
29908,
306,
5265,
6059,
14210,
29947,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What's the value for played when points is 8 and position is 11th?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11970261_2 (
Swimsuit text,
Interview text,
Preliminaries text,
Country text,
"Evening Gown" text,
Average text
);
CREATE TABLE table_1_11622862_1 (
Location text,
"1st Prize( $ )" numeric,
"Purse( $ )" numeric,
Tournament text,
Date text,
Winner text,
Score text
);
CREATE TABLE table_1_12303563_2 (
"Runners-up" numeric,
Winners numeric,
Nation text,
"#" numeric,
"3rd Place" numeric,
"4th Place" numeric
);
CREATE TABLE table_2_11678695_1 (
Played text,
Position text,
Division text,
Season text,
Lost text,
Points text
);
CREATE TABLE table_1_12262182_2 (
Opponent text,
Titles text,
Name text,
Number numeric,
Result text,
Defenses numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What's the value for played when points is 8 and position is 11th?`
```sql
| SELECT Played FROM table_2_11678695_1 WHERE "Position" ILIKE '%11th%' AND "Points" ILIKE '%8%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
7115,
7827,
1353,
565,
278,
11874,
273,
323,
2911,
5689,
271,
484,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29955,
29896,
29941,
29941,
29900,
29941,
29918,
29906,
313,
13,
12,
29908,
2539,
310,
11757,
6906,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
29908,
29924,
7310,
310,
25619,
29908,
1426,
29892,
13,
12,
29908,
5612,
433,
1133,
491,
29908,
1426,
29892,
13,
12,
29908,
2539,
310,
28573,
29908,
1426,
29892,
13,
12,
29908,
3744,
17696,
8455,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29900,
29906,
29906,
29929,
29946,
29918,
29896,
313,
13,
12,
29956,
513,
5965,
5779,
1426,
29892,
13,
12,
10923,
545,
1426,
29892,
13,
12,
29908,
29909,
12588,
15201,
29908,
1426,
29892,
13,
12,
2772,
493,
29879,
1426,
29892,
13,
12,
1170,
1426,
29892,
13,
12,
29908,
15666,
557,
12965,
29908,
1426,
29892,
13,
12,
29908,
29928,
314,
482,
313,
3308,
29928,
5513,
1426,
29892,
13,
12,
5620,
29879,
1426,
29892,
13,
12,
29908,
29928,
1078,
6136,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29955,
29941,
29947,
29906,
29955,
29918,
29896,
313,
13,
12,
29925,
1745,
10883,
16985,
29892,
13,
12,
29908,
24636,
3611,
29908,
1426,
29892,
13,
12,
15666,
557,
16985,
29892,
13,
12,
29909,
19698,
16985,
29892,
13,
12,
12881,
744,
16985,
29892,
13,
12,
29908,
29950,
29968,
1776,
414,
29908,
1426,
29892,
13,
12,
29908,
1451,
8233,
3611,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29947,
29945,
29947,
29918,
29896,
313,
13,
12,
29908,
12883,
1857,
2522,
449,
292,
13013,
8772,
399,
3267,
29924,
29908,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
1170,
310,
4509,
13013,
29908,
1426,
29892,
13,
12,
29908,
12883,
4509,
13013,
471,
11091,
29908,
1426,
29892,
13,
12,
29908,
3253,
29885,
1169,
12544,
29914,
29887,
9968,
29908,
1426,
29892,
13,
12,
29908,
29924,
1590,
10475,
313,
3166,
29871,
29906,
29900,
29896,
29900,
5513,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29896,
313,
13,
12,
27325,
537,
1426,
29892,
13,
12,
29925,
860,
16985,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
8003,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29906,
29953,
29900,
29946,
29896,
29896,
29946,
29946,
29918,
29896,
29953,
313,
13,
12,
855,
17204,
16985,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
29907,
905,
267,
16985,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29853,
1426,
29892,
13,
12,
29928,
28303,
1338,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
7115,
7827,
1353,
565,
278,
11874,
273,
323,
2911,
5689,
271,
484,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29934,
804,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29900,
29946,
29896,
29896,
29946,
29946,
29918,
29896,
29953,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
10438,
273,
29995,
29911,
2911,
5689,
271,
484,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
29898,
29934,
804,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29953,
29900,
29946,
29896,
29896,
29946,
29946,
29918,
29896,
29953,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
10438,
273,
29995,
29911,
2911,
5689,
271,
484,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the ranktotal number if the Hashan Tillakaratne?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11713303_2 (
"Date of vacancy" text,
Team text,
"Manner of departure" text,
"Replaced by" text,
"Date of appointment" text,
"Outgoing manager" text
);
CREATE TABLE table_1_10602294_1 (
Windspeeds text,
Pressure text,
"Areas affected" text,
Deaths text,
Name text,
"Peak classification" text,
"Damage (USD)" text,
Refs text,
"Dates active" text
);
CREATE TABLE table_1_11173827_1 (
Premiere numeric,
"English title" text,
Peak numeric,
Average numeric,
Finale numeric,
"HK viewers" text,
"Chinese title" text
);
CREATE TABLE table_1_104858_1 (
"Year current Scouting organization joined WOSM" text,
Country text,
"Name of member organization" text,
"Year member organization was founded" text,
"Admits boys/girls" text,
"Membership (from 2010)" numeric
);
CREATE TABLE table_1_1013129_1 (
Nationality text,
Pick numeric,
"NHL team" text,
"College/junior/club team" text,
Position text
);
CREATE TABLE table_1_26041144_16 (
Stumps numeric,
Rank numeric,
Catches numeric,
Player text,
Period text,
Dismissals numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the ranktotal number if the Hashan Tillakaratne?`
```sql
| SELECT COUNT(Rank) FROM table_1_26041144_16 WHERE "Player" ILIKE '%Hashan%Tillakaratne%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
1353,
310,
14982,
292,
363,
29871,
29941,
29896,
9128,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29946,
29906,
29946,
29946,
29955,
29918,
29906,
313,
13,
12,
29908,
5015,
24733,
4103,
20889,
362,
29908,
1426,
29892,
13,
12,
29908,
5015,
24733,
399,
4339,
3831,
7261,
29908,
1426,
29892,
13,
12,
29908,
5015,
24733,
396,
29908,
1426,
29892,
13,
12,
29908,
24636,
1706,
7807,
29908,
1426,
29892,
13,
12,
29908,
29950,
774,
3973,
1734,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29946,
29953,
29906,
29941,
29896,
29953,
29955,
29918,
29896,
313,
13,
12,
29908,
5594,
1804,
29908,
1426,
29892,
13,
12,
13724,
1426,
29892,
13,
12,
28213,
1426,
29892,
13,
12,
29933,
9502,
292,
1426,
29892,
13,
12,
21287,
16985,
29892,
13,
12,
25847,
936,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29953,
29896,
29900,
29900,
29947,
29955,
29918,
29941,
313,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29945,
29945,
29953,
29906,
29945,
29955,
29918,
29896,
313,
13,
12,
29908,
3226,
3437,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
29907,
786,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
29907,
786,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2921,
1338,
29908,
16985,
29892,
13,
12,
2008,
1658,
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,
1170,
278,
1353,
310,
14982,
292,
363,
29871,
29941,
29896,
9128,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29933,
9502,
292,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29946,
29953,
29906,
29941,
29896,
29953,
29955,
29918,
29896,
5754,
376,
25847,
936,
29908,
353,
525,
29941,
29896,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29933,
9502,
292,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29946,
29953,
29906,
29941,
29896,
29953,
29955,
29918,
29896,
5754,
376,
25847,
936,
29908,
353,
525,
29941,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the number of branding for 31 physical`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1242447_2 (
"Strongs Transliteration" text,
"Strongs Words Compounded" text,
"Strongs #" text,
"English Spelling" text,
"Hebrew word" text
);
CREATE TABLE table_1_14623167_1 (
"Call sign" text,
Network text,
Owner text,
Branding text,
Virtual numeric,
Physical numeric
);
CREATE TABLE table_1_10610087_3 (
Title text,
"Written by" text,
"Original air date" text,
"Directed by" text,
"No. in series" numeric,
"No. in season" numeric
);
CREATE TABLE table_1_10556257_1 (
"League Apps" numeric,
"Cup Apps" numeric,
"Cup Goals" numeric,
"League Goals" numeric,
Season text,
Team text
);
```
### Answer
Here is the SQL query that answers the question:
`Name the number of branding for 31 physical`
```sql
| SELECT COUNT(Branding) FROM table_1_14623167_1 WHERE "Physical" = '31' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
1741,
750,
10815,
26790,
23133,
3055,
408,
23995,
296,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29947,
29945,
29941,
29896,
29941,
29918,
29896,
313,
13,
12,
29908,
4537,
310,
14433,
29908,
16985,
29892,
13,
12,
29908,
4537,
310,
26091,
29908,
16985,
29892,
13,
12,
29908,
1256,
310,
12060,
29908,
1426,
29892,
13,
12,
978,
1426,
29892,
13,
12,
29908,
1256,
310,
4892,
30087,
29908,
1426,
29892,
13,
12,
29908,
1256,
310,
9512,
29908,
1426,
29892,
13,
12,
4537,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29947,
29896,
29929,
29945,
29945,
29918,
29906,
313,
13,
12,
29934,
618,
16985,
29892,
13,
12,
2624,
1426,
29892,
13,
12,
4062,
1426,
29892,
13,
12,
29949,
407,
265,
296,
1426,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2481,
1426,
29892,
13,
12,
29908,
1666,
1213,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
1741,
750,
10815,
26790,
23133,
3055,
408,
23995,
296,
29973,
29952,
13,
28956,
2850,
13,
5097,
6864,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29947,
29896,
29929,
29945,
29945,
29918,
29906,
5754,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
4287,
5409,
29995,
744,
29916,
392,
276,
29995,
29886,
406,
3055,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
6864,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29929,
29947,
29896,
29929,
29945,
29945,
29918,
29906,
5754,
376,
29949,
407,
265,
296,
29908,
306,
5265,
6059,
14210,
4287,
5409,
29995,
744,
29916,
392,
276,
29995,
29886,
406,
3055,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which event had Carlos Alexandre Pereira as opponent?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11585313_1 (
"number of goals" numeric,
"number of caps" numeric,
"date of birth" text,
name text,
"date of death†" text,
"date of debut" text,
number numeric
);
CREATE TABLE table_2_18981955_2 (
Round numeric,
Event text,
Method text,
Opponent text,
Location text,
Record text,
Time text,
"Res." text
);
```
### Answer
Here is the SQL query that answers the question:
`Which event had Carlos Alexandre Pereira as opponent?`
```sql
| SELECT Event FROM table_2_18981955_2 WHERE "Opponent" ILIKE '%carlos%alexandre%pereira%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
12790,
1076,
29915,
29879,
2407,
472,
1009,
3271,
3748,
2750,
13397,
411,
385,
14333,
749,
975,
29871,
29896,
29953,
29892,
29945,
29906,
29953,
322,
263,
10608,
310,
4168,
28466,
29894,
391,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29955,
29953,
29953,
29953,
29896,
29955,
29918,
29946,
313,
13,
12,
2539,
1426,
29892,
13,
12,
6185,
2459,
1426,
29892,
13,
12,
4165,
21642,
16985,
29892,
13,
12,
6116,
2105,
1426,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
11184,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29896,
313,
13,
12,
29925,
860,
16985,
29892,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
9075,
1426,
29892,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
27325,
537,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29900,
29900,
29941,
29955,
29947,
29918,
29896,
313,
13,
12,
29911,
2905,
1166,
1426,
29892,
13,
12,
29908,
29928,
283,
7586,
29314,
29908,
1426,
29892,
13,
12,
16885,
1426,
29892,
13,
12,
29908,
10873,
793,
29314,
29908,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
18498,
2161,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29953,
313,
13,
12,
4504,
1507,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
1625,
4424,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29955,
29953,
29900,
29918,
29941,
29896,
313,
13,
12,
29950,
3297,
776,
1426,
29892,
13,
12,
7011,
1426,
29892,
13,
12,
29908,
29940,
5688,
360,
4154,
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,
12790,
1076,
29915,
29879,
2407,
472,
1009,
3271,
3748,
2750,
13397,
411,
385,
14333,
749,
975,
29871,
29896,
29953,
29892,
29945,
29906,
29953,
322,
263,
10608,
310,
4168,
28466,
29894,
391,
29973,
29952,
13,
28956,
2850,
13,
5097,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29955,
29953,
29953,
29953,
29896,
29955,
29918,
29946,
5754,
376,
6185,
2459,
29908,
306,
5265,
6059,
14210,
13376,
29939,
29894,
391,
29001,
5300,
376,
4165,
21642,
29908,
1405,
525,
29896,
29953,
29892,
29945,
29906,
29953,
29915,
5300,
376,
6116,
2105,
29908,
306,
5265,
6059,
14210,
4287,
324,
1099,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
14164,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29955,
29953,
29953,
29953,
29896,
29955,
29918,
29946,
5754,
376,
6185,
2459,
29908,
306,
5265,
6059,
14210,
13376,
29939,
29894,
391,
29001,
5300,
376,
4165,
21642,
29908,
1405,
525,
29896,
29953,
29892,
29945,
29906,
29953,
29915,
5300,
376,
6116,
2105,
29908,
306,
5265,
6059,
14210,
4287,
324,
1099,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the Lightning's record at their home game against Carolina with an attendance over 16,526 and a decision of Holmqvist?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_11766617_4 (
Date text,
Decision text,
Attendance numeric,
Visitor text,
Record text,
Score text,
Home text
);
CREATE TABLE table_1_1013129_1 (
Pick numeric,
"College/junior/club team" text,
Player text,
"NHL team" text,
Position text,
Nationality text
);
CREATE TABLE table_1_11900378_1 (
Tournament text,
"Doubles champions" text,
City text,
"Singles champions" text,
Country text,
Surface text
);
CREATE TABLE table_1_11677691_6 (
School text,
Position text,
Hometown text,
College text
);
CREATE TABLE table_1_11677760_31 (
Hometown text,
Height text,
"NBA Draft" text
);
```
### Answer
Here is the SQL query that answers the question:
`What was the Lightning's record at their home game against Carolina with an attendance over 16,526 and a decision of Holmqvist?`
```sql
| SELECT Record FROM table_2_11766617_4 WHERE "Decision" ILIKE '%holmqvist%' AND "Attendance" > '16,526' AND "Visitor" ILIKE '%carolina%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
383,
3365,
1537,
17421,
4539,
29915,
29879,
1763,
610,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29955,
29955,
29918,
29906,
313,
13,
12,
6508,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29934,
299,
16985,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
13020,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29896,
29946,
29947,
29945,
29955,
29906,
29918,
29896,
313,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
29908,
1988,
29903,
9179,
272,
2153,
1383,
969,
7525,
1089,
29899,
3373,
29908,
1426,
29892,
13,
12,
29908,
1988,
29903,
6536,
7525,
1089,
29899,
3373,
29908,
1426,
29892,
13,
12,
29908,
1988,
29903,
9179,
272,
2153,
1383,
969,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
1988,
29903,
6536,
399,
3993,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29896,
29941,
29946,
29953,
29941,
29918,
29955,
313,
13,
12,
29908,
1762,
610,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
22150,
1426,
29892,
13,
12,
29908,
29924,
4992,
313,
15151,
1723,
29908,
16985,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29906,
29955,
29945,
29945,
29945,
29896,
29918,
29896,
313,
13,
12,
29908,
29956,
290,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
27641,
29908,
1426,
29892,
13,
12,
29908,
29956,
290,
575,
22102,
29908,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
29924,
11925,
27641,
29908,
1426,
29892,
13,
12,
29908,
29924,
575,
22102,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29941,
29896,
29941,
29896,
29953,
29918,
29945,
313,
13,
12,
29940,
362,
1426,
29892,
13,
12,
29909,
386,
2810,
1426,
29892,
13,
12,
29908,
29956,
513,
313,
29885,
29914,
29879,
5513,
1426,
29892,
13,
12,
29934,
804,
16985,
29892,
13,
12,
6508,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
931,
313,
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,
338,
383,
3365,
1537,
17421,
4539,
29915,
29879,
1763,
610,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
1762,
610,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29896,
29941,
29946,
29953,
29941,
29918,
29955,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29888,
3365,
1537,
29995,
2502,
4539,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
1762,
610,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29896,
29896,
29941,
29946,
29953,
29941,
29918,
29955,
5754,
376,
9075,
29908,
306,
5265,
6059,
14210,
29888,
3365,
1537,
29995,
2502,
4539,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is Fuzzy Zoeller's To par?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1140077_2 (
Location text,
Constructor text,
Race text,
"Race Winner" text,
Rnd numeric,
"Fastest Lap" text,
"Pole Position" text,
Date text,
Report text
);
CREATE TABLE table_1_11148572_1 (
Season numeric,
"MLS Supporters Shield Runner-Up" text,
"MLS Cup Runner-Up" text,
"MLS Supporters Shield Winner" text,
"MLS Cup Winner" text
);
CREATE TABLE table_2_18113463_7 (
"To par" text,
Score text,
Country text,
Place text,
"Money ( £ )" numeric,
Player text
);
CREATE TABLE table_1_12275551_1 (
"Womens doubles" text,
"Mens doubles" text,
"Womens singles" text,
Year numeric,
"Mixed doubles" text,
"Mens singles" text
);
CREATE TABLE table_1_1231316_5 (
Nation text,
Athlete text,
"Wind (m/s)" text,
Rank numeric,
Location text,
"Fastest time (s)" text
);
```
### Answer
Here is the SQL query that answers the question:
`What is Fuzzy Zoeller's To par?`
```sql
| SELECT "To par" FROM table_2_18113463_7 WHERE "Player" ILIKE '%fuzzy%zoeller%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
20084,
505,
29871,
29896,
14433,
322,
901,
1135,
29871,
29896,
29896,
11446,
29973,
29952,
13,
13,
2277,
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,
29946,
29896,
29947,
29945,
29900,
29896,
29918,
29896,
313,
13,
12,
19409,
1426,
29892,
13,
12,
8120,
1338,
16985,
29892,
13,
12,
2008,
1658,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
2052,
29879,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29955,
29955,
29900,
29946,
29918,
29906,
313,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
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,
6508,
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,
20084,
505,
29871,
29896,
14433,
322,
901,
1135,
29871,
29896,
29896,
11446,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
2008,
1658,
29897,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29946,
29896,
29947,
29945,
29900,
29896,
29918,
29896,
5754,
376,
8120,
1338,
29908,
353,
525,
29896,
29915,
5300,
376,
2052,
29879,
29908,
1405,
525,
29896,
29896,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
29906,
29918,
29896,
29906,
29946,
29896,
29947,
29945,
29900,
29896,
29918,
29896,
5754,
376,
8120,
1338,
29908,
353,
525,
29896,
29915,
5300,
376,
2052,
29879,
29908,
1405,
525,
29896,
29896,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many seasons have 1 goals and more than 11 apps?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_12418501_1 (
Team text,
Goals numeric,
Season numeric,
Country text,
Apps numeric
);
CREATE TABLE table_1_1137704_2 (
"Fastest Lap" text,
Report text,
Round numeric,
"Grand Prix" text,
Date text,
"Winning Constructor" text,
"Pole Position" text,
"Winning Driver" text,
Location text
);
```
### Answer
Here is the SQL query that answers the question:
`How many seasons have 1 goals and more than 11 apps?`
```sql
| SELECT COUNT(Season) FROM table_2_12418501_1 WHERE "Goals" = '1' AND "Apps" > '11' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
8809,
436,
7664,
756,
263,
341,
524,
482,
310,
29871,
29945,
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,
29900,
29955,
29896,
29947,
29929,
29955,
29918,
29896,
313,
13,
12,
29908,
4074,
1727,
1949,
4689,
29908,
1426,
29892,
13,
12,
29908,
3981,
3793,
271,
457,
310,
278,
7861,
457,
29908,
1426,
29892,
13,
12,
18984,
1426,
29892,
13,
12,
29908,
4074,
1727,
1949,
9698,
29908,
1426,
29892,
13,
12,
29908,
3981,
3793,
271,
457,
310,
18574,
2592,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29900,
29946,
29929,
29929,
29947,
29918,
29906,
313,
13,
12,
29908,
24636,
4408,
29908,
1426,
29892,
13,
12,
13799,
16985,
29892,
13,
12,
2308,
328,
3245,
1426,
29892,
13,
12,
12310,
2785,
16985,
29892,
13,
12,
29950,
557,
1335,
1426,
29892,
13,
12,
29928,
575,
537,
16985,
29892,
13,
12,
8942,
572,
2164,
1426,
29892,
13,
12,
29925,
4901,
262,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29929,
29896,
29953,
29900,
29947,
29941,
29918,
29953,
29929,
313,
13,
12,
29908,
29902,
893,
434,
20743,
29908,
1426,
29892,
13,
12,
29924,
524,
482,
16985,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
9986,
391,
1426,
29892,
13,
12,
17693,
1426,
29892,
13,
12,
1523,
3283,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29900,
29955,
29953,
29947,
29947,
29918,
29896,
313,
13,
12,
21314,
561,
375,
16985,
29892,
13,
12,
22995,
4568,
1426,
29892,
13,
12,
29908,
9662,
2547,
292,
1238,
369,
29908,
16985,
29892,
13,
12,
29908,
21314,
561,
3398,
1238,
369,
29908,
16985,
29892,
13,
12,
12636,
497,
1129,
29916,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29945,
29941,
29896,
29929,
29955,
29918,
29906,
313,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
10507,
29898,
29879,
5513,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
17392,
272,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29929,
29946,
29906,
29918,
29906,
313,
13,
12,
29908,
5963,
2795,
29918,
29900,
29908,
1426,
29892,
13,
12,
29908,
5938,
29453,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
29923,
4599,
1711,
10731,
20986,
313,
29900,
29900,
29900,
29879,
5513,
16985,
29892,
13,
12,
29908,
19334,
512,
25606,
538,
681,
5244,
313,
29900,
29900,
29900,
29879,
5513,
16985,
29892,
13,
12,
29908,
5938,
29453,
313,
29900,
29900,
29900,
29879,
5513,
16985,
29892,
13,
12,
29908,
19334,
512,
25606,
538,
681,
5244,
313,
29995,
5513,
1426,
29892,
13,
12,
29908,
3596,
20986,
313,
29900,
29900,
29900,
29879,
5513,
16985,
29892,
13,
12,
29908,
29923,
4599,
1711,
10731,
20986,
313,
29995,
5513,
1426,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
8809,
436,
7664,
756,
263,
341,
524,
482,
310,
29871,
29945,
29900,
29900,
29973,
29952,
13,
28956,
2850,
13,
5097,
3012,
391,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29929,
29896,
29953,
29900,
29947,
29941,
29918,
29953,
29929,
5754,
376,
29924,
524,
482,
29908,
353,
525,
29945,
29900,
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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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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
3012,
391,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29929,
29896,
29953,
29900,
29947,
29941,
29918,
29953,
29929,
5754,
376,
29924,
524,
482,
29908,
353,
525,
29945,
29900,
29900,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Which artist has a Mintage of 500?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11071897_1 (
"Interregnum began" text,
"Count Palatine of the Rhine" text,
Duration text,
"Interregnum ended" text,
"Count Palatine of Saxony" text
);
CREATE TABLE table_1_1204998_2 (
"English Name" text,
Area numeric,
Traditional text,
Population numeric,
Hakka text,
Density numeric,
Simplified text,
Pinyin text
);
CREATE TABLE table_2_11916083_69 (
"Issue Price" text,
Mintage numeric,
Year numeric,
Artist text,
Theme text,
Composition text
);
CREATE TABLE table_1_1007688_1 (
Typhus numeric,
Malaria text,
"Relapsing fever" numeric,
"Typhoid fever" numeric,
Smallpox numeric
);
CREATE TABLE table_1_10953197_2 (
Title text,
"Writer(s)" text,
"Original air date" text,
"No. in series" numeric,
"Production code" text,
"No. in season" numeric,
Director text
);
CREATE TABLE table_1_101942_2 (
"unnamed_0" text,
"Child Labour (%)" text,
"Economically Active Children (000s)" numeric,
"Children In Hazardous Work (000s)" numeric,
"Child Labour (000s)" numeric,
"Children In Hazardous Work (%)" text,
"All Children (000s)" numeric,
"Economically Active Children (%)" text
);
```
### Answer
Here is the SQL query that answers the question:
`Which artist has a Mintage of 500?`
```sql
| SELECT Artist FROM table_2_11916083_69 WHERE "Mintage" = '500' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
21849,
4377,
746,
17040,
260,
24729,
5186,
29871,
29906,
29945,
29871,
29947,
29953,
29953,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29946,
29900,
29941,
29941,
29918,
29946,
313,
13,
12,
12883,
16985,
29892,
13,
12,
29908,
17579,
1288,
313,
7827,
5513,
1426,
29892,
13,
12,
29908,
7129,
15109,
10726,
29908,
1426,
29892,
13,
12,
29908,
29907,
7921,
313,
880,
4515,
5513,
1426,
29892,
13,
12,
11096,
15931,
1426,
29892,
13,
12,
29908,
11536,
28134,
29908,
1426,
29892,
13,
12,
29908,
29909,
12664,
3172,
886,
29908,
1426,
29892,
13,
12,
29908,
17579,
1288,
313,
5464,
29899,
29907,
3235,
5513,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29946,
29900,
29896,
29906,
29945,
29918,
29906,
313,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
4519,
6536,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
11536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2921,
1338,
29908,
16985,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
29908,
11536,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
4519,
6536,
2921,
1338,
29908,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
21849,
4377,
746,
17040,
260,
24729,
5186,
29871,
29906,
29945,
29871,
29947,
29953,
29953,
29973,
29952,
13,
28956,
2850,
13,
5097,
7809,
15931,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29946,
29900,
29941,
29941,
29918,
29946,
5754,
376,
29907,
7921,
313,
880,
4515,
5513,
306,
5265,
6059,
14210,
29906,
29945,
29995,
29947,
29953,
29953,
29001,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
7809,
15931,
3895,
1591,
29918,
29906,
29918,
29896,
29955,
29929,
29946,
29900,
29941,
29941,
29918,
29946,
5754,
376,
29907,
7921,
313,
880,
4515,
5513,
306,
5265,
6059,
14210,
29906,
29945,
29995,
29947,
29953,
29953,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the domestic figure when cargo tonnes equal 25 866?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_1794033_4 (
Year numeric,
"International (total)" text,
"Passenger Change" text,
"Cargo (tonnes)" text,
Domestic text,
"Total passengers" text,
"Aircraft Landings" text,
"International (non-CIS)" text
);
CREATE TABLE table_1_10240125_2 (
Season text,
"FA Cup Apps" numeric,
"League Apps" numeric,
"Total Goals" numeric,
"League Goals" numeric,
Division text,
"Total Apps" numeric,
"FA Cup Goals" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the domestic figure when cargo tonnes equal 25 866?`
```sql
| SELECT Domestic FROM table_2_1794033_4 WHERE "Cargo (tonnes)" ILIKE '%25%866%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
1170,
278,
3001,
1353,
310,
8542,
363,
2258,
2723,
567,
1641,
29871,
29929,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29955,
29955,
29953,
29929,
29896,
29918,
29896,
29896,
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,
29896,
29918,
29906,
29929,
29955,
29929,
29955,
29947,
29929,
29918,
29896,
313,
13,
12,
29908,
16107,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
4519,
6536,
2401,
29879,
29908,
16985,
29892,
13,
12,
12596,
2459,
1426,
29892,
13,
12,
29908,
11536,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
4519,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
16107,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
11536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2401,
29879,
29908,
16985,
29892,
13,
12,
2008,
1658,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29896,
29941,
29896,
29906,
29929,
29918,
29947,
313,
13,
12,
29908,
29940,
15444,
3815,
29908,
1426,
29892,
13,
12,
8003,
1426,
29892,
13,
12,
29908,
1625,
4424,
29914,
29926,
348,
1611,
29914,
29066,
3815,
29908,
1426,
29892,
13,
12,
27325,
537,
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,
1170,
278,
3001,
1353,
310,
8542,
363,
2258,
2723,
567,
1641,
29871,
29929,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
12596,
2459,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29929,
29955,
29929,
29955,
29947,
29929,
29918,
29896,
5754,
376,
4519,
6536,
2401,
29879,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
12596,
2459,
29897,
3895,
1591,
29918,
29896,
29918,
29906,
29929,
29955,
29929,
29955,
29947,
29929,
29918,
29896,
5754,
376,
4519,
6536,
2401,
29879,
29908,
353,
525,
29929,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`Name the total number of division for fa cups being 9`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11677691_11 (
Hometown text,
Position text,
College text,
School text,
Player text
);
CREATE TABLE table_1_2979789_1 (
"Other Apps" numeric,
"FA Cup Apps" numeric,
Division text,
"Total Apps" numeric,
"FA Cup Goals" numeric,
"Other Goals" numeric,
"League Goals" numeric,
"Total Goals" numeric,
"League Apps" numeric,
Season text
);
CREATE TABLE table_1_1013129_8 (
"NHL team" text,
Position text,
"College/junior/club team" text,
Nationality text,
Pick numeric
);
```
### Answer
Here is the SQL query that answers the question:
`Name the total number of division for fa cups being 9`
```sql
| SELECT COUNT(Division) FROM table_1_2979789_1 WHERE "FA Cup Apps" = '9' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
8158,
304,
610,
363,
29871,
29896,
29945,
29953,
23351,
10794,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29953,
29946,
29906,
29953,
29941,
29918,
29896,
29941,
313,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
19204,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
14199,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29906,
29947,
29896,
29929,
29955,
29946,
29906,
29918,
29906,
313,
13,
12,
11536,
16985,
29892,
13,
12,
20779,
1426,
29892,
13,
12,
29908,
1762,
610,
29908,
16985,
29892,
13,
12,
29908,
12883,
29898,
29879,
29897,
2113,
29908,
1426,
29892,
13,
12,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29929,
29900,
29947,
29953,
29955,
29953,
29918,
29955,
313,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29945,
29945,
29906,
29955,
29945,
29896,
29918,
29906,
313,
13,
12,
29908,
2713,
666,
28025,
5556,
2147,
287,
29908,
1426,
29892,
13,
12,
29908,
11536,
9681,
310,
399,
1036,
29908,
1426,
29892,
13,
12,
29908,
6508,
313,
12690,
29892,
2106,
5513,
1426,
29892,
13,
12,
29908,
7827,
24479,
4240,
29908,
1426,
29892,
13,
12,
29908,
29896,
303,
1383,
666,
360,
27657,
4712,
29908,
1426,
29892,
13,
12,
29908,
29979,
538,
4408,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29896,
29906,
29941,
29955,
29918,
29941,
313,
13,
12,
29908,
14958,
936,
17838,
322,
4823,
29908,
1426,
29892,
13,
12,
29908,
2008,
1658,
396,
29908,
16985,
29892,
13,
12,
29908,
23665,
428,
775,
29908,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
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,
471,
278,
8158,
304,
610,
363,
29871,
29896,
29945,
29953,
23351,
10794,
29973,
29952,
13,
28956,
2850,
13,
5097,
21122,
703,
1762,
610,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29947,
29896,
29929,
29955,
29946,
29906,
29918,
29906,
5754,
376,
11536,
29908,
1405,
525,
29896,
29945,
29953,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
703,
1762,
610,
1159,
3895,
1591,
29918,
29906,
29918,
29896,
29906,
29947,
29896,
29929,
29955,
29946,
29906,
29918,
29906,
5754,
376,
11536,
29908,
1405,
525,
29896,
29945,
29953,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the score to par for 156 strokes?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11964263_13 (
"Location Attendance" text,
Score text,
Date text,
"High points" text,
"High assists" text,
"High rebounds" text,
Series text,
Team text,
Game numeric
);
CREATE TABLE table_2_12819742_2 (
Total numeric,
Country text,
"To par" numeric,
"Year(s) won" text,
Player text
);
CREATE TABLE table_1_10908676_7 (
"Directed by" text,
"Written by" text,
"No. in season" numeric,
"Original air date" text,
Title text,
"No. in series" numeric
);
CREATE TABLE table_1_11552751_2 (
"Ship Types Delivered" text,
"Total Number of Ways" text,
"Location (city, state)" text,
"total vessels built" text,
"1st Ship Delivery Date" text,
"Yard Name" text
);
CREATE TABLE table_1_11951237_3 (
"Musical guest and song" text,
"Season #" numeric,
"Production code" text,
"Directed by" text,
"Series #" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What was the score to par for 156 strokes?`
```sql
| SELECT COUNT("To par") FROM table_2_12819742_2 WHERE "Total" > '156' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5328,
1784,
21614,
750,
29871,
29945,
29947,
14433,
15569,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29906,
29945,
29947,
29947,
29918,
29941,
313,
13,
12,
29908,
29934,
29881,
1213,
16985,
29892,
13,
12,
29908,
17734,
1076,
26391,
29908,
1426,
29892,
13,
12,
29908,
29925,
1772,
20627,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
29908,
3338,
392,
11963,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
23770,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29947,
29900,
29896,
29947,
29906,
29946,
29947,
29918,
29906,
313,
13,
12,
29931,
15806,
16985,
29892,
13,
12,
8537,
29879,
16985,
29892,
13,
12,
8003,
16985,
29892,
13,
12,
20325,
16985,
29892,
13,
12,
29908,
8120,
1338,
15569,
29908,
16985,
29892,
13,
12,
29908,
29954,
1280,
5318,
29908,
16985,
29892,
13,
12,
29908,
8120,
1338,
27943,
287,
29908,
16985,
29892,
13,
12,
29956,
1144,
16985,
29892,
13,
12,
6821,
431,
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,
21614,
750,
29871,
29945,
29947,
14433,
15569,
29973,
29952,
13,
28956,
2850,
13,
5097,
399,
1144,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29900,
29896,
29947,
29906,
29946,
29947,
29918,
29906,
5754,
376,
8120,
1338,
15569,
29908,
353,
525,
29945,
29947,
29915,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
399,
1144,
3895,
1591,
29918,
29896,
29918,
29896,
29947,
29900,
29896,
29947,
29906,
29946,
29947,
29918,
29906,
5754,
376,
8120,
1338,
15569,
29908,
353,
525,
29945,
29947,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`How many wins had 58 goals scored?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1132588_3 (
"Rd." numeric,
"Winning Driver" text,
"Pole Position" text,
"Fastest Lap" text,
"Grand Prix" text,
Report text,
Constructor text
);
CREATE TABLE table_1_18018248_2 (
Loses numeric,
Draws numeric,
Position numeric,
Points numeric,
"Goals scored" numeric,
"Games played" numeric,
"Goals conceded" numeric,
Wins numeric,
Club text
);
```
### Answer
Here is the SQL query that answers the question:
`How many wins had 58 goals scored?`
```sql
| SELECT Wins FROM table_1_18018248_2 WHERE "Goals scored" = '58' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
1024,
310,
278,
3448,
3815,
750,
263,
8158,
310,
29871,
29896,
29955,
29889,
29896,
29945,
313,
29896,
29896,
29955,
3569,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29953,
29953,
29946,
29953,
29906,
29945,
29918,
29906,
313,
13,
12,
29908,
3782,
29889,
297,
3652,
29908,
16985,
29892,
13,
12,
7030,
1426,
29892,
13,
12,
29908,
29965,
29889,
29903,
29889,
1776,
414,
313,
19958,
1080,
5513,
1426,
29892,
13,
12,
29908,
17392,
287,
491,
29908,
1426,
29892,
13,
12,
29908,
26036,
4799,
2635,
29908,
1426,
29892,
13,
12,
29908,
29956,
20833,
491,
29908,
1426,
29892,
13,
12,
29908,
3782,
29889,
297,
4259,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29947,
29941,
29946,
29953,
29918,
29941,
313,
13,
12,
29908,
11184,
3815,
29908,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
29908,
1426,
29892,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
29909,
1582,
3815,
8158,
29908,
1426,
29892,
13,
12,
29907,
798,
29881,
16985,
29892,
13,
12,
29963,
264,
434,
1426,
29892,
13,
12,
29908,
11184,
3815,
8158,
29908,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29906,
29896,
29941,
29945,
29896,
29896,
29918,
29941,
313,
13,
12,
27325,
537,
1426,
29892,
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,
9075,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29946,
29900,
29896,
29906,
29945,
29918,
29896,
313,
13,
12,
2008,
1658,
1426,
29892,
13,
12,
29908,
3226,
3437,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
11536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
3226,
3437,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
4519,
6536,
2921,
1338,
29908,
16985,
29892,
13,
12,
29908,
4519,
6536,
2401,
29879,
29908,
16985,
29892,
13,
12,
29908,
11536,
2401,
29879,
29908,
16985,
29892,
13,
12,
12596,
2459,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29946,
29900,
29906,
29900,
29896,
29947,
29918,
29896,
313,
13,
12,
20755,
1426,
29892,
13,
12,
26682,
265,
1426,
29892,
13,
12,
29908,
10512,
29891,
313,
29316,
273,
29892,
9184,
29892,
8602,
4196,
5513,
1426,
29892,
13,
12,
29908,
29911,
272,
10268,
847,
23291,
29908,
1426,
29892,
13,
12,
29908,
19960,
6371,
29908,
1426,
29892,
13,
12,
29933,
9504,
309,
1426,
29892,
13,
12,
29908,
3308,
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,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29941,
29953,
29896,
29953,
29906,
29945,
29918,
29896,
313,
13,
12,
1625,
4424,
1426,
29892,
13,
12,
29908,
9075,
1024,
29908,
1426,
29892,
13,
12,
29934,
618,
16985,
29892,
13,
12,
3563,
497,
16985,
29892,
13,
12,
29620,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
471,
278,
1024,
310,
278,
3448,
3815,
750,
263,
8158,
310,
29871,
29896,
29955,
29889,
29896,
29945,
313,
29896,
29896,
29955,
3569,
13,
28956,
2850,
13,
5097,
376,
29909,
1582,
3815,
29908,
3895,
1591,
29918,
29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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
376,
29909,
1582,
3815,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29900,
29947,
29900,
29947,
29941,
29946,
29953,
29918,
29941,
5754,
376,
29909,
1582,
3815,
8158,
29908,
306,
5265,
6059,
14210,
29896,
29955,
29889,
29896,
29945,
29995,
29898,
29896,
29896,
29955,
29897,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the name of the away team had a score of 17.15 (117)`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11664625_2 (
"No. in series" numeric,
Title text,
"U.S. viewers (millions)" text,
"Directed by" text,
"Original air date" text,
"Written by" text,
"No. in season" numeric
);
CREATE TABLE table_2_10808346_3 (
"Home team" text,
"Away team" text,
Date text,
"Away team score" text,
Crowd numeric,
Venue text,
"Home team score" text
);
CREATE TABLE table_1_1213511_3 (
Nationality text,
Position text,
"College/junior/club team" text,
"Pick #" numeric,
"NHL team" text,
Player text
);
CREATE TABLE table_1_10240125_1 (
Season text,
"League Apps" numeric,
"Total Goals" numeric,
"League Goals" numeric,
"FA Cup Goals" numeric,
"FA Cup Apps" numeric,
"Total Apps" numeric,
Division text
);
CREATE TABLE table_1_10402018_1 (
Character text,
London text,
"Italy (Milan, Rome, Trieste)" text,
"Toronto / Broadway" text,
"UK Tour" text,
Brazil text,
"US Tour" text,
"Australia & New Zealand (Sydney - first run, Melbourne, Auckland)" text
);
CREATE TABLE table_1_10361625_1 (
College text,
"Player name" text,
Round numeric,
Overall numeric,
Choice numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What was the name of the away team had a score of 17.15 (117)`
```sql
| SELECT "Away team" FROM table_2_10808346_3 WHERE "Away team score" ILIKE '%17.15%(117)%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
471,
278,
2228,
8666,
363,
278,
27504,
1308,
3925,
273,
731,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29929,
29945,
29929,
29953,
29953,
29929,
29918,
29953,
313,
13,
12,
29908,
16382,
3291,
29908,
1426,
29892,
13,
12,
29908,
6508,
6212,
21642,
29908,
1426,
29892,
13,
12,
19409,
1426,
29892,
13,
12,
20097,
1426,
29892,
13,
12,
29908,
16382,
15121,
3885,
29908,
1426,
29892,
13,
12,
29908,
16382,
1223,
2879,
29908,
1426,
29892,
13,
12,
14199,
16985,
29892,
13,
12,
9182,
1426,
29892,
13,
12,
2539,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29896,
29929,
29896,
29953,
29900,
29947,
29941,
29918,
29906,
29947,
313,
13,
12,
9986,
391,
1426,
29892,
13,
12,
12883,
16985,
29892,
13,
12,
29924,
524,
482,
1426,
29892,
13,
12,
29908,
29902,
893,
434,
20743,
29908,
1426,
29892,
13,
12,
17693,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29941,
29896,
29896,
29947,
29941,
29918,
29906,
313,
13,
12,
29908,
10095,
307,
4038,
29908,
1426,
29892,
13,
12,
29908,
29934,
804,
313,
399,
29967,
29907,
1723,
29908,
16985,
29892,
13,
12,
29908,
4557,
310,
22057,
313,
29956,
29967,
29907,
5513,
16985,
29892,
13,
12,
29908,
4557,
310,
22057,
313,
3289,
1718,
29933,
5513,
16985,
29892,
13,
12,
29908,
29934,
804,
313,
1718,
7698,
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,
471,
278,
2228,
8666,
363,
278,
27504,
1308,
3925,
273,
731,
29973,
29952,
13,
28956,
2850,
13,
5097,
376,
29902,
893,
434,
20743,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29929,
29896,
29953,
29900,
29947,
29941,
29918,
29906,
29947,
5754,
376,
17693,
29908,
306,
5265,
6059,
14210,
509,
3427,
1308,
29995,
2774,
273,
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,
5097,
376,
29902,
893,
434,
20743,
29908,
3895,
1591,
29918,
29906,
29918,
29896,
29896,
29929,
29896,
29953,
29900,
29947,
29941,
29918,
29906,
29947,
5754,
376,
17693,
29908,
306,
5265,
6059,
14210,
509,
3427,
1308,
29995,
2774,
273,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What was the issue price for the Trumpeter Swan set?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_11959669_6 (
"High points" text,
"Location Attendance" text,
Team text,
Score text,
"High rebounds" text,
"High assists" text,
Game numeric,
Record text,
Date text
);
CREATE TABLE table_2_11916083_28 (
Artist text,
Year numeric,
Mintage text,
"Issue Price" text,
Theme text
);
CREATE TABLE table_1_1131183_2 (
"Metro area" text,
"Rank ( WJC )" numeric,
"Number of Jews (WJC)" numeric,
"Number of Jews (ASARB)" numeric,
"Rank (ARDA)" numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What was the issue price for the Trumpeter Swan set?`
```sql
| SELECT "Issue Price" FROM table_2_11916083_28 WHERE "Theme" ILIKE '%trumpeter%swan%' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
3525,
1784,
2305,
2113,
297,
29871,
29896,
29929,
29896,
29946,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29941,
29945,
29929,
29918,
29896,
29955,
313,
13,
12,
29928,
6801,
1426,
29892,
13,
12,
29907,
5380,
1078,
1426,
29892,
13,
12,
7439,
29891,
1426,
29892,
13,
12,
3591,
1426,
29892,
13,
12,
29908,
6730,
11467,
29908,
16985,
29892,
13,
12,
797,
29883,
3774,
296,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29906,
29900,
29955,
29929,
29929,
29918,
29906,
313,
13,
12,
1252,
2356,
1426,
29892,
13,
12,
29908,
29923,
12907,
11810,
793,
29908,
1426,
29892,
13,
12,
12881,
728,
1426,
29892,
13,
12,
29963,
866,
1426,
29892,
13,
12,
29934,
809,
538,
1426,
29892,
13,
12,
1888,
29885,
6997,
1426,
29892,
13,
12,
29923,
2576,
262,
630,
1426,
29892,
13,
12,
29908,
6730,
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,
3525,
1784,
2305,
2113,
297,
29871,
29896,
29929,
29896,
29946,
29952,
13,
28956,
2850,
13,
5097,
21122,
29898,
29928,
6801,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29941,
29945,
29929,
29918,
29896,
29955,
5754,
376,
6730,
11467,
29908,
353,
525,
29896,
29929,
29896,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
5097,
21122,
29898,
29928,
6801,
29897,
3895,
1591,
29918,
29896,
29918,
29896,
29941,
29946,
29906,
29941,
29945,
29929,
29918,
29896,
29955,
5754,
376,
6730,
11467,
29908,
353,
525,
29896,
29929,
29896,
29946,
29915,
2
] | ### Task
Generate a SQL query to answer the following question:
`how many people won in 1914`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_1_1342359_17 (
District text,
Candidates text,
Party text,
Result text,
"First elected" numeric,
Incumbent text
);
CREATE TABLE table_1_11220799_2 (
Exiled text,
"Episode Titles" text,
Finish text,
Vote text,
Reward text,
Immunity text,
Eliminated text,
"First air date" text
);
```
### Answer
Here is the SQL query that answers the question:
`how many people won in 1914`
```sql
| SELECT COUNT(District) FROM table_1_1342359_17 WHERE "First elected" = '1914' |
[
1,
835,
9330,
13,
5631,
403,
263,
3758,
2346,
304,
1234,
278,
1494,
1139,
29901,
13,
29952,
5618,
338,
278,
10868,
363,
278,
7155,
15205,
491,
22623,
5745,
411,
263,
1246,
1804,
310,
521,
2146,
29899,
24826,
29973,
29952,
13,
13,
2277,
29937,
5470,
1102,
2603,
13,
1576,
2346,
674,
1065,
373,
263,
2566,
411,
278,
1494,
10938,
29901,
13,
28956,
13,
27045,
10911,
1591,
29918,
29906,
29918,
29896,
29947,
29946,
29900,
29929,
29941,
29906,
29953,
29918,
29896,
313,
13,
12,
5809,
1426,
29892,
13,
12,
28213,
1426,
29892,
13,
12,
29908,
5594,
1804,
29908,
1426,
29892,
13,
12,
29933,
9502,
292,
1426,
29892,
13,
12,
23923,
23860,
1426,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29900,
29906,
29953,
29946,
29896,
29955,
29929,
29918,
29906,
313,
13,
12,
2539,
1426,
29892,
13,
12,
29908,
17734,
1076,
26391,
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,
8583,
29908,
1426,
29892,
13,
12,
23495,
3121,
1426,
29892,
13,
12,
29934,
618,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29906,
29941,
29945,
29941,
29941,
29946,
29918,
29906,
313,
13,
12,
29908,
29909,
381,
4712,
29908,
1426,
29892,
13,
12,
1043,
414,
1426,
29892,
13,
12,
29164,
8276,
1426,
29892,
13,
12,
29908,
22606,
368,
22125,
363,
26176,
29908,
1426,
29892,
13,
12,
29923,
12907,
1426,
29892,
13,
12,
29908,
29937,
29908,
16985,
13,
416,
13,
27045,
10911,
1591,
29918,
29896,
29918,
29896,
29896,
29946,
29900,
29900,
29953,
29955,
29918,
29906,
313,
13,
12,
6508,
1426,
29892,
13,
12,
23770,
1426,
29892,
13,
12,
29908,
29934,
815,
399,
3993,
29908,
1426,
29892,
13,
12,
29908,
29943,
579,
342,
20298,
29908,
1426,
29892,
13,
12,
13020,
1426,
29892,
13,
12,
29934,
815,
1426,
29892,
13,
12,
29934,
299,
16985,
13,
416,
13,
13,
28956,
13,
13,
2277,
29937,
673,
13,
10605,
338,
278,
3758,
2346,
393,
6089,
278,
1139,
29901,
13,
29952,
5618,
338,
278,
10868,
363,
278,
7155,
15205,
491,
22623,
5745,
411,
263,
1246,
1804,
310,
521,
2146,
29899,
24826,
29973,
29952,
13,
28956,
2850,
13,
5097,
3878,
23860,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29946,
29900,
29929,
29941,
29906,
29953,
29918,
29896,
5754,
376,
28213,
29908,
306,
5265,
6059,
14210,
12562,
29995,
9799,
29001,
5300,
376,
5594,
1804,
29908,
306,
5265,
6059,
14210,
305,
2146,
29899,
24826,
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,
5097,
3878,
23860,
3895,
1591,
29918,
29906,
29918,
29896,
29947,
29946,
29900,
29929,
29941,
29906,
29953,
29918,
29896,
5754,
376,
28213,
29908,
306,
5265,
6059,
14210,
12562,
29995,
9799,
29001,
5300,
376,
5594,
1804,
29908,
306,
5265,
6059,
14210,
305,
2146,
29899,
24826,
29001,
2
] | ### Task
Generate a SQL query to answer the following question:
`What is the frequency for the radio owned by bell media with a call sign of chsu-fm?`
### Database Schema
The query will run on a database with the following schema:
```
CREATE TABLE table_2_18409326_1 (
Format text,
Owner text,
"Call sign" text,
Branding text,
Frequency text
);
CREATE TABLE table_1_10264179_2 (
Date text,
"Winning Driver" text,
"Fastest Lap" text,
"Pole Position" text,
"Winning Team" text,
Circuit text,
Round numeric
);
CREATE TABLE table_1_11235334_2 (
"Air Date" text,
Viewers text,
Timeslot text,
"Weekly Rank for Living" text,
Episode text,
"#" numeric
);
CREATE TABLE table_1_1140067_2 (
Location text,
Constructor text,
"Race Winner" text,
"Fastest Lap" text,
Report text,
Race text,
Rnd numeric
);
```
### Answer
Here is the SQL query that answers the question:
`What is the frequency for the radio owned by bell media with a call sign of chsu-fm?`
```sql
| SELECT Frequency FROM table_2_18409326_1 WHERE "Owner" ILIKE '%bell%media%' AND "Call sign" ILIKE '%chsu-fm%' |