NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
against which country did the england women 's rfu not rate at an overall percentage of at least 70 % ? | CREATE TABLE table_203_506 (
id number,
"opponent" text,
"played" number,
"won" number,
"lost" number,
"drawn" number,
"% won overall" text
) | SELECT "opponent" FROM table_203_506 WHERE "% won overall" < 70 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1752,
948,
41,
3,
23,
26,
381,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
4895,
15,
26,
121,
381,
6,
96,
210,
106,
121,
381,
6,
96,
2298,
17,
121,
381,
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,
32,
102,
9977,
121,
21680,
953,
834,
23330,
834,
1752,
948,
549,
17444,
427,
96,
1454,
751,
1879,
121,
3,
2,
2861,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who competed on may 6, 2006? | CREATE TABLE table_75463 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Competition" text
) | SELECT "Opponents" FROM table_75463 WHERE "Date" = 'may 6, 2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
4448,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
5890,
4995,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
7,
121,
21680,
953,
834,
3072,
4448,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
8580,
3581,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
I want the score for 30 april 1977 | CREATE TABLE table_name_72 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_72 WHERE date = "30 april 1977" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
2604,
21,
604,
3,
9,
2246,
40,
16433,
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,
2604,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
833,
3274,
96,
1458,
3,
9,
2246,
40,
16433,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the preliminary average for Miss Mississippi? | CREATE TABLE table_20675 (
"State" text,
"Preliminary Average" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Semifinal Average" text
) | SELECT "Preliminary Average" FROM table_20675 WHERE "State" = 'Mississippi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24643,
3072,
41,
96,
134,
4748,
121,
1499,
6,
96,
10572,
4941,
77,
1208,
23836,
121,
1499,
6,
96,
17555,
4576,
121,
1499,
6,
96,
134,
210,
603,
7628,
121,
1499,
6,
96,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10572,
4941,
77,
1208,
23836,
121,
21680,
953,
834,
24643,
3072,
549,
17444,
427,
96,
134,
4748,
121,
3274,
3,
31,
329,
159,
7,
159,
7,
23,
1572,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the names of the swimmers who have no record. | CREATE TABLE record (
name VARCHAR,
id VARCHAR,
swimmer_id VARCHAR
)
CREATE TABLE swimmer (
name VARCHAR,
id VARCHAR,
swimmer_id VARCHAR
) | SELECT name FROM swimmer WHERE NOT id IN (SELECT swimmer_id FROM record) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
564,
584,
4280,
28027,
6,
3,
23,
26,
584,
4280,
28027,
6,
27424,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
27424,
549,
17444,
427,
4486,
3,
23,
26,
3388,
41,
23143,
14196,
27424,
834,
23,
26,
21680,
1368,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many capital with population census 2009 being 284657 | CREATE TABLE table_1404456_1 (
capital VARCHAR,
population_census_2009 VARCHAR
) | SELECT COUNT(capital) FROM table_1404456_1 WHERE population_census_2009 = 284657 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
3628,
4834,
834,
536,
41,
1784,
584,
4280,
28027,
6,
2074,
834,
75,
35,
7,
302,
834,
16660,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
1784,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4010,
9538,
61,
21680,
953,
834,
22012,
3628,
4834,
834,
536,
549,
17444,
427,
2074,
834,
75,
35,
7,
302,
834,
16660,
3274,
2059,
4448,
3436,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which game was played on march 2? | CREATE TABLE table_76264 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT AVG("Game") FROM table_76264 WHERE "Date" = 'march 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
26755,
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,
71,
17217,
599,
121,
23055,
8512,
21680,
953,
834,
3959,
26755,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
51,
7064,
204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Specify the item id along with the lab test value for patient ID 3343 | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT lab.itemid, lab.value_unit FROM lab WHERE lab.subject_id = "3343" | [
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,
7690,
5,
155,
15,
6983,
6,
7690,
5,
12097,
834,
15129,
21680,
7690,
549,
17444,
427,
7690,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4201,
4906,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients whose drug code is benz1i? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "BENZ1I" | [
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... |
how many seasons did sd ponferradina b come in first place total ? | CREATE TABLE table_204_35 (
id number,
"season" text,
"tier" number,
"division" text,
"place" text
) | SELECT COUNT("season") FROM table_204_35 WHERE "place" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2469,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
3276,
121,
381,
6,
96,
26,
23,
6610,
121,
1499,
6,
96,
4687,
121,
1499,
3,
61,
3,
32102,
32103,
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,
2847,
17161,
599,
121,
9476,
8512,
21680,
953,
834,
26363,
834,
2469,
549,
17444,
427,
96,
4687,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many positions have goals of fewer than 40 and more than 38 played? | CREATE TABLE table_name_62 (position VARCHAR, goals_for VARCHAR, played VARCHAR) | SELECT COUNT(position) FROM table_name_62 WHERE goals_for < 40 AND played > 38 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
4718,
584,
4280,
28027,
6,
1766,
834,
1161,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4655,
43,
1766,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4718,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1766,
834,
1161,
3,
2,
1283,
3430,
1944,
2490,
6654,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the report for the race of Argentine Grand Prix? | CREATE TABLE table_57590 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) | SELECT "Report" FROM table_57590 WHERE "Race" = 'argentine grand prix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3072,
2394,
41,
96,
448,
3302,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
371,
9,
7,
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,
96,
1649,
1493,
121,
21680,
953,
834,
755,
3072,
2394,
549,
17444,
427,
96,
448,
3302,
121,
3274,
3,
31,
9917,
630,
1907,
3407,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the home for the league 3rd liga (iii)? | CREATE TABLE table_60696 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
) | SELECT "Home" FROM table_60696 WHERE "League" = '3rd liga (iii)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3951,
948,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
18699,
7,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
121,
21680,
953,
834,
3328,
3951,
948,
549,
17444,
427,
96,
2796,
9,
5398,
121,
3274,
3,
31,
519,
52,
26,
3,
17140,
41,
23,
23,
23,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the country/region for the releases from Beat Records? | CREATE TABLE table_6506 (
"Country/Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue number" text
) | SELECT "Country/Region" FROM table_6506 WHERE "Label" = 'beat records' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15348,
948,
41,
96,
10628,
651,
87,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
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,
10628,
651,
87,
17748,
23,
106,
121,
21680,
953,
834,
15348,
948,
549,
17444,
427,
96,
434,
10333,
121,
3274,
3,
31,
12745,
3187,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many years have a longitude measure of 20.0e? | CREATE TABLE table_16799784_9 (
year_named VARCHAR,
longitude VARCHAR
) | SELECT COUNT(year_named) FROM table_16799784_9 WHERE longitude = "20.0E" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4440,
21441,
591,
834,
1298,
41,
215,
834,
4350,
26,
584,
4280,
28027,
6,
307,
20341,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
43,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
834,
4350,
26,
61,
21680,
953,
834,
2938,
4440,
21441,
591,
834,
1298,
549,
17444,
427,
307,
20341,
3274,
96,
357,
11739,
427,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those products with a price between 60 and 120, draw a bar chart about the distribution of name and manufacturer , display by the X from low to high. | 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 Name, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY 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,
5570,
6,
15248,
21680,
7554,
549,
17444,
427,
5312,
272,
7969,
518,
23394,
1640,
3430,
5864,
4674,
11300,
272,
476,
5570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the attendance when Fitzroy played as the away team? | CREATE TABLE table_name_76 (
crowd VARCHAR,
away_team VARCHAR
) | SELECT COUNT(crowd) FROM table_name_76 WHERE away_team = "fitzroy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
4374,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
116,
9783,
172,
8170,
1944,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
550,
834,
11650,
3274,
96,
89,
5615,
8170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On the date of April 22, which city was a visitor? | CREATE TABLE table_name_5 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_5 WHERE date = "april 22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
3466,
155,
127,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
8,
833,
13,
1186,
12889,
84,
690,
47,
3,
9,
7019,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7019,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
1630,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
provide the number of patients whose death status is 0 and primary disease is aortic insufficiency/re-do sternotomy; aortic valve replacement. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.diagnosis = "AORTIC INSUFFICIENCY\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT " | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
632,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
18... |
What is the earliest season where Aisha Jefcoate was the runner-up? | CREATE TABLE table_name_13 (season INTEGER, runner_up VARCHAR) | SELECT MIN(season) FROM table_name_13 WHERE runner_up = "aisha jefcoate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
9476,
3,
21342,
17966,
6,
3,
10806,
834,
413,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
774,
213,
71,
1273,
9,
1022,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9476,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
9,
1273,
9,
528,
89,
18954,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where where the bbc three weekly ranking for episode no. 5? | CREATE TABLE table_24399615_3 (
bbc_three_weekly_ranking VARCHAR,
episode_no VARCHAR
) | SELECT bbc_three_weekly_ranking FROM table_24399615_3 WHERE episode_no = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3288,
4314,
1808,
834,
519,
41,
3,
115,
115,
75,
834,
21182,
834,
8041,
120,
834,
6254,
53,
584,
4280,
28027,
6,
5640,
834,
29,
32,
584,
4280,
28027,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
115,
115,
75,
834,
21182,
834,
8041,
120,
834,
6254,
53,
21680,
953,
834,
2266,
3288,
4314,
1808,
834,
519,
549,
17444,
427,
5640,
834,
29,
32,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which # of Episodes has a Mole of craig slike? | CREATE TABLE table_name_55 (_number_of_episodes INTEGER, mole VARCHAR) | SELECT MIN(_number_of_episodes) FROM table_name_55 WHERE mole = "craig slike" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
834,
5525,
1152,
834,
858,
834,
15,
102,
159,
32,
1395,
3,
21342,
17966,
6,
2288,
109,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1713,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
834,
5525,
1152,
834,
858,
834,
15,
102,
159,
32,
1395,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
2288,
109,
3274,
96,
2935,
23,
122,
3,
7,
2376,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
how many points (total 500) with pos being 11 | CREATE TABLE table_14460937_2 (points__total_500_ VARCHAR, pos VARCHAR) | SELECT COUNT(points__total_500_) FROM table_14460937_2 WHERE pos = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4448,
4198,
4118,
834,
357,
41,
2700,
7,
834,
834,
235,
1947,
834,
2560,
834,
584,
4280,
28027,
6,
3,
2748,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
834,
834,
235,
1947,
834,
2560,
834,
61,
21680,
953,
834,
2534,
4448,
4198,
4118,
834,
357,
549,
17444,
427,
3,
2748,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the county of precints 515? | CREATE TABLE table_74 (
"County" text,
"Precincts" real,
"Lunsford" real,
"% Lunsford" text,
"McConnell" real,
"% McConnell" text,
"Total" text
) | SELECT "County" FROM table_74 WHERE "Precincts" = '515' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
41,
96,
10628,
63,
121,
1499,
6,
96,
345,
7886,
29,
75,
17,
7,
121,
490,
6,
96,
434,
202,
7,
2590,
121,
490,
6,
96,
1454,
2318,
29,
7,
2590,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
63,
121,
21680,
953,
834,
4581,
549,
17444,
427,
96,
345,
7886,
29,
75,
17,
7,
121,
3274,
3,
31,
755,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what date was giulia casoni the partner? | CREATE TABLE table_name_48 (date VARCHAR, partner VARCHAR) | SELECT date FROM table_name_48 WHERE partner = "giulia casoni" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
5522,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
833,
47,
3,
24930,
40,
23,
9,
212,
739,
23,
8,
2397,
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,
833,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
2397,
3274,
96,
24930,
40,
23,
9,
212,
739,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many routes go from the United States to Canada? | CREATE TABLE airlines (
alid number,
name text,
iata text,
icao text,
callsign text,
country text,
active text
)
CREATE TABLE routes (
rid number,
dst_apid number,
dst_ap text,
src_apid number,
src_ap text,
alid number,
airline text,
codeshare text
)
CREATE ... | SELECT COUNT(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
19184,
41,
3,
9,
8130,
381,
6,
564,
1499,
6,
3,
17221,
1499,
6,
3,
2617,
32,
1499,
6,
580,
6732,
1499,
6,
684,
1499,
6,
1676,
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,
2847,
17161,
599,
1935,
61,
21680,
9729,
549,
17444,
427,
3,
26,
7,
17,
834,
9,
12417,
3388,
41,
23143,
14196,
3,
9,
12417,
21680,
3761,
7,
549,
17444,
427,
684,
3274,
3,
31,
28811,
31,
61,
3430,
3,
7,
52,
75,
... |
Show different types of ships and the average tonnage of ships of each type in a bar chart, could you list y axis in asc order? | CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
) | SELECT Type, AVG(Tonnage) FROM ship GROUP BY Type ORDER BY AVG(Tonnage) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2253,
41,
8960,
834,
4309,
16,
17,
6,
15508,
834,
4309,
16,
17,
6,
3636,
1499,
6,
17113,
15,
26,
834,
476,
2741,
16,
17,
6,
10450,
1499,
6,
9913,
834,
157,
2264,
7,
16,
17,
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,
6632,
6,
71,
17217,
599,
382,
106,
9761,
61,
21680,
4383,
350,
4630,
6880,
272,
476,
6632,
4674,
11300,
272,
476,
71,
17217,
599,
382,
106,
9761,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total number of Wins when 98 is the rank and the scoring average is more than 73.52? | CREATE TABLE table_name_54 (wins VARCHAR, rank VARCHAR, scoring_average VARCHAR) | SELECT COUNT(wins) FROM table_name_54 WHERE rank = "98" AND scoring_average > 73.52 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
3757,
7,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
10389,
834,
28951,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
11003,
3274,
96,
3916,
121,
3430,
10389,
834,
28951,
2490,
3,
4552,
5,
5373,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the lowest edition for winner of arsenal and third of celtic | CREATE TABLE table_name_13 (
edition INTEGER,
winner VARCHAR,
third VARCHAR
) | SELECT MIN(edition) FROM table_name_13 WHERE winner = "arsenal" AND third = "celtic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
4182,
3,
21342,
17966,
6,
4668,
584,
4280,
28027,
6,
1025,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
7402,
4182,
21,
4668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
15,
10569,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
4668,
3274,
96,
291,
7,
35,
138,
121,
3430,
1025,
3274,
96,
7125,
1225,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tell me the type and time of admission for patient ida cook. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT demographic.admission_type, demographic.admittime FROM demographic WHERE demographic.name = "Ida Cook" | [
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,
14798,
5,
9,
26,
5451,
834,
6137,
6,
14798,
5,
20466,
17,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
196,
26,
9,
6176,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Result for Couple Kelly & Alec when they have a Score of 22 (8, 7, 7)? | CREATE TABLE table_32611 (
"Couple" text,
"Score" text,
"Dance" text,
"Music" text,
"Result" text
) | SELECT "Result" FROM table_32611 WHERE "Couple" = 'kelly & alec' AND "Score" = '22 (8, 7, 7)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2688,
2596,
41,
96,
3881,
413,
109,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
308,
663,
121,
1499,
6,
96,
29035,
121,
1499,
6,
96,
20119,
121,
1499,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
519,
2688,
2596,
549,
17444,
427,
96,
3881,
413,
109,
121,
3274,
3,
31,
5768,
120,
3,
184,
1240,
75,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
2884,
13642,
6,
7973,
3,
12703,
31... |
What is the zip code of the address where the teacher with first name 'Lyla' lives? | CREATE TABLE Teachers (
address_id VARCHAR,
first_name VARCHAR
)
CREATE TABLE Addresses (
zip_postcode VARCHAR,
address_id VARCHAR
) | SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = "Lyla" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18991,
41,
1115,
834,
23,
26,
584,
4280,
28027,
6,
166,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
13246,
15,
7,
41,
10658,
834,
5950,
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,
332,
5411,
13453,
834,
5950,
4978,
21680,
13246,
15,
7,
6157,
332,
536,
3,
15355,
3162,
18991,
6157,
332,
357,
9191,
332,
5411,
9,
26,
12039,
834,
23,
26,
3274,
332,
4416,
9,
26,
12039,
834,
23,
26,
549,
17444,
42... |
Find the names of all the clubs that have at least a member from the city with city code "BAL". | CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR) | SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = "BAL" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
834,
858,
834,
13442,
41,
13442,
23,
26,
584,
4280,
28027,
6,
21341,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886,
41,
13442,
4350,
584... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
3,
17,
5411,
13442,
4350,
21680,
1886,
6157,
3,
17,
536,
3,
15355,
3162,
1144,
834,
858,
834,
13442,
6157,
3,
17,
357,
9191,
3,
17,
5411,
13442,
23,
26,
3274,
3,
17,
4416,
13442,
23,
26,
3... |
What was the attendance for the game on August 16? | CREATE TABLE table_name_74 (
attendance INTEGER,
date VARCHAR
) | SELECT SUM(attendance) FROM table_name_74 WHERE date = "august 16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
11364,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
21,
8,
467,
30,
1660,
898,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
833,
3274,
96,
402,
17198,
898,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose insurance is private and admission year is less than 2173? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.admityear < "2173" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
7855,
208,
342,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
2,
96,
2658,
4552,
121... |
Which Games have a Drawn smaller than 1, and a Lost smaller than 1? | CREATE TABLE table_38247 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
) | SELECT "Games" FROM table_38247 WHERE "Drawn" < '1' AND "Lost" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
357,
4177,
41,
96,
23055,
7,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
22512,
7,
1750,
121,
1499,
6,
96,
22512,
7,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
7,
121,
21680,
953,
834,
3747,
357,
4177,
549,
17444,
427,
96,
308,
10936,
29,
121,
3,
2,
3,
31,
536,
31,
3430,
96,
434,
3481,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the number of patients whose religion is jehovah's witness and lab test name is lactate? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "JEHOVAH'S WITNESS" AND lab.label = "Lactate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Show the number of documents for different budget type code in a bar chart, show by the Y-axis in desc. | CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Stateme... | SELECT T1.Budget_Type_Code, COUNT(T1.Budget_Type_Code) FROM Documents_with_Expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_Code = T2.Budget_Type_Code GROUP BY T1.Budget_Type_Code ORDER BY COUNT(T1.Budget_Type_Code) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
41,
11167,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
11167,
834,
25160,
834,
23954,
584,
4280,
28027,
599,
25502,
201,
11167,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
279,
13164,
17,
834,
25160,
834,
22737,
6,
2847,
17161,
599,
382,
5411,
279,
13164,
17,
834,
25160,
834,
22737,
61,
21680,
11167,
7,
834,
4065,
834,
12882,
5167,
7,
6157,
332,
536,
3,
15355,
3162,
419,
89... |
What percentage did McCain get in Hamilton county? | CREATE TABLE table_20799905_1 (
mccain_percentage VARCHAR,
county VARCHAR
) | SELECT mccain_percentage FROM table_20799905_1 WHERE county = "HAMILTON" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
19446,
3076,
834,
536,
41,
3,
51,
12464,
77,
834,
883,
3728,
545,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5294,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
51,
12464,
77,
834,
883,
3728,
545,
21680,
953,
834,
26426,
19446,
3076,
834,
536,
549,
17444,
427,
5435,
3274,
96,
28771,
3502,
16270,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose diagnoses short title is crbl emblsm w infrct and drug type is main? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Crbl emblsm w infrct" AND prescriptions.drug_type = "MAIN" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
List the name and cost of all procedures sorted by the cost from the highest to the lowest. | CREATE TABLE procedures (
code number,
name text,
cost number
)
CREATE TABLE on_call (
nurse number,
blockfloor number,
blockcode number,
oncallstart time,
oncallend time
)
CREATE TABLE block (
blockfloor number,
blockcode number
)
CREATE TABLE trained_in (
physician numbe... | SELECT name, cost FROM procedures ORDER BY cost DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1081,
381,
6,
564,
1499,
6,
583,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
30,
834,
16482,
41,
10444,
381,
6,
2463,
20924,
381,
6,
2463,
4978,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
583,
21680,
4293,
4674,
11300,
272,
476,
583,
309,
25067,
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 was the name for the locomotive with a type of 2-8-0 and a number of 20? | CREATE TABLE table_name_23 (
name VARCHAR,
type VARCHAR,
number VARCHAR
) | SELECT name FROM table_name_23 WHERE type = "2-8-0" AND number = 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
564,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
564,
21,
8,
31301,
28,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
686,
3274,
96,
357,
6039,
18,
632,
121,
3430,
381,
3274,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the status of Prenocephale? | CREATE TABLE table_name_96 (status VARCHAR, name VARCHAR) | SELECT status FROM table_name_96 WHERE name = "prenocephale" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
8547,
302,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2637,
13,
1266,
14880,
15,
21367,
15,
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,
2637,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
564,
3274,
96,
2026,
14880,
15,
21367,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
WHAT IS THE TOTAL WITH A NANQUAN OF 9.72, RANK BIGGER THAN 3, NANGUN SMALLER THAN 9.5? | CREATE TABLE table_12237 (
"Rank" real,
"Athlete" text,
"Nanquan" real,
"Nangun" real,
"Total" real
) | SELECT MIN("Total") FROM table_12237 WHERE "Nanquan" = '9.72' AND "Rank" > '3' AND "Nangun" < '9.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20889,
4118,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
567,
152,
4960,
29,
121,
490,
6,
96,
567,
1468,
202,
121,
490,
6,
96,
3696,
1947,
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,
3,
17684,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
20889,
4118,
549,
17444,
427,
96,
567,
152,
4960,
29,
121,
3274,
3,
31,
8797,
5865,
31,
3430,
96,
22557,
121,
2490,
3,
31,
519,
31,
3430,
96,
567,
1468,
202,
... |
How many drivers on the grid are called Vitor Meira? | CREATE TABLE table_17256857_1 (
grid VARCHAR,
driver VARCHAR
) | SELECT COUNT(grid) FROM table_17256857_1 WHERE driver = "Vitor Meira" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1828,
3651,
3436,
834,
536,
41,
8634,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3863,
30,
8,
8634,
33,
718,
11491,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
3496,
26,
61,
21680,
953,
834,
2517,
1828,
3651,
3436,
834,
536,
549,
17444,
427,
2535,
3274,
96,
553,
155,
127,
283,
15809,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the date of the week 9 game? | CREATE TABLE table_name_76 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_76 WHERE week = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
5522,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
471,
668,
467,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
471,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Opponent in the final had a match with a Score in the final of 7 5, 6 2? | CREATE TABLE table_name_31 (
opponent_in_the_final VARCHAR,
score_in_the_final VARCHAR
) | SELECT opponent_in_the_final FROM table_name_31 WHERE score_in_the_final = "7–5, 6–2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
2604,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15264,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
2604,
834,
77,
834,
532,
834,
12406,
3274,
96,
940,
104,
11116,
431,
104,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What title has a producer of MAQ and Anna as a role? | CREATE TABLE table_name_18 (title VARCHAR, producer VARCHAR, role VARCHAR) | SELECT title FROM table_name_18 WHERE producer = "maq" AND role = "anna" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
21869,
584,
4280,
28027,
6,
8211,
584,
4280,
28027,
6,
1075,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2233,
65,
3,
9,
8211,
13,
283,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
8211,
3274,
96,
51,
9,
1824,
121,
3430,
1075,
3274,
96,
10878,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients are admitted under emergency room admit and diagnosed with icd9 code 78559? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND diagnoses.icd9_code = "78559" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
what is the number of goals scored in the algarve cup on march 5 , 2002 ? | CREATE TABLE table_204_346 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"result" text,
"competition" text,
"scored" number
) | SELECT "scored" FROM table_204_346 WHERE "date" = '5 march 2002' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
4448,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
60,
7,
83,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3523,
1271,
121,
21680,
953,
834,
26363,
834,
519,
4448,
549,
17444,
427,
96,
5522,
121,
3274,
3,
31,
755,
10556,
4407,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the match held that lasted 3:24? | CREATE TABLE table_name_90 (
location VARCHAR,
time VARCHAR
) | SELECT location FROM table_name_90 WHERE time = "3:24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
1128,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
1588,
1213,
24,
3,
19054,
220,
10,
2266,
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,
1128,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
97,
3274,
96,
519,
10,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Label that has an Album of so red the rose? | CREATE TABLE table_name_61 (
label VARCHAR,
album VARCHAR
) | SELECT label FROM table_name_61 WHERE album = "so red the rose" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
3783,
584,
4280,
28027,
6,
2306,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
16229,
24,
65,
46,
16135,
13,
78,
1131,
8,
4659,
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,
3783,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
2306,
3274,
96,
7,
32,
1131,
8,
4659,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the home team at Brunswick Street Oval? | CREATE TABLE table_name_65 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team FROM table_name_65 WHERE venue = "brunswick street oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
44,
29980,
1887,
411,
2165,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
5669,
3274,
96,
9052,
29,
7,
5981,
2815,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When was the earliest year when the attendance was 77,254? | CREATE TABLE table_79163 (
"Year" real,
"Date" text,
"Home Team" text,
"Result" text,
"Visiting Team" text,
"Venue" text,
"Attendance" real
) | SELECT MIN("Year") FROM table_79163 WHERE "Attendance" = '77,254' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
2938,
519,
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,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
4440,
2938,
519,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
4013,
6,
1828,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the total number of playoffs where regular season is 6th, southwest | CREATE TABLE table_1046454_1 (
playoffs VARCHAR,
regular_season VARCHAR
) | SELECT COUNT(playoffs) FROM table_1046454_1 WHERE regular_season = "6th, Southwest" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
4389,
5062,
834,
536,
41,
15289,
7,
584,
4280,
28027,
6,
1646,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
792,
381,
13,
15289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4895,
1647,
7,
61,
21680,
953,
834,
15442,
4389,
5062,
834,
536,
549,
17444,
427,
1646,
834,
9476,
3274,
96,
948,
189,
6,
21423,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
uncontrolled hypertension ( sbp > 180 or dbp > 110 ) at time of enrollment. | CREATE TABLE table_dev_60 (
"id" int,
"systolic_blood_pressure_sbp" int,
"body_weight" float,
"renal_disease" bool,
"allergy_to_aspirin" bool,
"creatinine_clearance_cl" float,
"allergy_to_clopidogrel" bool,
"allergy_to_heparin" bool,
"platelet_count" float,
"thrombocytopenia" flo... | SELECT * FROM table_dev_60 WHERE hypertension = 1 OR (systolic_blood_pressure_sbp > 180 OR diastolic_blood_pressure_dbp > 110) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
3328,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,
17,
6,
96,
6965,
834,
9378,
121,
3,
12660... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9776,
834,
3328,
549,
17444,
427,
6676,
13177,
3274,
209,
4674,
41,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
2490,
8003,
4674,
1227,
9,
7,
235,
2176,
834,
27798,
834,
2... |
How many points when Bill Benson was the winner? | CREATE TABLE table_name_95 (
points VARCHAR,
winner VARCHAR
) | SELECT points FROM table_name_95 WHERE winner = "bill benson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
979,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
116,
3259,
2798,
739,
47,
8,
4668,
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,
979,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
4668,
3274,
96,
3727,
40,
3,
28162,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Replaced By, when Date of Vacancy is "23 February 2009"? | CREATE TABLE table_name_68 (replaced_by VARCHAR, date_of_vacancy VARCHAR) | SELECT replaced_by FROM table_name_68 WHERE date_of_vacancy = "23 february 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
60,
4687,
26,
834,
969,
584,
4280,
28027,
6,
833,
834,
858,
834,
29685,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
28035,
26,
938,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5821,
834,
969,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
833,
834,
858,
834,
29685,
3274,
96,
2773,
29976,
76,
1208,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which was the team 1 that had a team 2 which was avigliano (basilicata)? | CREATE TABLE table_53758 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Team 1" FROM table_53758 WHERE "Team 2" = 'avigliano (basilicata)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4118,
3449,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
209,
121,
21680,
953,
834,
755,
4118,
3449,
549,
17444,
427,
96,
18699,
204,
121,
3274,
3,
31,
9,
10314,
9928,
32,
41,
115,
9,
10578,
2138,
9,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the george bush for ronald reagan of 43% | CREATE TABLE table_name_59 (
george_h_w_bush VARCHAR,
ronald_reagan VARCHAR
) | SELECT george_h_w_bush FROM table_name_59 WHERE ronald_reagan = "43%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
873,
1677,
15,
834,
107,
834,
210,
834,
3465,
107,
584,
4280,
28027,
6,
3,
52,
9533,
26,
834,
864,
2565,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
873,
1677,
15,
834,
107,
834,
210,
834,
3465,
107,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
3,
52,
9533,
26,
834,
864,
2565,
3274,
96,
591,
5170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total number of laps during the race that had a time of +9.682? | CREATE TABLE table_name_6 (laps VARCHAR, time_retired VARCHAR) | SELECT COUNT(laps) FROM table_name_6 WHERE time_retired = "+9.682" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
8478,
7,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
14941,
7,
383,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
1220,
8797,
3651,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the venue for record of 2-7 | CREATE TABLE table_31822 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Attendance" real,
"Record" text
) | SELECT "Venue" FROM table_31822 WHERE "Record" = '2-7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2606,
2884,
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,
553,
35,
76,
15,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
519,
2606,
2884,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
357,
6832,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose diagnoses long title is postinflammatory pulmonary fibrosis and lab test category is blood gas? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Postinflammatory pulmonary fibrosis" AND lab."CATEGORY" = "Blood Gas" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Which venue has a Date of 28 july 2007? | CREATE TABLE table_name_68 (
venue VARCHAR,
date VARCHAR
) | SELECT venue FROM table_name_68 WHERE date = "28 july 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5669,
65,
3,
9,
7678,
13,
2059,
3,
2047,
120,
4101,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
833,
3274,
96,
2577,
3,
2047,
120,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is drug name and drug route of drug code asa325? | 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 prescriptions.drug, prescriptions.route FROM prescriptions WHERE prescriptions.formulary_drug_cd = "ASA325" | [
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,
7744,
7,
5,
26,
13534,
6,
7744,
7,
5,
20300,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
20128,
63,
834,
26,
13534,
834,
75,
26,
3274,
96,
21245,
2668,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
systolic blood pressure between 90 and 160 mm hg | CREATE TABLE table_train_273 (
"id" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"body_weight" float,
"hba1c" float,
"insulin_requirement" float,
"body_mass_index_bmi" float,
"NOUSE" float
) | SELECT * FROM table_train_273 WHERE systolic_blood_pressure_sbp >= 90 AND systolic_blood_pressure_sbp <= 160 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
2555,
519,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,
17,
6,
96,
6015,
32,
14063,
77,
834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
2555,
519,
549,
17444,
427,
3,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
2490,
2423,
2777,
3430,
3,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115... |
What is the name of the diety for the river of sone? | CREATE TABLE table_name_16 (name_of_deity VARCHAR, name_of_the_river VARCHAR) | SELECT name_of_deity FROM table_name_16 WHERE name_of_the_river = "sone" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
4350,
834,
858,
834,
221,
485,
584,
4280,
28027,
6,
564,
834,
858,
834,
532,
834,
5927,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
834,
858,
834,
221,
485,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
564,
834,
858,
834,
532,
834,
5927,
49,
3274,
96,
7,
782,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, show me about the distribution of name and the sum of price , and group by attribute name in a bar chart. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T2.Name, 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,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
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 shows for House 1950 when the General 1950 is general 1986? | CREATE TABLE table_44776 (
"1950" real,
"General 1950" text,
"Senate 1950" text,
"House 1950" text,
"Governors 1950" text
) | SELECT "House 1950" FROM table_44776 WHERE "General 1950" = 'general 1986' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4177,
3959,
41,
96,
2294,
1752,
121,
490,
6,
96,
20857,
10247,
121,
1499,
6,
96,
134,
35,
342,
10247,
121,
1499,
6,
96,
4489,
1074,
10247,
121,
1499,
6,
96,
27304,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4489,
1074,
10247,
121,
21680,
953,
834,
591,
4177,
3959,
549,
17444,
427,
96,
20857,
10247,
121,
3274,
3,
31,
27369,
12698,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the weapons used by guardians for the direction East? | CREATE TABLE table_100518_1 (
weapon VARCHAR,
direction VARCHAR
) | SELECT weapon FROM table_100518_1 WHERE direction = "East" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
755,
2606,
834,
536,
41,
10931,
584,
4280,
28027,
6,
2212,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
7749,
261,
57,
4879,
7137,
21,
8,
2212,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10931,
21680,
953,
834,
2915,
755,
2606,
834,
536,
549,
17444,
427,
2212,
3274,
96,
25235,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bar chart x axis product type code y axis the number of product type code | CREATE TABLE Assets_in_Events (
Asset_ID INTEGER,
Event_ID INTEGER
)
CREATE TABLE Assets (
Asset_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Locations (
Location_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Agreements (
Document_ID INTEGER,
Event_ID INTEGER
)
CREAT... | SELECT Product_Type_Code, COUNT(Product_Type_Code) FROM Products GROUP BY Product_Type_Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18202,
7,
834,
77,
834,
427,
2169,
7,
41,
18202,
834,
4309,
3,
21342,
17966,
6,
8042,
834,
4309,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
18202,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6246,
834,
25160,
834,
22737,
6,
2847,
17161,
599,
3174,
7472,
834,
25160,
834,
22737,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
6246,
834,
25160,
834,
22737,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many extra points catagories are there for the na player? | CREATE TABLE table_3364 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Safeties" real,
"Points" real
) | SELECT COUNT("Extra points") FROM table_3364 WHERE "Player" = 'na' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
4389,
41,
96,
15800,
49,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,
979,
121,
490,
6,
96,
3183,
8804,
1766,
121,
490,
6,
96,
27437,
3010,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5420,
1313,
979,
8512,
21680,
953,
834,
4201,
4389,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
29,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the game with the team indiana? | CREATE TABLE table_27756314_10 (game VARCHAR, team VARCHAR) | SELECT game FROM table_27756314_10 WHERE team = "Indiana" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3072,
3891,
2534,
834,
1714,
41,
7261,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
467,
28,
8,
372,
16,
8603,
9,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
21680,
953,
834,
2555,
3072,
3891,
2534,
834,
1714,
549,
17444,
427,
372,
3274,
96,
22126,
29,
9,
121,
1,
-100,
-100,
-100,
-100,
-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, draw a bar chart about the distribution of founder and the sum of revenue , and group by attribute founder, and rank by the X-axis in desc please. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Founder, SUM(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
19145,
6,
180,
6122,
599,
1649,
15098,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3,
... |
On what date was Stauffer Chemical Company (Lemoyne Plant), which was listed on 09/21/1984, deleted? | CREATE TABLE table_55865 (
"CERCLIS ID" text,
"Name" text,
"County" text,
"Proposed" text,
"Listed" text,
"Construction completed" text,
"Partially deleted" text,
"Deleted" text
) | SELECT "Deleted" FROM table_55865 WHERE "Listed" = '09/21/1984' AND "Name" = 'stauffer chemical company (lemoyne plant)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3449,
4122,
41,
96,
4770,
4902,
25769,
4699,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
3174,
12151,
121,
1499,
6,
96,
28886,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
28141,
26,
121,
21680,
953,
834,
755,
3449,
4122,
549,
17444,
427,
96,
28886,
121,
3274,
3,
31,
4198,
87,
2658,
13523,
4608,
31,
3430,
96,
23954,
121,
3274,
3,
31,
2427,
2999,
49,
5368,
349,
41,
109,
51,
32,
... |
calculate the minimum days for which patients who were admitted on or after 2179 were hospitalized. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.admityear >= "2179" | [
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,
3,
17684,
599,
1778,
16587,
5,
1135,
7,
834,
21545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
20466,
17,
1201,
2490,
2423,
96,
2658,
4440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result for Rank 2 on December 6, 1969? | CREATE TABLE table_name_23 (
result VARCHAR,
rank_number VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_23 WHERE rank_number = "2" AND date = "december 6, 1969" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
741,
584,
4280,
28027,
6,
11003,
834,
5525,
1152,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
11003,
834,
5525,
1152,
3274,
96,
357,
121,
3430,
833,
3274,
96,
221,
75,
18247,
8580,
17185,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the different ids and names of the stations that have had more than 12 bikes available Plot them as bar chart, I want to rank from low to high by the y-axis. | CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_dew_point_f INTEGER,
max_humidity INTEGER,
mean_humidity INTEGER,
min_humidity INTEGER,
max_sea_level_pre... | SELECT name, id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12 ORDER BY id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1969,
41,
833,
3,
3463,
4,
382,
6,
9858,
834,
21010,
15,
834,
89,
3,
21342,
17966,
6,
1243,
834,
21010,
15,
834,
89,
3,
21342,
17966,
6,
3519,
834,
21010,
15,
834,
89,
3,
21342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
3,
23,
26,
21680,
2478,
6157,
332,
536,
3,
15355,
3162,
2637,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
6682,
834,
23,
26,
549,
17444,
427,
332,
4416,
15214,
7,
834,
28843,
2490,
586,
4674,... |
What did the home team score at Princes Park? | CREATE TABLE table_name_15 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team AS score FROM table_name_15 WHERE venue = "princes park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
8,
234,
372,
2604,
44,
9027,
7,
1061,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
5669,
3274,
96,
12298,
2319,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the introductory phrase on the episode production code 6101? | CREATE TABLE table_25691838_8 (
introductory_phrase VARCHAR,
production_code VARCHAR
) | SELECT introductory_phrase FROM table_25691838_8 WHERE production_code = 6101 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3951,
2606,
3747,
834,
927,
41,
3,
23594,
834,
27111,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
2359... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
23594,
834,
27111,
21680,
953,
834,
1828,
3951,
2606,
3747,
834,
927,
549,
17444,
427,
999,
834,
4978,
3274,
431,
19621,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When Margaret Ann Bayot won binibining pilipinas-international, how many winners of Miss Universe Philippines were there? | CREATE TABLE table_1825751_4 (
miss_universe_philippines VARCHAR,
binibining_pilipinas_international VARCHAR
) | SELECT COUNT(miss_universe_philippines) FROM table_1825751_4 WHERE binibining_pilipinas_international = "Margaret Ann Bayot" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
1828,
3072,
536,
834,
591,
41,
3041,
834,
7846,
15,
834,
18118,
23,
1572,
4477,
584,
4280,
28027,
6,
2701,
23,
4517,
53,
834,
102,
173,
23,
3180,
9,
7,
834,
27817,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11502,
834,
7846,
15,
834,
18118,
23,
1572,
4477,
61,
21680,
953,
834,
2606,
1828,
3072,
536,
834,
591,
549,
17444,
427,
2701,
23,
4517,
53,
834,
102,
173,
23,
3180,
9,
7,
834,
27817,
3274,
96,
7... |
What is the number of points of the match with less than 22 games played? | CREATE TABLE table_name_69 (points VARCHAR, games_played INTEGER) | SELECT COUNT(points) FROM table_name_69 WHERE games_played < 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
2700,
7,
584,
4280,
28027,
6,
1031,
834,
4895,
15,
26,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
979,
13,
8,
1588,
28,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1031,
834,
4895,
15,
26,
3,
2,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What year was Patricia Mcgourty nominated for a Tony award? | CREATE TABLE table_52298 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
) | SELECT "Year" FROM table_52298 WHERE "Nominee" = 'patricia mcgourty' AND "Award" = 'tony award' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
357,
3916,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
4168,
8695,
15,
121,
1499,
6,
96,
20119,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
5373,
357,
3916,
549,
17444,
427,
96,
4168,
8695,
15,
121,
3274,
3,
31,
4665,
2234,
23,
9,
3,
51,
75,
122,
1211,
17,
63,
31,
3430,
96,
188,
2239,
121,
3274,
3,
31,
17,
106,... |
who died first : sala burton or harold earthman ? | CREATE TABLE table_204_145 (
id number,
"representative" text,
"state" text,
"district(s)" text,
"served" text,
"party" text,
"date of birth" text,
"date of death" text,
"age" text
) | SELECT "representative" FROM table_204_145 WHERE "representative" IN ('sala burton', 'harold earthman') ORDER BY "date of death" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
20987,
41,
3,
23,
26,
381,
6,
96,
60,
12640,
1528,
121,
1499,
6,
96,
5540,
121,
1499,
6,
96,
26,
23,
20066,
599,
7,
61,
121,
1499,
6,
96,
3473,
15,
26,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
60,
12640,
1528,
121,
21680,
953,
834,
26363,
834,
20987,
549,
17444,
427,
96,
60,
12640,
1528,
121,
3388,
41,
31,
7,
138,
9,
7018,
17,
106,
31,
6,
3,
31,
3272,
1490,
3596,
348,
31,
61,
4674,
11300,
272,
476... |
Which Record has Points larger than 0, and a Score of 7–3? | CREATE TABLE table_name_96 (record VARCHAR, points VARCHAR, score VARCHAR) | SELECT record FROM table_name_96 WHERE points > 0 AND score = "7–3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
60,
7621,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
11392,
65,
4564,
7,
2186,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
979,
2490,
3,
632,
3430,
2604,
3274,
96,
940,
104,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the revised of mccune reischauer of yŏn (s) ryŏn (n) | CREATE TABLE table_name_48 (revised VARCHAR, mccune_reischauer VARCHAR) | SELECT revised FROM table_name_48 WHERE mccune_reischauer = "yŏn (s) ryŏn (n)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
60,
208,
3375,
584,
4280,
28027,
6,
3,
51,
75,
75,
444,
834,
60,
2499,
12668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
15760,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15760,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
3,
51,
75,
75,
444,
834,
60,
2499,
12668,
3274,
96,
63,
2,
29,
41,
7,
61,
3,
651,
2,
29,
41,
29,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which nationality's distance was 200m and had a year more recent than 1994 when the record was 33.778s? | CREATE TABLE table_name_10 (nationality VARCHAR, record VARCHAR, distance VARCHAR, year VARCHAR) | SELECT nationality FROM table_name_10 WHERE distance = "200m" AND year > 1994 AND record = "33.778s" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
16557,
485,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
6,
2357,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
2357,
3274,
96,
3632,
51,
121,
3430,
215,
2490,
7520,
3430,
1368,
3274,
96,
519,
25168,
3940,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country has Hydra Head Records with a 2lp format? | CREATE TABLE table_name_97 (
country VARCHAR,
format VARCHAR,
label VARCHAR
) | SELECT country FROM table_name_97 WHERE format = "2lp" AND label = "hydra head records" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
684,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
65,
21531,
9,
3642,
11547,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1910,
3274,
96,
357,
40,
102,
121,
3430,
3783,
3274,
96,
10656,
9,
819,
3187,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who had the high assists for game number 38? | CREATE TABLE table_27734286_7 (
high_assists VARCHAR,
game VARCHAR
) | SELECT high_assists FROM table_27734286_7 WHERE game = 38 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4552,
4165,
3840,
834,
940,
41,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
13041,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
2555,
4552,
4165,
3840,
834,
940,
549,
17444,
427,
467,
3274,
6654,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what are all the pole position where date is 26 july | CREATE TABLE table_16661 (
"Round" real,
"Grand Prix" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
) | SELECT "Pole Position" FROM table_16661 WHERE "Date" = '26 July' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26811,
4241,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
4744,
727,
12942,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8931,
15,
14258... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8931,
15,
14258,
121,
21680,
953,
834,
26811,
4241,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2688,
1718,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
list all the reviews by Niloofar | CREATE TABLE tip (
tip_id int,
business_id varchar,
text longtext,
user_id varchar,
likes int,
year int,
month varchar
)
CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address... | SELECT review.text FROM review, user WHERE user.name = 'Niloofar' AND user.user_id = review.user_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2226,
41,
2226,
834,
23,
26,
16,
17,
6,
268,
834,
23,
26,
3,
4331,
4059,
6,
1499,
307,
6327,
6,
1139,
834,
23,
26,
3,
4331,
4059,
6,
114,
7,
16,
17,
6,
215,
16,
17,
6,
847,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1132,
5,
6327,
21680,
1132,
6,
1139,
549,
17444,
427,
1139,
5,
4350,
3274,
3,
31,
567,
173,
32,
32,
5544,
31,
3430,
1139,
5,
10041,
834,
23,
26,
3274,
1132,
5,
10041,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100... |
What is the high lap total for cards with a grid larger than 21, and a Time/Retired of +2 laps? | CREATE TABLE table_name_91 (
laps INTEGER,
grid VARCHAR,
time_retired VARCHAR
) | SELECT MAX(laps) FROM table_name_91 WHERE grid > 21 AND time_retired = "+2 laps" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
14941,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
306,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8478,
7,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
8634,
2490,
1401,
3430,
97,
834,
10682,
1271,
3274,
96,
1220,
357,
14941,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Comprehension of Danish has an Average smaller than 6.85, and a Comprehension of Norwegian of 4.13? | CREATE TABLE table_name_48 (comprehension_of_danish VARCHAR, average VARCHAR, comprehension_of_norwegian VARCHAR) | SELECT comprehension_of_danish FROM table_name_48 WHERE average < 6.85 AND comprehension_of_norwegian = "4.13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
287,
22459,
106,
834,
858,
834,
3768,
1273,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
6,
27160,
834,
858,
834,
29,
127,
1123,
22898,
584,
4280,
28027,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27160,
834,
858,
834,
3768,
1273,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1348,
3,
2,
4357,
4433,
3430,
27160,
834,
858,
834,
29,
127,
1123,
22898,
3274,
96,
19708,
519,
121,
1,
-100,
-100,
-100,
-100,
-1... |
What's LSU's overall record/ | CREATE TABLE table_22993636_2 (overall_record VARCHAR, team VARCHAR) | SELECT overall_record FROM table_22993636_2 WHERE team = "LSU" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3264,
3420,
3420,
834,
357,
41,
1890,
1748,
834,
60,
7621,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
301,
4138,
31,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1879,
834,
60,
7621,
21680,
953,
834,
2884,
3264,
3420,
3420,
834,
357,
549,
17444,
427,
372,
3274,
96,
434,
4138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What championships had a match where Natasha Zvereva played as partner? | CREATE TABLE table_24638867_4 (
championship VARCHAR,
partner VARCHAR
) | SELECT championship FROM table_24638867_4 WHERE partner = "Natasha Zvereva" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3891,
4060,
3708,
834,
591,
41,
10183,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
10183,
7,
141,
3,
9,
1588,
213,
9267,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10183,
21680,
953,
834,
2266,
3891,
4060,
3708,
834,
591,
549,
17444,
427,
2397,
3274,
96,
567,
144,
3198,
9,
1027,
624,
4721,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many patients whose gender is m and diagnoses short title is long-term use anticoagul? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.short_title = "Long-term use anticoagul" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the weight and dimensions of an N800? | CREATE TABLE table_name_42 (
weight VARCHAR,
_dimensions VARCHAR,
model VARCHAR
) | SELECT weight, _dimensions FROM table_name_42 WHERE model = "n800" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
1293,
584,
4280,
28027,
6,
3,
834,
31987,
7,
584,
4280,
28027,
6,
825,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1293,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1293,
6,
3,
834,
31987,
7,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
825,
3274,
96,
29,
6192,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Nationality, when Position is "G", and when Pick is greater than 26? | CREATE TABLE table_name_44 (nationality VARCHAR, position VARCHAR, pick VARCHAR) | SELECT nationality FROM table_name_44 WHERE position = "g" AND pick > 26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
16557,
485,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
868,
485,
6,
116,
14258,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1157,
485,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1102,
3274,
96,
122,
121,
3430,
1432,
2490,
2208,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Type has a Builder of avonside engine company, and a Number of 9? | CREATE TABLE table_name_55 (
type VARCHAR,
builder VARCHAR,
number VARCHAR
) | SELECT type FROM table_name_55 WHERE builder = "avonside engine company" AND number = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
686,
584,
4280,
28027,
6,
918,
49,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
6632,
65,
3,
9,
16799,
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,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
918,
49,
3274,
96,
4123,
1599,
1948,
349,
121,
3430,
381,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the first Round with a Pick # greater than 1 and 140 Overall? | CREATE TABLE table_name_43 (
round INTEGER,
pick__number VARCHAR,
overall VARCHAR
) | SELECT MIN(round) FROM table_name_43 WHERE pick__number > 1 AND overall > 140 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
1751,
3,
21342,
17966,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
2490,
209,
3430,
1879,
2490,
11397,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.