NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the callsign of tuguegarao | CREATE TABLE table_12547903_2 (
callsign VARCHAR,
location__transmitter_site_ VARCHAR
) | SELECT callsign FROM table_12547903_2 WHERE location__transmitter_site_ = "Tuguegarao" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
4177,
2394,
519,
834,
357,
41,
580,
6732,
584,
4280,
28027,
6,
1128,
834,
834,
7031,
1538,
449,
834,
3585,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
580,
6732,
21680,
953,
834,
10124,
4177,
2394,
519,
834,
357,
549,
17444,
427,
1128,
834,
834,
7031,
1538,
449,
834,
3585,
834,
3274,
96,
382,
76,
5398,
1478,
9,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What law has a penalty of in Iraq? | CREATE TABLE table_name_90 (
laws_against_homosexuality VARCHAR,
penalty VARCHAR,
country VARCHAR
) | SELECT laws_against_homosexuality FROM table_name_90 WHERE penalty = "—" AND country = "iraq" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
3786,
834,
9,
16720,
7,
17,
834,
10207,
32,
25604,
485,
584,
4280,
28027,
6,
10736,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3786,
834,
9,
16720,
7,
17,
834,
10207,
32,
25604,
485,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
10736,
3274,
96,
318,
121,
3430,
684,
3274,
96,
23,
52,
9,
1824,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
From writer Max Ehrlich, what is the total amount of series numbers? | CREATE TABLE table_19852975_4 (series__number VARCHAR, writer_s_ VARCHAR) | SELECT COUNT(series__number) FROM table_19852975_4 WHERE writer_s_ = "Max Ehrlich" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4433,
3166,
3072,
834,
591,
41,
10833,
7,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
4346,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1029,
4346,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
10833,
7,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2294,
4433,
3166,
3072,
834,
591,
549,
17444,
427,
4346,
834,
7,
834,
3274,
96,
21298,
17099,
1411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which campus has the most faculties in year 2003? | CREATE TABLE degrees (
year number,
campus number,
degrees number
)
CREATE TABLE csu_fees (
campus number,
year number,
campusfee number
)
CREATE TABLE enrollments (
campus number,
year number,
totalenrollment_ay number,
fte_ay number
)
CREATE TABLE faculty (
campus number... | SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4526,
41,
215,
381,
6,
4730,
381,
6,
4526,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
75,
7,
76,
834,
89,
15,
15,
7,
41,
4730,
381,
6,
215,
381,
6,
473... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25532,
21680,
25784,
6157,
332,
536,
3,
15355,
3162,
6040,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
25532,
549,
17444,
427,
332,
4416,
1201,
3274,
3888,
4674,
11300,
272,
476,
332,
4416,
89... |
what is maximum age of patients whose marital status is single and year of birth is greater than 2073? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.dob_year > "2073" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
134,
2365,
3765,
121,
3430,
14798,
5,
26,
32,
115,
834,
1201,
2490,
96,
1755,
4552,
121,
1,
-10... |
How many games had an assist number greater than 54? | CREATE TABLE table_32595 (
"Rank" real,
"Player" text,
"Nation" text,
"Assist" real,
"Games" real,
"Years" text
) | SELECT SUM("Games") FROM table_32595 WHERE "Assist" > '54' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
1828,
3301,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
188,
7,
7,
343,
121,
490,
6,
96,
23055,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23055,
7,
8512,
21680,
953,
834,
519,
1828,
3301,
549,
17444,
427,
96,
188,
7,
7,
343,
121,
2490,
3,
31,
5062,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who did the high rebounds in the game in which Brandon Jennings (8) did the high assists? | CREATE TABLE table_25470 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High rebounds" FROM table_25470 WHERE "High assists" = 'Brandon Jennings (8)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
27760,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
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,
21417,
3,
23768,
121,
21680,
953,
834,
1828,
27760,
549,
17444,
427,
96,
21417,
13041,
121,
3274,
3,
31,
18304,
29,
2029,
1022,
9416,
7,
3,
28007,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Partner, when Opponents In The Final is Remi Tezuka Shuko Aoyama? | CREATE TABLE table_44650 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
) | SELECT "Partner" FROM table_44650 WHERE "Opponents in the final" = 'remi tezuka shuko aoyama' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
15348,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13725,
687,
121,
21680,
953,
834,
3628,
15348,
549,
17444,
427,
96,
667,
102,
9977,
7,
16,
8,
804,
121,
3274,
3,
31,
60,
51,
23,
3,
17,
457,
1598,
9,
6660,
1598,
32,
3,
9,
32,
22990,
31,
1,
-100,
-100,
-... |
I want the plaid cymru for 4 may 2011 | CREATE TABLE table_name_9 (plaid_cymru VARCHAR, date_s__conducted VARCHAR) | SELECT plaid_cymru FROM table_name_9 WHERE date_s__conducted = "4 may 2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
6042,
23,
26,
834,
75,
63,
51,
52,
76,
584,
4280,
28027,
6,
833,
834,
7,
834,
834,
1018,
21336,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
30772,
834,
75,
63,
51,
52,
76,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
833,
834,
7,
834,
834,
1018,
21336,
3274,
96,
591,
164,
2722,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
With a statistic of most points, what is the stage? | CREATE TABLE table_name_7 (
stage VARCHAR,
statistic VARCHAR
) | SELECT stage FROM table_name_7 WHERE statistic = "most points" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
1726,
584,
4280,
28027,
6,
19720,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
438,
3,
9,
19720,
13,
167,
979,
6,
125,
19,
8,
1726,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1726,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
19720,
3274,
96,
5463,
979,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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, return a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by weekday, and I want to order in descending by the y axis. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY COUNT(HIRE_DATE) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
... |
how many times is the constituency edinburgh northern and leith? | CREATE TABLE table_name_20 (swing_to_gain VARCHAR, constituency VARCHAR) | SELECT COUNT(swing_to_gain) FROM table_name_20 WHERE constituency = "edinburgh northern and leith" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
7,
3108,
834,
235,
834,
16720,
584,
4280,
28027,
6,
6439,
4392,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
648,
19,
8,
6439,
4392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7,
3108,
834,
235,
834,
16720,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
6439,
4392,
3274,
96,
15,
2644,
4824,
107,
8390,
11,
4628,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the rating of the show ranked tba, aired on April 21, 2009? | CREATE TABLE table_name_63 (rating VARCHAR, rank___number_ VARCHAR, air_date VARCHAR) | SELECT rating FROM table_name_63 WHERE rank___number_ = "tba" AND air_date = "april 21, 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
52,
1014,
584,
4280,
28027,
6,
11003,
834,
834,
834,
5525,
1152,
834,
584,
4280,
28027,
6,
799,
834,
5522,
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,
5773,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
11003,
834,
834,
834,
5525,
1152,
834,
3274,
96,
17,
115,
9,
121,
3430,
799,
834,
5522,
3274,
96,
9,
2246,
40,
12026,
2464,
121,
1,
-100,
-100,
-100,
-100,
... |
What is the visiting team of the game with the home team Grizzlies on 13 November 2007? | CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_77 WHERE home = "grizzlies" AND date = "13 november 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
3466,
155,
127,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3644,
372,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
234,
3274,
96,
3496,
5271,
4664,
121,
3430,
833,
3274,
96,
2368,
3,
5326,
18247,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
which location had more tournaments , oldsmar or los angeles ? | CREATE TABLE table_204_553 (
id number,
"outcome" text,
"no." number,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents in the final" text,
"score in the final" text
) | SELECT "tournament" FROM table_204_553 WHERE "tournament" IN ('oldsmar', 'los angeles') GROUP BY "tournament" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3769,
519,
41,
3,
23,
26,
381,
6,
96,
670,
287,
15,
121,
1499,
6,
96,
29,
32,
535,
381,
6,
96,
5522,
121,
1499,
6,
96,
17,
1211,
20205,
17,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17,
1211,
20205,
17,
121,
21680,
953,
834,
26363,
834,
3769,
519,
549,
17444,
427,
96,
17,
1211,
20205,
17,
121,
3388,
41,
31,
1490,
7,
1635,
31,
6,
3,
31,
2298,
11831,
15,
7,
31,
61,
350,
4630,
6880,
272,
... |
What is every time(cet) for a time of 5:04.8? | CREATE TABLE table_21536557_2 (time__cet_ VARCHAR, time VARCHAR) | SELECT time__cet_ FROM table_21536557_2 WHERE time = "5:04.8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1808,
10402,
3436,
834,
357,
41,
715,
834,
834,
9113,
834,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
97,
599,
9113,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
834,
834,
9113,
834,
21680,
953,
834,
357,
1808,
10402,
3436,
834,
357,
549,
17444,
427,
97,
3274,
96,
755,
10,
14161,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the home team with a score of 101-93? | CREATE TABLE table_name_92 (
home_team VARCHAR,
score VARCHAR
) | SELECT home_team FROM table_name_92 WHERE score = "101-93" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
234,
834,
11650,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
28,
3,
9,
2604,
13,
13736,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
2604,
3274,
96,
19621,
18,
4271,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Score for the 1999 fifa confederations cup? | CREATE TABLE table_40344 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_40344 WHERE "Competition" = '1999 fifa confederations cup' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
519,
3628,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
2445,
519,
3628,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
2294,
3264,
361,
89,
9,
975,
16812,
1628,
4119,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the application for caligari corporation | CREATE TABLE table_23038 (
"Application" text,
"Latest release date and version" text,
"Developed by" text,
"Platforms" text,
"Mainly Used For" text,
"License" text
) | SELECT "Application" FROM table_23038 WHERE "Developed by" = 'Caligari Corporation' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
3747,
41,
96,
188,
102,
13555,
121,
1499,
6,
96,
3612,
4377,
1576,
833,
11,
988,
121,
1499,
6,
96,
31192,
57,
121,
1499,
6,
96,
10146,
2032,
7,
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,
188,
102,
13555,
121,
21680,
953,
834,
13427,
3747,
549,
17444,
427,
96,
31192,
57,
121,
3274,
3,
31,
254,
9,
2825,
1665,
6708,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Location of the Old Bedians Pitch? | CREATE TABLE table_name_97 (
location VARCHAR,
pitch VARCHAR
) | SELECT location FROM table_name_97 WHERE pitch = "old bedians" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
1128,
584,
4280,
28027,
6,
6242,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10450,
13,
8,
3525,
7499,
7137,
276,
7059,
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,
1128,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
6242,
3274,
96,
1490,
36,
8603,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the rank if the time was 5:54.57 and FB in notes? | CREATE TABLE table_name_30 (rank VARCHAR, notes VARCHAR, time VARCHAR) | SELECT rank FROM table_name_30 WHERE notes = "fb" AND time = "5:54.57" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
6254,
584,
4280,
28027,
6,
3358,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
11003,
3,
99,
8,
97,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
3358,
3274,
96,
89,
115,
121,
3430,
97,
3274,
96,
755,
10,
5062,
5,
3436,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What general classification has 4 as the stage? | CREATE TABLE table_name_96 (
general_classification VARCHAR,
stage VARCHAR
) | SELECT general_classification FROM table_name_96 WHERE stage = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
879,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
879,
13774,
65,
314,
38,
8,
1726,
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,
879,
834,
4057,
2420,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
1726,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the losing bonus when drawn was 0, and there were 101 points? | CREATE TABLE table_name_53 (losing_bonus VARCHAR, drawn VARCHAR, points VARCHAR) | SELECT losing_bonus FROM table_name_53 WHERE drawn = "0" AND points = "101" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
2298,
53,
834,
5407,
302,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5489,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5489,
834,
5407,
302,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
6796,
3274,
96,
632,
121,
3430,
979,
3274,
96,
19621,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
A bar chart showing the number of accelerators for each browser in the descending order of compatible year. | CREATE TABLE Web_client_accelerator (
id int,
name text,
Operating_system text,
Client text,
Connection text
)
CREATE TABLE browser (
id int,
name text,
market_share real
)
CREATE TABLE accelerator_compatible_browser (
accelerator_id int,
browser_id int,
compatible_since_ye... | SELECT T2.name, COUNT(T2.name) FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN Web_client_accelerator AS T3 ON T1.accelerator_id = T3.id GROUP BY T2.name ORDER BY T1.compatible_since_year DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1620,
834,
26693,
834,
6004,
15,
1171,
1016,
41,
3,
23,
26,
16,
17,
6,
564,
1499,
6,
21606,
834,
3734,
1499,
6,
6371,
1499,
6,
19466,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6,
2847,
17161,
599,
382,
4416,
4350,
61,
21680,
30202,
834,
25383,
834,
14853,
7,
49,
6157,
332,
536,
3,
15355,
3162,
3509,
6157,
332,
357,
9191,
332,
5411,
14853,
7,
49,
834,
23,
26,
3274,
332,
... |
What is the record for November 26, 1961? | CREATE TABLE table_21898 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
) | SELECT "Record" FROM table_21898 WHERE "Date" = 'November 26, 1961' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
3916,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
357,
2606,
3916,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
28635,
13597,
21018,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who has less than 3 lanes for France? | CREATE TABLE table_13901 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT "Name" FROM table_13901 WHERE "Nationality" = 'france' AND "Lane" < '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24090,
4542,
41,
96,
3845,
144,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
24090,
4542,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
89,
5219,
31,
3430,
96,
434,
152,
15,
121,
3,
2,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the names of people in ascending alphabetical order? | CREATE TABLE People (
Name VARCHAR
) | SELECT Name FROM People ORDER BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2449,
41,
5570,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
3056,
13,
151,
16,
25200,
53,
20688,
1950,
455,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5570,
21680,
2449,
4674,
11300,
272,
476,
5570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date released when the Left Bloc had 3.2%? | CREATE TABLE table_name_35 (date_released VARCHAR, left_bloc VARCHAR) | SELECT date_released FROM table_name_35 WHERE left_bloc = "3.2%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
5522,
834,
21019,
26,
584,
4280,
28027,
6,
646,
834,
4672,
75,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
1883,
116,
8,
1429... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
21019,
26,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
646,
834,
4672,
75,
3274,
96,
5787,
5406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
for patient kenneth koeller, specify the diagnosis and duration of hospital stay | 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 demographic.days_stay, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Kenneth Koeller" | [
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,
14798,
5,
1135,
7,
834,
21545,
6,
18730,
7,
5,
7,
14184,
834,
21869,
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,
549,
174... |
Who is the main contestant when the co-contestant (yaar vs. pyaar) is Shalini Chandran? | CREATE TABLE table_62685 (
"Main contestant" text,
"Co-contestant (Yaar vs. Pyaar)" text,
"Date performed" text,
"Scores by each individual judge" text,
"Total score/week" text,
"Position" text,
"Status" text
) | SELECT "Main contestant" FROM table_62685 WHERE "Co-contestant (Yaar vs. Pyaar)" = 'shalini chandran' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
3651,
755,
41,
96,
21978,
29,
4233,
288,
121,
1499,
6,
96,
3881,
18,
1018,
4377,
288,
41,
476,
9,
291,
3,
208,
7,
5,
12901,
9,
291,
61,
121,
1499,
6,
96,
308,
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,
21978,
29,
4233,
288,
121,
21680,
953,
834,
4056,
3651,
755,
549,
17444,
427,
96,
3881,
18,
1018,
4377,
288,
41,
476,
9,
291,
3,
208,
7,
5,
12901,
9,
291,
61,
121,
3274,
3,
31,
7,
1024,
6129,
3,
524,
232,
... |
on what date did ken hill achieve his win ? | CREATE TABLE table_203_240 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"win" text,
"loss" text,
"save" text,
"attendance" number,
"record" text
) | SELECT "date" FROM table_203_240 WHERE "win" = 'ken hill' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
11944,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
3757,
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,
5522,
121,
21680,
953,
834,
23330,
834,
11944,
549,
17444,
427,
96,
3757,
121,
3274,
3,
31,
2217,
9956,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of wins when the goals against is larger than 41, points is 29, and draws are larger than 5? | CREATE TABLE table_79021 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT COUNT("Wins") FROM table_79021 WHERE "Goals against" > '41' AND "Points" = '29' AND "Draws" > '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2394,
2658,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
18455,
7,
8512,
21680,
953,
834,
940,
2394,
2658,
549,
17444,
427,
96,
6221,
5405,
581,
121,
2490,
3,
31,
4853,
31,
3430,
96,
22512,
7,
121,
3274,
3,
31,
3166,
31,
3430,
96,
308,
10936,
7,
... |
Show all artist names and the number of exhibitions for each artist Show bar chart, list total number from low to high order. | CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real... | SELECT Name, COUNT(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.Artist_ID = T2.Artist_ID GROUP BY T1.Artist_ID ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
9152,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
2929,
834,
683,
32,
77,
16,
17,
6,
7526,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
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,
5570,
6,
2847,
17161,
599,
1935,
61,
21680,
4473,
6157,
332,
536,
3,
15355,
3162,
2377,
6157,
332,
357,
9191,
332,
5411,
7754,
343,
834,
4309,
3274,
332,
4416,
7754,
343,
834,
4309,
350,
4630,
6880,
272,
476,
332,
5... |
What is the Attendance for Opponent Boston Patriots and Week is greater than 14? | CREATE TABLE table_name_1 (attendance VARCHAR, opponent VARCHAR, week VARCHAR) | SELECT COUNT(attendance) FROM table_name_1 WHERE opponent = "boston patriots" AND week > 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
15116,
663,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22497,
663,
21,
4495,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
15264,
3274,
96,
115,
32,
4411,
6234,
12884,
7,
121,
3430,
471,
2490,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of poles of the year before 1992 with more than 18 starts and winnings of $125,102? | CREATE TABLE table_39032 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" real,
"Avg. Finish" real,
"Winnings" text,
"Position" text
) | SELECT MAX("Poles") FROM table_39032 WHERE "Starts" > '18' AND "Winnings" = '$125,102' AND "Year" < '1992' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2394,
2668,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
8931,
15,
7,
8512,
21680,
953,
834,
519,
2394,
2668,
549,
17444,
427,
96,
7681,
17,
7,
121,
2490,
3,
31,
2606,
31,
3430,
96,
518,
10503,
7,
121,
3274,
3,
31,
3229,
10124,
6,
14388,
31,
3430,
... |
Shirt number of 18, and a Height larger than 195 has how much weight? | CREATE TABLE table_name_63 (weight VARCHAR, shirt_no VARCHAR, height VARCHAR) | SELECT COUNT(weight) FROM table_name_63 WHERE shirt_no = 18 AND height > 195 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
9378,
584,
4280,
28027,
6,
8677,
834,
29,
32,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
16671,
381,
13,
14985,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9378,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
8677,
834,
29,
32,
3274,
507,
3430,
3902,
2490,
3,
22464,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Type for l. publilius philo vulscus? | CREATE TABLE table_7462 (
"Type" text,
"Name" text,
"Title" text,
"Political group" text,
"From" text
) | SELECT "Type" FROM table_7462 WHERE "Name" = 'l. publilius philo vulscus' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4056,
41,
96,
25160,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
8931,
155,
1950,
563,
121,
1499,
6,
96,
22674,
121,
1499,
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,
96,
25160,
121,
21680,
953,
834,
4581,
4056,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
40,
5,
21339,
29705,
3,
18118,
32,
3,
12388,
7,
1071,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the height for the center position from kansas | CREATE TABLE table_name_93 (height_in_ft VARCHAR, position VARCHAR, school_club_team_country VARCHAR) | SELECT height_in_ft FROM table_name_93 WHERE position = "center" AND school_club_team_country = "kansas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
88,
2632,
834,
77,
834,
89,
17,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
834,
17529,
584,
4280,
28027,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
3902,
834,
77,
834,
89,
17,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
1102,
3274,
96,
13866,
121,
3430,
496,
834,
13442,
834,
11650,
834,
17529,
3274,
96,
3304,
7,
9,
7,
121,
1,
-100,
-100,
-100,
-100,
-1... |
What is the English character for Lin Ming Kuan ( )? | CREATE TABLE table_64304 (
"Year" real,
"Chinese Title" text,
"English" text,
"Role" text,
"Character" text
) | SELECT "English" FROM table_64304 WHERE "Character" = 'lin ming kuan (林明寬)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
23702,
41,
96,
476,
2741,
121,
490,
6,
96,
3541,
4477,
15,
11029,
121,
1499,
6,
96,
26749,
121,
1499,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
18947,
2708,
49,
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,
26749,
121,
21680,
953,
834,
4389,
23702,
549,
17444,
427,
96,
18947,
2708,
49,
121,
3274,
3,
31,
40,
77,
3,
51,
53,
3,
2729,
152,
41,
2,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is marital status of subject name jerry deberry? | 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.marital_status FROM demographic WHERE demographic.name = "Jerry Deberry" | [
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,
1635,
9538,
834,
8547,
302,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
683,
49,
651,
374,
7418,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the order id and order details for the order more than two invoices. | CREATE TABLE orders (
order_id number,
customer_id number,
date_order_placed time,
order_details text
)
CREATE TABLE invoice_line_items (
order_item_id number,
invoice_number number,
product_id number,
product_title text,
product_quantity text,
product_price number,
derived_... | SELECT T2.order_id, T2.order_details FROM invoices AS T1 JOIN orders AS T2 ON T1.order_id = T2.order_id GROUP BY T2.order_id HAVING COUNT(*) > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5022,
41,
455,
834,
23,
26,
381,
6,
884,
834,
23,
26,
381,
6,
833,
834,
9397,
834,
4687,
26,
97,
6,
455,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9397,
834,
23,
26,
6,
332,
4416,
9397,
834,
221,
5756,
7,
21680,
10921,
7,
6157,
332,
536,
3,
15355,
3162,
5022,
6157,
332,
357,
9191,
332,
5411,
9397,
834,
23,
26,
3274,
332,
4416,
9397,
834,
23,
26,
... |
What's the home team's score at lake oval? | CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_89 WHERE venue = "lake oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
234,
372,
31,
7,
2604,
44,
6957,
17986... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
5669,
3274,
96,
16948,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the name of rooms whose base price is between 120 and 150. | CREATE TABLE rooms (
roomname VARCHAR,
baseprice INTEGER
) | SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2801,
41,
562,
4350,
584,
4280,
28027,
6,
1247,
102,
4920,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
564,
13,
2801,
3,
2544,
1247,
594,
19,
344,
5864,
11,
4261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
562,
4350,
21680,
2801,
549,
17444,
427,
1247,
102,
4920,
272,
7969,
518,
23394,
5864,
3430,
4261,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
has patient 030-34260 been diagnosed with s/p knee surgery - replacement when they came to the hospital first time. | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE cost (
costid number,
uniquepi... | SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-34260' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.ho... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2490,
3,
632,
21680,
8209,
549,
17444,
427,
8209,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
When is the release date for a chip that has a Frequency of 2300mhz? | CREATE TABLE table_name_88 (release_date VARCHAR, frequency VARCHAR) | SELECT release_date FROM table_name_88 WHERE frequency = "2300mhz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
21019,
834,
5522,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
19,
8,
1576,
833,
21,
3,
9,
6591,
24,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
7321,
3274,
96,
357,
5426,
51,
107,
172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Phoneme symbol for in Nuskhuri? | CREATE TABLE table_47096 (
"Asomtavruli" text,
"Nuskhuri" text,
"Mkhedruli" text,
"Letter name" text,
"Phoneme" text
) | SELECT "Phoneme" FROM table_47096 WHERE "Nuskhuri" = 'ⴥ' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27760,
4314,
41,
96,
188,
10348,
17,
9,
23178,
40,
23,
121,
1499,
6,
96,
12924,
7,
157,
107,
459,
121,
1499,
6,
96,
329,
157,
88,
26,
5155,
23,
121,
1499,
6,
96,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
107,
782,
526,
121,
21680,
953,
834,
27760,
4314,
549,
17444,
427,
96,
12924,
7,
157,
107,
459,
121,
3274,
3,
31,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What Catalog has a Label of geffen records / universal music special markets? | CREATE TABLE table_name_5 (
catalog VARCHAR,
label VARCHAR
) | SELECT catalog FROM table_name_5 WHERE label = "geffen records / universal music special markets" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
10173,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
22424,
65,
3,
9,
16229,
13,
873,
13602,
3187,
3,
87,
7687... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10173,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
3783,
3274,
96,
397,
13602,
3187,
3,
87,
7687,
723,
534,
3212,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the average year that sara orlesky and farhan lalji are the sideline reporters? | CREATE TABLE table_name_65 (
year INTEGER,
sideline_reporters VARCHAR
) | SELECT AVG(year) FROM table_name_65 WHERE sideline_reporters = "sara orlesky and farhan lalji" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
215,
3,
21342,
17966,
6,
596,
747,
834,
60,
1493,
277,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1348,
215,
24,
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,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
596,
747,
834,
60,
1493,
277,
3274,
96,
7,
2551,
42,
109,
5352,
11,
623,
2618,
50,
40,
354,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of all silver medals with more than 2 bronze? | CREATE TABLE table_name_82 (silver INTEGER, bronze INTEGER) | SELECT SUM(silver) FROM table_name_82 WHERE bronze > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
7,
173,
624,
3,
21342,
17966,
6,
13467,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
66,
4294,
9365,
7,
28,
72,
145,
204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
13467,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What country has david toms as the player? | CREATE TABLE table_name_43 (
country VARCHAR,
player VARCHAR
) | SELECT country FROM table_name_43 WHERE player = "david toms" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
65,
836,
6961,
12,
51,
7,
38,
8,
1959,
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,
684,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1959,
3274,
96,
26,
9,
6961,
12,
51,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many silver medals did the team that had 5 bronze and less than 16 gold have? | CREATE TABLE table_10079 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Silver") FROM table_10079 WHERE "Bronze" > '5' AND "Gold" < '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
4440,
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,
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,
134,
173,
624,
8512,
21680,
953,
834,
2915,
4440,
549,
17444,
427,
96,
22780,
29,
776,
121,
2490,
3,
31,
755,
31,
3430,
96,
23576,
121,
3,
2,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100... |
Name the number of constr with the first win at the 1978 brazilian grand prix | CREATE TABLE table_12707313_2 (
constr VARCHAR,
first_win VARCHAR
) | SELECT COUNT(constr) FROM table_12707313_2 WHERE first_win = "1978 Brazilian Grand Prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2518,
4552,
2368,
834,
357,
41,
6900,
17,
52,
584,
4280,
28027,
6,
166,
834,
3757,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
6900,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8056,
17,
52,
61,
21680,
953,
834,
2122,
2518,
4552,
2368,
834,
357,
549,
17444,
427,
166,
834,
3757,
3274,
96,
2294,
3940,
18065,
2698,
12942,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Result, when Date is 'November 22'? | CREATE TABLE table_59361 (
"Year" real,
"Date" text,
"Home Team" text,
"Result" text,
"Visiting Team" text,
"Venue" text,
"Attendance" real
) | SELECT "Result" FROM table_59361 WHERE "Date" = 'november 22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
3420,
536,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
30338,
2271,
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,
20119,
121,
21680,
953,
834,
3390,
3420,
536,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
1630,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where is the director Dariush Mehrjui from? | CREATE TABLE table_name_99 (country VARCHAR, director VARCHAR) | SELECT country FROM table_name_99 WHERE director = "dariush mehrjui" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
17529,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
2090,
1920,
23,
8489,
11093,
2047,
23,
45,
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,
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,
3264,
549,
17444,
427,
2090,
3274,
96,
26,
1665,
8489,
1091,
2047,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who had the highest rebounds of the game with a game number higher than 65 on March 28? | CREATE TABLE table_name_73 (
high_rebounds VARCHAR,
game VARCHAR,
date VARCHAR
) | SELECT high_rebounds FROM table_name_73 WHERE game > 65 AND date = "march 28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
306,
834,
23768,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
2030,
3,
237... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
23768,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
467,
2490,
7123,
3430,
833,
3274,
96,
51,
7064,
2059,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the date for faro | CREATE TABLE table_14789 (
"Date" text,
"Location" text,
"Lineup" text,
"Assist/pass" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_14789 WHERE "Location" = 'faro' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
3914,
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,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
342,
121,
21680,
953,
834,
24719,
3914,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
5544,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What years did Bobby Moore play? | CREATE TABLE table_237757_9 (nasl_years VARCHAR, player VARCHAR) | SELECT nasl_years FROM table_237757_9 WHERE player = "Bobby Moore" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4013,
3436,
834,
1298,
41,
29,
9,
7,
40,
834,
1201,
7,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
203,
410,
21395,
11103,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
29,
9,
7,
40,
834,
1201,
7,
21680,
953,
834,
2773,
4013,
3436,
834,
1298,
549,
17444,
427,
1959,
3274,
96,
279,
32,
115,
969,
11103,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose language is ptun and year of birth is less than 2065? | 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.language = "PTUN" AND demographic.dob_year < "2065" | [
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,
24925,
3274,
96,
6383,
7443,
121,
3430,
14798,
5,
26,
32,
115,
834,
1201,
3,
2,
96,
24643,
17395... |
Which season had fewer than 13 episodes and aired its season finale on February 20, 2011? | CREATE TABLE table_76092 (
"Season" real,
"Episodes" real,
"Season Premiere" text,
"Season Finale" text,
"DVD Release Date" text
) | SELECT COUNT("Season") FROM table_76092 WHERE "Episodes" < '13' AND "Season Finale" = 'february 20, 2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28212,
4508,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
427,
102,
159,
32,
1395,
121,
490,
6,
96,
134,
15,
9,
739,
6552,
15,
121,
1499,
6,
96,
134,
15,
9,
739,
6514,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
15,
9,
739,
8512,
21680,
953,
834,
28212,
4508,
549,
17444,
427,
96,
427,
102,
159,
32,
1395,
121,
3,
2,
3,
31,
2368,
31,
3430,
96,
134,
15,
9,
739,
6514,
15,
121,
3274,
3,
31,
89,
... |
Tell me the D 41 for D 43 of d 18 | CREATE TABLE table_name_63 (
d_41 VARCHAR,
d_43 VARCHAR
) | SELECT d_41 FROM table_name_63 WHERE d_43 = "d 18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
3,
26,
834,
4853,
584,
4280,
28027,
6,
3,
26,
834,
4906,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
309,
8798,
21,
309,
88... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
26,
834,
4853,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
3,
26,
834,
4906,
3274,
96,
26,
507,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the names of the courses in alphabetical order? | CREATE TABLE courses (
course_id text,
course_name text,
course_description text,
other_details text
)
CREATE TABLE people_addresses (
person_address_id number,
person_id number,
address_id number,
date_from time,
date_to time
)
CREATE TABLE addresses (
address_id number,
l... | SELECT course_name FROM courses ORDER BY course_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2996,
41,
503,
834,
23,
26,
1499,
6,
503,
834,
4350,
1499,
6,
503,
834,
221,
11830,
1499,
6,
119,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
1709... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
503,
834,
4350,
21680,
2996,
4674,
11300,
272,
476,
503,
834,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are all the distinct details of the customers? | CREATE TABLE Customers (customer_details VARCHAR) | SELECT DISTINCT customer_details FROM Customers | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
25697,
49,
834,
221,
5756,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
8,
6746,
1030,
13,
8,
722,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
884,
834,
221,
5756,
7,
21680,
16423,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many people were watching when Livingston was the runner-up? | CREATE TABLE table_56592 (
"Season" text,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text,
"Attendance" text
) | SELECT "Attendance" FROM table_56592 WHERE "Runner-up" = 'livingston' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
3390,
357,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
553,
35,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
4834,
3390,
357,
549,
17444,
427,
96,
23572,
18,
413,
121,
3274,
3,
31,
24257,
4411,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which year is the year with the most titles ? | CREATE TABLE table_201_39 (
id number,
"no" number,
"title" text,
"directed by" text,
"released" number
) | SELECT "released" FROM table_201_39 GROUP BY "released" ORDER BY COUNT("title") DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22772,
834,
3288,
41,
3,
23,
26,
381,
6,
96,
29,
32,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
22955,
57,
121,
1499,
6,
96,
21019,
26,
121,
381,
3,
61,
3,
32102,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
21019,
26,
121,
21680,
953,
834,
22772,
834,
3288,
350,
4630,
6880,
272,
476,
96,
21019,
26,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
121,
21869,
8512,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,... |
What is the s B share for the shareholder that has 2.12 percent of votes? | CREATE TABLE table_206419_3 (s_b_share INTEGER, percent_of_votes VARCHAR) | SELECT MIN(s_b_share) FROM table_206419_3 WHERE percent_of_votes = "2.12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4389,
2294,
834,
519,
41,
7,
834,
115,
834,
12484,
3,
21342,
17966,
6,
1093,
834,
858,
834,
1621,
1422,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7,
834,
115,
834,
12484,
61,
21680,
953,
834,
1755,
4389,
2294,
834,
519,
549,
17444,
427,
1093,
834,
858,
834,
1621,
1422,
3274,
96,
14489,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Rank with a Goal number smaller than 66? | CREATE TABLE table_name_29 (
rank VARCHAR,
goals INTEGER
) | SELECT rank FROM table_name_29 WHERE goals < 66 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
11003,
584,
4280,
28027,
6,
1766,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
22557,
28,
3,
9,
17916,
381,
2755,
145,
3,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1766,
3,
2,
3,
3539,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many of the patients with parent infus nutrit sub were transferred to a cancer/children hospital? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" AND procedures.short_title = "Parent infus nutrit sub" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Can you tell me the lowest Played that has the Position larger than 2, and the Draws smaller than 2, and the Goals against smaller than 18? | CREATE TABLE table_name_90 (
played INTEGER,
goals_against VARCHAR,
position VARCHAR,
draws VARCHAR
) | SELECT MIN(played) FROM table_name_90 WHERE position > 2 AND draws < 2 AND goals_against < 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
1944,
3,
21342,
17966,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
14924,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1102,
2490,
204,
3430,
14924,
3,
2,
204,
3430,
1766,
834,
9,
16720,
7,
17,
3,
2,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Last Aired has a Retitled as/Same of classic concentration? | CREATE TABLE table_46470 (
"Show" text,
"Last Aired" real,
"Previous Network" text,
"Retitled as/Same" text,
"New/Returning/Same Network" text,
"Returning" text
) | SELECT "Last Aired" FROM table_46470 WHERE "Retitled as/Same" = 'classic concentration' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
27760,
41,
96,
134,
4067,
121,
1499,
6,
96,
3612,
7,
17,
1761,
15,
26,
121,
490,
6,
96,
10572,
19117,
3426,
121,
1499,
6,
96,
1649,
10920,
38,
87,
134,
265,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3612,
7,
17,
1761,
15,
26,
121,
21680,
953,
834,
4448,
27760,
549,
17444,
427,
96,
1649,
10920,
38,
87,
134,
265,
15,
121,
3274,
3,
31,
4057,
447,
6145,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What day in february was game 53? | CREATE TABLE table_34600 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT AVG("February") FROM table_34600 WHERE "Game" = '53' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
6007,
41,
96,
23055,
121,
490,
6,
96,
31122,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
121,
31122,
8512,
21680,
953,
834,
3710,
6007,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
4867,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many championships were won for arena football? | CREATE TABLE table_24471 (
"Team" text,
"Sport" text,
"League" text,
"Established" real,
"Began in St. Louis" real,
"Venue" text,
"Championships in St. Louis" text,
"Left St. Louis" real
) | SELECT "Championships in St. Louis" FROM table_24471 WHERE "Sport" = 'Arena Football' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4177,
536,
41,
96,
18699,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
14997,
15403,
11904,
121,
490,
6,
96,
2703,
2565,
16,
472,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
1483,
12364,
2009,
7,
16,
472,
5,
5181,
121,
21680,
953,
834,
2266,
4177,
536,
549,
17444,
427,
96,
17682,
121,
3274,
3,
31,
188,
1536,
9,
10929,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many wins did South Warrnambool have that had more than 6 flags and a draw greater than 10? | CREATE TABLE table_64138 (
"Club" text,
"Active" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Percentage wins" text,
"Flags" real
) | SELECT "Wins" FROM table_64138 WHERE "Flags" > '6' AND "Draws" > '10' AND "Club" = 'south warrnambool' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
22744,
41,
96,
254,
11158,
121,
1499,
6,
96,
13035,
15,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
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,
18455,
7,
121,
21680,
953,
834,
4389,
22744,
549,
17444,
427,
96,
371,
5430,
7,
121,
2490,
3,
31,
948,
31,
3430,
96,
308,
10936,
7,
121,
2490,
3,
31,
1714,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
7,
67... |
Show the names of authors from college 'Florida' or 'Temple | CREATE TABLE acceptance (
submission_id number,
workshop_id number,
result text
)
CREATE TABLE submission (
submission_id number,
scores number,
author text,
college text
)
CREATE TABLE workshop (
workshop_id number,
date text,
venue text,
name text
) | SELECT author FROM submission WHERE college = "Florida" OR college = "Temple" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11122,
41,
8121,
834,
23,
26,
381,
6,
4786,
834,
23,
26,
381,
6,
741,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8121,
41,
8121,
834,
23,
26,
381,
6,
7586,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2291,
21680,
8121,
549,
17444,
427,
1900,
3274,
96,
11251,
4055,
9,
121,
4674,
1900,
3274,
96,
15291,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the mission that has ambassador of local position, and a resident country of democratic republic of congo? | CREATE TABLE table_name_35 (mission VARCHAR, local_position VARCHAR, resident_country VARCHAR) | SELECT mission FROM table_name_35 WHERE local_position = "ambassador" AND resident_country = "democratic republic of congo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
5451,
584,
4280,
28027,
6,
415,
834,
4718,
584,
4280,
28027,
6,
8141,
834,
17529,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2253,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2253,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
415,
834,
4718,
3274,
96,
14303,
7,
7,
7923,
121,
3430,
8141,
834,
17529,
3274,
96,
23319,
447,
20237,
13,
975,
839,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
How many draft picks are there at the linebacker position? | CREATE TABLE table_1511 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT COUNT("Pick #") FROM table_1511 WHERE "Position" = 'Linebacker' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
2596,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
12619,
434,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
345,
3142,
1713,
8512,
21680,
953,
834,
1808,
2596,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
21022,
1549,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the number of start date of each apartment booking for each year? Return a bar chart, and I want to list by the y axis in desc please. | CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
avail... | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id ORDER BY COUNT(booking_start_date) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
7,
41,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
740,
834,
23,
26,
3,
21342,
17966,
6,
3,
6789,
834,
6137,
834,
4978,
3,
28027,
599,
1808,
201,
3,
6789,
834,
5525,
1152,
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,
5038,
834,
10208,
834,
5522,
6,
2847,
17161,
599,
2567,
53,
834,
10208,
834,
5522,
61,
21680,
15970,
834,
13355,
53,
7,
6157,
332,
536,
3,
15355,
3162,
15970,
7,
6157,
332,
357,
9191,
332,
5411,
6789,
834,
23,
26,
... |
Binomial of θ(1) has what pairing? | CREATE TABLE table_name_68 (pairing VARCHAR, binomial VARCHAR) | SELECT pairing FROM table_name_68 WHERE binomial = "θ(1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
13585,
1007,
584,
4280,
28027,
6,
2701,
30019,
40,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
7617,
30019,
40,
13,
3,
2,
14296,
65,
125,
22073,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22073,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
2701,
30019,
40,
3274,
96,
2,
14296,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where did Essendon play as the away team? | CREATE TABLE table_name_9 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_9 WHERE away_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
15098,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
11722,
2029,
577,
38,
8,
550,
372,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
550,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What period(s) featured a left inside linebacker? | CREATE TABLE table_28606933_7 (period VARCHAR, position VARCHAR) | SELECT period FROM table_28606933_7 WHERE position = "Left inside linebacker" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3328,
3951,
4201,
834,
940,
41,
4267,
32,
26,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1059,
599,
7,
61,
4510,
3,
9,
646,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1059,
21680,
953,
834,
2577,
3328,
3951,
4201,
834,
940,
549,
17444,
427,
1102,
3274,
96,
2796,
89,
17,
1096,
689,
1549,
49,
121,
1,
-100,
-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. | 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 | [
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 best finish record for Sean O'hair? | CREATE TABLE table_29504351_2 (
best_finish VARCHAR,
player VARCHAR
) | SELECT best_finish FROM table_29504351_2 WHERE player = "Sean O'Hair" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
1752,
4906,
5553,
834,
357,
41,
200,
834,
25535,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
200,
1992,
1368,
21,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
200,
834,
25535,
21680,
953,
834,
3166,
1752,
4906,
5553,
834,
357,
549,
17444,
427,
1959,
3274,
96,
134,
15,
152,
411,
31,
566,
2256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the to par when the score was 71-70-72-68=281? | CREATE TABLE table_59689 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "To par" FROM table_59689 WHERE "Score" = '71-70-72-68=281' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
948,
3914,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
260,
121,
21680,
953,
834,
3390,
948,
3914,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
4450,
18,
2518,
18,
5865,
18,
3651,
2423,
2577,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Bronze has a Rank of 3, and a Silver larger than 0? | CREATE TABLE table_76448 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Bronze") FROM table_76448 WHERE "Rank" = '3' AND "Silver" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
591,
3707,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
3959,
591,
3707,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
519,
31,
3430,
96,
134,
173,
624,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-... |
What is Team Record, when Attendance is 16,151? | CREATE TABLE table_42853 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text,
"Team Record" text,
"Game Site" text
) | SELECT "Team Record" FROM table_42853 WHERE "Attendance" = '16,151' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2577,
4867,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
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,
18699,
11392,
121,
21680,
953,
834,
591,
2577,
4867,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
2938,
6,
26578,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHo has a Country of united states and a To par of –3? | CREATE TABLE table_name_39 (player VARCHAR, country VARCHAR, to_par VARCHAR) | SELECT player FROM table_name_39 WHERE country = "united states" AND to_par = "–3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
20846,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
549,
4489,
65,
3,
9,
6993,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
12,
834,
1893,
3274,
96,
104,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When st kilda was playing at home what was the away teams score? | CREATE TABLE table_51264 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_51264 WHERE "Home team" = 'st kilda' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24163,
4389,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
24163,
4389,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
7,
17,
3,
157,
173,
26,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many runs are there when the highest score is 228*? | CREATE TABLE table_28846752_4 (
runs INTEGER,
highest_score VARCHAR
) | SELECT MIN(runs) FROM table_28846752_4 WHERE highest_score = "228*" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4608,
3708,
5373,
834,
591,
41,
3154,
3,
21342,
17966,
6,
2030,
834,
7,
9022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3154,
33,
132,
116,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
4312,
7,
61,
21680,
953,
834,
2577,
4608,
3708,
5373,
834,
591,
549,
17444,
427,
2030,
834,
7,
9022,
3274,
96,
357,
2577,
1935,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many times has Sun Jin won the women's doubles? | CREATE TABLE table_74233 (
"Year Location" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
) | SELECT COUNT("Mens Doubles") FROM table_74233 WHERE "Womens Singles" = 'Sun Jin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
20879,
41,
96,
476,
2741,
10450,
121,
1499,
6,
96,
329,
35,
7,
7871,
7,
121,
1499,
6,
96,
518,
32,
904,
7,
7871,
7,
121,
1499,
6,
96,
329,
35,
7,
8405,
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,
2847,
17161,
599,
121,
329,
35,
7,
8405,
7,
8512,
21680,
953,
834,
4581,
20879,
549,
17444,
427,
96,
518,
32,
904,
7,
7871,
7,
121,
3274,
3,
31,
134,
202,
20500,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much Rank has a Tally of 0-10, and an Opposition of cork? | CREATE TABLE table_name_37 (
rank VARCHAR,
tally VARCHAR,
opposition VARCHAR
) | SELECT COUNT(rank) FROM table_name_37 WHERE tally = "0-10" AND opposition = "cork" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
11003,
584,
4280,
28027,
6,
3,
17,
1427,
584,
4280,
28027,
6,
8263,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
3,
22557,
65,
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,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
3,
17,
1427,
3274,
96,
632,
4536,
121,
3430,
8263,
3274,
96,
5715,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
count the number of patients whose admission location is transfer from hosp/extram and drug name is gentamicin? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND prescriptions.drug = "Gentamicin" | [
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,
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 quantity when the DRG was E 62 01 E 62 05? | CREATE TABLE table_name_93 (
quantity VARCHAR,
drg_number_s_ VARCHAR
) | SELECT COUNT(quantity) FROM table_name_93 WHERE drg_number_s_ = "e 62 01–e 62 05" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
8708,
584,
4280,
28027,
6,
3,
26,
52,
122,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8708,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
13158,
485,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
3,
26,
52,
122,
834,
5525,
1152,
834,
7,
834,
3274,
96,
15,
3,
4056,
7088,
104,
15,
3,
4056,
3,
3076,
121,
1,
-100,
-100,
-100... |
how many patients whose age is less than 83 and diagnoses short title is chronic pancreatitis? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "83" AND diagnoses.short_title = "Chronic pancreatitis" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Name the number of former wnba team for 2 | CREATE TABLE table_1655 (
"Pick" real,
"Player" text,
"Nationality" text,
"New WNBA Team" text,
"Former WNBA Team" text,
"College/Country/Team" text
) | SELECT COUNT("Former WNBA Team") FROM table_1655 WHERE "Pick" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3769,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
6861,
3,
21170,
4882,
2271,
121,
1499,
6,
96,
3809,
935,
3,
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,
2847,
17161,
599,
121,
3809,
935,
3,
21170,
4882,
2271,
8512,
21680,
953,
834,
2938,
3769,
549,
17444,
427,
96,
345,
3142,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Draw a bar chart for what is minimum age for different job title?, and could you display by the X-axis from high to low? | CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
) | SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY job DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
41,
564,
3,
4331,
4059,
599,
1755,
201,
1246,
3,
21342,
17966,
6,
690,
3,
3463,
4,
382,
6,
7285,
3,
3463,
4,
382,
6,
613,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
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,
613,
6,
3,
17684,
599,
545,
61,
21680,
5780,
350,
4630,
6880,
272,
476,
613,
4674,
11300,
272,
476,
613,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many touchdowns were there when Heston was in play? | CREATE TABLE table_19280 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT MAX("Touchdowns") FROM table_19280 WHERE "Player" = 'Heston' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
17518,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
7681,
449,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,
979... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
2295,
3035,
7,
8512,
21680,
953,
834,
2294,
17518,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
3845,
4411,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What party did incumbent Brooks Hays belong to? | CREATE TABLE table_1342249_5 (
party VARCHAR,
incumbent VARCHAR
) | SELECT party FROM table_1342249_5 WHERE incumbent = "Brooks Hays" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2884,
3647,
834,
755,
41,
1088,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1088,
410,
28406,
9083,
7,
8567,
7,
13000,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
2884,
3647,
834,
755,
549,
17444,
427,
28406,
3274,
96,
22780,
1825,
7,
8567,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the attendance when oadby town is away? | CREATE TABLE table_10768 (
"Tie no" real,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Attendance" FROM table_10768 WHERE "Away team" = 'oadby town' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
3651,
41,
96,
382,
23,
15,
150,
121,
490,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
17,
324,
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,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
18057,
3651,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
32,
9,
26,
969,
1511,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which 1st Party has an Election of 1849 by-election? | CREATE TABLE table_name_42 (
election VARCHAR
) | SELECT 1 AS st_party FROM table_name_42 WHERE election = "1849 by-election" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
4356,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
209,
7,
17,
3450,
65,
46,
19488,
13,
507,
3647,
57,
18,
15,
12252,
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,
209,
6157,
3,
7,
17,
834,
8071,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
4356,
3274,
96,
2606,
3647,
57,
18,
15,
12252,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is death status of subject id 2560? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT demographic.expire_flag FROM demographic WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
994,
2388,
15,
834,
89,
5430,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many blockings occured in the game with 198 rebounds? | CREATE TABLE table_73476 (
"Player" text,
"Games Played" real,
"Minutes" real,
"Field Goals" real,
"Three Pointers" real,
"Free Throws" real,
"Rebounds" real,
"Assists" real,
"Blocks" real,
"Steals" real,
"Points" real
) | SELECT MAX("Blocks") FROM table_73476 WHERE "Rebounds" = '198' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
591,
3959,
41,
96,
15800,
49,
121,
1499,
6,
96,
23055,
7,
2911,
15,
26,
121,
490,
6,
96,
12858,
2810,
7,
121,
490,
6,
96,
3183,
8804,
17916,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
279,
4029,
7,
8512,
21680,
953,
834,
4552,
591,
3959,
549,
17444,
427,
96,
1649,
6115,
7,
121,
3274,
3,
31,
24151,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.