NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What was the number of earnings were cuts made are 19 and money list rank is 3? | CREATE TABLE table_17824 (
"Year" real,
"Starts" real,
"Cuts made" real,
"Wins" real,
"2nd" real,
"3rd" real,
"Top 10" real,
"Top 25" real,
"Earnings (\u20ac)" real,
"Money list rank" real
) | SELECT "Earnings (\u20ac)" FROM table_17824 WHERE "Cuts made" = '19' AND "Money list rank" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27640,
2266,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
15784,
17,
7,
263,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
357,
727,
121,
490,
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,
427,
291,
29,
53,
7,
41,
2,
76,
1755,
9,
75,
61,
121,
21680,
953,
834,
27640,
2266,
549,
17444,
427,
96,
15784,
17,
7,
263,
121,
3274,
3,
31,
2294,
31,
3430,
96,
9168,
15,
63,
570,
11003,
121,
3274,
3,
3... |
What is the N117/2400 IEC3 associated with an N100IEC3 of 25? | CREATE TABLE table_name_10 (n117_2400_iec3 VARCHAR, n100_iec3 VARCHAR) | SELECT n117_2400_iec3 FROM table_name_10 WHERE n100_iec3 = "25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
29,
20275,
834,
357,
5548,
834,
23,
15,
75,
519,
584,
4280,
28027,
6,
3,
29,
2915,
834,
23,
15,
75,
519,
584,
4280,
28027,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
20275,
834,
357,
5548,
834,
23,
15,
75,
519,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
3,
29,
2915,
834,
23,
15,
75,
519,
3274,
96,
1828,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many League cups had a total less than 25 and a league larger than 19? | CREATE TABLE table_41186 (
"Player" text,
"Club" text,
"League" real,
"FA Cup" real,
"FA Trophy" real,
"League Cup" real,
"Total" real
) | SELECT COUNT("League Cup") FROM table_41186 WHERE "Total" < '25' AND "League" > '19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
25398,
41,
96,
15800,
49,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
2796,
9,
5398,
121,
490,
6,
96,
4795,
3802,
121,
490,
6,
96,
4795,
26912,
121,
490,
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,
2847,
17161,
599,
121,
2796,
9,
5398,
3802,
8512,
21680,
953,
834,
4853,
25398,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
1828,
31,
3430,
96,
2796,
9,
5398,
121,
2490,
3,
31,
2294,
31,
1,
-100,
-100,
-1... |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and price , and group by attribute name, and show by the X-axis from low to high. | 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 T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name | [
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,
5411,
23954,
6,
332,
5411,
345,
4920,
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,
272,
476,
332,
541... |
Who was the high scorer in the Toronto game? | CREATE TABLE table_name_97 (
high_points VARCHAR,
team VARCHAR
) | SELECT high_points FROM table_name_97 WHERE team = "toronto" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
306,
2604,
52,
16,
8,
7030,
467,
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... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
372,
3274,
96,
235,
4438,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average Bronze when silver is more than 2, and rank is 2, and gold more than 2 | CREATE TABLE table_33941 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Bronze") FROM table_33941 WHERE "Silver" > '2' AND "Rank" = '2' AND "Gold" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3288,
4853,
41,
96,
22557,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22780,
29,
776,
8512,
21680,
953,
834,
519,
3288,
4853,
549,
17444,
427,
96,
134,
173,
624,
121,
2490,
3,
31,
357,
31,
3430,
96,
22557,
121,
3274,
3,
31,
357,
31,
3430,
96,
23576,
121,
2490,
... |
Name the score for rebeka dremelj | CREATE TABLE table_21378339_5 (
score VARCHAR,
artist VARCHAR
) | SELECT score FROM table_21378339_5 WHERE artist = "Rebeka Dremelj" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4118,
4591,
3288,
834,
755,
41,
2604,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2604,
21,
3,
60,
346,
1258,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
2658,
4118,
4591,
3288,
834,
755,
549,
17444,
427,
2377,
3274,
96,
1649,
346,
1258,
707,
15,
2341,
354,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many patients whose religion is protestant quaker and procedure short title is cont inv mec ven 96+ hrs? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.religion = "PROTESTANT QUAKER" AND procedures.short_title = "Cont inv mec ven 96+ hrs" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What kind of competition had an attendance of more than 914 people and the Wightlink Raiders as an opponent? | CREATE TABLE table_39179 (
"Date" real,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Competition" text
) | SELECT "Competition" FROM table_39179 WHERE "Attendance" > '914' AND "Opponent" = 'wightlink raiders' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
26593,
41,
96,
308,
342,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5890,
4995,
4749,
121,
21680,
953,
834,
3288,
26593,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
4729,
591,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
210,
2632,
4907,
15941,
277,
31,
... |
What is the sum of losses for Against values over 1510? | CREATE TABLE table_name_70 (
losses INTEGER,
against INTEGER
) | SELECT SUM(losses) FROM table_name_70 WHERE against > 1510 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
8467,
3,
21342,
17966,
6,
581,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8467,
21,
3,
20749,
2620,
147,
627,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
581,
2490,
627,
1714,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what was the name of the last episode to come out in september 1995 ? | CREATE TABLE table_203_758 (
id number,
"no." number,
"dub no." number,
"english dubbed title / english subbed title\noriginal japanese title" text,
"original air date" text,
"english air date" text
) | SELECT "english dubbed title / english subbed title\noriginal japanese title" FROM table_203_758 WHERE "english air date" = 9 AND "english air date" = 1995 ORDER BY "english air date" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3072,
927,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
381,
6,
96,
1259,
115,
150,
535,
381,
6,
96,
4606,
40,
1273,
3,
26,
17344,
2233,
3,
87,
22269,
3,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4606,
40,
1273,
3,
26,
17344,
2233,
3,
87,
22269,
3,
7,
17344,
2233,
2,
29,
21878,
2662,
2837,
15,
7,
15,
2233,
121,
21680,
953,
834,
23330,
834,
3072,
927,
549,
17444,
427,
96,
4606,
40,
1273,
799,
833,
121... |
How many date of appointments are there when the date of vacancy was 2 october 2010? | CREATE TABLE table_29171 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text
) | SELECT COUNT("Date of appointment") FROM table_29171 WHERE "Date of vacancy" = '2 October 2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2517,
536,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
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,
2847,
17161,
599,
121,
308,
342,
13,
4141,
8512,
21680,
953,
834,
3166,
2517,
536,
549,
17444,
427,
96,
308,
342,
13,
3,
29685,
121,
3274,
3,
31,
357,
1797,
2735,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the most abama number for mccain being 29266 | CREATE TABLE table_20468206_1 (obama_number INTEGER, mccain_number VARCHAR) | SELECT MAX(obama_number) FROM table_20468206_1 WHERE mccain_number = 29266 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
3651,
24643,
834,
536,
41,
32,
115,
265,
9,
834,
5525,
1152,
3,
21342,
17966,
6,
3,
51,
12464,
77,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
32,
115,
265,
9,
834,
5525,
1152,
61,
21680,
953,
834,
26363,
3651,
24643,
834,
536,
549,
17444,
427,
3,
51,
12464,
77,
834,
5525,
1152,
3274,
204,
4508,
3539,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many civilians died in the conflict that left 231 members of the military dead? | CREATE TABLE table_name_21 (civilian_deaths VARCHAR, military_deaths VARCHAR) | SELECT civilian_deaths FROM table_name_21 WHERE military_deaths = "231" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
27981,
23,
9928,
834,
221,
9,
189,
7,
584,
4280,
28027,
6,
2716,
834,
221,
9,
189,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14705,
834,
221,
9,
189,
7,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
2716,
834,
221,
9,
189,
7,
3274,
96,
357,
3341,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
age > or = 18 | CREATE TABLE table_train_221 (
"id" int,
"gender" string,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_221 WHERE age >= 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
2658,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
6965,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
121,
3,
12660,
6,
96,
545,
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,
1429,
21680,
953,
834,
9719,
834,
357,
2658,
549,
17444,
427,
1246,
2490,
2423,
507,
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 the material of the surface in noida , uttar pradesh, india | CREATE TABLE table_74362 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Location" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Surface" FROM table_74362 WHERE "Location" = 'Noida , Uttar Pradesh, India' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
3420,
357,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
450,
4861,
121,
21680,
953,
834,
4581,
3420,
357,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
4168,
23,
26,
9,
3,
6,
31251,
22660,
6,
1547,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date on Catalog 540,934-2? | CREATE TABLE table_name_9 (date VARCHAR, catalog VARCHAR) | SELECT date FROM table_name_9 WHERE catalog = "540,934-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
5522,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
30,
22424,
3,
25379,
6,
4271,
591,
4949,
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,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
10173,
3274,
96,
25379,
6,
4271,
591,
4949,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is death status and discharge location of subject name kurt buczek? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT demographic.expire_flag, demographic.discharge_location FROM demographic WHERE demographic.name = "Kurt Buczek" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14798,
5,
994,
2388,
15,
834,
89,
5430,
6,
14798,
5,
26,
159,
7993,
834,
14836,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
439,
450,
17,
15882,
776,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
patients with a body mass index ( bmi ) of greater than 26 . | CREATE TABLE table_train_239 (
"id" int,
"basal_c_peptide" float,
"body_weight" float,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"serum_creatinine" float,
"stimulated" bool,
"body_mass_index_bmi" float,
"NOUSE" float
) | SELECT * FROM table_train_239 WHERE body_mass_index_bmi > 26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
3288,
41,
96,
23,
26,
121,
16,
17,
6,
96,
4883,
138,
834,
75,
834,
21826,
15,
121,
3,
12660,
6,
96,
6965,
834,
9378,
121,
3,
12660,
6,
96,
1536,
138,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1429,
21680,
953,
834,
9719,
834,
357,
3288,
549,
17444,
427,
643,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
2490,
2208,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
in how many games were more than 15 points scored by either team ? | CREATE TABLE table_203_828 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"result" text,
"attendance" number
) | SELECT COUNT(*) FROM table_203_828 WHERE "result" > 15 OR "result" > 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
927,
2577,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
4663,
121,
1499,
6,
96,
6254,
4663,
121,
1499,
6,
96,
3585,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
927,
2577,
549,
17444,
427,
96,
60,
7,
83,
17,
121,
2490,
627,
4674,
96,
60,
7,
83,
17,
121,
2490,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of October, when Opponent is 'Pittsburgh Penguins'? | CREATE TABLE table_46063 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT SUM("October") FROM table_46063 WHERE "Opponent" = 'pittsburgh penguins' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25991,
3891,
41,
96,
23055,
121,
490,
6,
96,
28680,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
121,
28680,
8512,
21680,
953,
834,
25991,
3891,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
5230,
17,
7289,
107,
4550,
17996,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the number of the grid for Johnny Herbert with more than 52 laps? | CREATE TABLE table_name_28 (
grid INTEGER,
driver VARCHAR,
laps VARCHAR
) | SELECT SUM(grid) FROM table_name_28 WHERE driver = "johnny herbert" AND laps > 52 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
8634,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
8,
8634,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
2535,
3274,
96,
27341,
29,
63,
160,
7041,
121,
3430,
14941,
7,
2490,
9065,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients whose primary disease is coronary artery disease\coronary artery bypass graft with mvr; ? maze and year of birth is less than 2110? | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE" AND demographic.dob_year < "2110" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
5911,
13044,
24721,
11155,
5946,
476,
309,
19056,
17892,
2,
5911,
13044,... |
List the highest number of students in attendance for the institution that started in 1923. | CREATE TABLE table_30428 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
) | SELECT MAX("Enrollment") FROM table_30428 WHERE "Founded" = '1923' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23702,
2577,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
188,
89,
8027,
23,
257,
121,
1499,
6,
96,
8532,
4046,
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,
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,
8532,
4046,
297,
8512,
21680,
953,
834,
23702,
2577,
549,
17444,
427,
96,
20100,
121,
3274,
3,
31,
2294,
2773,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the district with 79 constituency number? | CREATE TABLE table_name_13 (
district VARCHAR,
constituency_number VARCHAR
) | SELECT district FROM table_name_13 WHERE constituency_number = "79" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
3939,
584,
4280,
28027,
6,
6439,
4392,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3939,
28,
3,
4440,
6439,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3939,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
6439,
4392,
834,
5525,
1152,
3274,
96,
4440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose discharge location is rehab/distinct part hosp and primary disease is syncope;telemetry. | 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.discharge_location = "REHAB/DISTINCT PART HOSP" AND demographic.diagnosis = "SYNCOPE;TELEMETRY" | [
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,
26,
159,
7993,
834,
14836,
3274,
96,
4386,
5478,
279,
87,
15438,
25424,
6227,
3,
19846,
3,
6299,
... |
What is the number of states that has some college whose enrollment is larger than the average enrollment? | CREATE TABLE college (state VARCHAR, enr INTEGER) | SELECT COUNT(DISTINCT state) FROM college WHERE enr > (SELECT AVG(enr) FROM college) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1900,
41,
5540,
584,
4280,
28027,
6,
3,
35,
52,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
2315,
24,
65,
128,
1900,
3,
2544,
17938,
19,
2186,
145,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
538,
61,
21680,
1900,
549,
17444,
427,
3,
35,
52,
2490,
41,
23143,
14196,
71,
17217,
599,
35,
52,
61,
21680,
1900,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Mascot for the team from leo that had a Previous Conference value of independent? | CREATE TABLE table_name_13 (mascot VARCHAR, previous_conference VARCHAR, location VARCHAR) | SELECT mascot FROM table_name_13 WHERE previous_conference = "independent" AND location = "leo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
2754,
4310,
584,
4280,
28027,
6,
1767,
834,
28496,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6664,
4310... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2754,
4310,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1767,
834,
28496,
3274,
96,
77,
17631,
121,
3430,
1128,
3274,
96,
109,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the competition that had a score of 3-0? | CREATE TABLE table_name_34 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_34 WHERE score = "3-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
5522,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
2259,
24,
141,
3,
9,
2604,
13,
3,
22773,
58,
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,
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,
833,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
2604,
3274,
96,
22773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the score for bucks with timberwolves | CREATE TABLE table_name_56 (
score VARCHAR,
visitor VARCHAR,
home VARCHAR
) | SELECT score FROM table_name_56 WHERE visitor = "bucks" AND home = "timberwolves" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
2604,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2604,
21,
22508,
28,
14592,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
7019,
3274,
96,
13863,
7,
121,
3430,
234,
3274,
96,
2998,
1152,
29219,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the number of patients whose primary disease is ruq pain and days of hospital stay is greater than 15? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "RUQ PAIN" AND demographic.days_stay > "15" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
8503,
2247,
276,
13570,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490... |
What was the score of the home team when there were more than 5,500 people in the crowd? | CREATE TABLE table_name_39 (
home_team VARCHAR,
crowd INTEGER
) | SELECT home_team AS score FROM table_name_39 WHERE crowd > 5 OFFSET 500 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
234,
834,
11650,
584,
4280,
28027,
6,
4374,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
234,
372,
116,
132,
130,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
4374,
2490,
305,
3,
15316,
20788,
2899,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which episodein season 3 had 175020 for a production code? | CREATE TABLE table_2602958_4 (
_number VARCHAR,
prod_code VARCHAR
) | SELECT _number FROM table_2602958_4 WHERE prod_code = 175020 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
3166,
3449,
834,
591,
41,
3,
834,
5525,
1152,
584,
4280,
28027,
6,
813,
26,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5640,
77,
774,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
834,
5525,
1152,
21680,
953,
834,
18365,
3166,
3449,
834,
591,
549,
17444,
427,
813,
26,
834,
4978,
3274,
1003,
1752,
1755,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the game site for the matchup against the Frankfurt Galaxy? | CREATE TABLE table_24852001_2 (
game_site VARCHAR,
opponent VARCHAR
) | SELECT game_site FROM table_24852001_2 WHERE opponent = "Frankfurt Galaxy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4433,
23658,
834,
357,
41,
467,
834,
3585,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
467,
353,
21,
8,
1588,
413,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
834,
3585,
21680,
953,
834,
2266,
4433,
23658,
834,
357,
549,
17444,
427,
15264,
3274,
96,
371,
6254,
9827,
17,
8455,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many foundeds have stade tunisien as the club, with a capacity greater than 18,000? | CREATE TABLE table_12916 (
"Club" text,
"City" text,
"Founded" real,
"Stadium" text,
"Capacity" real
) | SELECT SUM("Founded") FROM table_12916 WHERE "Club" = 'stade tunisien' AND "Capacity" > '18,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22174,
2938,
41,
96,
254,
11158,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
19566,
9,
6726,
121,
490,
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,
180,
6122,
599,
121,
20100,
8512,
21680,
953,
834,
22174,
2938,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
2427,
221,
5240,
159,
23,
35,
31,
3430,
96,
19566,
9,
6726,
121,
2490,
3,
31,
536,
16235,
31,
1,
... |
Orbital period of 89 to 128 min has what specific orbital energy? | CREATE TABLE table_name_73 (
specific_orbital_energy VARCHAR,
orbital_period VARCHAR
) | SELECT specific_orbital_energy FROM table_name_73 WHERE orbital_period = "89 to 128 min" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
806,
834,
127,
2360,
138,
834,
24310,
584,
4280,
28027,
6,
15607,
138,
834,
4267,
32,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
955,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
806,
834,
127,
2360,
138,
834,
24310,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
15607,
138,
834,
4267,
32,
26,
3274,
96,
3914,
12,
209,
2577,
3519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which year did the World indoor championships gave a position of 3rd? | CREATE TABLE table_36823 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | SELECT SUM("Year") FROM table_36823 WHERE "Competition" = 'world indoor championships' AND "Position" = '3rd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3651,
2773,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
10358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
121,
476,
2741,
8512,
21680,
953,
834,
519,
3651,
2773,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
7276,
5297,
10183,
7,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
519,
52,
2... |
which Score has a Competition of match reports? | CREATE TABLE table_79559 (
"Date" text,
"Location" text,
"Lineup" text,
"Assist/pass" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_79559 WHERE "Competition" = 'match reports' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3301,
3390,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
21022,
413,
121,
1499,
6,
96,
188,
7,
7,
343,
87,
3968,
121,
1499,
6,
96,
134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
9022,
121,
21680,
953,
834,
940,
3301,
3390,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
19515,
2279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the location of the game with a 6-11-8 record? | CREATE TABLE table_name_71 (
location VARCHAR,
record VARCHAR
) | SELECT location FROM table_name_71 WHERE record = "6-11-8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
1128,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
13,
8,
467,
28,
3,
9,
431,
9169,
6039,
136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
1368,
3274,
96,
948,
9169,
6039,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the game played on Manuka Oval? | CREATE TABLE table_16388398_1 (date VARCHAR, ground VARCHAR) | SELECT date FROM table_16388398_1 WHERE ground = "Manuka Oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3747,
4591,
3916,
834,
536,
41,
5522,
584,
4280,
28027,
6,
1591,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
467,
1944,
30,
1140,
1598,
9,
411,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
2938,
3747,
4591,
3916,
834,
536,
549,
17444,
427,
1591,
3274,
96,
7296,
1598,
9,
411,
2165,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Score, when To Par is "+1", and when Player is "Mike Souchak"? | CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT score FROM table_name_7 WHERE to_par = "+1" AND player = "mike souchak" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
7,
9022,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17763,
6,
116,
304... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
12,
834,
1893,
3274,
96,
18446,
121,
3430,
1959,
3274,
96,
20068,
15,
78,
2295,
1639,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Term Start date of the Progressive Party Prime Minister? | CREATE TABLE table_47383 (
"Name" text,
"Born-Died" text,
"Term start" text,
"Term end" text,
"Political Party" text
) | SELECT "Term start" FROM table_47383 WHERE "Political Party" = 'progressive party' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
3747,
519,
41,
96,
23954,
121,
1499,
6,
96,
279,
127,
29,
18,
8639,
26,
121,
1499,
6,
96,
11679,
456,
121,
1499,
6,
96,
11679,
414,
121,
1499,
6,
96,
8931,
155,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11679,
456,
121,
21680,
953,
834,
4177,
3747,
519,
549,
17444,
427,
96,
8931,
155,
1950,
3450,
121,
3274,
3,
31,
1409,
10292,
757,
1088,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what was the next film this director made after parva ? | CREATE TABLE table_204_667 (
id number,
"year" number,
"film title" text,
"genre" text,
"cast" text,
"notes" text
) | SELECT "film title" FROM table_204_667 WHERE "year" > (SELECT "year" FROM table_204_667 WHERE "film title" = 'parva') ORDER BY "year" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3539,
940,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
9988,
2233,
121,
1499,
6,
96,
729,
60,
121,
1499,
6,
96,
5254,
121,
1499,
6,
96,
7977,
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,
9988,
2233,
121,
21680,
953,
834,
26363,
834,
3539,
940,
549,
17444,
427,
96,
1201,
121,
2490,
41,
23143,
14196,
96,
1201,
121,
21680,
953,
834,
26363,
834,
3539,
940,
549,
17444,
427,
96,
9988,
2233,
121,
3274,
... |
Show budget type codes and the number of documents in each budget type with a bar chart, list by the x axis in asc please. | CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code C... | SELECT Budget_Type_Code, COUNT(*) FROM Documents_with_Expenses GROUP BY Budget_Type_Code ORDER BY Budget_Type_Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
41,
11167,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
11167,
834,
25160,
834,
23954,
584,
4280,
28027,
599,
25502,
201,
11167,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12532,
834,
25160,
834,
22737,
6,
2847,
17161,
599,
1935,
61,
21680,
11167,
7,
834,
4065,
834,
12882,
5167,
7,
350,
4630,
6880,
272,
476,
12532,
834,
25160,
834,
22737,
4674,
11300,
272,
476,
12532,
834,
25160,
834,
2... |
What is the highest number of laps for the driver with 5 points? | CREATE TABLE table_74783 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" text
) | SELECT MAX("Laps") FROM table_74783 WHERE "Points" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
3940,
519,
41,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
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,
4800,
4,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
4581,
3940,
519,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What serial format was issued in 1972? | CREATE TABLE table_49497 (
"Issued" real,
"Type" text,
"Design" text,
"Serial format" text,
"Serials issued" text
) | SELECT "Serial format" FROM table_49497 WHERE "Issued" = '1972' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
591,
4327,
41,
96,
196,
7,
7,
76,
15,
26,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
19103,
121,
1499,
6,
96,
134,
15,
12042,
1910,
121,
1499,
6,
96,
134,
15,
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,
134,
15,
12042,
1910,
121,
21680,
953,
834,
3647,
591,
4327,
549,
17444,
427,
96,
196,
7,
7,
76,
15,
26,
121,
3274,
3,
31,
2294,
5865,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose diagnoses short title is wegener's granulomatosis and drug route is sl? | 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 INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Wegener's granulomatosis" AND prescriptions.route = "SL" | [
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,
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... |
Which game modes have Pinyin of chāojí mǎlìōu shìjiè? | CREATE TABLE table_name_13 (game_modes VARCHAR, pinyin VARCHAR) | SELECT game_modes FROM table_name_13 WHERE pinyin = "chāojí mǎlìōu shìjiè" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
7261,
834,
14930,
7,
584,
4280,
28027,
6,
4522,
63,
77,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
467,
12632,
43,
8050,
63,
77,
13,
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,
0,
0,
0... | [
3,
23143,
14196,
467,
834,
14930,
7,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
4522,
63,
77,
3274,
96,
524,
2,
32,
354,
2,
3,
51,
2,
40,
2,
76,
6660,
2,
354,
23,
5115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
With a club that has 400 Points against, what are the points? | CREATE TABLE table_14451 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text
) | SELECT "Points for" FROM table_14451 WHERE "Points against" = '400' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20885,
5553,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
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,
22512,
7,
21,
121,
21680,
953,
834,
20885,
5553,
549,
17444,
427,
96,
22512,
7,
581,
121,
3274,
3,
31,
5548,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the mascot in Anderson for the Independent previous conference? | CREATE TABLE table_13769 (
"School" text,
"Location" text,
"Mascot" text,
"County" text,
"Year joined" real,
"Previous Conference" text,
"Year Left" real,
"Conference joined" text
) | SELECT "Mascot" FROM table_13769 WHERE "Previous Conference" = 'independent' AND "Location" = 'anderson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24636,
3951,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
476,
2741,
3311,
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,
329,
9,
7,
4310,
121,
21680,
953,
834,
24636,
3951,
549,
17444,
427,
96,
10572,
19117,
4379,
121,
3274,
3,
31,
77,
17631,
31,
3430,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
232,
13515,
31,
1,
-100,
-100,
-100... |
what is the previous winner candidate of dr. nimaben aacharya ? | CREATE TABLE table_204_683 (
id number,
"no." number,
"constituency" text,
"winner candidate" text,
"party" text,
"votes" number,
"margin" number
) | SELECT "winner candidate" FROM table_204_683 WHERE "no." = (SELECT "no." FROM table_204_683 WHERE "winner candidate" = 'dr nimaben aacharya') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3651,
519,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
381,
6,
96,
8056,
17,
155,
76,
4392,
121,
1499,
6,
96,
3757,
687,
4775,
121,
1499,
6,
96,
8071,
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,
3757,
687,
4775,
121,
21680,
953,
834,
26363,
834,
3651,
519,
549,
17444,
427,
96,
29,
32,
535,
3274,
41,
23143,
14196,
96,
29,
32,
535,
21680,
953,
834,
26363,
834,
3651,
519,
549,
17444,
427,
96,
3757,
687,
... |
Show all artist name, age, and country ordered by the yeared they joined. | CREATE TABLE artist (name VARCHAR, age VARCHAR, country VARCHAR, Year_Join VARCHAR) | SELECT name, age, country FROM artist ORDER BY Year_Join | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
4350,
584,
4280,
28027,
6,
1246,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
2929,
834,
683,
32,
77,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
2377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
6,
1246,
6,
684,
21680,
2377,
4674,
11300,
272,
476,
2929,
834,
683,
32,
77,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the candidates when Lamar S. Smith was incumbent? | CREATE TABLE table_18239 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Candidates" FROM table_18239 WHERE "Incumbent" = 'Lamar S. Smith' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
357,
3288,
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,
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,
357,
3288,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
3612,
1635,
180,
5,
3931,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which player on the Bulls has a 6 May 1978 birthday? | CREATE TABLE table_name_58 (
player VARCHAR,
club_province VARCHAR,
date_of_birth__age_ VARCHAR
) | SELECT player FROM table_name_58 WHERE club_province = "bulls" AND date_of_birth__age_ = "6 may 1978" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
1959,
584,
4280,
28027,
6,
1886,
834,
1409,
2494,
565,
584,
4280,
28027,
6,
833,
834,
858,
834,
20663,
834,
834,
545,
834,
584,
4280,
28027,
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,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
1886,
834,
1409,
2494,
565,
3274,
96,
20638,
7,
121,
3430,
833,
834,
858,
834,
20663,
834,
834,
545,
834,
3274,
96,
948,
164,
14834,
121,
1,
-100,
-100,
-100,... |
When did sony music direct a label? | CREATE TABLE table_name_60 (date VARCHAR, label VARCHAR) | SELECT date FROM table_name_60 WHERE label = "sony music direct" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
5522,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
520,
63,
723,
1223,
3,
9,
3783,
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,
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,
833,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
3783,
3274,
96,
739,
63,
723,
1223,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the snatch for the person holding the Olympic record, and 173kg of 172kg? | CREATE TABLE table_64298 (
"World record" text,
"Snatch" text,
"Sergey Filimonov ( KAZ )" text,
"173kg" text,
"Almaty , Kazakhstan" text
) | SELECT "Snatch" FROM table_64298 WHERE "World record" = 'olympic record' AND "173kg" = '172kg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
357,
3916,
41,
96,
17954,
1368,
121,
1499,
6,
96,
134,
29,
14547,
121,
1499,
6,
96,
134,
49,
397,
63,
6222,
603,
32,
5326,
41,
480,
10491,
3,
61,
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,
134,
29,
14547,
121,
21680,
953,
834,
4389,
357,
3916,
549,
17444,
427,
96,
17954,
1368,
121,
3274,
3,
31,
32,
120,
51,
6174,
1368,
31,
3430,
96,
2517,
519,
8711,
121,
3274,
3,
31,
27156,
8711,
31,
1,
-100,
... |
How many categories of Senate Seats does Emile Roemer have? | CREATE TABLE table_158282_1 (
senate_seats VARCHAR,
political_leader VARCHAR
) | SELECT COUNT(senate_seats) FROM table_158282_1 WHERE political_leader = "Emile Roemer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4613,
4613,
834,
536,
41,
3,
7,
35,
342,
834,
7,
1544,
7,
584,
4280,
28027,
6,
1827,
834,
22900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
2847,
17161,
599,
7,
35,
342,
834,
7,
1544,
7,
61,
21680,
953,
834,
1808,
4613,
4613,
834,
536,
549,
17444,
427,
1827,
834,
22900,
3274,
96,
427,
8770,
2158,
15,
935,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what's the airport with total passengers 2009 being 157933 | CREATE TABLE table_13836704_4 (airport VARCHAR, total_passengers_2009 VARCHAR) | SELECT airport FROM table_13836704_4 WHERE total_passengers_2009 = 157933 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
3420,
2518,
591,
834,
591,
41,
2256,
1493,
584,
4280,
28027,
6,
792,
834,
3968,
4606,
277,
834,
16660,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3761,
21680,
953,
834,
22744,
3420,
2518,
591,
834,
591,
549,
17444,
427,
792,
834,
3968,
4606,
277,
834,
16660,
3274,
627,
4440,
4201,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Country, when To Par is '+11'? | CREATE TABLE table_46659 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" text,
"To par" text
) | SELECT "Country" FROM table_46659 WHERE "To par" = '+11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3539,
3390,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
1499,
6,
96,
3696,
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... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
591,
3539,
3390,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
1220,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the total score of Danny Edwards? | CREATE TABLE table_name_39 (
score INTEGER,
player VARCHAR
) | SELECT SUM(score) FROM table_name_39 WHERE player = "danny edwards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
2604,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
792,
2604,
13,
19445,
8200,
7,
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,
180,
6122,
599,
7,
9022,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1959,
3274,
96,
26,
15159,
3,
15,
26,
2239,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, give me the comparison about the sum of price over the name , and group by attribute name by a bar chart, sort X-axis from high to low order. | 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 T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name 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,
332,
4416,
23954,
6,
332,
5411,
345,
4920,
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,
272,
476,
332,
441... |
What is the mascot whose school opened in 1970? | CREATE TABLE table_name_51 (
mascot VARCHAR,
year_opened VARCHAR
) | SELECT mascot FROM table_name_51 WHERE year_opened = "1970" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
3,
2754,
4310,
584,
4280,
28027,
6,
215,
834,
26940,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
2754,
4310,
3,
2544,
496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
3,
2754,
4310,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
215,
834,
26940,
3274,
96,
2294,
2518,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the event when su rez ( tri ) w 16 6 was round of 32? | CREATE TABLE table_29409 (
"Athlete" text,
"Event" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinals" text,
"Semifinals" text
) | SELECT "Event" FROM table_29409 WHERE "Round of 32" = 'Suárez ( TRI ) W 16–6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4240,
4198,
41,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
448,
32,
1106,
13,
3538,
121,
1499,
6,
96,
448,
32,
1106,
13,
898,
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,
96,
427,
2169,
121,
21680,
953,
834,
357,
4240,
4198,
549,
17444,
427,
96,
448,
32,
1106,
13,
3538,
121,
3274,
3,
31,
134,
76,
2975,
2638,
41,
3,
16840,
3,
61,
549,
898,
104,
948,
31,
1,
-100,
-100,
-100,
-100,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, a line chart shows the change of commission_pct over hire_date, and sort by the X-axis from high to low. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE T... | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY HIRE_DATE DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
454,
14132,
834,
308,
6048,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
... |
Which country had a total of 295? | CREATE TABLE table_name_46 (country VARCHAR, total VARCHAR) | SELECT country FROM table_name_46 WHERE total = 295 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
17529,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
141,
3,
9,
792,
13,
204,
3301,
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,
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,
684,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
792,
3274,
204,
3301,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many games were against Furman? | CREATE TABLE table_23872 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Tar Heels points" real,
"Opponents" real,
"Record" text
) | SELECT MAX("Game") FROM table_23872 WHERE "Opponent" = 'Furman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4225,
357,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
382,
291,
216,
3573,
979,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
8512,
21680,
953,
834,
2773,
4225,
357,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
371,
450,
348,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of tracks whose genre is Rock? | CREATE TABLE customers (
id number,
first_name text,
last_name text,
company text,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text,
support_rep_id number
)
CREATE TABLE sqlite_sequence (
name text,
seq tex... | SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
3,
23,
26,
381,
6,
166,
834,
4350,
1499,
6,
336,
834,
4350,
1499,
6,
349,
1499,
6,
1115,
1499,
6,
690,
1499,
6,
538,
1499,
6,
684,
1499,
6,
19085,
834,
4978,
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,
332,
4416,
4350,
21680,
5349,
7,
6157,
332,
536,
3,
15355,
3162,
6542,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
729,
60,
834,
23,
26,
549,
17444,
427,
332,
5411,
4350,
3274,
96,
23349,
121,
1,
-10... |
What was the Quantity on Date 1900? | CREATE TABLE table_56483 (
"Class" text,
"Type" text,
"Quantity" real,
"Date" text,
"LNER Class" text
) | SELECT SUM("Quantity") FROM table_56483 WHERE "Date" = '1900' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
3707,
519,
41,
96,
21486,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
5991,
288,
485,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
18206,
4501,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
121,
5991,
288,
485,
8512,
21680,
953,
834,
4834,
3707,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2294,
1206,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Give me a bar chart for how many date of transaction of each date of transaction | CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETIME,
amount_of_transaction DECIMAL(19,4),
share_count VARCHAR(40),
other_details VARCHAR(255)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGE... | SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21469,
7,
41,
5878,
834,
23,
26,
3,
21342,
17966,
6,
12024,
834,
23,
26,
3,
21342,
17966,
6,
5878,
834,
6137,
834,
4978,
584,
4280,
28027,
599,
16968,
6,
833,
834,
858,
834,
7031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
834,
858,
834,
7031,
4787,
6,
2847,
17161,
599,
5522,
834,
858,
834,
7031,
4787,
61,
21680,
21469,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
before the distributor was which one ? | CREATE TABLE table_204_309 (
id number,
"model" text,
"released" number,
"usage" text,
"features" text,
"storage" text
) | SELECT "model" FROM table_204_309 WHERE "released" < (SELECT "released" FROM table_204_309 WHERE "model" = 'distributor') ORDER BY "released" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1458,
1298,
41,
3,
23,
26,
381,
6,
96,
21770,
121,
1499,
6,
96,
21019,
26,
121,
381,
6,
96,
18672,
121,
1499,
6,
96,
30844,
7,
121,
1499,
6,
96,
7279,
545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
21770,
121,
21680,
953,
834,
26363,
834,
1458,
1298,
549,
17444,
427,
96,
21019,
26,
121,
3,
2,
41,
23143,
14196,
96,
21019,
26,
121,
21680,
953,
834,
26363,
834,
1458,
1298,
549,
17444,
427,
96,
21770,
121,
327... |
Which season has a .354 Win%? | CREATE TABLE table_6853 (
"Season" text,
"Team" text,
"Conference (Conf.)" text,
"Division (Div.)" text,
"Win%" text,
"Awards" text
) | SELECT "Season" FROM table_6853 WHERE "Win%" = '.354' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
4867,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
4302,
11788,
41,
4302,
89,
5,
61,
121,
1499,
6,
96,
308,
23,
6610,
41,
21313,
5,
61,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
15,
9,
739,
121,
21680,
953,
834,
3651,
4867,
549,
17444,
427,
96,
18455,
1454,
121,
3274,
3,
31,
5,
2469,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of patients whose age is less than 62 and lab test category is blood gas? | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "62" AND lab."CATEGORY" = "Blood Gas" | [
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,... |
Parts Plus sponsors what driver? | CREATE TABLE table_68021 (
"Team" text,
"Truck(s)" text,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Owner(s)" text,
"Crew Chief" text
) | SELECT "Driver(s)" FROM table_68021 WHERE "Primary Sponsor(s)" = 'parts plus' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2079,
2658,
41,
96,
18699,
121,
1499,
6,
96,
21921,
2406,
599,
7,
61,
121,
1499,
6,
96,
20982,
52,
599,
7,
61,
121,
1499,
6,
96,
7855,
51,
1208,
19254,
599,
7,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20982,
52,
599,
7,
61,
121,
21680,
953,
834,
948,
2079,
2658,
549,
17444,
427,
96,
7855,
51,
1208,
19254,
599,
7,
61,
121,
3274,
3,
31,
2274,
7,
303,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which state is frederick bamford a member of? | CREATE TABLE table_53014 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"First elected" text
) | SELECT "State" FROM table_53014 WHERE "Member" = 'frederick bamford' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26918,
2534,
41,
96,
329,
18247,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
21543,
127,
342,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
25171,
8160,
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,
134,
4748,
121,
21680,
953,
834,
26918,
2534,
549,
17444,
427,
96,
329,
18247,
121,
3274,
3,
31,
89,
1271,
15,
5206,
4698,
51,
2590,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the prize when the show was aired on Ant1, was presented by Andreas Mikroutsikos, and was launched on March 10, 2003? | CREATE TABLE table_name_19 (the_prize VARCHAR, launch_date VARCHAR, tv_channel VARCHAR, the_presenter VARCHAR) | SELECT the_prize FROM table_name_19 WHERE tv_channel = "ant1" AND the_presenter = "andreas mikroutsikos" AND launch_date = "march 10, 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
532,
834,
2246,
776,
584,
4280,
28027,
6,
3289,
834,
5522,
584,
4280,
28027,
6,
3,
17,
208,
834,
19778,
584,
4280,
28027,
6,
8,
834,
12640,
49,
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,
8,
834,
2246,
776,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
3,
17,
208,
834,
19778,
3274,
96,
288,
536,
121,
3430,
8,
834,
12640,
49,
3274,
96,
232,
864,
7,
3,
20068,
52,
670,
7,
12027,
7,
121,
3430,
... |
Calculate the number of patients less than 82 years with a bactss drug code. | 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 (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "82" AND prescriptions.formulary_drug_cd = "BACTSS" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
what is the song name for the film name ganga kare insaaf? | CREATE TABLE table_352 (
"Year" real,
"Song name" text,
"Film name" text,
"Co-singer" text,
"Music director" text,
"Lyricist" text,
"Language" text
) | SELECT "Song name" FROM table_352 WHERE "Film name" = 'Ganga Kare Insaaf' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
134,
2444,
564,
121,
1499,
6,
96,
371,
173,
51,
564,
121,
1499,
6,
96,
3881,
18,
7,
9963,
121,
1499,
6,
96,
29035,
2090,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
2444,
564,
121,
21680,
953,
834,
2469,
357,
549,
17444,
427,
96,
371,
173,
51,
564,
121,
3274,
3,
31,
517,
1468,
9,
4556,
15,
86,
7,
9,
9,
89,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Dist (f) has a Race of irish derby? | CREATE TABLE table_79627 (
"Race" text,
"Dist (f)" real,
"Course" text,
"Class" text,
"Prize (\u00a3K)" real,
"Odds" text,
"Runners" real,
"Placing" real,
"Margin" text,
"Time" text,
"Jockey" text,
"Trainer" text
) | SELECT "Dist (f)" FROM table_79627 WHERE "Race" = 'irish derby' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4314,
2555,
41,
96,
448,
3302,
121,
1499,
6,
96,
308,
343,
41,
89,
61,
121,
490,
6,
96,
3881,
3589,
15,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
7855,
776,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308,
343,
41,
89,
61,
121,
21680,
953,
834,
940,
4314,
2555,
549,
17444,
427,
96,
448,
3302,
121,
3274,
3,
31,
24804,
107,
74,
969,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Total has a Labour Panel smaller than 5, an Administrative Panel smaller than 1, and a National University of Ireland smaller than 2? | CREATE TABLE table_name_55 (total VARCHAR, national_university_of_ireland VARCHAR, labour_panel VARCHAR, administrative_panel VARCHAR) | SELECT COUNT(total) FROM table_name_55 WHERE labour_panel < 5 AND administrative_panel < 1 AND national_university_of_ireland < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
235,
1947,
584,
4280,
28027,
6,
1157,
834,
7846,
485,
834,
858,
834,
2060,
40,
232,
584,
4280,
28027,
6,
12568,
834,
28726,
584,
4280,
28027,
6,
6601,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
12568,
834,
28726,
3,
2,
305,
3430,
6601,
834,
28726,
3,
2,
209,
3430,
1157,
834,
7846,
485,
834,
858,
834,
2060,
40,
232,
3,
2,
... |
Which country had a production (bbl/day) of 2,494,000 (10th)? | CREATE TABLE table_166346_1 (country VARCHAR, production___bbl__day_ VARCHAR) | SELECT country FROM table_166346_1 WHERE production___bbl__day_ = "2,494,000 (10th)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3891,
4448,
834,
536,
41,
17529,
584,
4280,
28027,
6,
999,
834,
834,
834,
115,
115,
40,
834,
834,
1135,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
2938,
3891,
4448,
834,
536,
549,
17444,
427,
999,
834,
834,
834,
115,
115,
40,
834,
834,
1135,
834,
3274,
96,
4482,
3647,
13161,
11704,
189,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which partnership has a run number of 27? | CREATE TABLE table_name_70 (partnerships VARCHAR, runs VARCHAR) | SELECT partnerships FROM table_name_70 WHERE runs = "27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
12300,
2009,
7,
584,
4280,
28027,
6,
3154,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4696,
65,
3,
9,
661,
381,
13,
2307,
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,
13416,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
3154,
3274,
96,
2555,
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 myspace has linkedin as the site, with an orkit greater than 3? | CREATE TABLE table_34025 (
"Site" text,
"Bebo" real,
"Facebook" real,
"Friendster" real,
"LinkedIn" real,
"MySpace" real,
"Ning" real,
"Orkut" real,
"Plaxo" real
) | SELECT AVG("MySpace") FROM table_34025 WHERE "Site" = 'linkedin' AND "Orkut" > '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21129,
1828,
41,
96,
26030,
121,
1499,
6,
96,
2703,
115,
32,
121,
490,
6,
96,
371,
3302,
2567,
121,
490,
6,
96,
17701,
1370,
121,
490,
6,
96,
29806,
1570,
121,
490,
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,
71,
17217,
599,
121,
7008,
24722,
8512,
21680,
953,
834,
21129,
1828,
549,
17444,
427,
96,
26030,
121,
3274,
3,
31,
29000,
77,
31,
3430,
96,
7395,
2729,
17,
121,
2490,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What was the value for deleted for CERCLIS ID of il0210090049? | CREATE TABLE table_67773 (
"CERCLIS ID" text,
"County" text,
"Listed" text,
"Construction completed" text,
"Partially deleted" text,
"Deleted" text
) | SELECT "Deleted" FROM table_67773 WHERE "CERCLIS ID" = 'il0210090049' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4013,
519,
41,
96,
4770,
4902,
25769,
4699,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
28886,
121,
1499,
6,
96,
4302,
7,
26853,
2012,
121,
1499,
6,
96,
13725,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28141,
26,
121,
21680,
953,
834,
3708,
4013,
519,
549,
17444,
427,
96,
4770,
4902,
25769,
4699,
121,
3274,
3,
31,
173,
4305,
2915,
7015,
3647,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Model Number, when the Voltage is 3.45 V, and when the Frequency is 133 MHZ? | CREATE TABLE table_name_86 (
model_number VARCHAR,
voltage VARCHAR,
frequency VARCHAR
) | SELECT model_number FROM table_name_86 WHERE voltage = "3.45 v" AND frequency = "133 mhz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
825,
834,
5525,
1152,
584,
4280,
28027,
6,
10594,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5154,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
825,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
10594,
3274,
96,
5787,
2128,
3,
208,
121,
3430,
7321,
3274,
96,
22974,
3,
51,
107,
172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the name of the team in 1965 driving the Ferrari 158? | CREATE TABLE table_name_3 (
entrant VARCHAR,
year VARCHAR,
chassis VARCHAR
) | SELECT entrant FROM table_name_3 WHERE year = 1965 AND chassis = "ferrari 158" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
3,
295,
3569,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
564,
13,
8,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
295,
3569,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
215,
3274,
19201,
3430,
22836,
3274,
96,
1010,
52,
1665,
3,
26556,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what year -lrb- s -rrb- had the lowest number of breeders cup juvenile starters ? | CREATE TABLE table_204_62 (
id number,
"year" number,
"winner" text,
"second" text,
"third" text,
"starters" number
) | SELECT "year" FROM table_204_62 WHERE "starters" = (SELECT MIN("starters") FROM table_204_62) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4056,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
3757,
687,
121,
1499,
6,
96,
12091,
121,
1499,
6,
96,
14965,
121,
1499,
6,
96,
10208,
277,
121,
381,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
121,
21680,
953,
834,
26363,
834,
4056,
549,
17444,
427,
96,
10208,
277,
121,
3274,
41,
23143,
14196,
3,
17684,
599,
121,
10208,
277,
8512,
21680,
953,
834,
26363,
834,
4056,
61,
1,
-100,
-100,
-100,
-100,
... |
What is the fewest Al Ahly wins for El Zamalek wins of 0 and 0 draws? | CREATE TABLE table_13861 (
"Competition" text,
"Total" real,
"Al Ahly wins" real,
"Draws" real,
"El Zamalek wins" real
) | SELECT MIN("Al Ahly wins") FROM table_13861 WHERE "Draws" = '0' AND "El Zamalek wins" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
4241,
41,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
188,
40,
9710,
120,
9204,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6,
96,
10991,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
188,
40,
9710,
120,
9204,
8512,
21680,
953,
834,
22744,
4241,
549,
17444,
427,
96,
308,
10936,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
10991,
4904,
13513,
157,
9204,
121,
3,
2,
3,
31,
632,
31... |
what is the number of attendance on june 24 | CREATE TABLE table_name_8 (
attendance VARCHAR,
date VARCHAR
) | SELECT COUNT(attendance) FROM table_name_8 WHERE date = "june 24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
11364,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
381,
13,
11364,
30,
3,
6959,
15,
997,
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,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
833,
3274,
96,
6959,
15,
997,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many times is bronze 2 and gold more than 3? | CREATE TABLE table_name_34 (
total VARCHAR,
bronze VARCHAR,
gold VARCHAR
) | SELECT COUNT(total) FROM table_name_34 WHERE bronze = 2 AND gold > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
648,
19,
13467,
204,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
13467,
3274,
204,
3430,
2045,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many townships are there in region number 2? | CREATE TABLE table_23010 (
"No." real,
"State/Region" text,
"Districts" real,
"Town ships" real,
"Cities/ Towns" real,
"Wards" real,
"Village groups" real,
"Villages" real
) | SELECT MAX("Town ships") FROM table_23010 WHERE "No." = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
1714,
41,
96,
4168,
535,
490,
6,
96,
134,
4748,
87,
17748,
23,
106,
121,
1499,
6,
96,
308,
23,
20066,
7,
121,
490,
6,
96,
382,
9197,
10911,
121,
490,
6,
96,
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,
4800,
4,
599,
121,
382,
9197,
10911,
8512,
21680,
953,
834,
13427,
1714,
549,
17444,
427,
96,
4168,
535,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
was the attendance of the game held on 11/19/2013 greater than 1,000 ? | CREATE TABLE table_204_168 (
id number,
"date" text,
"time" text,
"opponent" text,
"site" text,
"tv" text,
"result" text,
"attendance" number,
"record" text
) | SELECT (SELECT "attendance" FROM table_204_168 WHERE "date" = '11/19/2013') > 1000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
24274,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
3585,
121,
1499,
6,
96,
17,
208,
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,
41,
23143,
14196,
96,
15116,
663,
121,
21680,
953,
834,
26363,
834,
24274,
549,
17444,
427,
96,
5522,
121,
3274,
3,
31,
2596,
13523,
87,
11138,
31,
61,
2490,
5580,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the original air dates for episodes directed by fred toye? | CREATE TABLE table_30159 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production" text,
"U.S. viewers (in millions)" text
) | SELECT "Original air date" FROM table_30159 WHERE "Directed by" = 'Fred Toye' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
27904,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
667,
3380,
10270,
799,
833,
121,
21680,
953,
834,
1458,
27904,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
371,
1271,
304,
63,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the score when Mark parterned with lorenzo manta? | CREATE TABLE table_name_19 (score VARCHAR, partner VARCHAR) | SELECT score FROM table_name_19 WHERE partner = "lorenzo manta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
7,
9022,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
2185,
294,
11965,
26,
28,
3,
322,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
2397,
3274,
96,
322,
15,
20547,
388,
17,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is South Korea's to par value? | CREATE TABLE table_name_69 (
to_par VARCHAR,
country VARCHAR
) | SELECT to_par FROM table_name_69 WHERE country = "south korea" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
12,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1013,
7054,
31,
7,
12,
260,
701,
58,
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,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
684,
3274,
96,
7,
670,
107,
3,
5543,
15,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which To par has a Finish of t3, and a Player of julius boros? | CREATE TABLE table_name_75 (
to_par VARCHAR,
finish VARCHAR,
player VARCHAR
) | SELECT to_par FROM table_name_75 WHERE finish = "t3" AND player = "julius boros" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
12,
834,
1893,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
6,
1959,
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,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
1992,
3274,
96,
17,
519,
121,
3430,
1959,
3274,
96,
2047,
29705,
3,
14901,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Earnings ($) is the lowest one that has a Rank of 1, and Events smaller than 22? | CREATE TABLE table_name_60 (earnings___ INTEGER, rank VARCHAR, events VARCHAR) | SELECT MIN(earnings___) AS $__ FROM table_name_60 WHERE rank = 1 AND events < 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
2741,
29,
53,
7,
834,
834,
834,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
984,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
19883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2741,
29,
53,
7,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
11003,
3274,
209,
3430,
984,
3,
2,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What season did he have 7 appearances? | CREATE TABLE table_name_91 (
season VARCHAR,
apps VARCHAR
) | SELECT season FROM table_name_91 WHERE apps = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
774,
584,
4280,
28027,
6,
4050,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
774,
410,
3,
88,
43,
489,
3179,
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,
774,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
4050,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many courses are in the Psychology department for each year? Return a line chart, and order X from low to high order. | CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE prereq (
... | SELECT year, COUNT(year) FROM course AS T1 JOIN section AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
97,
834,
7,
3171,
41,
97,
834,
7,
3171,
834,
23,
26,
3,
4331,
4059,
10820,
6,
239,
3,
4331,
4059,
14296,
6,
456,
834,
107,
52,
206,
17552,
16426,
6,
456,
834,
1109,
206,
17552,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
6,
2847,
17161,
599,
1201,
61,
21680,
503,
6157,
332,
536,
3,
15355,
3162,
1375,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
23,
26,
549,
17444,
427,
332,
5411,
26,
6707,
... |
What is the location of Classification of T12? | CREATE TABLE table_70311 (
"Classification" text,
"Fastest time (s)" real,
"Athlete" text,
"Country" text,
"Date" text,
"Location" text
) | SELECT "Location" FROM table_70311 WHERE "Classification" = 't12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
519,
2596,
41,
96,
21486,
2420,
121,
1499,
6,
96,
371,
9,
7,
4377,
97,
41,
7,
61,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
10628,
651,
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,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
2518,
519,
2596,
549,
17444,
427,
96,
21486,
2420,
121,
3274,
3,
31,
17,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the individual in the event of 1998 Pokljuka? | CREATE TABLE table_name_33 (
individual VARCHAR,
event VARCHAR
) | SELECT individual FROM table_name_33 WHERE event = "1998 pokljuka" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
928,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
928,
16,
8,
605,
13,
6260,
1908,
157,
40,
2047,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
928,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
605,
3274,
96,
2294,
3916,
1977,
157,
40,
2047,
1258,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.