NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many married patients have left internal jugular vein thrombosis left arm edema as their primary disease? | 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 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 COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.diagnosis = "LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
13845,
25858,
308,
121,
3430,
14798,
5,
25930,
4844,
159,
32... |
What are all the dsl type offered by the M-Net telecom company? | CREATE TABLE table_1773908_3 (
dsl_type VARCHAR,
provider VARCHAR
) | SELECT dsl_type FROM table_1773908_3 WHERE provider = "M-net" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26793,
3288,
4018,
834,
519,
41,
3,
26,
7,
40,
834,
6137,
584,
4280,
28027,
6,
3175,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
8,
3,
26,
7,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
26,
7,
40,
834,
6137,
21680,
953,
834,
26793,
3288,
4018,
834,
519,
549,
17444,
427,
3175,
3274,
96,
329,
18,
1582,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the title of the episode that Rob Heyland wrote? | CREATE TABLE table_14330096_3 (title VARCHAR, writer VARCHAR) | SELECT title FROM table_14330096_3 WHERE writer = "Rob Heyland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
5426,
4314,
834,
519,
41,
21869,
584,
4280,
28027,
6,
4346,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2233,
13,
8,
5640,
24,
5376,
216,
289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
25133,
5426,
4314,
834,
519,
549,
17444,
427,
4346,
3274,
96,
24372,
216,
28900,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the nationality of the sunk ship named Rinos? | CREATE TABLE table_name_52 (
nationality VARCHAR,
fate VARCHAR,
ship VARCHAR
) | SELECT nationality FROM table_name_52 WHERE fate = "sunk" AND ship = "rinos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
1157,
485,
584,
4280,
28027,
6,
15126,
584,
4280,
28027,
6,
4383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1157,
485,
13,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
15126,
3274,
96,
7,
6513,
121,
3430,
4383,
3274,
96,
52,
23,
4844,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who ran for the House in the 1924 election? | CREATE TABLE table_1342256_11 (
candidates VARCHAR,
first_elected VARCHAR
) | SELECT candidates FROM table_1342256_11 WHERE first_elected = 1924 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
19337,
834,
2596,
41,
4341,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
4037,
21,
8,
1384,
16,
8,
957,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4341,
21680,
953,
834,
2368,
4165,
19337,
834,
2596,
549,
17444,
427,
166,
834,
19971,
3274,
957,
2266,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who wrote the episode with the code xle05012? | CREATE TABLE table_28348757_6 (
written_by VARCHAR,
production_code VARCHAR
) | SELECT written_by FROM table_28348757_6 WHERE production_code = "XLE05012" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3710,
4225,
3436,
834,
948,
41,
1545,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
8,
5640,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
2577,
3710,
4225,
3436,
834,
948,
549,
17444,
427,
999,
834,
4978,
3274,
96,
4,
3765,
632,
1752,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What record has decision (majority) as the method? | CREATE TABLE table_name_48 (record VARCHAR, method VARCHAR) | SELECT record FROM table_name_48 WHERE method = "decision (majority)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
60,
7621,
584,
4280,
28027,
6,
1573,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1368,
65,
1357,
41,
16547,
127,
485,
61,
38,
8,
1573,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1573,
3274,
96,
221,
18901,
41,
16547,
127,
485,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average grid with more than 23 laps? | CREATE TABLE table_name_56 (grid INTEGER, laps INTEGER) | SELECT AVG(grid) FROM table_name_56 WHERE laps > 23 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
3496,
26,
3,
21342,
17966,
6,
14941,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
8634,
28,
72,
145,
1902,
14941,
7,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
14941,
7,
2490,
1902,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average week number for games that had 28,800 fans in attendance? | CREATE TABLE table_45345 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" text,
"Record" text
) | SELECT AVG("Week") FROM table_45345 WHERE "Attendance" = '28,800' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
519,
2128,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
371,
10270,
1776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
518,
10266,
8512,
21680,
953,
834,
2128,
519,
2128,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
2577,
6,
6192,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the total levels in 2007? | CREATE TABLE table_name_7 (level INTEGER, season VARCHAR) | SELECT SUM(level) FROM table_name_7 WHERE season = 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
4563,
3,
21342,
17966,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
792,
1425,
16,
4101,
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,
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,
180,
6122,
599,
4563,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
774,
3274,
4101,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average number of wins before the season in 1906 where there were 0 draws? | CREATE TABLE table_name_72 (wins INTEGER, season VARCHAR, draws VARCHAR) | SELECT AVG(wins) FROM table_name_72 WHERE season < 1906 AND draws < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
3757,
7,
3,
21342,
17966,
6,
774,
584,
4280,
28027,
6,
14924,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
9204,
274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
774,
3,
2,
29696,
3430,
14924,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What game date had a record of 17-7? | CREATE TABLE table_22903773_2 (date VARCHAR, record VARCHAR) | SELECT date FROM table_22903773_2 WHERE record = "17-7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2394,
4118,
4552,
834,
357,
41,
5522,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
467,
833,
141,
3,
9,
1368,
13,
1003,
6832,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2884,
2394,
4118,
4552,
834,
357,
549,
17444,
427,
1368,
3274,
96,
2517,
6832,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the orbital regime of launches greater than 4 and failures less than 2? | CREATE TABLE table_38104 (
"Orbital regime" text,
"Launches" real,
"Successes" real,
"Failures" real,
"Accidentally Achieved" real
) | SELECT "Orbital regime" FROM table_38104 WHERE "Launches" > '4' AND "Failures" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
15442,
41,
96,
7395,
2360,
138,
10030,
121,
1499,
6,
96,
3612,
202,
2951,
121,
490,
6,
96,
134,
17431,
6119,
7,
121,
490,
6,
96,
371,
9,
173,
7665,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7395,
2360,
138,
10030,
121,
21680,
953,
834,
3747,
15442,
549,
17444,
427,
96,
3612,
202,
2951,
121,
2490,
3,
31,
591,
31,
3430,
96,
371,
9,
173,
7665,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the local name given to the city of Canberra? | CREATE TABLE table_72082 (
"Country ( exonym )" text,
"Capital ( exonym )" text,
"Country ( endonym )" text,
"Capital ( endonym )" text,
"Official or native language(s) (alphabet/script)" text
) | SELECT "Capital ( endonym )" FROM table_72082 WHERE "Capital ( exonym )" = 'Canberra' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18517,
4613,
41,
96,
10628,
651,
41,
1215,
19140,
3,
61,
121,
1499,
6,
96,
19566,
9538,
41,
1215,
19140,
3,
61,
121,
1499,
6,
96,
10628,
651,
41,
414,
19140,
3,
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,
19566,
9538,
41,
414,
19140,
3,
61,
121,
21680,
953,
834,
18517,
4613,
549,
17444,
427,
96,
19566,
9538,
41,
1215,
19140,
3,
61,
121,
3274,
3,
31,
14050,
115,
16841,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Date has a Record of 58 10? | CREATE TABLE table_name_78 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_78 WHERE record = "58–10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
11392,
13,
3,
3449,
335,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
1368,
3274,
96,
3449,
104,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Date, when Venue is 'Weserstadion , Bremen'? | CREATE TABLE table_46356 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Competition" text,
"Match Report" text
) | SELECT "Date" FROM table_46356 WHERE "Venue" = 'weserstadion , bremen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
2469,
948,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
5890,
4995,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4448,
2469,
948,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
1123,
7,
49,
2427,
26,
23,
106,
3,
6,
3,
1999,
904,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which season last aired on May 6, 1987? | CREATE TABLE table_33828 (
"Season" text,
"Episodes" real,
"First airdate" text,
"Last airdate" text,
"Nielsen ranking" text
) | SELECT "Season" FROM table_33828 WHERE "Last airdate" = 'may 6, 1987' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3747,
2577,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
427,
102,
159,
32,
1395,
121,
490,
6,
96,
25171,
799,
5522,
121,
1499,
6,
96,
3612,
7,
17,
799,
5522,
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,
134,
15,
9,
739,
121,
21680,
953,
834,
519,
3747,
2577,
549,
17444,
427,
96,
3612,
7,
17,
799,
5522,
121,
3274,
3,
31,
13726,
8580,
12701,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What year had a version called Wolf Mix? | CREATE TABLE table_name_11 (
year INTEGER,
version VARCHAR
) | SELECT AVG(year) FROM table_name_11 WHERE version = "wolf mix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
215,
3,
21342,
17966,
6,
988,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
141,
3,
9,
988,
718,
9091,
7382,
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,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
988,
3274,
96,
19747,
2153,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the runner(s)-up for the tournament played on Jun 3, 1973? | CREATE TABLE table_name_95 (
runner_s__up VARCHAR,
date VARCHAR
) | SELECT runner_s__up FROM table_name_95 WHERE date = "jun 3, 1973" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3,
10806,
599,
7,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10806,
834,
7,
834,
834,
413,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
833,
3274,
96,
6959,
6180,
17107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bar chart x axis nationality y axis how many nationality, and sort in desc by the bar. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
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 stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
) | SELECT Nationality, COUNT(Nationality) FROM swimmer GROUP BY Nationality ORDER BY Nationality DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
24732,
485,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
868,
485,
4674,
11300,
272,
476,
868,
485,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
preexisting severe left ventricular dysfunction ( ef < 20 % ) | CREATE TABLE table_test_25 (
"id" int,
"ejection_fraction_ef" int,
"respiratory_tract_infection" bool,
"left_ventricular_ejection_fraction_lvef" int,
"intra_aortic_balloon_pump_iabp" bool,
"systolic_blood_pressure_sbp" int,
"central_diabetes_insipidus" bool,
"hyponatremia" bool,
"heart_disease" bool,
"stroke" bool,
"body_weight" float,
"neutrophil_count" int,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"neutropenia" int,
"estimated_glomerular_filtration_rate_egfr" int,
"hemodynamic_instability" bool,
"sepsis" bool,
"liver_disease" bool,
"serum_sodium_concentration" int,
"heart_rate" int,
"malignancy" bool,
"severe_left_ventricular_dysfunction" bool,
"NOUSE" float
) | SELECT * FROM table_test_25 WHERE severe_left_ventricular_dysfunction = 1 OR ejection_fraction_ef < 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
1828,
41,
96,
23,
26,
121,
16,
17,
6,
96,
15,
21440,
834,
22513,
834,
15,
89,
121,
16,
17,
6,
96,
60,
7,
2388,
6546,
834,
6471,
17,
834,
77,
17856,
121,
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,
4377,
834,
1828,
549,
17444,
427,
5274,
834,
17068,
834,
31695,
834,
26,
63,
7,
23993,
3274,
209,
4674,
3,
15,
21440,
834,
22513,
834,
15,
89,
3,
2,
460,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the number of patients whose ethnicity is black/cape verdean and primary disease is sternal wound infection? | 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 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.diagnosis = "STERNAL WOUND INFECTION" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
16986,
427,
3,
16174,
308,
20152,
121,
3430,
14798,... |
Which Opponent is on september 9, 2004? | CREATE TABLE table_name_77 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_77 WHERE date = "september 9, 2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
9977,
19,
30,
16022,
18247,
9902,
4406,
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,
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,
4013,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
9902,
4406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of the game at Olympic Stadium? | CREATE TABLE table_24989925_2 (date VARCHAR, game_site VARCHAR) | SELECT date FROM table_24989925_2 WHERE game_site = "Olympic Stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3916,
3264,
1828,
834,
357,
41,
5522,
584,
4280,
28027,
6,
467,
834,
3585,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
467,
44,
11548... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2266,
3916,
3264,
1828,
834,
357,
549,
17444,
427,
467,
834,
3585,
3274,
96,
667,
120,
51,
6174,
12750,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give me the number of patients whose procedure icd9 code is 4601? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "4601" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Find the title of course whose prerequisite is course Differential Geometry. | CREATE TABLE advisor (
s_id text,
i_id text
)
CREATE TABLE course (
course_id text,
title text,
dept_name text,
credits number
)
CREATE TABLE department (
dept_name text,
building text,
budget number
)
CREATE TABLE classroom (
building text,
room_number text,
capacity number
)
CREATE TABLE prereq (
course_id text,
prereq_id text
)
CREATE TABLE takes (
id text,
course_id text,
sec_id text,
semester text,
year number,
grade text
)
CREATE TABLE instructor (
id text,
name text,
dept_name text,
salary number
)
CREATE TABLE teaches (
id text,
course_id text,
sec_id text,
semester text,
year number
)
CREATE TABLE time_slot (
time_slot_id text,
day text,
start_hr number,
start_min number,
end_hr number,
end_min number
)
CREATE TABLE student (
id text,
name text,
dept_name text,
tot_cred number
)
CREATE TABLE section (
course_id text,
sec_id text,
semester text,
year number,
building text,
room_number text,
time_slot_id text
) | SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8815,
41,
3,
7,
834,
23,
26,
1499,
6,
3,
23,
834,
23,
26,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
503,
834,
23,
26,
1499,
6,
2233,
1499,
6,
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,
2233,
21680,
503,
549,
17444,
427,
503,
834,
23,
26,
3388,
41,
23143,
14196,
332,
5411,
19221,
834,
23,
26,
21680,
554,
60,
1824,
6157,
332,
536,
3,
15355,
3162,
503,
6157,
332,
357,
9191,
332,
5411,
2026,
60,
1824,... |
What was the result for 10/04/1947? | CREATE TABLE table_48491 (
"Date" text,
"Opponent#" text,
"Site" text,
"Result" text,
"Attendance" text
) | SELECT "Result" FROM table_48491 WHERE "Date" = '10/04/1947' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
3647,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
4663,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
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,
20119,
121,
21680,
953,
834,
3707,
3647,
536,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
1714,
24288,
13523,
4177,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Barreto's song choice when the theme was samba? | CREATE TABLE table_27614571_1 (song_choice VARCHAR, theme VARCHAR) | SELECT song_choice FROM table_27614571_1 WHERE theme = "Samba" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4241,
2128,
4450,
834,
536,
41,
7,
2444,
834,
3995,
867,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
1386,
60,
235,
31,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2324,
834,
3995,
867,
21680,
953,
834,
2555,
4241,
2128,
4450,
834,
536,
549,
17444,
427,
3800,
3274,
96,
134,
14303,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest value for general 2008 when there is less than 5.5 in European 2009, more than 5.8 in general 2006, more than 3.3 in general 2001, and less than 3.6 for 2004 European? | CREATE TABLE table_76153 (
"1996 general" real,
"1999 European" real,
"2001 general" real,
"2004 European" real,
"2006 general" real,
"2008 general" real,
"2009 European" real,
"2013 general" real
) | SELECT MAX("2008 general") FROM table_76153 WHERE "2009 European" < '5.5' AND "2006 general" > '5.8' AND "2001 general" > '3.3' AND "2004 European" < '3.6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
27025,
41,
96,
2294,
4314,
879,
121,
490,
6,
96,
2294,
3264,
1611,
121,
490,
6,
96,
23658,
879,
121,
490,
6,
96,
21653,
1611,
121,
490,
6,
96,
21196,
879,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
16128,
879,
8512,
21680,
953,
834,
3959,
27025,
549,
17444,
427,
96,
16660,
1611,
121,
3,
2,
3,
31,
15938,
31,
3430,
96,
21196,
879,
121,
2490,
3,
31,
9125,
927,
31,
3430,
96,
23658,
879,
121,
... |
What is the name of the swimmer from Australia in lane 4 with a heat larger than 4? | CREATE TABLE table_name_16 (
name VARCHAR,
nationality VARCHAR,
heat VARCHAR,
lane VARCHAR
) | SELECT name FROM table_name_16 WHERE heat > 4 AND lane = 4 AND nationality = "australia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
564,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
1678,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1678,
2490,
314,
3430,
3,
8102,
3274,
314,
3430,
1157,
485,
3274,
96,
2064,
8792,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the most male life expectancy for pakistan | CREATE TABLE table_2701625_1 (
male_life_expectancy INTEGER,
country VARCHAR
) | SELECT MAX(male_life_expectancy) FROM table_2701625_1 WHERE country = "Pakistan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
2938,
1828,
834,
536,
41,
5069,
834,
4597,
834,
994,
855,
75,
17,
6833,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
13513,
834,
4597,
834,
994,
855,
75,
17,
6833,
61,
21680,
953,
834,
17485,
2938,
1828,
834,
536,
549,
17444,
427,
684,
3274,
96,
345,
11259,
5627,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the tournament for outcome of winner and clay surface with opponent of aranza salut | CREATE TABLE table_name_61 (tournament VARCHAR, opponent VARCHAR, outcome VARCHAR, surface VARCHAR) | SELECT tournament FROM table_name_61 WHERE outcome = "winner" AND surface = "clay" AND opponent = "aranza salut" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
6138,
3274,
96,
3757,
687,
121,
3430,
1774,
3274,
96,
4651,
63,
121,
3430,
15264,
3274,
96,
291,
4557,
9,
20239,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which party gained more seats : the radical civic union or the democratic progressive party ? | CREATE TABLE table_204_982 (
id number,
"party/electoral alliance" text,
"seats" number,
"change" number,
"votes" number,
"%" text
) | SELECT "party/electoral alliance" FROM table_204_982 WHERE "party/electoral alliance" IN ('radical civic union (ucr)', 'democratic progressive') ORDER BY "change" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3916,
357,
41,
3,
23,
26,
381,
6,
96,
8071,
87,
15,
3437,
8563,
15454,
121,
1499,
6,
96,
7,
1544,
7,
121,
381,
6,
96,
13073,
121,
381,
6,
96,
1621,
1422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8071,
87,
15,
3437,
8563,
15454,
121,
21680,
953,
834,
26363,
834,
3916,
357,
549,
17444,
427,
96,
8071,
87,
15,
3437,
8563,
15454,
121,
3388,
41,
31,
5883,
1489,
18671,
7021,
41,
76,
75,
52,
61,
31,
6,
3,
3... |
What is Name, when Bonus is greater than 1, when Only Point is greater than 7, and when Total Point is less than 21? | CREATE TABLE table_name_10 (
name VARCHAR,
total_point VARCHAR,
bonus VARCHAR,
only_point VARCHAR
) | SELECT name FROM table_name_10 WHERE bonus > 1 AND only_point > 7 AND total_point < 21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
564,
584,
4280,
28027,
6,
792,
834,
2700,
584,
4280,
28027,
6,
4023,
584,
4280,
28027,
6,
163,
834,
2700,
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,
564,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
4023,
2490,
209,
3430,
163,
834,
2700,
2490,
489,
3430,
792,
834,
2700,
3,
2,
1401,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the ids of all employees who don't destroy any document. | CREATE TABLE Employees (
employee_id VARCHAR,
Destroyed_by_Employee_ID VARCHAR
)
CREATE TABLE Documents_to_be_destroyed (
employee_id VARCHAR,
Destroyed_by_Employee_ID VARCHAR
) | SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15871,
7,
41,
3490,
834,
23,
26,
584,
4280,
28027,
6,
374,
6626,
10093,
834,
969,
834,
427,
51,
7379,
63,
15,
15,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3490,
834,
23,
26,
21680,
15871,
7,
262,
4,
30416,
3,
23143,
14196,
374,
6626,
10093,
834,
969,
834,
427,
51,
7379,
63,
15,
15,
834,
4309,
21680,
11167,
7,
834,
235,
834,
346,
834,
221,
6626,
10093,
1,
-100,
-100,... |
List the positions of players whose average number of points scored by that position is larger than 20, give me a bar chart showing the number of different positions, show in ascending by the Y-axis. | CREATE TABLE competition_result (
Competition_ID int,
Club_ID_1 int,
Club_ID_2 int,
Score text
)
CREATE TABLE club (
Club_ID int,
name text,
Region text,
Start_year text
)
CREATE TABLE player (
Player_ID int,
name text,
Position text,
Club_ID int,
Apps real,
Tries real,
Goals text,
Points real
)
CREATE TABLE competition (
Competition_ID int,
Year real,
Competition_type text,
Country text
)
CREATE TABLE club_rank (
Rank real,
Club_ID int,
Gold real,
Silver real,
Bronze real,
Total real
) | SELECT Position, COUNT(Position) FROM player GROUP BY Position HAVING AVG(Points) >= 20 ORDER BY COUNT(Position) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2259,
834,
60,
7,
83,
17,
41,
15571,
834,
4309,
16,
17,
6,
1949,
834,
4309,
834,
536,
16,
17,
6,
1949,
834,
4309,
834,
357,
16,
17,
6,
17763,
1499,
3,
61,
3,
32102,
32103,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14258,
6,
2847,
17161,
599,
345,
32,
7,
4749,
61,
21680,
1959,
350,
4630,
6880,
272,
476,
14258,
454,
6968,
2365,
71,
17217,
599,
22512,
7,
61,
2490,
2423,
460,
4674,
11300,
272,
476,
2847,
17161,
599,
345,
32,
7,
... |
What catalogue was recorded on 9/10/67 and a release date of 1/9/68? | CREATE TABLE table_name_77 (catalogue VARCHAR, recorded VARCHAR, release_date VARCHAR) | SELECT catalogue FROM table_name_77 WHERE recorded = "9/10/67" AND release_date = "1/9/68" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
2138,
9,
10384,
584,
4280,
28027,
6,
4381,
584,
4280,
28027,
6,
1576,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
14978,
47,
438... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14978,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
4381,
3274,
96,
1298,
11476,
87,
3708,
121,
3430,
1576,
834,
5522,
3274,
96,
12989,
1298,
87,
3651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Compute the total sum team id across all home as a pie chart. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT All_Home, SUM(Team_ID) FROM basketball_match GROUP BY All_Home | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
180,
6122,
599,
18699,
834,
4309,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
19040,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the full amount of Total for Austria when the number of gold is less than 0? | CREATE TABLE table_name_45 (total INTEGER, nation VARCHAR, gold VARCHAR) | SELECT SUM(total) FROM table_name_45 WHERE nation = "austria" AND gold < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
235,
1947,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
423,
866,
13,
9273,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
2982,
3274,
96,
402,
23387,
121,
3430,
2045,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those products with a price between 60 and 120, give me a pie chart to reflect the proportion of name and price. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Name, Price FROM Products WHERE Price BETWEEN 60 AND 120 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
5312,
21680,
7554,
549,
17444,
427,
5312,
272,
7969,
518,
23394,
1640,
3430,
5864,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the No. 8 which has a No. 4 of benjamin, and a No. 3 of liam? | CREATE TABLE table_43792 (
"Region (year)" text,
"No. 1" text,
"No. 2" text,
"No. 3" text,
"No. 4" text,
"No. 5" text,
"No. 6" text,
"No. 7" text,
"No. 8" text,
"No. 9" text,
"No. 10" text
) | SELECT "No. 8" FROM table_43792 WHERE "No. 4" = 'benjamin' AND "No. 3" = 'liam' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
4440,
357,
41,
96,
17748,
23,
106,
41,
1201,
61,
121,
1499,
6,
96,
4168,
5,
209,
121,
1499,
6,
96,
4168,
5,
204,
121,
1499,
6,
96,
4168,
5,
220,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4168,
5,
505,
121,
21680,
953,
834,
4906,
4440,
357,
549,
17444,
427,
96,
4168,
5,
3,
20364,
3274,
3,
31,
115,
35,
1191,
1109,
31,
3430,
96,
4168,
5,
220,
121,
3274,
3,
31,
40,
23,
265,
31,
1,
-100,
-100,
... |
With a parallel bars score of 14.625 what is the average total? | CREATE TABLE table_name_8 (total INTEGER, parallel_bars VARCHAR) | SELECT AVG(total) FROM table_name_8 WHERE parallel_bars = "14.625" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
235,
1947,
3,
21342,
17966,
6,
8449,
834,
1047,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
438,
3,
9,
8449,
6448,
2604,
13,
209,
25652,
182... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
8449,
834,
1047,
7,
3274,
96,
2534,
5,
4056,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the muslim percentage of the 49634 population of england and wales 000? | CREATE TABLE table_1532779_1 (
muslim___percentage_of_total_population_ VARCHAR,
population_of_england_and_wales_000 VARCHAR
) | SELECT muslim___percentage_of_total_population_ FROM table_1532779_1 WHERE population_of_england_and_wales_000 = 49634 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27025,
2555,
4440,
834,
536,
41,
3,
3252,
4941,
834,
834,
834,
883,
3728,
545,
834,
858,
834,
235,
1947,
834,
9791,
7830,
834,
584,
4280,
28027,
6,
2074,
834,
858,
834,
460... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3252,
4941,
834,
834,
834,
883,
3728,
545,
834,
858,
834,
235,
1947,
834,
9791,
7830,
834,
21680,
953,
834,
27025,
2555,
4440,
834,
536,
549,
17444,
427,
2074,
834,
858,
834,
4606,
40,
232,
834,
232,
834,
210,
... |
What is the D 45 with a D 46 with d 46 ? | CREATE TABLE table_52305 (
"D 49 \u221a" text,
"D 48 \u221a" text,
"D 47 \u221a" text,
"D 46 \u221a" text,
"D 45 \u221a" text,
"D 44 \u221a" text,
"D 43 \u221a" text,
"D 42 \u221a" text,
"D 41 \u221a" text
) | SELECT "D 45 \u221a" FROM table_52305 WHERE "D 46 \u221a" = 'd 46 √' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
26724,
41,
96,
308,
9526,
3,
2,
76,
357,
2658,
9,
121,
1499,
6,
96,
308,
4678,
3,
2,
76,
357,
2658,
9,
121,
1499,
6,
96,
308,
10635,
3,
2,
76,
357,
2658,
9,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
3479,
3,
2,
76,
357,
2658,
9,
121,
21680,
953,
834,
5373,
26724,
549,
17444,
427,
96,
308,
9668,
3,
2,
76,
357,
2658,
9,
121,
3274,
3,
31,
26,
9668,
3,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In language where Saturday is සෙනසුරාදා senasuraadaa, what is Tuesday? | CREATE TABLE table_1277350_3 (tuesday_mangala__mars_ VARCHAR, saturday_shani__saturn_ VARCHAR) | SELECT tuesday_mangala__mars_ FROM table_1277350_3 WHERE saturday_shani__saturn_ = "සෙනසුරාදා Senasuraadaa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4013,
16975,
834,
519,
41,
17,
76,
15,
7,
1135,
834,
348,
6191,
9,
834,
834,
1635,
7,
834,
584,
4280,
28027,
6,
3,
7,
6010,
1135,
834,
7,
2618,
23,
834,
834,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
76,
15,
7,
1135,
834,
348,
6191,
9,
834,
834,
1635,
7,
834,
21680,
953,
834,
2122,
4013,
16975,
834,
519,
549,
17444,
427,
3,
7,
6010,
1135,
834,
7,
2618,
23,
834,
834,
7,
9,
7535,
834,
3274,
96,
2,
4... |
Name the percentage which has females of 2 | CREATE TABLE table_name_17 (percentage___percentage_ VARCHAR, females VARCHAR) | SELECT percentage___percentage_ FROM table_name_17 WHERE females = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
883,
3728,
545,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
6,
3955,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5294,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5294,
834,
834,
834,
883,
3728,
545,
834,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
3955,
7,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which pick's player was Marc Lewis (lhp)? | CREATE TABLE table_53042 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"School" text
) | SELECT "Pick" FROM table_53042 WHERE "Player" = 'marc lewis (lhp)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26918,
4165,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
29364,
121,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
3142,
121,
21680,
953,
834,
26918,
4165,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
1635,
75,
90,
210,
159,
41,
40,
107,
102,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Record for the game on October 30? | CREATE TABLE table_10520 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Record" FROM table_10520 WHERE "Date" = 'october 30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12869,
1755,
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,
3,
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,
0,
0... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
12869,
1755,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
32,
75,
235,
1152,
604,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Hanzi has a Regional Population of 4,591,972 in 2010? | CREATE TABLE table_71936 (
"City" text,
"Hanzi" text,
"Hanyu Pinyin" text,
"Regional Population(2010)" text,
"GDP(2011)(billion yuan)" real
) | SELECT "Hanzi" FROM table_71936 WHERE "Regional Population(2010)" = '4,591,972' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2294,
3420,
41,
96,
254,
485,
121,
1499,
6,
96,
566,
4557,
23,
121,
1499,
6,
96,
566,
6820,
76,
8050,
63,
77,
121,
1499,
6,
96,
17748,
6318,
29659,
599,
14926,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
566,
4557,
23,
121,
21680,
953,
834,
940,
2294,
3420,
549,
17444,
427,
96,
17748,
6318,
29659,
599,
14926,
61,
121,
3274,
3,
31,
26392,
4729,
6,
4327,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Home team score At Windy Hill? | CREATE TABLE table_name_48 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team AS score FROM table_name_48 WHERE venue = "windy hill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1210,
372,
2604,
486,
5634,
63,
3588,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
5669,
3274,
96,
5165,
63,
9956,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How much does Point Barrow weight? | CREATE TABLE table_20095300_1 (weight__st VARCHAR, _lb_ VARCHAR, name VARCHAR) | SELECT weight__st, _lb_ FROM table_20095300_1 WHERE name = "Point Barrow" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
3301,
5426,
834,
536,
41,
9378,
834,
834,
7,
17,
584,
4280,
28027,
6,
3,
834,
40,
115,
834,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1293,
834,
834,
7,
17,
6,
3,
834,
40,
115,
834,
21680,
953,
834,
3632,
3301,
5426,
834,
536,
549,
17444,
427,
564,
3274,
96,
22512,
272,
6770,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many gold and silver medals did germany win ? | CREATE TABLE table_203_707 (
id number,
"rank" number,
"npc" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "gold" + "silver" FROM table_203_707 WHERE "npc" = 'germany' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2518,
940,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
102,
75,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14910,
121,
1768,
96,
7,
173,
624,
121,
21680,
953,
834,
23330,
834,
2518,
940,
549,
17444,
427,
96,
29,
102,
75,
121,
3274,
3,
31,
1304,
348,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What college did the player come from whose position is DL? | CREATE TABLE table_25085059_3 (college VARCHAR, position VARCHAR) | SELECT college FROM table_25085059_3 WHERE position = "DL" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
17246,
3390,
834,
519,
41,
3297,
7883,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1900,
410,
8,
1959,
369,
45,
3,
2544,
1102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1900,
21680,
953,
834,
11434,
17246,
3390,
834,
519,
549,
17444,
427,
1102,
3274,
96,
10013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which hometown is the played Dajuan Wagner from? | CREATE TABLE table_54269 (
"Year" text,
"Player" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | SELECT "Hometown" FROM table_54269 WHERE "Player" = 'dajuan wagner' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
357,
3951,
41,
96,
476,
2741,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
3540,
121,
21680,
953,
834,
5062,
357,
3951,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
26,
9,
2047,
152,
3,
15238,
687,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the second rider when papayero raced as Horse 1 in the city of rancagua? | CREATE TABLE table_name_2 (rider_2 VARCHAR, city VARCHAR, horse_1 VARCHAR) | SELECT rider_2 FROM table_name_2 WHERE city = "rancagua" AND horse_1 = "papayero" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
4055,
49,
834,
357,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
6,
4952,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
511... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2564,
52,
834,
357,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
690,
3274,
96,
2002,
658,
1744,
9,
121,
3430,
4952,
834,
536,
3274,
96,
16281,
9,
7975,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Metodija Gogov's Start of Reign? | CREATE TABLE table_7487 (
"Name" text,
"Start of Reign" real,
"End of Reign" text,
"Birth Name" text,
"Title" text
) | SELECT COUNT("Start of Reign") FROM table_7487 WHERE "Birth Name" = 'metodija gogov' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4225,
41,
96,
23954,
121,
1499,
6,
96,
7681,
17,
13,
419,
3191,
121,
490,
6,
96,
8532,
26,
13,
419,
3191,
121,
1499,
6,
96,
279,
23,
52,
189,
5570,
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,
2847,
17161,
599,
121,
7681,
17,
13,
419,
3191,
8512,
21680,
953,
834,
4581,
4225,
549,
17444,
427,
96,
279,
23,
52,
189,
5570,
121,
3274,
3,
31,
3493,
32,
26,
23,
1191,
281,
9527,
31,
1,
-100,
-100,
-100,
-100,
... |
How many pac-12 sports are shown for california polytechnic state university? | CREATE TABLE table_30005 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Current Conference" text,
"Pac-12 Sports" text
) | SELECT COUNT("Pac-12 Sports") FROM table_30005 WHERE "Institution" = 'California Polytechnic State University' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
3076,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
345,
9,
75,
5947,
5716,
8512,
21680,
953,
834,
5426,
3076,
549,
17444,
427,
96,
1570,
17448,
121,
3274,
3,
31,
14318,
99,
127,
29,
23,
9,
7945,
3470,
2532,
1015,
636,
31,
1,
-100,
-100,
-100... |
When was there a result of 5-1? | CREATE TABLE table_name_41 (date VARCHAR, result VARCHAR) | SELECT date FROM table_name_41 WHERE result = "5-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
5522,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
132,
3,
9,
741,
13,
305,
2292,
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,
4853,
549,
17444,
427,
741,
3274,
96,
755,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
On what date did Aymo Maggi win the Rome Grand Prix ? | CREATE TABLE table_name_6 (date VARCHAR, winning_driver VARCHAR, name VARCHAR) | SELECT date FROM table_name_6 WHERE winning_driver = "aymo maggi" AND name = "rome grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
5522,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
410,
71,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
9,
63,
51,
32,
954,
15406,
121,
3430,
564,
3274,
96,
11956,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the percentage of the Shivalik Zone where the percentage of the Mid-Hill Zone is 10%? | CREATE TABLE table_10638523_1 (shivalik_zone VARCHAR, mid_hill_zone VARCHAR) | SELECT shivalik_zone FROM table_10638523_1 WHERE mid_hill_zone = "10%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3891,
4433,
2773,
834,
536,
41,
5605,
900,
8654,
834,
9431,
584,
4280,
28027,
6,
2076,
834,
6321,
834,
9431,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
5605,
900,
8654,
834,
9431,
21680,
953,
834,
1714,
3891,
4433,
2773,
834,
536,
549,
17444,
427,
2076,
834,
6321,
834,
9431,
3274,
96,
1714,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score of the marco island tournament match when Kathleen Horvath won runner-up? | CREATE TABLE table_name_91 (
score VARCHAR,
outcome VARCHAR,
tournament VARCHAR
) | SELECT score FROM table_name_91 WHERE outcome = "runner-up" AND tournament = "marco island" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
2604,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
14124,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
6138,
3274,
96,
10806,
18,
413,
121,
3430,
5892,
3274,
96,
1635,
509,
3368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many teams won at least three bronze medals in this event ? | CREATE TABLE table_204_775 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT COUNT("nation") FROM table_204_775 WHERE "bronze" >= 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
3072,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
257,
8512,
21680,
953,
834,
26363,
834,
940,
3072,
549,
17444,
427,
96,
13711,
776,
121,
2490,
2423,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average February that has 18-26-10 as the record, with a game less than 54? | CREATE TABLE table_name_11 (
february INTEGER,
record VARCHAR,
game VARCHAR
) | SELECT AVG(february) FROM table_name_11 WHERE record = "18-26-10" AND game < 54 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
29976,
76,
1208,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
2083,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
89,
15,
9052,
1208,
61,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
1368,
3274,
96,
2606,
18,
2688,
4536,
121,
3430,
467,
3,
2,
10630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the saturday saturnus ( saturn) with wednesday mercurius (mercury) being mercuridi | CREATE TABLE table_1277350_1 (
saturday_saturnus___saturn_ VARCHAR,
wednesday_mercurius__mercury_ VARCHAR
) | SELECT saturday_saturnus___saturn_ FROM table_1277350_1 WHERE wednesday_mercurius__mercury_ = "Mercuridi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4013,
16975,
834,
536,
41,
3,
7,
6010,
1135,
834,
7,
9,
7535,
302,
834,
834,
834,
7,
9,
7535,
834,
584,
4280,
28027,
6,
62,
26,
1496,
1135,
834,
935,
9659,
302,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
7,
6010,
1135,
834,
7,
9,
7535,
302,
834,
834,
834,
7,
9,
7535,
834,
21680,
953,
834,
2122,
4013,
16975,
834,
536,
549,
17444,
427,
62,
26,
1496,
1135,
834,
935,
9659,
302,
834,
834,
935,
3663,
63,
834,
3274,... |
How many restaurant is the Sandwich type restaurant? | CREATE TABLE Type_Of_Restaurant (
Id VARCHAR
)
CREATE TABLE Restaurant (
Id VARCHAR
)
CREATE TABLE Restaurant_Type (
Id VARCHAR
) | SELECT COUNT(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6632,
834,
667,
89,
834,
448,
222,
402,
3569,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6233,
41,
27,
26,
584,
4280,
28027,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
6233,
3,
15355,
3162,
6632,
834,
667,
89,
834,
448,
222,
402,
3569,
9191,
6233,
5,
1649,
7,
4309,
3274,
6632,
834,
667,
89,
834,
448,
222,
402,
3569,
5,
1649,
7,
4309,
3,
15355,
... |
What papers has Yoav Artzi written ? | CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE author (
authorid int,
authorname varchar
) | SELECT DISTINCT writes.paperid FROM author, writes WHERE author.authorname = 'Yoav Artzi' AND writes.authorid = author.authorid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
41,
1040,
23,
26,
16,
17,
6,
2233,
3,
4331,
4059,
6,
5669,
23,
26,
16,
17,
6,
215,
16,
17,
6,
3,
5525,
17994,
16,
17,
6,
3,
5525,
11675,
969,
16,
17,
6,
6378,
23,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
11858,
5,
19587,
23,
26,
21680,
2291,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
476,
32,
9,
208,
1261,
702,
31,
3430,
11858,
5,
17415,
23,
26,
3274,
2291,
5,
17415,
23,
... |
what is the nickname that joined 1902 1? | CREATE TABLE table_28510 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" text
) | SELECT "Nickname" FROM table_28510 WHERE "Joined" = '1902 1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
25926,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
567,
3142,
4350,
121,
21680,
953,
834,
2577,
25926,
549,
17444,
427,
96,
683,
32,
630,
26,
121,
3274,
3,
31,
11776,
357,
209,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Essendon Home Team's venue? | CREATE TABLE table_32988 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_32988 WHERE "Home team" = 'essendon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3166,
4060,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
519,
3166,
4060,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
8185,
2029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of weeks that the Seahawks had a record of 5-5? | CREATE TABLE table_name_73 (week VARCHAR, record VARCHAR) | SELECT COUNT(week) FROM table_name_73 WHERE record = "5-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
8041,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
1274,
24,
8,
3319,
14400,
7,
141,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1368,
3274,
96,
755,
18,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For week number of the top 40, what was the results? | CREATE TABLE table_25265 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Result" FROM table_25265 WHERE "Week #" = 'Top 40' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
357,
4122,
41,
96,
518,
10266,
1713,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
7395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
1828,
357,
4122,
549,
17444,
427,
96,
518,
10266,
1713,
121,
3274,
3,
31,
22481,
1283,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the final score for the game that was contested on February 1, 2009? | CREATE TABLE table_55 (
"Year" real,
"Game or event" text,
"Date contested" text,
"League or governing body" text,
"Sport" text,
"Winning team" text,
"Losing team" text,
"Final score" text
) | SELECT "Final score" FROM table_55 WHERE "Date contested" = 'February 1, 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
41,
96,
476,
2741,
121,
490,
6,
96,
23055,
42,
605,
121,
1499,
6,
96,
308,
342,
3,
29365,
121,
1499,
6,
96,
2796,
9,
5398,
42,
3,
19585,
643,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
10270,
2604,
121,
21680,
953,
834,
3769,
549,
17444,
427,
96,
308,
342,
3,
29365,
121,
3274,
3,
31,
31122,
1914,
2464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the date for the game at the tallaght stadium and result was 0 1? | CREATE TABLE table_27232 (
"Season" text,
"Date" text,
"Home team" text,
"Result" text,
"Away team" text,
"Stadium" text
) | SELECT "Date" FROM table_27232 WHERE "Stadium" = 'Tallaght Stadium' AND "Result" = '0–1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
23188,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
1343,
372,
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,
308,
342,
121,
21680,
953,
834,
2555,
23188,
549,
17444,
427,
96,
134,
17,
9,
12925,
121,
3274,
3,
31,
382,
1748,
18583,
17,
12750,
31,
3430,
96,
20119,
121,
3274,
3,
31,
632,
104,
536,
31,
1,
-100,
-100,
-1... |
What year was Bulworth nominated? | CREATE TABLE table_31950 (
"Year" real,
"Director" text,
"Project" text,
"Category" text,
"Result" text
) | SELECT "Year" FROM table_31950 WHERE "Project" = 'bulworth' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
25188,
41,
96,
476,
2741,
121,
490,
6,
96,
23620,
127,
121,
1499,
6,
96,
3174,
11827,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
20119,
121,
1499,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
3341,
25188,
549,
17444,
427,
96,
3174,
11827,
121,
3274,
3,
31,
6724,
7048,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of Gold medals for the Nation with a Total of 5 and Rank larger than 1? | CREATE TABLE table_66694 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Gold") FROM table_66694 WHERE "Total" = '5' AND "Rank" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3951,
591,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
23576,
8512,
21680,
953,
834,
3539,
3951,
591,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
755,
31,
3430,
96,
22557,
121,
2490,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What game number did the Wildcats play Purdue? | CREATE TABLE table_20850527_1 (
game VARCHAR,
opponent VARCHAR
) | SELECT game FROM table_20850527_1 WHERE opponent = "Purdue" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4433,
3076,
2555,
834,
536,
41,
467,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
467,
381,
410,
8,
5342,
2138,
7,
577,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
21680,
953,
834,
1755,
4433,
3076,
2555,
834,
536,
549,
17444,
427,
15264,
3274,
96,
345,
450,
1259,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the route with winner of s bastien rosseler | CREATE TABLE table_name_27 (
route VARCHAR,
winner VARCHAR
) | SELECT route FROM table_name_27 WHERE winner = "sébastien rosseler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
2981,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2981,
28,
4668,
13,
3,
7,
3905,
15945,
3,
52,
13526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2981,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
4668,
3274,
96,
7,
154,
4883,
15945,
3,
52,
13526,
1171,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the order details of the products with price higher than 2000? | CREATE TABLE Products (Product_ID VARCHAR, Product_price INTEGER); CREATE TABLE ORDER_ITEMS (Other_Item_Details VARCHAR, Product_ID VARCHAR) | SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3174,
7472,
834,
4309,
584,
4280,
28027,
6,
6246,
834,
102,
4920,
3,
21342,
17966,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4674,
11300,
834,
14871,
4211,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
667,
189,
49,
834,
196,
3524,
834,
2962,
5756,
7,
21680,
4674,
11300,
834,
14871,
4211,
6157,
332,
536,
3,
15355,
3162,
7554,
6157,
332,
357,
9191,
332,
5411,
3174,
7472,
834,
4309,
3274,
332,
4416,
3174,
... |
What is Date, when Home Team is 'Chester City'? | CREATE TABLE table_name_18 (
date VARCHAR,
home_team VARCHAR
) | SELECT date FROM table_name_18 WHERE home_team = "chester city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
833,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
1210,
2271,
19,
3,
31,
254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
234,
834,
11650,
3274,
96,
13263,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What college did Ben Wearing play for? | CREATE TABLE table_name_37 (
college VARCHAR,
player VARCHAR
) | SELECT college FROM table_name_37 WHERE player = "ben wearing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
1900,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1900,
410,
2798,
16883,
53,
577,
21,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
1959,
3274,
96,
115,
35,
5119,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many directors served more than 3 years ? | CREATE TABLE table_203_376 (
id number,
"no." number,
"name" text,
"term of office" text,
"president(s) served under" text
) | SELECT COUNT("name") FROM table_203_376 WHERE "term of office" - "term of office" > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3959,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
381,
6,
96,
4350,
121,
1499,
6,
96,
1987,
13,
828,
121,
1499,
6,
96,
102,
15704,
599,
7,
61,
2098,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
8512,
21680,
953,
834,
23330,
834,
519,
3959,
549,
17444,
427,
96,
1987,
13,
828,
121,
3,
18,
96,
1987,
13,
828,
121,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many distinct currency codes are there for all drama workshop groups? | CREATE TABLE Drama_Workshop_Groups (
Currency_Code VARCHAR
) | SELECT COUNT(DISTINCT Currency_Code) FROM Drama_Workshop_Groups | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
20052,
834,
12492,
6921,
834,
27247,
7,
41,
31383,
834,
22737,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6746,
7481,
5633,
33,
132,
21,
66,
6616,
4786,
1637,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
31383,
834,
22737,
61,
21680,
20052,
834,
12492,
6921,
834,
27247,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many different industries are the companies in? | CREATE TABLE Companies (
Industry VARCHAR
) | SELECT COUNT(DISTINCT Industry) FROM Companies | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11239,
41,
9036,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
5238,
33,
8,
688,
16,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
9036,
61,
21680,
11239,
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,
... |
What is the Dutch waord for høvd / høvur? | CREATE TABLE table_name_68 (dutch VARCHAR, Groningen VARCHAR, høvd VARCHAR, høvur VARCHAR) | SELECT dutch FROM table_name_68 WHERE LOW_GERMAN(Groningen) = høvd / høvur | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
1259,
17,
524,
584,
4280,
28027,
6,
8554,
29,
53,
35,
584,
4280,
28027,
6,
3,
107,
2,
208,
26,
584,
4280,
28027,
6,
3,
107,
2,
208,
450,
584,
4280,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
146,
17,
524,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
3,
20573,
834,
17966,
9312,
599,
517,
52,
106,
53,
35,
61,
3274,
3,
107,
2,
208,
26,
3,
87,
3,
107,
2,
208,
450,
1,
-100,
-100,
-100,
-100,
-100... |
What is the capital of the province with in Hanja? | CREATE TABLE table_42223 (
"Former kingdom" text,
"Province" text,
"Hangul" text,
"Hanja" text,
"Capital" text,
"Modern equivalent" text
) | SELECT "Capital" FROM table_42223 WHERE "Hanja" = '漢州' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
357,
2773,
41,
96,
3809,
935,
14740,
121,
1499,
6,
96,
3174,
2494,
565,
121,
1499,
6,
96,
566,
1468,
83,
121,
1499,
6,
96,
566,
152,
1191,
121,
1499,
6,
96,
19566,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19566,
9538,
121,
21680,
953,
834,
4165,
357,
2773,
549,
17444,
427,
96,
566,
152,
1191,
121,
3274,
3,
31,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the number of matches in different competitions. | CREATE TABLE city (
city_id number,
city text,
hanzi text,
hanyu_pinyin text,
regional_population number,
gdp number
)
CREATE TABLE temperature (
city_id number,
jan number,
feb number,
mar number,
apr number,
jun number,
jul number,
aug number,
sep number,
oct number,
nov number,
dec number
)
CREATE TABLE match (
match_id number,
date text,
venue text,
score text,
result text,
competition text
)
CREATE TABLE hosting_city (
year number,
match_id number,
host_city text
) | SELECT COUNT(*), competition FROM match GROUP BY competition | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
690,
834,
23,
26,
381,
6,
690,
1499,
6,
3,
2618,
702,
1499,
6,
3,
2618,
63,
76,
834,
3180,
63,
77,
1499,
6,
3518,
834,
9791,
7830,
381,
6,
3,
122,
26,
102,
381,
3,
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,
2847,
17161,
599,
1935,
201,
2259,
21680,
1588,
350,
4630,
6880,
272,
476,
2259,
1,
-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 points difference for the team that has allowed 615 points against? | CREATE TABLE table_8497 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Points" text
) | SELECT "Points difference" FROM table_8497 WHERE "Points against" = '615' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4608,
4327,
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,
22512,
7,
1750,
121,
21680,
953,
834,
4608,
4327,
549,
17444,
427,
96,
22512,
7,
581,
121,
3274,
3,
31,
948,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What Notes after 1983 have a Position of 18th? | CREATE TABLE table_name_64 (notes VARCHAR, year VARCHAR, position VARCHAR) | SELECT notes FROM table_name_64 WHERE year > 1983 AND position = "18th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
7977,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2507,
7,
227,
15041,
43,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3358,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
215,
2490,
15041,
3430,
1102,
3274,
96,
2606,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which venue has a Result of w, and a Goal of deacon 5/5? | CREATE TABLE table_name_84 (
venue VARCHAR,
result VARCHAR,
goals VARCHAR
) | SELECT venue FROM table_name_84 WHERE result = "w" AND goals = "deacon 5/5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
5669,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5669,
65,
3,
9,
3,
20119,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
741,
3274,
96,
210,
121,
3430,
1766,
3274,
96,
221,
9,
1018,
305,
87,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum total of picks for drake players from the tri-cities blackhawks? | CREATE TABLE table_name_24 (
pick INTEGER,
team VARCHAR,
college VARCHAR
) | SELECT SUM(pick) FROM table_name_24 WHERE team = "tri-cities blackhawks" AND college = "drake" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
1432,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
792,
13,
1432,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
17967,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
372,
3274,
96,
1788,
18,
75,
2197,
1001,
14400,
7,
121,
3430,
1900,
3274,
96,
3515,
1050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
List all document type codes and document type names. | CREATE TABLE employees (
employee_id number,
role_code text,
employee_name text,
gender_mfu text,
date_of_birth time,
other_details text
)
CREATE TABLE ref_locations (
location_code text,
location_name text,
location_description text
)
CREATE TABLE all_documents (
document_id number,
date_stored time,
document_type_code text,
document_name text,
document_description text,
other_details text
)
CREATE TABLE documents_to_be_destroyed (
document_id number,
destruction_authorised_by_employee_id number,
destroyed_by_employee_id number,
planned_destruction_date time,
actual_destruction_date time,
other_details text
)
CREATE TABLE document_locations (
document_id number,
location_code text,
date_in_location_from time,
date_in_locaton_to time
)
CREATE TABLE roles (
role_code text,
role_name text,
role_description text
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE ref_calendar (
calendar_date time,
day_number number
) | SELECT document_type_code, document_type_name FROM ref_document_types | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
3490,
834,
23,
26,
381,
6,
1075,
834,
4978,
1499,
6,
3490,
834,
4350,
1499,
6,
7285,
834,
51,
89,
76,
1499,
6,
833,
834,
858,
834,
20663,
97,
6,
119,
834,
221,
5756,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1708,
834,
6137,
834,
4978,
6,
1708,
834,
6137,
834,
4350,
21680,
6273,
834,
28244,
834,
6137,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When is the arabic title when is the year (ceremony)? | CREATE TABLE table_26555737_1 (
year__ceremony_ VARCHAR,
arabic_title VARCHAR
) | SELECT year__ceremony_ FROM table_26555737_1 WHERE arabic_title = "موسم زيتون" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
28803,
27931,
834,
536,
41,
215,
834,
834,
2110,
15,
21208,
834,
584,
4280,
28027,
6,
21165,
447,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
834,
2110,
15,
21208,
834,
21680,
953,
834,
2688,
28803,
27931,
834,
536,
549,
17444,
427,
21165,
447,
834,
21869,
3274,
96,
2,
3,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees whose first name does not contain the letter M, give me a line chart to show the hire date and the corresponding salaries, and show X-axis from high to low order. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) | SELECT HIRE_DATE, SALARY FROM employees WHERE NOT FIRST_NAME LIKE '%M%' ORDER BY HIRE_DATE DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
4486,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
329,
1454,
31,
4674,
11300,
272,
476,
454,
14132,
834,
308,
6048,
309,
25067,
1,
... |
what was the total hospital cost for patient 010-39202 in the first hospital visit? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime 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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime 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 diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) | SELECT SUM(cost.cost) FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-39202' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
11290,
5,
11290,
61,
21680,
583,
549,
17444,
427,
583,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
... |
How many innings for the player with an average of 30.03? | CREATE TABLE table_30115 (
"Player" text,
"Matches" real,
"Innings" real,
"Wickets" real,
"Average" text,
"BBI" text,
"BBM" text,
"5wi" real
) | SELECT MIN("Innings") FROM table_30115 WHERE "Average" = '30.03' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
15660,
41,
96,
15800,
49,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
196,
9416,
7,
121,
490,
6,
96,
518,
447,
8044,
7,
121,
490,
6,
96,
188,
624,
545,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
196,
9416,
7,
8512,
21680,
953,
834,
1458,
15660,
549,
17444,
427,
96,
188,
624,
545,
121,
3274,
3,
31,
1458,
5,
4928,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
I want to know the tournament that has a third place of magnus gustafsson | CREATE TABLE table_name_25 (
tournament VARCHAR,
third_place VARCHAR
) | SELECT tournament FROM table_name_25 WHERE third_place = "magnus gustafsson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
5892,
584,
4280,
28027,
6,
1025,
834,
4687,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
12,
214,
8,
5892,
24,
65,
3,
9,
1025,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
1025,
834,
4687,
3274,
96,
7493,
29,
302,
8829,
9,
89,
7,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many episodes are numbered 14 in the series? | CREATE TABLE table_29294 (
"Episode No. Episode No. refers to the episodes number in the overall series, whereas Series No. refers to the episodes number in this particular series." real,
"Series No." real,
"Episode" text,
"Director" text,
"Writer(s)" text,
"Original airdate" text
) | SELECT COUNT("Episode") FROM table_29294 WHERE "Series No." = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
357,
4240,
41,
96,
427,
102,
159,
32,
221,
465,
5,
16112,
465,
5,
2401,
7,
12,
8,
13562,
381,
16,
8,
1879,
939,
6,
3,
10339,
4531,
465,
5,
2401,
7,
12,
8,
13562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
427,
102,
159,
32,
221,
8512,
21680,
953,
834,
3166,
357,
4240,
549,
17444,
427,
96,
12106,
7,
465,
535,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which builder completed before 1890 and launched on 9 june 1888? | CREATE TABLE table_name_84 (
builder VARCHAR,
completed VARCHAR,
launched VARCHAR
) | SELECT builder FROM table_name_84 WHERE completed < 1890 AND launched = "9 june 1888" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
918,
49,
584,
4280,
28027,
6,
2012,
584,
4280,
28027,
6,
3759,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
918,
49,
2012,
274,
507,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
918,
49,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
2012,
3,
2,
507,
2394,
3430,
3759,
3274,
96,
1298,
3,
6959,
15,
507,
4060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the duration of the longest and shortest pop tracks in milliseconds? | CREATE TABLE TRACK (
GenreId VARCHAR
)
CREATE TABLE GENRE (
GenreId VARCHAR,
Name VARCHAR
) | SELECT MAX(Milliseconds), MIN(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Pop" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11466,
15339,
41,
5945,
60,
196,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
18464,
4386,
41,
5945,
60,
196,
26,
584,
4280,
28027,
6,
5570,
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,
4800,
4,
599,
329,
1092,
23,
12091,
7,
201,
3,
17684,
599,
329,
1092,
23,
12091,
7,
61,
21680,
3,
18464,
4386,
6157,
332,
536,
3,
15355,
3162,
11466,
15339,
6157,
332,
357,
9191,
332,
5411,
13714,
60,
196,
26,
327... |
What opponent has april 10 as the date? | CREATE TABLE table_name_14 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_14 WHERE date = "april 10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
32,
102,
9977,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
15264,
65,
3,
9,
2246,
40,
335,
38,
8,
833,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
give me the number of patients whose year of birth is less than 1821 and drug name is nystatin cream? | 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
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "1821" AND prescriptions.drug = "Nystatin Cream" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.