NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
what is the total number of schools listed in the table ? | CREATE TABLE table_203_721 (
id number,
"school" text,
"location" text,
"control" text,
"type" text,
"enrollment" number,
"founded" number
) | SELECT COUNT("school") FROM table_203_721 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
940,
2658,
41,
3,
23,
26,
381,
6,
96,
6646,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
15247,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
35,
4046,
297,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
6646,
8512,
21680,
953,
834,
23330,
834,
940,
2658,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the brigade when Al-Bira is the name? | CREATE TABLE table_name_7 (
brigade VARCHAR,
name VARCHAR
) | SELECT brigade FROM table_name_7 WHERE name = "al-bira" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
6397,
12581,
221,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6397,
12581,
221,
116,
901,
18,
279,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6397,
12581,
221,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
564,
3274,
96,
138,
18,
8781,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What murder (2012) rate per 100,00 also has a 1.616 as the peace (2012) GPI? | CREATE TABLE table_79327 (
"Country" text,
"Human development (2012) HDI" real,
"GDP (PPP) (2012) US$ per capita" text,
"Real GDP growth (2011) %" text,
"Income inequality (2011) Gini" text,
"Poverty (2009) HPI-1 %" real,
"Extreme poverty (2011) <1.25 US$ %" text,
"Literacy (2010) %" real,
"Life expectancy (2011) Years" real,
"Murder (2012) Rate per 100,000" text,
"Peace (2012) GPI" real
) | SELECT "Murder (2012) Rate per 100,000" FROM table_79327 WHERE "Peace (2012) GPI" = '1.616' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
519,
2555,
41,
96,
10628,
651,
121,
1499,
6,
96,
13284,
348,
606,
24705,
3726,
196,
121,
490,
6,
96,
517,
7410,
41,
345,
6158,
61,
24705,
837,
3229,
399,
23219,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
450,
588,
24705,
13002,
399,
18829,
121,
21680,
953,
834,
4440,
519,
2555,
549,
17444,
427,
96,
345,
15,
3302,
24705,
350,
4111,
121,
3274,
3,
31,
15062,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
provide the number of patients whose gender is f and drug name is theophylline sr? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.drug = "Theophylline SR" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the second qualifying time for the dale coyne racing team with a first qualifying time of 1:00.081? | CREATE TABLE table_name_31 (
qual_2 VARCHAR,
team VARCHAR,
qual_1 VARCHAR
) | SELECT qual_2 FROM table_name_31 WHERE team = "dale coyne racing" AND qual_1 = "1:00.081" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
3,
11433,
834,
357,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
3,
11433,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
11433,
834,
357,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
372,
3274,
96,
5437,
576,
63,
29,
15,
8191,
121,
3430,
3,
11433,
834,
536,
3274,
96,
24294,
5,
4018,
536,
121,
1,
-100,
-100,
-100,
-100,
-100... |
What is the original airdate for episode 7-17 (195) from writer Sidney Slon? | CREATE TABLE table_name_5 (
original_airdate VARCHAR,
writer_s_ VARCHAR,
episode VARCHAR
) | SELECT original_airdate FROM table_name_5 WHERE writer_s_ = "sidney slon" AND episode = "7-17 (195)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
926,
834,
2256,
5522,
584,
4280,
28027,
6,
4346,
834,
7,
834,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
5522,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
4346,
834,
7,
834,
3274,
96,
7,
23,
26,
3186,
3,
7,
40,
106,
121,
3430,
5640,
3274,
96,
940,
10794,
2863,
9120,
121,
1,
-100,
-100,
-100,
-... |
What is the lowest crowd size at MCG? | CREATE TABLE table_name_91 (
crowd INTEGER,
venue VARCHAR
) | SELECT MIN(crowd) FROM table_name_91 WHERE venue = "mcg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
4374,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
4374,
812,
44,
283,
12150,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
5669,
3274,
96,
51,
75,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the names of the drama workshop groups with address in Feliciaberg city? | CREATE TABLE Addresses (Address_ID VARCHAR, City_Town VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Address_ID VARCHAR) | SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = "Feliciaberg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
13246,
15,
7,
41,
20773,
9377,
834,
4309,
584,
4280,
28027,
6,
896,
834,
382,
9197,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
20052,
834,
12492,
6921,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28719,
834,
23954,
21680,
13246,
15,
7,
6157,
332,
536,
3,
15355,
3162,
20052,
834,
12492,
6921,
834,
27247,
7,
6157,
332,
357,
9191,
332,
5411,
20773,
9377,
834,
4309,
3274,
332,
4416,
20773,
9377,
834,
43... |
What number episode in the season was directed by Paul Adelstein? | CREATE TABLE table_74106 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT MAX("No. in season") FROM table_74106 WHERE "Directed by" = 'Paul Adelstein' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
16431,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
4168,
5,
16,
774,
8512,
21680,
953,
834,
4581,
16431,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
23183,
23117,
4008,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What team does Jimmy Frazelle play on? | CREATE TABLE table_name_41 (mls_team VARCHAR, player VARCHAR) | SELECT mls_team FROM table_name_41 WHERE player = "jimmy frazelle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
51,
40,
7,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
405,
16754,
10323,
172,
693,
577,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
51,
40,
7,
834,
11650,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
1959,
3274,
96,
354,
603,
2258,
8072,
172,
693,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many Touchdowns have a rec of 10, and an Opponent of oregon state, and an Average smaller than 19.7? | CREATE TABLE table_name_57 (
s_touchdown VARCHAR,
average VARCHAR,
rec VARCHAR,
opponent VARCHAR
) | SELECT COUNT(s_touchdown) FROM table_name_57 WHERE rec = 10 AND opponent = "oregon state" AND average < 19.7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
3,
7,
834,
17681,
3035,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
6,
5026,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
7,
834,
17681,
3035,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
5026,
3274,
335,
3430,
15264,
3274,
96,
127,
15,
5307,
538,
121,
3430,
1348,
3,
2,
9997,
940,
1,
-100,
-100,
-100,
-100,
... |
What is the loss with 319 points? | CREATE TABLE table_9119 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Lost" FROM table_9119 WHERE "Points for" = '319' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4729,
2294,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
3481,
121,
21680,
953,
834,
4729,
2294,
549,
17444,
427,
96,
22512,
7,
21,
121,
3274,
3,
31,
519,
2294,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Bronze has a Total smaller than 1? | CREATE TABLE table_65776 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Bronze") FROM table_65776 WHERE "Total" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3436,
3959,
41,
96,
22557,
121,
490,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
948,
3436,
3959,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many voronezh radars are in kaliningrad or in krasnodar ? | CREATE TABLE table_204_338 (
id number,
"location" text,
"coordinates" text,
"type" text,
"built" text,
"details" text
) | SELECT COUNT(*) FROM table_204_338 WHERE "location" IN ('kaliningrad', 'krasnodar') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
3747,
41,
3,
23,
26,
381,
6,
96,
14836,
121,
1499,
6,
96,
509,
21122,
7,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
16152,
121,
1499,
6,
96,
221,
5756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
519,
3747,
549,
17444,
427,
96,
14836,
121,
3388,
41,
31,
1258,
9424,
5672,
31,
6,
3,
31,
9669,
7,
29,
32,
3439,
31,
61,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the lambda function without a pseudorandom number generation, no s default argument, no functions, and no eval function? | CREATE TABLE table_name_10 (
lambda_functions VARCHAR,
eval_function VARCHAR,
functions VARCHAR,
pseudorandom_number_generation VARCHAR,
s_default_argument VARCHAR
) | SELECT lambda_functions FROM table_name_10 WHERE pseudorandom_number_generation = "no" AND s_default_argument = "no" AND functions = "no" AND eval_function = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
17871,
26,
9,
834,
23993,
7,
584,
4280,
28027,
6,
3,
15,
2165,
834,
23993,
584,
4280,
28027,
6,
3621,
584,
4280,
28027,
6,
22726,
2002,
5012,
834,
5525... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17871,
26,
9,
834,
23993,
7,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
22726,
2002,
5012,
834,
5525,
1152,
834,
10877,
3274,
96,
29,
32,
121,
3430,
3,
7,
834,
31026,
834,
291,
1744,
297,
3274,
96,
29,
32,... |
Name the uyghur for 瓦恰 | CREATE TABLE table_2008069_2 (uyghur___k̢ona_yezik̢__ VARCHAR, chinese VARCHAR) | SELECT uyghur___k̢ona_yezik̢__ FROM table_2008069_2 WHERE chinese = "瓦恰" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
2079,
3951,
834,
357,
41,
76,
63,
122,
10666,
834,
834,
834,
157,
2,
106,
9,
834,
63,
3680,
157,
2,
834,
834,
584,
4280,
28027,
6,
3,
1436,
1496,
15,
584,
4280,
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,
0,
0... | [
3,
23143,
14196,
3,
76,
63,
122,
10666,
834,
834,
834,
157,
2,
106,
9,
834,
63,
3680,
157,
2,
834,
834,
21680,
953,
834,
3632,
2079,
3951,
834,
357,
549,
17444,
427,
3,
1436,
1496,
15,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-1... |
What position does the player from the Toronto Argonauts play? | CREATE TABLE table_name_99 (position VARCHAR, cfl_team VARCHAR) | SELECT position FROM table_name_99 WHERE cfl_team = "toronto argonauts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
4718,
584,
4280,
28027,
6,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
405,
8,
1959,
45,
8,
7030,
1533,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
3,
75,
89,
40,
834,
11650,
3274,
96,
235,
4438,
32,
1584,
839,
15785,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the largest number of rounds for the team that hired Donnie Wingo as crew chief? | CREATE TABLE table_1266602_2 (rounds INTEGER, crew_chief VARCHAR) | SELECT MAX(rounds) FROM table_1266602_2 WHERE crew_chief = "Donnie Wingo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21976,
3539,
4305,
834,
357,
41,
7775,
7,
3,
21342,
17966,
6,
4627,
834,
20053,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
381,
13,
14419,
21,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7775,
7,
61,
21680,
953,
834,
21976,
3539,
4305,
834,
357,
549,
17444,
427,
4627,
834,
20053,
3274,
96,
4135,
11113,
15753,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
until 4 years ago, had patient 027-53836 been in an emergency room? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
) | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '027-53836' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-4 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
2555,
4525,
3747,
3420,
31,
3430,
1868,
5,
31386,
20466,
17,
7928,
3274,
3,
31,
15,
935,
122,
43... |
what is the drug route of the drug pneumococcal vac polyvalent? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
) | SELECT prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Pneumococcal Vac Polyvalent" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7744,
7,
5,
20300,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
345,
8992,
51,
32,
509,
75,
1489,
3,
25203,
7945,
15592,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What did Ernie Els par? | CREATE TABLE table_name_15 (
to_par VARCHAR,
player VARCHAR
) | SELECT to_par FROM table_name_15 WHERE player = "ernie els" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
262,
23752,
1289,
7,
260,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
1959,
3274,
96,
15,
23752,
3,
3573,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Grid has a Rider of randy de puniet, and Laps smaller than 24? | CREATE TABLE table_name_11 (
grid INTEGER,
rider VARCHAR,
laps VARCHAR
) | SELECT MAX(grid) FROM table_name_11 WHERE rider = "randy de puniet" AND laps < 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
8634,
3,
21342,
17966,
6,
2564,
52,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
23644,
65,
3,
9,
25218... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
2564,
52,
3274,
96,
52,
232,
63,
20,
4930,
23,
15,
17,
121,
3430,
14941,
7,
3,
2,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On July 25 what is the lowest attendance with the Brewers as the opponent? | CREATE TABLE table_name_26 (attendance INTEGER, opponent VARCHAR, date VARCHAR) | SELECT MIN(attendance) FROM table_name_26 WHERE opponent = "brewers" AND date = "july 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
15116,
663,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
1718,
944,
125,
19,
8,
7402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17684,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
15264,
3274,
96,
1999,
3321,
7,
121,
3430,
833,
3274,
96,
2047,
120,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
On what Date was the Attendance 75,891? | CREATE TABLE table_name_77 (
date VARCHAR,
attendance VARCHAR
) | SELECT date FROM table_name_77 WHERE attendance = "75,891" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
833,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
7678,
47,
8,
22497,
663,
6374,
6,
3914,
536,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
11364,
3274,
96,
3072,
6,
3914,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
A bar chart about what are the names of climbers and the corresponding heights of the mountains that they climb?, and sort by the y axis from low to high please. | CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
) | SELECT T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T2.Height | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4180,
41,
5617,
834,
4309,
16,
17,
6,
5570,
1499,
6,
24231,
490,
6,
749,
1109,
1433,
490,
6,
10971,
1499,
6,
6993,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
4416,
3845,
2632,
21680,
8147,
49,
6157,
332,
536,
3,
15355,
3162,
4180,
6157,
332,
357,
9191,
332,
5411,
329,
32,
14016,
77,
834,
4309,
3274,
332,
4416,
329,
32,
14016,
77,
834,
4309,
4674... |
If the Close ranged weapons are the knife (stone), knife (iron), what are the Long ranged weapons? | CREATE TABLE table_27704991_1 (long_ranged_weapons VARCHAR, close_ranged_weapons VARCHAR) | SELECT long_ranged_weapons FROM table_27704991_1 WHERE close_ranged_weapons = "Knife (stone), Knife (iron)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2518,
3647,
4729,
834,
536,
41,
2961,
834,
5517,
26,
834,
1123,
9,
5041,
7,
584,
4280,
28027,
6,
885,
834,
5517,
26,
834,
1123,
9,
5041,
7,
584,
4280,
28027,
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,
307,
834,
5517,
26,
834,
1123,
9,
5041,
7,
21680,
953,
834,
2555,
2518,
3647,
4729,
834,
536,
549,
17444,
427,
885,
834,
5517,
26,
834,
1123,
9,
5041,
7,
3274,
96,
439,
29,
99,
15,
41,
3009,
201,
16141,
89,
15,
... |
What are the names and scores of all wines? | CREATE TABLE grapes (
id number,
grape text,
color text
)
CREATE TABLE appellations (
no number,
appelation text,
county text,
state text,
area text,
isava text
)
CREATE TABLE wine (
no number,
grape text,
winery text,
appelation text,
state text,
name text,
year number,
price number,
score number,
cases number,
drink text
) | SELECT name, score FROM wine | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11457,
7,
41,
3,
23,
26,
381,
6,
11457,
1499,
6,
945,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8319,
6105,
7,
41,
150,
381,
6,
8319,
257,
1499,
6,
5435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
2013,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What type of bridge is Colton's Crossing Bridge? | CREATE TABLE table_45896 (
"Name" text,
"Listed" text,
"Location" text,
"County" text,
"Type" text
) | SELECT "Type" FROM table_45896 WHERE "Name" = 'colton''s crossing bridge' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
3914,
948,
41,
96,
23954,
121,
1499,
6,
96,
28886,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
25160,
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,
0... | [
3,
23143,
14196,
96,
25160,
121,
21680,
953,
834,
2128,
3914,
948,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
509,
7377,
31,
31,
7,
12529,
4716,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which year did Ray Crawford the Kurtis Kraft 500g chassis? | CREATE TABLE table_name_70 (
year VARCHAR,
chassis VARCHAR
) | SELECT year FROM table_name_70 WHERE chassis = "kurtis kraft 500g" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
215,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
215,
410,
8279,
28777,
8,
8333,
17,
159,
10756,
2899,
122,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
22836,
3274,
96,
10923,
17,
159,
3,
11326,
2899,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the hardness for the alloy that is liquid at 243 degrees C? | CREATE TABLE table_43081 (
"Usage" text,
"Sn/Sb (%)" text,
"Liquid at (\u00b0C)" text,
"Casting at (\u00b0C)" text,
"Remelting at (\u00b0C)" text,
"Hardness" text
) | SELECT "Hardness" FROM table_43081 WHERE "Liquid at (\u00b0C)" = '243' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25449,
4959,
41,
96,
1265,
7,
545,
121,
1499,
6,
96,
134,
29,
87,
134,
115,
41,
6210,
121,
1499,
6,
96,
434,
23,
1169,
26,
44,
41,
2,
76,
1206,
115,
632,
254,
61,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15537,
26,
655,
121,
21680,
953,
834,
25449,
4959,
549,
17444,
427,
96,
434,
23,
1169,
26,
44,
41,
2,
76,
1206,
115,
632,
254,
61,
121,
3274,
3,
31,
27730,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
which season was the only season the team placed in tier 4 ? | CREATE TABLE table_204_79 (
id number,
"season" text,
"tier" number,
"division" text,
"place" text
) | SELECT "season" FROM table_204_79 WHERE "tier" = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4440,
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,
0... | [
3,
23143,
14196,
96,
9476,
121,
21680,
953,
834,
26363,
834,
4440,
549,
17444,
427,
96,
3276,
121,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose ethnicity is hispanic/latino - puerto rican and lab test name is potassium, whole blood? | 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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND lab.label = "Potassium, Whole Blood" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is the next kingdom listed after sihag ? | CREATE TABLE table_203_713 (
id number,
"s.no." number,
"name of kingdom" text,
"name of king" text,
"no. of villages" number,
"capital" text,
"names of districts" text
) | SELECT "name of kingdom" FROM table_203_713 WHERE id = (SELECT id FROM table_203_713 WHERE "name of kingdom" = 'sihag') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4450,
519,
41,
3,
23,
26,
381,
6,
96,
7,
5,
29,
32,
535,
381,
6,
96,
4350,
13,
14740,
121,
1499,
6,
96,
4350,
13,
3,
1765,
121,
1499,
6,
96,
29,
32,
5,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
13,
14740,
121,
21680,
953,
834,
23330,
834,
4450,
519,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
4450,
519,
549,
17444,
427,
96,
4350,
13,
14740,
121,
3... |
What is the total of bronze that has more silvers than 2? | CREATE TABLE table_name_15 (bronze VARCHAR, silver INTEGER) | SELECT COUNT(bronze) FROM table_name_15 WHERE silver > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
13711,
776,
584,
4280,
28027,
6,
4294,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
13,
13467,
24,
65,
72,
4294,
7,
145,
204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
4294,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is maximum age of patients whose insurance is government and year of death is less than 2138? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT MAX(demographic.age) FROM demographic WHERE demographic.insurance = "Government" AND demographic.dod_year < "2138.0" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
27304,
297,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,
96,
357,
2368,
27376,
121,
1,
-100,
-100,
-100,
-100,
... |
What is every entry for assists if the player is Lynn Pride? | CREATE TABLE table_25352324_5 (assists VARCHAR, player VARCHAR) | SELECT assists FROM table_25352324_5 WHERE player = "Lynn Pride" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2469,
2773,
2266,
834,
755,
41,
6500,
7,
17,
7,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
1764,
21,
13041,
3,
99,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13041,
21680,
953,
834,
1828,
2469,
2773,
2266,
834,
755,
549,
17444,
427,
1959,
3274,
96,
434,
63,
29,
29,
24252,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the most events with cuts made more than 6 and top 25 more than 30 | CREATE TABLE table_name_92 (
events INTEGER,
cuts_made VARCHAR,
top_25 VARCHAR
) | SELECT MAX(events) FROM table_name_92 WHERE cuts_made > 6 AND top_25 > 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
984,
3,
21342,
17966,
6,
8620,
834,
4725,
584,
4280,
28027,
6,
420,
834,
1828,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
98... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
15,
2169,
7,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
8620,
834,
4725,
2490,
431,
3430,
420,
834,
1828,
2490,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many different results for high rebounds were there for game number 76? | CREATE TABLE table_27756314_11 (high_rebounds VARCHAR, game VARCHAR) | SELECT COUNT(high_rebounds) FROM table_27756314_11 WHERE game = 76 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3072,
3891,
2534,
834,
2596,
41,
6739,
834,
23768,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
772,
21,
306,
3,
23768,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6739,
834,
23768,
61,
21680,
953,
834,
2555,
3072,
3891,
2534,
834,
2596,
549,
17444,
427,
467,
3274,
3,
3959,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what's the position with player being ray boutin | CREATE TABLE table_19554 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Position" FROM table_19554 WHERE "Player" = 'Ray Boutin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
5062,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
22464,
5062,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
25619,
8657,
17,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many asian patients had a base drug type? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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 text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "ASIAN" AND prescriptions.drug_type = "BASE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Who had the high point total when the team was 24-17? | CREATE TABLE table_13762472_5 (high_points VARCHAR, record VARCHAR) | SELECT high_points FROM table_13762472_5 WHERE record = "24-17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3959,
2266,
5865,
834,
755,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
500,
792,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
2368,
3959,
2266,
5865,
834,
755,
549,
17444,
427,
1368,
3274,
96,
2266,
10794,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the title of the episode with a broadcast order s04 e01? | CREATE TABLE table_1231892_4 (title VARCHAR, broadcast_order VARCHAR) | SELECT title FROM table_1231892_4 WHERE broadcast_order = "S04 E01" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
14574,
2606,
4508,
834,
591,
41,
21869,
584,
4280,
28027,
6,
6878,
834,
9397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2233,
13,
8,
5640,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
14574,
2606,
4508,
834,
591,
549,
17444,
427,
6878,
834,
9397,
3274,
96,
134,
6348,
262,
4542,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the team for january 17 | CREATE TABLE table_27733909_7 (team VARCHAR, date VARCHAR) | SELECT team FROM table_27733909_7 WHERE date = "January 17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4552,
3288,
4198,
834,
940,
41,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
372,
21,
3,
7066,
76,
1208,
1003,
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,
372,
21680,
953,
834,
2555,
4552,
3288,
4198,
834,
940,
549,
17444,
427,
833,
3274,
96,
30404,
1003,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average 3620 value that has a 5432 of 1277 and a 15122 less than 1540? | CREATE TABLE table_name_66 (Id VARCHAR) | SELECT AVG(3620) FROM table_name_66 WHERE 5432 = 1277 AND 15122 < 1540 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
4475,
1755,
701,
24,
65,
3,
9,
10630,
2668,
13,
586,
4013,
11,
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,
71,
17217,
599,
3420,
1755,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
10630,
2668,
3274,
586,
4013,
3430,
627,
20889,
3,
2,
627,
2445,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which sport has 17 as the medal count? | CREATE TABLE table_name_4 (sport VARCHAR, medal_count VARCHAR) | SELECT sport FROM table_name_4 WHERE medal_count = 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
6661,
584,
4280,
28027,
6,
9365,
834,
13362,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2600,
65,
1003,
38,
8,
9365,
3476,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2600,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
9365,
834,
13362,
3274,
1003,
1,
-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 date of natural cause situation? | CREATE TABLE table_name_12 (date VARCHAR, circumstances VARCHAR) | SELECT date FROM table_name_12 WHERE circumstances = "natural cause" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
5522,
584,
4280,
28027,
6,
4616,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
793,
1137,
1419,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
4616,
3274,
96,
14884,
1137,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On 21/07/07, what was the score? | CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_12 WHERE date = "21/07/07" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
1401,
87,
4560,
87,
4560,
6,
125,
47,
8,
2604,
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,
2604,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
833,
3274,
96,
2658,
87,
4560,
87,
4560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Years in Orlando has a Player of bo outlaw? | CREATE TABLE table_name_54 (years_in_orlando VARCHAR, player VARCHAR) | SELECT years_in_orlando FROM table_name_54 WHERE player = "bo outlaw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
1201,
7,
834,
77,
834,
32,
7721,
32,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13825,
16,
14374,
65,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
77,
834,
32,
7721,
32,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
1959,
3274,
96,
115,
32,
91,
4207,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the frequency of the station located in polangui, albay? | CREATE TABLE table_27588823_2 (frequency VARCHAR, location VARCHAR) | SELECT frequency FROM table_27588823_2 WHERE location = "Polangui, Albay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
10927,
2773,
834,
357,
41,
30989,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7321,
13,
8,
2478,
1069,
16,
1977,
1618,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7321,
21680,
953,
834,
25988,
10927,
2773,
834,
357,
549,
17444,
427,
1128,
3274,
96,
8931,
152,
7938,
6,
16818,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the lower index kcal/ nm3 for 61.32 | CREATE TABLE table_1868929_1 (lower_index_kcal__nm_3 VARCHAR, upper_index_mj__nm_3 VARCHAR) | SELECT lower_index_kcal__nm_3 FROM table_1868929_1 WHERE upper_index_mj__nm_3 = "61.32" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25398,
3914,
3166,
834,
536,
41,
3216,
49,
834,
18288,
834,
157,
1489,
834,
834,
29,
51,
834,
519,
584,
4280,
28027,
6,
4548,
834,
18288,
834,
51,
354,
834,
834,
29,
51,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1364,
834,
18288,
834,
157,
1489,
834,
834,
29,
51,
834,
519,
21680,
953,
834,
25398,
3914,
3166,
834,
536,
549,
17444,
427,
4548,
834,
18288,
834,
51,
354,
834,
834,
29,
51,
834,
519,
3274,
96,
4241,
5,
2668,
121... |
Name who wrote the episode directed by arthur albert | CREATE TABLE table_17356042_1 (
written_by VARCHAR,
directed_by VARCHAR
) | SELECT written_by FROM table_17356042_1 WHERE directed_by = "Arthur Albert" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2469,
3328,
4165,
834,
536,
41,
1545,
834,
969,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
113,
2832,
8,
5640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1545,
834,
969,
21680,
953,
834,
2517,
2469,
3328,
4165,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
7754,
10666,
11375,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If 2006 is 13% and 2001 is greater than 12.1%, what is the greatest number of seats for 2001? | CREATE TABLE table_name_71 (
seats_2001 INTEGER,
_percentage_2006 VARCHAR,
_percentage_2001 VARCHAR
) | SELECT MAX(seats_2001) FROM table_name_71 WHERE _percentage_2006 = 13 AND _percentage_2001 > 12.1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
6116,
834,
23658,
3,
21342,
17966,
6,
3,
834,
883,
3728,
545,
834,
21196,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
23658,
584,
4280,
28027,
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,
4800,
4,
599,
7,
1544,
7,
834,
23658,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
3,
834,
883,
3728,
545,
834,
21196,
3274,
1179,
3430,
3,
834,
883,
3728,
545,
834,
23658,
2490,
209,
14489,
1,
-100,
-10... |
What is the number of patients born before 2120 who had urine lab tests? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2120" AND lab.fluid = "Urine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What name is listed under representative for the 112th congress? | CREATE TABLE table_4026 (
"Representative" text,
"Party" text,
"Years" text,
"Congress" text,
"District Home" text,
"Occupation" text,
"Electoral history" text
) | SELECT "Representative" FROM table_4026 WHERE "Congress" = '112th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
2688,
41,
96,
1649,
12640,
1528,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
4302,
10292,
121,
1499,
6,
96,
308,
23,
20066,
1210,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12640,
1528,
121,
21680,
953,
834,
2445,
2688,
549,
17444,
427,
96,
4302,
10292,
121,
3274,
3,
31,
2596,
357,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest value in April with New York Rangers as opponent for a game less than 82? | CREATE TABLE table_name_90 (
april INTEGER,
opponent VARCHAR,
game VARCHAR
) | SELECT MIN(april) FROM table_name_90 WHERE opponent = "new york rangers" AND game < 82 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
3,
9,
2246,
40,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
701,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9,
2246,
40,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
15264,
3274,
96,
5534,
25453,
620,
52,
7,
121,
3430,
467,
3,
2,
3,
4613,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score when Spennymoor United as the away team? | CREATE TABLE table_name_67 (
score VARCHAR,
away_team VARCHAR
) | SELECT score FROM table_name_67 WHERE away_team = "spennymoor united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
2604,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
2526,
35,
29,
63,
21477,
907... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
3208,
29,
63,
21477,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which season has the Celtic club? | CREATE TABLE table_name_53 (season VARCHAR, club VARCHAR) | SELECT season FROM table_name_53 WHERE club = "celtic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
9476,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
774,
65,
8,
21748,
1886,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
1886,
3274,
96,
7125,
1225,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
anemia ( hemoglobin less than 12 mg / dl ) | CREATE TABLE table_train_156 (
"id" int,
"anemia" bool,
"abnormal_bilirubin" bool,
"hemoglobin_a1c_hba1c" float,
"body_mass_index_bmi" float,
"bilirubin" float,
"NOUSE" float
) | SELECT * FROM table_train_156 WHERE anemia = 1 OR hemoglobin_a1c_hba1c < 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
25463,
41,
96,
23,
26,
121,
16,
17,
6,
96,
152,
11658,
121,
3,
12840,
40,
6,
96,
9,
115,
12110,
834,
3727,
23,
14446,
77,
121,
3,
12840,
40,
6,
96,
6015,
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,
1429,
21680,
953,
834,
9719,
834,
25463,
549,
17444,
427,
46,
11658,
3274,
209,
4674,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
3,
2,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which team has a record of 13-18? | CREATE TABLE table_5117 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Opponent" FROM table_5117 WHERE "Record" = '13-18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
2517,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,
663,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
5553,
2517,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2368,
6996,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score for the game on February 12? | CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_79 WHERE date = "february 12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
8,
467,
30,
2083,
586,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4440,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
586,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What title has daffy (as duck dodgers) as the character? | CREATE TABLE table_name_98 (
title VARCHAR,
characters VARCHAR
) | SELECT title FROM table_name_98 WHERE characters = "daffy (as duck dodgers)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
2233,
584,
4280,
28027,
6,
2850,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2233,
65,
836,
20334,
41,
9,
7,
14938,
26841,
52,
7,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
2850,
3274,
96,
26,
9,
20334,
41,
9,
7,
14938,
26841,
52,
7,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country has a $46,426 median family income? | CREATE TABLE table_name_34 (county VARCHAR, median_family_income VARCHAR) | SELECT county FROM table_name_34 WHERE median_family_income = "$46,426" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
13362,
63,
584,
4280,
28027,
6,
15572,
834,
15474,
834,
15759,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
65,
3,
9,
7514,
11071,
591... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5435,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
15572,
834,
15474,
834,
15759,
3274,
96,
3229,
4448,
6,
591,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many Dates have a Score in the final of 6–4, 6–2? | CREATE TABLE table_name_92 (date INTEGER, score_in_the_final VARCHAR) | SELECT SUM(date) FROM table_name_92 WHERE score_in_the_final = "6–4, 6–2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
5522,
3,
21342,
17966,
6,
2604,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7678,
7,
43,
3,
9,
17763,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
5522,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
2604,
834,
77,
834,
532,
834,
12406,
3274,
96,
948,
104,
8525,
431,
104,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the opponent on January 7? | CREATE TABLE table_name_36 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_36 WHERE date = "january 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
30,
1762,
489,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What 1953 has 2 for 1947, and dne as 1938? | CREATE TABLE table_name_52 (Id VARCHAR) | SELECT 1953 FROM table_name_52 WHERE 1947 = "2" AND 1938 = "dne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
23726,
65,
204,
21,
23992,
6,
11,
3,
26,
29,
15,
38,
25745,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
23726,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
23992,
3274,
96,
357,
121,
3430,
25745,
3274,
96,
26,
29,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What time/retired for a grid less than 19, under 21 laps, and made by aprilia? | CREATE TABLE table_name_38 (
time_retired VARCHAR,
laps VARCHAR,
grid VARCHAR,
manufacturer VARCHAR
) | SELECT time_retired FROM table_name_38 WHERE grid < 19 AND manufacturer = "aprilia" AND laps < 21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
6,
4818,
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,
1... | [
3,
23143,
14196,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
8634,
3,
2,
957,
3430,
4818,
3274,
96,
9,
102,
52,
13565,
121,
3430,
14941,
7,
3,
2,
1401,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many years have a theme of Toronto Maple Leafs and an Issue Price of 24.95? | CREATE TABLE table_name_39 (
year VARCHAR,
theme VARCHAR,
issue_price VARCHAR
) | SELECT COUNT(year) FROM table_name_39 WHERE theme = "toronto maple leafs" AND issue_price = 24.95 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
215,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
6,
962,
834,
102,
4920,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
43,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
3800,
3274,
96,
235,
4438,
32,
22007,
8384,
7,
121,
3430,
962,
834,
102,
4920,
3274,
997,
5,
3301,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
before she was in dubshatar , which film did she make a special appearance in ? | CREATE TABLE table_203_18 (
id number,
"year" number,
"film" text,
"role" text,
"co-star" text,
"director" text,
"notes" text
) | SELECT "film" FROM table_203_18 WHERE "notes" = 'special appearance' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2606,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
9988,
121,
1499,
6,
96,
3491,
15,
121,
1499,
6,
96,
509,
18,
3624,
121,
1499,
6,
96,
25982,
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,
1... | [
3,
23143,
14196,
96,
9988,
121,
21680,
953,
834,
23330,
834,
2606,
549,
17444,
427,
96,
7977,
7,
121,
3274,
3,
31,
17434,
3179,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Return a bar chart about the distribution of Nationality and the average of ID , and group by attribute Nationality, and order in descending by the total number. | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
) | SELECT Nationality, AVG(ID) FROM swimmer GROUP BY Nationality ORDER BY AVG(ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,
6,
4000,
9,
6726,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
20360,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
868,
485,
6,
71,
17217,
599,
4309,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
868,
485,
4674,
11300,
272,
476,
71,
17217,
599,
4309,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what the age of patient 021-131895 was during their first hospital visit? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
) | SELECT patient.age FROM patient WHERE patient.uniquepid = '021-131895' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
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,
1868,
5,
545,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
2658,
13056,
2606,
3301,
31,
3430,
4486,
1868,
5,
31386,
26,
159,
7993,
715,
6827,
13046,
10376,
4674,
11300,
272,
476,
1868,
... |
What is the Year of submission of the Film The Art of Crying? | CREATE TABLE table_name_70 (
year INTEGER,
english_title VARCHAR
) | SELECT MIN(year) FROM table_name_70 WHERE english_title = "the art of crying" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
215,
3,
21342,
17966,
6,
22269,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2929,
13,
8121,
13,
8,
3417,
37,
1261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
22269,
834,
21869,
3274,
96,
532,
768,
13,
20621,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the away team at Junction Oval? | CREATE TABLE table_name_63 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team FROM table_name_63 WHERE venue = "junction oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
550,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
550,
372,
44,
29092,
411,
2165,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
5669,
3274,
96,
6959,
4985,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the district with incumbent being john e. miller | CREATE TABLE table_1342331_5 (
district VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_1342331_5 WHERE incumbent = "John E. Miller" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
3341,
834,
755,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
3939,
28,
28406,
271,
3,
27341,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2773,
3341,
834,
755,
549,
17444,
427,
28406,
3274,
96,
18300,
262,
5,
9429,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Born-Died has a Term start of 4 november 1943? | CREATE TABLE table_9444 (
"Name" text,
"Born-Died" text,
"Term start" text,
"Term end" text,
"Political Party" text
) | SELECT "Born-Died" FROM table_9444 WHERE "Term start" = '4 november 1943' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4240,
3628,
41,
96,
23954,
121,
1499,
6,
96,
279,
127,
29,
18,
8639,
26,
121,
1499,
6,
96,
11679,
456,
121,
1499,
6,
96,
11679,
414,
121,
1499,
6,
96,
8931,
155,
1950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
127,
29,
18,
8639,
26,
121,
21680,
953,
834,
4240,
3628,
549,
17444,
427,
96,
11679,
456,
121,
3274,
3,
31,
591,
3,
5326,
18247,
26436,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Event has a Resolution of loss, and a Record of 12 2? | CREATE TABLE table_name_56 (
event VARCHAR,
res VARCHAR,
record VARCHAR
) | SELECT event FROM table_name_56 WHERE res = "loss" AND record = "12–2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
605,
584,
4280,
28027,
6,
3,
60,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
8042,
65,
3,
9,
19957,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
3,
60,
7,
3274,
96,
2298,
7,
121,
3430,
1368,
3274,
96,
2122,
104,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the dates of the tests taken with result 'Pass', and count them by a bar chart, display by the names in ascending. | CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE TABLE Subjects (
subject_id INTEGER,
subject_name VARCHAR(120)
)
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Student_Course_Enrolment (
registration_id INTEGER,
student_id INTEGER,
course_id INTEGER,
date_of_enrolment DATETIME,
date_of_completion DATETIME
) | SELECT date_test_taken, COUNT(date_test_taken) FROM Student_Tests_Taken WHERE test_result = "Pass" GROUP BY date_test_taken ORDER BY date_test_taken | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4375,
41,
1236,
834,
23,
26,
3,
21342,
17966,
6,
833,
834,
858,
834,
5200,
257,
309,
6048,
382,
15382,
6,
833,
834,
858,
834,
521,
4377,
834,
2152,
106,
309,
6048,
382,
15382,
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,
1... | [
3,
23143,
14196,
833,
834,
4377,
834,
4914,
29,
6,
2847,
17161,
599,
5522,
834,
4377,
834,
4914,
29,
61,
21680,
6341,
834,
382,
222,
7,
834,
29468,
29,
549,
17444,
427,
794,
834,
60,
7,
83,
17,
3274,
96,
20192,
121,
350,
4630,
6... |
give me the number of patients whose admission year is less than 2172 and procedure long title is aortography? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2172" AND procedures.long_title = "Aortography" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the largest amount of ends won when stolen ends were 3? | CREATE TABLE table_25718552_2 (
Ends INTEGER,
stolen_ends VARCHAR
) | SELECT MAX(Ends) AS won FROM table_25718552_2 WHERE stolen_ends = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3436,
21594,
5373,
834,
357,
41,
3720,
7,
3,
21342,
17966,
6,
14244,
834,
989,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
866,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
8532,
26,
7,
61,
6157,
751,
21680,
953,
834,
357,
3436,
21594,
5373,
834,
357,
549,
17444,
427,
14244,
834,
989,
7,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What Upper stage has Launches to date of 0, and Version of 532? | CREATE TABLE table_12577 (
"Version" text,
"Fairing" text,
"CCBs" real,
"SRBs" text,
"Upper stage" text,
"Payload to LEO" text,
"Payload to GTO" text,
"Launches to date" real
) | SELECT "Upper stage" FROM table_12577 WHERE "Launches to date" = '0' AND "Version" = '532' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
4013,
41,
96,
5000,
1938,
121,
1499,
6,
96,
371,
2256,
53,
121,
1499,
6,
96,
2823,
279,
7,
121,
490,
6,
96,
134,
12108,
7,
121,
1499,
6,
96,
1265,
8153,
1726,
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,
1265,
8153,
1726,
121,
21680,
953,
834,
10124,
4013,
549,
17444,
427,
96,
3612,
202,
2951,
12,
833,
121,
3274,
3,
31,
632,
31,
3430,
96,
5000,
1938,
121,
3274,
3,
31,
4867,
357,
31,
1,
-100,
-100,
-100,
-100,
... |
What pick number did the New York Rangers have? | CREATE TABLE table_2897457_8 (pick__number VARCHAR, nhl_team VARCHAR) | SELECT pick__number FROM table_2897457_8 WHERE nhl_team = "New York Rangers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3914,
4581,
3436,
834,
927,
41,
17967,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
3,
29,
107,
40,
834,
11650,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1432,
834,
834,
5525,
1152,
21680,
953,
834,
357,
3914,
4581,
3436,
834,
927,
549,
17444,
427,
3,
29,
107,
40,
834,
11650,
3274,
96,
6861,
1060,
12612,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In 2011 with a hydroelectricity less than 119.6, what was the solar? | CREATE TABLE table_name_48 (solar VARCHAR, year VARCHAR, hydroelectricity VARCHAR) | SELECT solar FROM table_name_48 WHERE year = 2011 AND hydroelectricity < 119.6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
7,
17401,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
7668,
17470,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
2722,
28,
3,
9,
766... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3693,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
215,
3274,
2722,
3430,
7668,
17470,
485,
3,
2,
3,
19993,
5,
948,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of dates of successor formal installation when the vacator was Joshua Clayton ( F )? | CREATE TABLE table_224839_3 (
date_of_successors_formal_installation VARCHAR,
vacator VARCHAR
) | SELECT COUNT(date_of_successors_formal_installation) FROM table_224839_3 WHERE vacator = "Joshua Clayton ( F )" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3707,
3288,
834,
519,
41,
833,
834,
858,
834,
7,
17431,
24901,
7,
834,
2032,
138,
834,
14790,
584,
4280,
28027,
6,
3,
8938,
1016,
584,
4280,
28027,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
5522,
834,
858,
834,
7,
17431,
24901,
7,
834,
2032,
138,
834,
14790,
61,
21680,
953,
834,
2884,
3707,
3288,
834,
519,
549,
17444,
427,
3,
8938,
1016,
3274,
96,
683,
32,
14279,
9,
30618,
41,
377,
... |
Which player went to college at Tennessee-Chattanooga? | CREATE TABLE table_name_7 (
player VARCHAR,
college VARCHAR
) | SELECT player FROM table_name_7 WHERE college = "tennessee-chattanooga" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
1959,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
877,
12,
1900,
44,
12976,
18,
3541,
14748,
29,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1900,
3274,
96,
324,
655,
15,
15,
18,
16842,
17,
152,
32,
19914,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give me the number of patients whose admission location is trsf within this facility and discharge location is snf? | 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,
label text,
fluid 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 text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.discharge_location = "SNF" | [
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,
9,
26,
5451,
834,
14836,
3274,
96,
11421,
7016,
11951,
3162,
12689,
377,
5173,
3502,
15296,
121,
3... |
What is the highest position of club lietava-2 jonava, which has more than 12 points and more than 7 wins? | CREATE TABLE table_12430 (
"Position" real,
"Club" text,
"Games played" real,
"Wins" real,
"Draws" real,
"Loses" real,
"Goals scored" real,
"Goals conceded" real,
"Points" real
) | SELECT MAX("Position") FROM table_12430 WHERE "Points" > '12' AND "Club" = 'lietava-2 jonava' AND "Wins" > '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22504,
1458,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
23055,
7,
1944,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
22504,
1458,
549,
17444,
427,
96,
22512,
7,
121,
2490,
3,
31,
2122,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
1896,
17,
8644,
4949,
3,
15429,
8644,
3... |
What Player is in Place 1? | CREATE TABLE table_name_27 (
player VARCHAR,
place VARCHAR
) | SELECT player FROM table_name_27 WHERE place = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
1959,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
12387,
19,
16,
3399,
209,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
286,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Method of the match with a Time of 4:07? | CREATE TABLE table_name_53 (
method VARCHAR,
time VARCHAR
) | SELECT method FROM table_name_53 WHERE time = "4:07" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
1573,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7717,
13,
8,
1588,
28,
3,
9,
2900,
13,
314,
10,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1573,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
97,
3274,
96,
591,
10,
4560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was their record on December 4? | CREATE TABLE table_60622 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Record" FROM table_60622 WHERE "Date" = 'december 4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
4056,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
3328,
4056,
357,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which title has a year later than 1986 with an album as the format? | CREATE TABLE table_69088 (
"Year" real,
"Date" text,
"Title" text,
"Format(s)" text,
"Award Description(s)" text,
"Result(s)" text
) | SELECT "Title" FROM table_69088 WHERE "Year" > '1986' AND "Format(s)" = 'album' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2394,
4060,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
3809,
3357,
599,
7,
61,
121,
1499,
6,
96,
188,
2239,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
948,
2394,
4060,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
2294,
3840,
31,
3430,
96,
3809,
3357,
599,
7,
61,
121,
3274,
3,
31,
23703,
31,
1,
-100,
-100,
-100,
-10... |
let me know the number of patients taking drug via sl route suffering from pneumonia primary disease. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "PNEUMONIA" AND prescriptions.route = "SL" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the highest number of Cuts made that has a Top 10 smaller than 8 and Wins larger than 0? | CREATE TABLE table_56531 (
"Year" text,
"Starts" real,
"Cuts made" real,
"Wins" real,
"Top 10" real,
"Top 25" real,
"Earnings ($)" real,
"Money list rank" text
) | SELECT MAX("Cuts made") FROM table_56531 WHERE "Top 10" < '8' AND "Wins" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4122,
3341,
41,
96,
476,
2741,
121,
1499,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
15784,
17,
7,
263,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
335,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
15784,
17,
7,
263,
8512,
21680,
953,
834,
755,
4122,
3341,
549,
17444,
427,
96,
22481,
335,
121,
3,
2,
3,
31,
927,
31,
3430,
96,
18455,
7,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-10... |
How many millions of viewers were there for the episode with a run time of 18:00? | CREATE TABLE table_20490 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
) | SELECT "Viewers (in millions)" FROM table_20490 WHERE "Run time" = '18:00' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
2394,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
279,
8635,
5254,
833,
121,
1499,
6,
96,
448,
202,
97,
121,
1499,
6,
96,
15270,
277,
41,
77,
4040,
61,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15270,
277,
41,
77,
4040,
61,
121,
21680,
953,
834,
26363,
2394,
549,
17444,
427,
96,
448,
202,
97,
121,
3274,
3,
31,
536,
15692,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date was the score 6 4? | CREATE TABLE table_name_1 (
date VARCHAR,
score VARCHAR
) | SELECT date FROM table_name_1 WHERE score = "6–4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
833,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
2604,
431,
314,
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,
536,
549,
17444,
427,
2604,
3274,
96,
948,
104,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the outcome of the game when the partner is Rafael Osuna? | CREATE TABLE table_2215159_2 (outcome VARCHAR, partner VARCHAR) | SELECT outcome FROM table_2215159_2 WHERE partner = "Rafael Osuna" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
1808,
27904,
834,
357,
41,
670,
287,
15,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6138,
13,
8,
467,
116,
8,
2397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6138,
21680,
953,
834,
2884,
1808,
27904,
834,
357,
549,
17444,
427,
2397,
3274,
96,
448,
9,
89,
9,
15,
40,
411,
7,
202,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the university of akron's enrollment? | CREATE TABLE table_8216 (
"University" text,
"Common short form and abbreviation" text,
"Location" text,
"Enrollment" real,
"Athletics nickname" text,
"School Colors" text,
"Founded" text,
"Student newspaper" text
) | SELECT "Enrollment" FROM table_8216 WHERE "University" = 'university of akron' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4613,
2938,
41,
96,
8313,
485,
121,
1499,
6,
96,
10205,
106,
710,
607,
11,
703,
1999,
2099,
257,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8532,
4046,
297,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8532,
4046,
297,
121,
21680,
953,
834,
4613,
2938,
549,
17444,
427,
96,
8313,
485,
121,
3274,
3,
31,
7846,
485,
13,
3,
9,
22318,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the roll for summerland primary when decile is over 6? | CREATE TABLE table_name_66 (
roll VARCHAR,
decile VARCHAR,
name VARCHAR
) | SELECT roll FROM table_name_66 WHERE decile > 6 AND name = "summerland primary" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
3812,
584,
4280,
28027,
6,
7908,
109,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3812,
21,
1248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3812,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
7908,
109,
2490,
431,
3430,
564,
3274,
96,
23541,
7721,
2329,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many revised hepburn when english is roman characters | CREATE TABLE table_3531 (
"English" text,
"Japanese" text,
"Kana spelling" text,
"Revised Hepburn" text,
"Kunrei-shiki" text,
"Nihon-shiki" text
) | SELECT "Revised Hepburn" FROM table_3531 WHERE "English" = 'Roman characters' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
3341,
41,
96,
26749,
121,
1499,
6,
96,
683,
9750,
1496,
15,
121,
1499,
6,
96,
439,
152,
9,
19590,
121,
1499,
6,
96,
1649,
208,
3375,
216,
102,
7223,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
208,
3375,
216,
102,
7223,
121,
21680,
953,
834,
2469,
3341,
549,
17444,
427,
96,
26749,
121,
3274,
3,
31,
25139,
2850,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the winner when mark fuller was the runner-up? | CREATE TABLE table_59739 (
"Year" text,
"Winner" text,
"Runner-up" text,
"Venue" text,
"Location" text
) | SELECT "Winner" FROM table_59739 WHERE "Runner-up" = 'mark fuller' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
940,
3288,
41,
96,
476,
2741,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
434,
32,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18455,
687,
121,
21680,
953,
834,
3390,
940,
3288,
549,
17444,
427,
96,
23572,
18,
413,
121,
3274,
3,
31,
3920,
423,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the result of the 2007 gulf cup of nations? | CREATE TABLE table_name_39 (result VARCHAR, competition VARCHAR) | SELECT result FROM table_name_39 WHERE competition = "2007 gulf cup of nations" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
4101,
3,
6106,
89,
4119,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
2259,
3274,
96,
20615,
3,
6106,
89,
4119,
13,
9352,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which in 2004 has a 2003 of 1r and Wimbledon Tournament | CREATE TABLE table_6269 (
"Tournament" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"Career Win-Loss" text
) | SELECT "2004" FROM table_6269 WHERE "2003" = '1r' AND "Tournament" = 'wimbledon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
3951,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
3264,
121,
1499,
6,
96,
13527,
121,
1499,
6,
96,
23658,
121,
1499,
6,
96,
24898,
121,
1499,
6,
96,
23948... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21653,
121,
21680,
953,
834,
4056,
3951,
549,
17444,
427,
96,
23948,
121,
3274,
3,
31,
536,
52,
31,
3430,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
210,
603,
2296,
2029,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.