NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the highest lost that has an against greater than 60, points less than 61 and an 18 drawn? | CREATE TABLE table_name_9 (
lost INTEGER,
drawn VARCHAR,
against VARCHAR,
points VARCHAR
) | SELECT MAX(lost) FROM table_name_9 WHERE against > 60 AND points < 61 AND drawn > 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
1513,
3,
21342,
17966,
6,
6796,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
581,
2490,
1640,
3430,
979,
3,
2,
3,
4241,
3430,
6796,
2490,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A bar chart about what are the average prices of products, grouped by manufacturer name?, order from low to high by the y-axis. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T2.Name, AVG(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY AVG(T1.Price) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
71,
17217,
599,
382,
5411,
345,
4920,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880... |
what is the highest gold when the nation is total and the total is less than 24? | CREATE TABLE table_name_8 (
gold INTEGER,
nation VARCHAR
) | SELECT MAX(gold) FROM table_name_8 WHERE nation = "total" AND "total" < 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
2045,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
2045,
116,
8,
2982,
19,
792,
11,
8,
792,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
14910,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
2982,
3274,
96,
235,
1947,
121,
3430,
96,
235,
1947,
121,
3,
2,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the parter for w/o | CREATE TABLE table_28979895_4 (partner VARCHAR, score VARCHAR) | SELECT partner FROM table_28979895_4 WHERE score = "w/o" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4327,
3916,
3301,
834,
591,
41,
12300,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
294,
49,
21,
3,
210,
87,
32,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2397,
21680,
953,
834,
2577,
4327,
3916,
3301,
834,
591,
549,
17444,
427,
2604,
3274,
96,
210,
87,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which artists scored at least 16 for composition ? | CREATE TABLE table_203_186 (
id number,
"painter" text,
"composition" number,
"drawing" number,
"color" number,
"expression" number
) | SELECT "painter" FROM table_203_186 WHERE "composition" >= 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
25398,
41,
3,
23,
26,
381,
6,
96,
102,
9,
3870,
121,
1499,
6,
96,
287,
4718,
121,
381,
6,
96,
19489,
53,
121,
381,
6,
96,
9910,
121,
381,
6,
96,
20940,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
102,
9,
3870,
121,
21680,
953,
834,
23330,
834,
25398,
549,
17444,
427,
96,
287,
4718,
121,
2490,
2423,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the name and credit score of the customers who have some loans. Plot them as pie chart. | CREATE TABLE loan (
loan_ID varchar(3),
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int
)
CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
s... | SELECT cust_name, credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_ID = T2.cust_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2289,
41,
2289,
834,
4309,
3,
4331,
4059,
17867,
6,
2289,
834,
6137,
3,
4331,
4059,
599,
1808,
201,
123,
7,
17,
834,
4309,
3,
4331,
4059,
17867,
6,
6421,
834,
4309,
3,
4331,
4059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
123,
7,
17,
834,
4350,
6,
998,
834,
7,
9022,
21680,
884,
6157,
332,
536,
3,
15355,
3162,
2289,
6157,
332,
357,
9191,
332,
5411,
1071,
7,
17,
834,
4309,
3274,
332,
4416,
1071,
7,
17,
834,
4309,
1,
-100,
-100,
-10... |
What is the name and the average gpa of department whose students have the highest average gpa? | CREATE TABLE department (
dept_name VARCHAR,
dept_code VARCHAR
)
CREATE TABLE student (
stu_gpa INTEGER,
dept_code VARCHAR
) | SELECT T2.dept_name, AVG(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY AVG(T1.stu_gpa) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4350,
584,
4280,
28027,
6,
20,
102,
17,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
834,
122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
26,
6707,
834,
4350,
6,
71,
17217,
599,
382,
5411,
7,
17,
76,
834,
122,
102,
9,
61,
21680,
1236,
6157,
332,
536,
3,
15355,
3162,
3066,
6157,
332,
357,
9191,
332,
5411,
26,
6707,
834,
4978,
3274,
332,
... |
In which city was the Night of the Living Duck released? | CREATE TABLE table_name_75 (city VARCHAR, title VARCHAR) | SELECT city FROM table_name_75 WHERE title = "the night of the living duck" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
6726,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
690,
47,
8,
5190,
13,
8,
5753,
19998,
1883,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2233,
3274,
96,
532,
706,
13,
8,
840,
14938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the finish which has qual of 144.817 | CREATE TABLE table_name_1 (finish VARCHAR, qual VARCHAR) | SELECT finish FROM table_name_1 WHERE qual = "144.817" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
25535,
584,
4280,
28027,
6,
3,
11433,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1992,
84,
65,
3,
11433,
13,
968,
27441,
2517,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1992,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
3,
11433,
3274,
96,
2534,
27441,
2517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the home town of Bob Geren, picked by the San Diego Padres? | CREATE TABLE table_64358 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"Hometown/School" text
) | SELECT "Hometown/School" FROM table_64358 WHERE "Team" = 'san diego padres' AND "Player" = 'bob geren' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
519,
3449,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
19040,
3540,
87,
29364,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
3540,
87,
29364,
121,
21680,
953,
834,
4389,
519,
3449,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
7,
152,
67,
839,
8950,
60,
7,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
17396,
3,
1304,
35,
31,
... |
Name the first broadcast for tina malone and joe wilkinson | CREATE TABLE table_25920 (
"Episode" text,
"First broadcast" text,
"Seans team" text,
"Jons team" text,
"Scores" text
) | SELECT "First broadcast" FROM table_25920 WHERE "Seans team" = 'Tina Malone and Joe Wilkinson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
27749,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
25171,
6878,
121,
1499,
6,
96,
134,
15,
3247,
372,
121,
1499,
6,
96,
683,
106,
7,
372,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25171,
6878,
121,
21680,
953,
834,
1828,
27749,
549,
17444,
427,
96,
134,
15,
3247,
372,
121,
3274,
3,
31,
382,
77,
9,
2148,
782,
11,
4967,
8540,
7815,
106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many players are from energa czarni? | CREATE TABLE table_12962773_16 (
position VARCHAR,
current_club VARCHAR
) | SELECT COUNT(position) FROM table_12962773_16 WHERE current_club = "Energa Czarni" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4314,
2555,
4552,
834,
2938,
41,
1102,
584,
4280,
28027,
6,
750,
834,
13442,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
33,
45,
3,
35,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4718,
61,
21680,
953,
834,
2122,
4314,
2555,
4552,
834,
2938,
549,
17444,
427,
750,
834,
13442,
3274,
96,
427,
687,
122,
9,
205,
172,
23403,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
COunt the average Enrollment in hope? | CREATE TABLE table_name_32 (
enrollment INTEGER,
location VARCHAR
) | SELECT AVG(enrollment) FROM table_name_32 WHERE location = "hope" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
17938,
3,
21342,
17966,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2847,
202,
17,
8,
1348,
695,
4046,
297,
16,
897,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
35,
4046,
297,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1128,
3274,
96,
10776,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Rank has Goals larger than 4, and a Scorer of oh seok-jae? | CREATE TABLE table_38074 (
"Rank" text,
"Scorer" text,
"Club" text,
"Goals" real,
"Matches" text
) | SELECT "Rank" FROM table_38074 WHERE "Goals" > '4' AND "Scorer" = 'oh seok-jae' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22671,
4581,
41,
96,
22557,
121,
1499,
6,
96,
134,
5715,
49,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
6221,
5405,
121,
490,
6,
96,
329,
144,
2951,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22557,
121,
21680,
953,
834,
22671,
4581,
549,
17444,
427,
96,
6221,
5405,
121,
2490,
3,
31,
591,
31,
3430,
96,
134,
5715,
49,
121,
3274,
3,
31,
32,
107,
142,
1825,
18,
1191,
15,
31,
1,
-100,
-100,
-100,
-10... |
On buses ranging in numbr 401-484, what is the lowest width that one longer thna 25 feet can have? | CREATE TABLE table_10327 (
"Year" text,
"Builder and model name" text,
"Length (feet)" real,
"Width (inches)" real,
"Engine" text,
"Numbers" text,
"Retired" text
) | SELECT MIN("Width (inches)") FROM table_10327 WHERE "Length (feet)" > '25' AND "Numbers" = '401-484' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17864,
2555,
41,
96,
476,
2741,
121,
1499,
6,
96,
24752,
49,
11,
825,
564,
121,
1499,
6,
96,
434,
4606,
189,
41,
89,
15,
15,
17,
61,
121,
490,
6,
96,
518,
23,
26,
189... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
518,
23,
26,
189,
41,
77,
2951,
61,
8512,
21680,
953,
834,
17864,
2555,
549,
17444,
427,
96,
434,
4606,
189,
41,
89,
15,
15,
17,
61,
121,
2490,
3,
31,
1828,
31,
3430,
96,
567,
5937,
277,
12... |
What is every value for area if change% is -3.6? | CREATE TABLE table_26321719_1 (area__km²_ VARCHAR, change___percentage_ VARCHAR) | SELECT area__km²_ FROM table_26321719_1 WHERE change___percentage_ = "-3.6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2668,
2517,
2294,
834,
536,
41,
498,
834,
834,
5848,
357,
834,
584,
4280,
28027,
6,
483,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
616,
834,
834,
5848,
357,
834,
21680,
953,
834,
2688,
2668,
2517,
2294,
834,
536,
549,
17444,
427,
483,
834,
834,
834,
883,
3728,
545,
834,
3274,
96,
18,
23074,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which To par has a Year(s) won of 1983? | CREATE TABLE table_name_15 (
to_par VARCHAR,
year_s__won VARCHAR
) | SELECT to_par FROM table_name_15 WHERE year_s__won = "1983" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
12,
834,
1893,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
304,
260,
65,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
4591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give me the number of patients whose admission location is transfer from hosp/extram and days of hospital stay is greater than 9? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND demographic.days_stay > "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
11359,
7369,
20805,
21680,
3,
6299,
4274,
87,
427,
4,
11359,
... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of headquarter and the average of manufacturer , and group by attribute headquarter, I want to sort by the x-axis in descending. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Headquarter, AVG(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3642,
19973,
6,
71,
17217,
599,
7296,
76,
8717,
450,
49,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
... |
What was the percentage of firefox was chrome was 23.90% | CREATE TABLE table_65407 (
"Date" text,
"Internet Explorer" text,
"Chrome" text,
"Firefox" text,
"Safari" text
) | SELECT "Firefox" FROM table_65407 WHERE "Chrome" = '23.90%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
2445,
940,
41,
96,
308,
342,
121,
1499,
6,
96,
22912,
15762,
121,
1499,
6,
96,
3541,
11956,
121,
1499,
6,
96,
3183,
60,
20400,
121,
1499,
6,
96,
134,
9,
5544,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3183,
60,
20400,
121,
21680,
953,
834,
4122,
2445,
940,
549,
17444,
427,
96,
3541,
11956,
121,
3274,
3,
31,
357,
28640,
6932,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the average rank for dharma productions before 2013 | CREATE TABLE table_name_43 (rank INTEGER, studio_s_ VARCHAR, year VARCHAR) | SELECT AVG(rank) FROM table_name_43 WHERE studio_s_ = "dharma productions" AND year < 2013 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
6254,
3,
21342,
17966,
6,
3100,
834,
7,
834,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1348,
11003,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
3100,
834,
7,
834,
3274,
96,
26,
17178,
9,
999,
7,
121,
3430,
215,
3,
2,
2038,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
COunt the average Enrollment in hope? | CREATE TABLE table_65146 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"County" text
) | SELECT AVG("Enrollment") FROM table_65146 WHERE "Location" = 'hope' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
24300,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
5498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
8532,
4046,
297,
8512,
21680,
953,
834,
4122,
24300,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
10776,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Race Name has Goodwood in the Curcuit? | CREATE TABLE table_51983 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
) | SELECT "Race Name" FROM table_51983 WHERE "Circuit" = 'goodwood' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2294,
4591,
41,
96,
448,
3302,
5570,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
518,
10503,
2535,
121,
1499,
6,
96,
4302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
3302,
5570,
121,
21680,
953,
834,
755,
2294,
4591,
549,
17444,
427,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
10452,
2037,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the number of rank for season 6 | CREATE TABLE table_211714_2 (rank VARCHAR, season VARCHAR) | SELECT COUNT(rank) FROM table_211714_2 WHERE season = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2517,
2534,
834,
357,
41,
6254,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
11003,
21,
774,
431,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
2658,
2517,
2534,
834,
357,
549,
17444,
427,
774,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which ERP W has a Class of A, and a Call sign of wffc? | CREATE TABLE table_name_50 (erp_w VARCHAR, class VARCHAR, call_sign VARCHAR) | SELECT erp_w FROM table_name_50 WHERE class = "a" AND call_sign = "wffc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
49,
102,
834,
210,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
6,
580,
834,
6732,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
22568,
549,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
49,
102,
834,
210,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
853,
3274,
96,
9,
121,
3430,
580,
834,
6732,
3274,
96,
210,
89,
89,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the point low with 2 grids? | CREATE TABLE table_name_88 (points INTEGER, grid VARCHAR) | SELECT MIN(points) FROM table_name_88 WHERE grid = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
2700,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
500,
731,
28,
204,
8634,
7,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
8634,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the GVW for model 97H00? | CREATE TABLE table_20866024_4 (
gvw__kg_ton_ VARCHAR,
model_designation VARCHAR
) | SELECT gvw__kg_ton_ FROM table_20866024_4 WHERE model_designation = "97H00" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23946,
27720,
2266,
834,
591,
41,
3,
122,
208,
210,
834,
834,
8711,
834,
17,
106,
834,
584,
4280,
28027,
6,
825,
834,
9124,
257,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
122,
208,
210,
834,
834,
8711,
834,
17,
106,
834,
21680,
953,
834,
23946,
27720,
2266,
834,
591,
549,
17444,
427,
825,
834,
9124,
257,
3274,
96,
4327,
566,
1206,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team placed sixth during the season where Tasmania placed second and Western Australia placed fourth? | CREATE TABLE table_name_70 (
sixth VARCHAR,
second VARCHAR,
fourth VARCHAR
) | SELECT sixth FROM table_name_70 WHERE second = "tasmania" AND fourth = "western australia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
13305,
584,
4280,
28027,
6,
511,
584,
4280,
28027,
6,
4509,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
2681,
13305,
383,
8,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13305,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
511,
3274,
96,
17,
9,
7,
22463,
121,
3430,
4509,
3274,
96,
24411,
23407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many entries for number in series when director is Bryan Cranston? | CREATE TABLE table_26736040_1 (
no_in_series VARCHAR,
directed_by VARCHAR
) | SELECT COUNT(no_in_series) FROM table_26736040_1 WHERE directed_by = "Bryan Cranston" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3708,
19208,
2445,
834,
536,
41,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
29,
32,
834,
77,
834,
10833,
7,
61,
21680,
953,
834,
357,
3708,
19208,
2445,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
279,
651,
152,
18630,
4411,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the score when the attendance is less than 83 and Raunds Town is the away team? | CREATE TABLE table_name_91 (
score VARCHAR,
attendance VARCHAR,
away_team VARCHAR
) | SELECT score FROM table_name_91 WHERE attendance < 83 AND away_team = "raunds town" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
2604,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
11364,
3,
2,
3,
4591,
3430,
550,
834,
11650,
3274,
96,
52,
9,
1106,
7,
1511,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the rank with a higher than 2 total, 21 gold and more than 12 bronze? | CREATE TABLE table_61384 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Rank") FROM table_61384 WHERE "Total" > '2' AND "Gold" = '21' AND "Bronze" > '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
3747,
591,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
22557,
8512,
21680,
953,
834,
4241,
3747,
591,
549,
17444,
427,
96,
3696,
1947,
121,
2490,
3,
31,
357,
31,
3430,
96,
23576,
121,
3274,
3,
31,
2658,
31,
3430,
96,
22780,
29,
776,
121,
2490,
3,
... |
Where is the position when houston, tx is the hometown and worthing is the high school? | CREATE TABLE table_22496344_1 (
position VARCHAR,
home_town VARCHAR,
high_school VARCHAR
) | SELECT position FROM table_22496344_1 WHERE home_town = "Houston, TX" AND high_school = "Worthing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3647,
3891,
3628,
834,
536,
41,
1102,
584,
4280,
28027,
6,
234,
834,
3540,
584,
4280,
28027,
6,
306,
834,
6646,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1102,
21680,
953,
834,
2884,
3647,
3891,
3628,
834,
536,
549,
17444,
427,
234,
834,
3540,
3274,
96,
4489,
76,
4411,
6,
332,
4,
121,
3430,
306,
834,
6646,
3274,
96,
518,
127,
8052,
121,
1,
-100,
-100,
-100,
-100,
-... |
how many times did korzeniowski finish above fourth place ? | CREATE TABLE table_203_874 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) | SELECT COUNT(*) FROM table_203_874 WHERE "position" < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4225,
591,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
15,
2169,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
4225,
591,
549,
17444,
427,
96,
4718,
121,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many floors were there with a building rank of less than 3 and a height of 300 / 985 m (ft)? | CREATE TABLE table_name_3 (
floors VARCHAR,
rank VARCHAR,
height VARCHAR,
_m__ft_ VARCHAR
) | SELECT COUNT(floors) FROM table_name_3 WHERE height * _m__ft_ = "300 / 985" AND rank < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
8242,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
6,
3,
834,
51,
834,
834,
89,
17,
834,
584,
4280,
28027,
3,
61,
3,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
20924,
7,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
3902,
1429,
3,
834,
51,
834,
834,
89,
17,
834,
3274,
96,
5426,
3,
87,
3,
3916,
17395,
3430,
11003,
3,
2,
220,
1,
-100,
-100,
-100... |
After the year 2011, who was the youngest nominee? | CREATE TABLE table_name_24 (record_set VARCHAR, year VARCHAR, superlative VARCHAR) | SELECT record_set FROM table_name_24 WHERE year > 2011 AND superlative = "youngest nominee" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
60,
7621,
834,
2244,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1355,
40,
1528,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
621,
8,
215,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
834,
2244,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
215,
2490,
2722,
3430,
1355,
40,
1528,
3274,
96,
4188,
1725,
222,
21077,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the total rating on week 3? | CREATE TABLE table_73650 (
"WEEK" real,
"Sydney" real,
"Melbourne" real,
"Brisbane" real,
"Adelaide" real,
"Perth" real,
"TOTAL" real,
"NIGHTLY RANK" real
) | SELECT "TOTAL" FROM table_73650 WHERE "WEEK" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
15348,
41,
96,
518,
5080,
439,
121,
490,
6,
96,
134,
63,
26,
3186,
121,
490,
6,
96,
329,
15,
40,
26255,
121,
490,
6,
96,
279,
52,
159,
3478,
15,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5647,
16359,
121,
21680,
953,
834,
4552,
15348,
549,
17444,
427,
96,
518,
5080,
439,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which record has a score of l 121 127? | CREATE TABLE table_43733 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"Location Attendance" text,
"Record" text
) | SELECT "Record" FROM table_43733 WHERE "Score" = 'l 121–127' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4118,
4201,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
434,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
591,
4118,
4201,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
40,
3,
22011,
104,
22367,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the swimsuits for south africa? | CREATE TABLE table_11674683_2 (
swimsuit VARCHAR,
delegate VARCHAR
) | SELECT swimsuit FROM table_11674683_2 WHERE delegate = "South Africa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3708,
4448,
4591,
834,
357,
41,
9728,
7628,
584,
4280,
28027,
6,
20,
8791,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
9728,
7628,
7,
21,
3414... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9728,
7628,
21680,
953,
834,
2596,
3708,
4448,
4591,
834,
357,
549,
17444,
427,
20,
8791,
3274,
96,
22081,
2648,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which sign has a fall of Venus? | CREATE TABLE table_name_5 (
sign VARCHAR,
fall VARCHAR
) | SELECT sign FROM table_name_5 WHERE fall = "venus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
1320,
584,
4280,
28027,
6,
1590,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1320,
65,
3,
9,
1590,
13,
22301,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1320,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
1590,
3274,
96,
25116,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is HDTV, when Television Service is MTV Rocks? | CREATE TABLE table_name_21 (
hdtv VARCHAR,
television_service VARCHAR
) | SELECT hdtv FROM table_name_21 WHERE television_service = "mtv rocks" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
3,
107,
26,
17,
208,
584,
4280,
28027,
6,
4390,
834,
5114,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3726,
4562,
6,
116,
21922,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
107,
26,
17,
208,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
4390,
834,
5114,
3274,
96,
51,
17,
208,
12288,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Title of the LT Series Filmography with a Release date of 1964-02-08? | CREATE TABLE table_14210 (
"Title" text,
"Series" text,
"Director" text,
"Production Number" text,
"Release date" text
) | SELECT "Title" FROM table_14210 WHERE "Series" = 'lt' AND "Release date" = '1964-02-08' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
15239,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
3174,
8291,
7720,
121,
1499,
6,
96,
1649,
40,
14608,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
2534,
15239,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
40,
17,
31,
3430,
96,
1649,
40,
14608,
833,
121,
3274,
3,
31,
26937,
26814,
19423,
927,
31,
1,
-100,
-100,
-... |
Who was the songwriter for Track 4, produced by nigel wright and john smits? | CREATE TABLE table_name_84 (songwriter_s_ VARCHAR, production_credits VARCHAR, track VARCHAR) | SELECT songwriter_s_ FROM table_name_84 WHERE production_credits = "nigel wright and john smits" AND track = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
21101,
834,
7,
834,
584,
4280,
28027,
6,
999,
834,
15547,
7,
584,
4280,
28027,
6,
1463,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
21101,
834,
7,
834,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
999,
834,
15547,
7,
3274,
96,
29,
23,
1803,
3,
210,
3535,
11,
3,
27341,
3,
7,
1538,
7,
121,
3430,
1463,
3274,
314,
1,
-100,
-100,
-100,
... |
What country has t6 as the place, with seve ballesteros as the player? | CREATE TABLE table_59189 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" real
) | SELECT "Country" FROM table_59189 WHERE "Place" = 't6' AND "Player" = 'seve ballesteros' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
25312,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
3390,
25312,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
948,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
7,
15,
162,
1996,
2613,
1859,
31,
1,
-100,
-100,
-100,
-1... |
List the name and assets of each company in ascending order of company name. Plot them as bar chart. | CREATE TABLE Office_locations (
building_id int,
company_id int,
move_in_year int
)
CREATE TABLE buildings (
id int,
name text,
City text,
Height int,
Stories int,
Status text
)
CREATE TABLE Companies (
id int,
name text,
Headquarters text,
Industry text,
Sales_... | SELECT name, Assets_billion FROM Companies ORDER BY name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2126,
834,
14836,
7,
41,
740,
834,
23,
26,
16,
17,
6,
349,
834,
23,
26,
16,
17,
6,
888,
834,
77,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
18202,
7,
834,
115,
14916,
21680,
11239,
4674,
11300,
272,
476,
564,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What point is the lowest for listings of chassis labeled AGS JH23 before 1988? | CREATE TABLE table_name_73 (points INTEGER, chassis VARCHAR, year VARCHAR) | SELECT MIN(points) FROM table_name_73 WHERE chassis = "ags jh23" AND year < 1988 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2700,
7,
3,
21342,
17966,
6,
22836,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
500,
19,
8,
7402,
21,
11070,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
22836,
3274,
96,
9,
122,
7,
3,
354,
107,
2773,
121,
3430,
215,
3,
2,
10414,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What venue has 7964 pb notes? | CREATE TABLE table_name_81 (venue VARCHAR, notes VARCHAR) | SELECT venue FROM table_name_81 WHERE notes = "7964 pb" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
15098,
584,
4280,
28027,
6,
3358,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5669,
65,
3,
4440,
4389,
3,
102,
115,
3358,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
3358,
3274,
96,
4440,
4389,
3,
102,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many PATAs does an nForce Professional 3400 MCP have? | CREATE TABLE table_name_38 (
pata INTEGER,
model VARCHAR
) | SELECT SUM(pata) FROM table_name_38 WHERE model = "nforce professional 3400 mcp" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
6234,
9,
3,
21342,
17966,
6,
825,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
276,
19282,
7,
405,
46,
3,
29,
3809,
565,
4751,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
4665,
9,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
825,
3274,
96,
29,
10880,
771,
220,
5548,
3,
51,
75,
102,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many production stage managers worked with Gabriel di Chiara as the Male Rep? | CREATE TABLE table_22410780_1 (production_stagemanager VARCHAR, male_rep VARCHAR) | SELECT COUNT(production_stagemanager) FROM table_22410780_1 WHERE male_rep = "Gabriel Di Chiara" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
18057,
2079,
834,
536,
41,
20762,
834,
10705,
24185,
584,
4280,
28027,
6,
5069,
834,
60,
102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
999,
1726,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
20762,
834,
10705,
24185,
61,
21680,
953,
834,
24622,
18057,
2079,
834,
536,
549,
17444,
427,
5069,
834,
60,
102,
3274,
96,
517,
17639,
15,
40,
2043,
12995,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest rank of Qaanaaq, which has a population greater than 231? | CREATE TABLE table_15264 (
"Rank" real,
"Population" real,
"Name" text,
"Former Name" text,
"Municipality" text
) | SELECT MIN("Rank") FROM table_15264 WHERE "Population" > '231' AND "Name" = 'qaanaaq' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
26755,
41,
96,
22557,
121,
490,
6,
96,
27773,
7830,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
3809,
935,
5570,
121,
1499,
6,
96,
329,
202,
23,
3389,
10355,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22557,
8512,
21680,
953,
834,
1808,
26755,
549,
17444,
427,
96,
27773,
7830,
121,
2490,
3,
31,
357,
3341,
31,
3430,
96,
23954,
121,
3274,
3,
31,
1824,
9,
152,
9,
9,
1824,
31,
1,
-100,
-100,
-... |
What is the average episode number where jimmy mulville was the 4th performer? | CREATE TABLE table_name_35 (episode INTEGER, performer_4 VARCHAR) | SELECT AVG(episode) FROM table_name_35 WHERE performer_4 = "jimmy mulville" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
15,
102,
159,
32,
221,
3,
21342,
17966,
6,
1912,
49,
834,
591,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
5640,
381,
213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
15,
102,
159,
32,
221,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
1912,
49,
834,
591,
3274,
96,
354,
603,
2258,
3,
4115,
1420,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Tonnage is on 25 july 1942? | CREATE TABLE table_name_66 (
tonnage VARCHAR,
date VARCHAR
) | SELECT tonnage FROM table_name_66 WHERE date = "25 july 1942" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
12,
29,
9761,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
8475,
9761,
19,
30,
944,
3,
2047,
120,
24466,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
29,
9761,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
833,
3274,
96,
1828,
3,
2047,
120,
24466,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who has a Rank larger than 3 with a speed of 119.838mph? | CREATE TABLE table_5891 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | SELECT "Rider" FROM table_5891 WHERE "Rank" > '3' AND "Speed" = '119.838mph' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
4729,
41,
96,
22557,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
28328,
121,
1499,
6,
96,
13368,
121,
1499,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
23,
588,
121,
21680,
953,
834,
3449,
4729,
549,
17444,
427,
96,
22557,
121,
2490,
3,
31,
519,
31,
3430,
96,
28328,
121,
3274,
3,
31,
19993,
5,
927,
3747,
7656,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who are the candidates when the incumbent is lindsey graham? | CREATE TABLE table_18120 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) | SELECT "Candidates" FROM table_18120 WHERE "Incumbent" = 'Lindsey Graham' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
15518,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14050,
12416,
6203,
121,
21680,
953,
834,
2606,
15518,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
434,
77,
26,
7,
15,
63,
15146,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many of the patients belonging to black/african american ethnic origin, had a liver transplant? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND demographic.diagnosis = "LIVER TRANSPLANT" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
6282,
5593,
11425,
3,
17683,
5593,
11425,
121,
3430... |
Find the title of courses that have two prerequisites? | CREATE TABLE prereq (course_id VARCHAR); CREATE TABLE course (title VARCHAR, course_id VARCHAR) | SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING COUNT(*) = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
554,
60,
1824,
41,
19221,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
21869,
584,
4280,
28027,
6,
503,
834,
23,
26,
584,
4280,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
332,
5411,
21869,
21680,
503,
6157,
332,
536,
3,
15355,
3162,
554,
60,
1824,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
23,
26,
350,
4630,
6880,
272,
476,
332,
4416,
19221,
834... |
What is the greatest lane that David Payne was in when he ran longer than 13.17? | CREATE TABLE table_13876 (
"Lane" real,
"Athlete" text,
"Nationality" text,
"Time" real,
"Notes" text
) | SELECT MAX("Lane") FROM table_13876 WHERE "Athlete" = 'david payne' AND "Time" > '13.17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
3959,
41,
96,
434,
152,
15,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
490,
6,
96,
10358,
15,
7,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
434,
152,
15,
8512,
21680,
953,
834,
22744,
3959,
549,
17444,
427,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
26,
9,
6961,
726,
29,
15,
31,
3430,
96,
13368,
121,
2490,
3,
31,
2368,
5,
2517,
3... |
Name the most number for autom vil club argentino for benedicto campos | CREATE TABLE table_21977704_1 (
no INTEGER,
entrant VARCHAR,
driver VARCHAR
) | SELECT MAX(no) FROM table_21977704_1 WHERE entrant = "Automóvil Club Argentino" AND driver = "Benedicto Campos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2294,
26225,
6348,
834,
536,
41,
150,
3,
21342,
17966,
6,
3,
295,
3569,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
4800,
4,
599,
29,
32,
61,
21680,
953,
834,
357,
2294,
26225,
6348,
834,
536,
549,
17444,
427,
3,
295,
3569,
3274,
96,
16204,
51,
4922,
6372,
1949,
3,
22808,
32,
121,
3430,
2535,
3274,
96,
279,
4632,
447,
235,
4594... |
What was the location and attendance when lebron james (10) had the high assists? | CREATE TABLE table_27713030_16 (
location_attendance VARCHAR,
high_assists VARCHAR
) | SELECT location_attendance FROM table_27713030_16 WHERE high_assists = "LeBron James (10)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4450,
1458,
1458,
834,
2938,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
2555,
4450,
1458,
1458,
834,
2938,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
2796,
22780,
29,
2549,
41,
16968,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which 2008 has a 2009 of A, and a 2010 of A, and a 2012 of 1r, and a Tournament of cincinnati masters? | CREATE TABLE table_name_2 (tournament VARCHAR) | SELECT 2008 FROM table_name_2 WHERE 2009 = "a" AND 2010 = "a" AND 2012 = "1r" AND tournament = "cincinnati masters" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2628,
65,
3,
9,
2464,
13,
71,
6,
11,
3,
9,
2735,
13,
71,
6,
11,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2628,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
2464,
3274,
96,
9,
121,
3430,
2735,
3274,
96,
9,
121,
3430,
1673,
3274,
96,
536,
52,
121,
3430,
5892,
3274,
96,
75,
11542,
29,
18530,
2325,
7,
121,
1,
-100,
... |
Where did the character of Aiden Burn csi detective first appear? | CREATE TABLE table_name_21 (
first_appearance VARCHAR,
character VARCHAR
) | SELECT first_appearance FROM table_name_21 WHERE character = "aiden burn csi detective" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
166,
834,
3096,
2741,
663,
584,
4280,
28027,
6,
1848,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
8,
1848,
13,
12090,
35,
10846,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
3096,
2741,
663,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
1848,
3274,
96,
5385,
29,
5958,
3,
75,
7,
23,
23959,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of the player who is a height of 182? | CREATE TABLE table_name_84 (player VARCHAR, height VARCHAR) | SELECT player FROM table_name_84 WHERE height = 182 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
20846,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
1959,
113,
19,
3,
9,
3902,
13,
507,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
3902,
3274,
507,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what school is listed next after michigan technological university ? | CREATE TABLE table_203_721 (
id number,
"school" text,
"location" text,
"control" text,
"type" text,
"enrollment" number,
"founded" number
) | SELECT "school" FROM table_203_721 WHERE id = (SELECT id FROM table_203_721 WHERE "school" = 'michigan technological university') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
940,
2658,
41,
3,
23,
26,
381,
6,
96,
6646,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
15247,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
35,
4046,
297,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6646,
121,
21680,
953,
834,
23330,
834,
940,
2658,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
940,
2658,
549,
17444,
427,
96,
6646,
121,
3274,
3,
31,
51,
362,
... |
which track was recorded before all the others ? | CREATE TABLE table_202_173 (
id number,
"track" number,
"title" text,
"translation" text,
"composer" text,
"recorded" text
) | SELECT "title" FROM table_202_173 ORDER BY "recorded" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
834,
2517,
519,
41,
3,
23,
26,
381,
6,
96,
11991,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
7031,
6105,
121,
1499,
6,
96,
287,
2748,
49,
121,
1499,
6,
96,
60,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21869,
121,
21680,
953,
834,
19818,
834,
2517,
519,
4674,
11300,
272,
476,
96,
60,
7621,
15,
26,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which year did The Adventures of Tintin come out? | CREATE TABLE table_name_17 (
year INTEGER,
film VARCHAR
) | SELECT SUM(year) FROM table_name_17 WHERE film = "the adventures of tintin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
215,
3,
21342,
17966,
6,
814,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
215,
410,
37,
12316,
7,
13,
7138,
17,
77,
369,
91,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
814,
3274,
96,
532,
12560,
13,
21970,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What week #(s featured sara bareilles as the original artist? | CREATE TABLE table_24423 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Week #" FROM table_24423 WHERE "Original artist" = 'Sara Bareilles' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3628,
2773,
41,
96,
518,
10266,
1713,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
7395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10266,
1713,
121,
21680,
953,
834,
357,
3628,
2773,
549,
17444,
427,
96,
667,
3380,
10270,
2377,
121,
3274,
3,
31,
134,
2551,
1386,
15955,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the winner from the United States the year Kimberly Kim was runner-up? | CREATE TABLE table_name_59 (
winner VARCHAR,
runner_up VARCHAR,
country VARCHAR
) | SELECT winner FROM table_name_59 WHERE runner_up = "kimberly kim" AND country = "united states" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
4668,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4668,
45,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
19754,
1152,
120,
3,
19754,
121,
3430,
684,
3274,
96,
15129,
15,
26,
2315,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the frequency for the radio owned by bell media with a call sign of chsu-fm? | CREATE TABLE table_name_6 (
frequency VARCHAR,
owner VARCHAR,
call_sign VARCHAR
) | SELECT frequency FROM table_name_6 WHERE owner = "bell media" AND call_sign = "chsu-fm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
7321,
584,
4280,
28027,
6,
2527,
584,
4280,
28027,
6,
580,
834,
6732,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7321,
21,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
7321,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
2527,
3274,
96,
7708,
783,
121,
3430,
580,
834,
6732,
3274,
96,
524,
7,
76,
18,
89,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which opponent was playing on December 20, 1998? | CREATE TABLE table_32806 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text
) | SELECT "Opponent" FROM table_32806 WHERE "Date" = 'december 20, 1998' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28070,
5176,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
4562,
2900,
121,
1499,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
28070,
5176,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
16047,
6260,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the home team on January 4? | CREATE TABLE table_9236 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Home" FROM table_9236 WHERE "Date" = 'january 4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4508,
3420,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
121,
21680,
953,
834,
4508,
3420,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
7066,
76,
1208,
314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Plot acc_percent by grouped by team name as a bar graph | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT Team_Name, ACC_Percent FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
23954,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the date of the Mosport Park circuit? | CREATE TABLE table_name_34 (
date VARCHAR,
circuit VARCHAR
) | SELECT date FROM table_name_34 WHERE circuit = "mosport park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
833,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
1290,
6661,
1061,
4558,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
4558,
3274,
96,
3972,
1493,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients who were admitted before the year 2166 with a drug name glipizide. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2166" AND prescriptions.drug = "Glipizide" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
which is the number of the season episode whose premiere was in january 3, 1997? | CREATE TABLE table_228973_3 (no_in_season VARCHAR, original_air_date VARCHAR) | SELECT COUNT(no_in_season) FROM table_228973_3 WHERE original_air_date = "January 3, 1997" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3914,
4552,
834,
519,
41,
29,
32,
834,
77,
834,
9476,
584,
4280,
28027,
6,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
84,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
29,
32,
834,
77,
834,
9476,
61,
21680,
953,
834,
2884,
3914,
4552,
834,
519,
549,
17444,
427,
926,
834,
2256,
834,
5522,
3274,
96,
30404,
6180,
6622,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients were administered drug via ng route and were also diagnosed with bone marrow replaced by transplant? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Bone marrow replaced by transplant" AND prescriptions.route = "NG" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What is the Manufacturer for simone corsi? | CREATE TABLE table_name_85 (
manufacturer VARCHAR,
rider VARCHAR
) | SELECT manufacturer FROM table_name_85 WHERE rider = "simone corsi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
4818,
584,
4280,
28027,
6,
2564,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
15248,
21,
108,
2157,
15,
4301,
7,
23,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4818,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
2564,
52,
3274,
96,
7,
603,
782,
4301,
7,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give me the number of patients whose year of birth is less than 1850 and item id is 50951? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "1850" AND lab.itemid = "50951" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
who was the only athlete to throw more than 18 meters ? | CREATE TABLE table_203_865 (
id number,
"place" number,
"athlete" text,
"nation" text,
"best mark" text,
"throw 1" number,
"throw 2" number,
"throw 3" number,
"throw 4" number,
"throw 5" number,
"throw 6" number
) | SELECT "athlete" FROM table_203_865 WHERE "best mark" > 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3840,
755,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
381,
6,
96,
26170,
15,
121,
1499,
6,
96,
29,
257,
121,
1499,
6,
96,
9606,
3946,
121,
1499,
6,
96,
189,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
26170,
15,
121,
21680,
953,
834,
23330,
834,
3840,
755,
549,
17444,
427,
96,
9606,
3946,
121,
2490,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average Gold when silver is more than 2, and bronze is more than 1 | CREATE TABLE table_name_59 (gold INTEGER, silver VARCHAR, bronze VARCHAR) | SELECT AVG(gold) FROM table_name_59 WHERE silver > 2 AND bronze > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
14910,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
2540,
116,
4294,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
14910,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
4294,
2490,
204,
3430,
13467,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name all Pick that has a Round of 7, and a School/Club Team of arizona st.? | CREATE TABLE table_44943 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT COUNT("Pick") FROM table_44943 WHERE "Round" = '7' AND "School/Club Team" = 'arizona st.' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
4240,
519,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
87,
254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
345,
3142,
8512,
21680,
953,
834,
3628,
4240,
519,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
940,
31,
3430,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
1665,
8892,
9,
3,
... |
What is the lowest draft pick number for mark doak who had an overall pick smaller than 147? | CREATE TABLE table_name_30 (pick INTEGER, name VARCHAR, overall VARCHAR) | SELECT MIN(pick) FROM table_name_30 WHERE name = "mark doak" AND overall < 147 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
17967,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
6488,
1432,
381,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
17967,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
564,
3274,
96,
3920,
103,
1639,
121,
3430,
1879,
3,
2,
3,
24719,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the district for matthew clay | CREATE TABLE table_2668387_18 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_2668387_18 WHERE incumbent = "Matthew Clay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
519,
4225,
834,
2606,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3939,
21,
6928,
532,
210,
14364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
2688,
3651,
519,
4225,
834,
2606,
549,
17444,
427,
28406,
3274,
96,
329,
144,
532,
210,
20988,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the epicenter latitude for the quake that started at 17:09? | CREATE TABLE table_27964 (
"Date" text,
"Origin time" text,
"Epicentre (Lat., S)" text,
"Epicentre (Long., E)" text,
"Local magnitude" text,
"Location" text
) | SELECT "Epicentre (Lat., S)" FROM table_27964 WHERE "Origin time" = '17:09' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4440,
4389,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
3380,
77,
97,
121,
1499,
6,
96,
427,
6174,
9578,
41,
3612,
17,
5,
6,
180,
61,
121,
1499,
6,
96,
427,
6174,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
6174,
9578,
41,
3612,
17,
5,
6,
180,
61,
121,
21680,
953,
834,
357,
4440,
4389,
549,
17444,
427,
96,
667,
3380,
77,
97,
121,
3274,
3,
31,
2517,
10,
4198,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the undisclosed when Wycombe Wanderers is unattached? | CREATE TABLE table_23835213_2 (undisclosed VARCHAR, wycombe_wanderers VARCHAR) | SELECT undisclosed FROM table_23835213_2 WHERE wycombe_wanderers = "Unattached" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4591,
5373,
2368,
834,
357,
41,
1106,
159,
16221,
26,
584,
4280,
28027,
6,
3,
210,
63,
9763,
15,
834,
3877,
588,
277,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
64,
159,
16221,
26,
21680,
953,
834,
2773,
4591,
5373,
2368,
834,
357,
549,
17444,
427,
3,
210,
63,
9763,
15,
834,
3877,
588,
277,
3274,
96,
5110,
21148,
15,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the code of city where most of students are living in. | CREATE TABLE student (
city_code VARCHAR
) | SELECT city_code FROM student GROUP BY city_code ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
690,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
1081,
13,
690,
213,
167,
13,
481,
33,
840,
16,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
834,
4978,
21680,
1236,
350,
4630,
6880,
272,
476,
690,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How long in miles (km) was the race that lasted 3:07:53? | CREATE TABLE table_25218 (
"Year" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) | SELECT "Miles (km)" FROM table_25218 WHERE "Race Time" = '3:07:53' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
357,
2606,
41,
96,
476,
2741,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
699,
7,
41,
5848,
61,
121,
21680,
953,
834,
1828,
357,
2606,
549,
17444,
427,
96,
448,
3302,
2900,
121,
3274,
3,
31,
519,
10,
4560,
10,
4867,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of rooms that do not have any reservation. | CREATE TABLE reservations (
roomid VARCHAR,
room VARCHAR
)
CREATE TABLE rooms (
roomid VARCHAR,
room VARCHAR
) | SELECT COUNT(*) FROM rooms WHERE NOT roomid IN (SELECT DISTINCT room FROM reservations) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17653,
41,
562,
23,
26,
584,
4280,
28027,
6,
562,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2801,
41,
562,
23,
26,
584,
4280,
28027,
6,
562,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2801,
549,
17444,
427,
4486,
562,
23,
26,
3388,
41,
23143,
14196,
3,
15438,
25424,
6227,
562,
21680,
17653,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many rounds in the fight in Quebec, Canada against David Loiseau? | CREATE TABLE table_9599 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
) | SELECT COUNT("Round") FROM table_9599 WHERE "Location" = 'quebec, canada' AND "Opponent" = 'david loiseau' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3301,
3264,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
3301,
3264,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
835,
346,
75,
6,
19343,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
26,
9,
... |
Name the height for asko esna | CREATE TABLE table_25058562_2 (height VARCHAR, player VARCHAR) | SELECT height FROM table_25058562_2 WHERE player = "Asko Esna" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
3449,
4834,
357,
834,
357,
41,
88,
2632,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3902,
21,
987,
32,
3,
15,
7,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3902,
21680,
953,
834,
11434,
3449,
4834,
357,
834,
357,
549,
17444,
427,
1959,
3274,
96,
188,
17869,
1122,
29,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the number of patients whose year of birth is less than 1846 and lab test abnormal status is abnormal? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "1846" AND lab.flag = "abnormal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the Crowd number for the Away team of Richmond? | CREATE TABLE table_name_41 (
crowd INTEGER,
away_team VARCHAR
) | SELECT SUM(crowd) FROM table_name_41 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
4374,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
15343,
26,
381,
21,
8,
71,
1343,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the runner-up for the event that ended with a winning score of 15 (66-67-70-70=273)? | CREATE TABLE table_70470 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Runner(s)-up" FROM table_70470 WHERE "Winning score" = '–15 (66-67-70-70=273)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
27760,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
13,
6224,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23572,
599,
7,
61,
18,
413,
121,
21680,
953,
834,
2518,
27760,
549,
17444,
427,
96,
518,
10503,
2604,
121,
3274,
3,
31,
104,
1808,
41,
3539,
18,
3708,
18,
2518,
18,
2518,
2423,
2555,
5268,
31,
1,
-100,
-100,
... |
What is the largest number of cars per set that is less than 9? | CREATE TABLE table_name_30 (
number INTEGER,
cars_per_set INTEGER
) | SELECT MAX(number) FROM table_name_30 WHERE cars_per_set < 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
381,
3,
21342,
17966,
6,
2948,
834,
883,
834,
2244,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
381,
13,
2948,
399,
356,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
2948,
834,
883,
834,
2244,
3,
2,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Where is the location of attendance for the Date of december 14? | CREATE TABLE table_name_1 (
location_attendance VARCHAR,
date VARCHAR
) | SELECT location_attendance FROM table_name_1 WHERE date = "december 14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
1128,
13,
11364,
21,
8,
7678,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
968,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the score on january 5 with a hasek decision? | CREATE TABLE table_name_28 (score VARCHAR, decision VARCHAR, date VARCHAR) | SELECT score FROM table_name_28 WHERE decision = "hasek" AND date = "january 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
7,
9022,
584,
4280,
28027,
6,
1357,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2604,
30,
3,
7066,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
1357,
3274,
96,
10293,
15,
157,
121,
3430,
833,
3274,
96,
7066,
76,
1208,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Main Location(s) has an Area of 19,800 HA? | CREATE TABLE table_name_16 (
main_location_s_ VARCHAR,
area VARCHAR
) | SELECT main_location_s_ FROM table_name_16 WHERE area = "19,800 ha" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
711,
834,
14836,
834,
7,
834,
584,
4280,
28027,
6,
616,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5140,
10450,
599,
7,
61,
65,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
711,
834,
14836,
834,
7,
834,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
616,
3274,
96,
2294,
6,
6192,
4244,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which is the new pageant from spain? | CREATE TABLE table_14308895_2 (
new_pageant VARCHAR,
country_territory VARCHAR
) | SELECT new_pageant FROM table_14308895_2 WHERE country_territory = "Spain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
1458,
4060,
3301,
834,
357,
41,
126,
834,
6492,
288,
584,
4280,
28027,
6,
684,
834,
17,
21301,
10972,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
84,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
126,
834,
6492,
288,
21680,
953,
834,
2534,
1458,
4060,
3301,
834,
357,
549,
17444,
427,
684,
834,
17,
21301,
10972,
3274,
96,
134,
13585,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the total number of goals score in the sri lanka - malaysia game of march 24 , 2007 ? | CREATE TABLE table_204_913 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) | SELECT "result" + "result" FROM table_204_913 WHERE "date" = '24 march 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4729,
519,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
60,
7,
83,
17,
121,
1768,
96,
60,
7,
83,
17,
121,
21680,
953,
834,
26363,
834,
4729,
519,
549,
17444,
427,
96,
5522,
121,
3274,
3,
31,
2266,
10556,
4101,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many times is there a golden tickets entry when the callback venue is rcti studio, jakarta? | CREATE TABLE table_30771 (
"Episode air date" text,
"Audition city" text,
"Date" text,
"Venue" text,
"Callback date" text,
"Callback venue" text,
"Golden tickets" real
) | SELECT COUNT("Golden tickets") FROM table_30771 WHERE "Callback venue" = 'RCTI Studio, Jakarta' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
4013,
536,
41,
96,
427,
102,
159,
32,
221,
799,
833,
121,
1499,
6,
96,
188,
76,
10569,
690,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23576,
35,
3500,
8512,
21680,
953,
834,
1458,
4013,
536,
549,
17444,
427,
96,
254,
1748,
1549,
5669,
121,
3274,
3,
31,
4902,
5494,
5929,
6,
31711,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How much does it cost for United States and Byron nelson? | CREATE TABLE table_name_94 (
money___ VARCHAR,
country VARCHAR,
player VARCHAR
) | SELECT COUNT(money___) AS $__ FROM table_name_94 WHERE country = "united states" AND player = "byron nelson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
540,
834,
834,
834,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
405,
34,
583... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
28442,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
969,
52,
106,
3,
29,
3573,
106,
1... |
What is set 3 on week 6? | CREATE TABLE table_67541 (
"Week" real,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Set 4" text,
"Set 5" text,
"Volume Lbs." real,
"Peak Intensity(Last Set)" text,
"% of 1 Rep Max(Last Set)" text
) | SELECT "Set 3" FROM table_67541 WHERE "Week" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
5062,
536,
41,
96,
518,
10266,
121,
490,
6,
96,
17175,
209,
121,
1499,
6,
96,
17175,
204,
121,
1499,
6,
96,
17175,
220,
121,
1499,
6,
96,
17175,
3,
20364,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17175,
220,
121,
21680,
953,
834,
3708,
5062,
536,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.