NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the genre for Portal 2? | CREATE TABLE table_64867 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
) | SELECT "Genre" FROM table_64867 WHERE "Game" = 'portal 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3707,
3708,
41,
96,
476,
2741,
121,
490,
6,
96,
23055,
121,
1499,
6,
96,
13714,
60,
121,
1499,
6,
96,
10146,
2032,
599,
7,
61,
121,
1499,
6,
96,
2962,
162,
8745,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13714,
60,
121,
21680,
953,
834,
948,
3707,
3708,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
1493,
138,
204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the resale category for the provider NetCologne? | CREATE TABLE table_1773908_3 (resale VARCHAR, provider VARCHAR) | SELECT resale FROM table_1773908_3 WHERE provider = "Netcologne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26793,
3288,
4018,
834,
519,
41,
60,
7,
9,
109,
584,
4280,
28027,
6,
3175,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
60,
7,
9,
109,
3295,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
60,
7,
9,
109,
21680,
953,
834,
26793,
3288,
4018,
834,
519,
549,
17444,
427,
3175,
3274,
96,
9688,
75,
23443,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of againsts the team with less than 38 played had? | CREATE TABLE table_name_86 (
against INTEGER,
played INTEGER
) | SELECT SUM(against) FROM table_name_86 WHERE played < 38 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
581,
3,
21342,
17966,
6,
1944,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
581,
7,
8,
372,
28,
705,
145,
6654,
1944,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
1944,
3,
2,
6654,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the save of the game on September 15? | CREATE TABLE table_name_92 (save VARCHAR, date VARCHAR) | SELECT save FROM table_name_92 WHERE date = "september 15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
7,
9,
162,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1097,
13,
8,
467,
30,
1600,
627,
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,
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,
1097,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
627,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Draw a scatterplot of team id vs school_id where team id is on the x-axis and points are colored by All_Home | 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
)
CREATE TABLE university (
Scho... | SELECT Team_ID, School_ID FROM basketball_match GROUP BY All_Home | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
4309,
6,
1121,
834,
4309,
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,
-100,
-100,
-100,
-100,
... |
What is the engine configuration of the 1.2 mpi engine? | CREATE TABLE table_57355 (
"engine name" text,
"engine configuration" text,
"displacement" text,
"max. power at rpm" text,
"max. torque at rpm" text
) | SELECT "engine configuration" FROM table_57355 WHERE "engine name" = '1.2 mpi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
2469,
755,
41,
96,
20165,
564,
121,
1499,
6,
96,
20165,
5298,
121,
1499,
6,
96,
10475,
11706,
297,
121,
1499,
6,
96,
9128,
5,
579,
44,
3,
52,
2028,
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,
20165,
5298,
121,
21680,
953,
834,
3436,
2469,
755,
549,
17444,
427,
96,
20165,
564,
121,
3274,
3,
31,
10917,
3,
1167,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
tell me the method of intake of acetamin/hydrocodon 325mg/5mg? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)... | SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'acetamin/hydrocodon 325mg/5mg' | [
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,
3,
15438,
25424,
6227,
7757,
5,
20300,
20466,
29,
21680,
7757,
549,
17444,
427,
7757,
5,
26,
13534,
4350,
3274,
3,
31,
3302,
17,
9,
1109,
87,
10656,
32,
509,
2029,
220,
1828,
51,
122,
16936,
51,
122,
31,
1,
-100,
... |
in 1979 how many places did the cosworth engine decrease from start to finish ? | CREATE TABLE table_204_939 (
id number,
"year" number,
"chassis" text,
"engine" text,
"start" text,
"finish" text
) | SELECT "finish" - "start" FROM table_204_939 WHERE "year" = 1979 AND "engine" = 'cosworth' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1298,
3288,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
524,
6500,
7,
121,
1499,
6,
96,
20165,
121,
1499,
6,
96,
10208,
121,
1499,
6,
96,
25535,
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,
25535,
121,
3,
18,
96,
10208,
121,
21680,
953,
834,
26363,
834,
1298,
3288,
549,
17444,
427,
96,
1201,
121,
3274,
15393,
3430,
96,
20165,
121,
3274,
3,
31,
509,
7,
7048,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
what is admission time and discharge time of subject name francis baseler? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT demographic.admittime, demographic.dischtime FROM demographic WHERE demographic.name = "Francis Baseler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
20466,
17,
715,
6,
14798,
5,
26,
2499,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
371,
52,
11389,
7,
8430,
1171,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Round is the lowest one that has a Circuit of donington? | CREATE TABLE table_37237 (
"Round" real,
"Date" text,
"Grand Prix" text,
"Circuit" text,
"125cc winner" text,
"250cc winner" text,
"MotoGP winner" text,
"Report" text
) | SELECT MIN("Round") FROM table_37237 WHERE "Circuit" = 'donington' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
357,
4118,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
4744,
727,
12942,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
10124,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
4118,
357,
4118,
549,
17444,
427,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
2029,
6029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which is the only ship used as a work boat ? | CREATE TABLE table_203_774 (
id number,
"name" text,
"dates" text,
"grt" number,
"propulsion" text,
"port" text,
"notes" text
) | SELECT "name" FROM table_203_774 WHERE "notes" = 'work boat' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4013,
591,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
5522,
7,
121,
1499,
6,
96,
122,
52,
17,
121,
381,
6,
96,
1409,
20567,
121,
1499,
6,
96,
1493... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
23330,
834,
4013,
591,
549,
17444,
427,
96,
7977,
7,
121,
3274,
3,
31,
1981,
3432,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Free polite has a Genitive 1 of *=ku? | CREATE TABLE table_40797 (
"Free" text,
"Free polite" text,
"Genitive 1" text,
"Genitive 2" text,
"Genitive 3" text
) | SELECT "Free polite" FROM table_40797 WHERE "Genitive 1" = '*=ku' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
940,
4327,
41,
96,
16393,
121,
1499,
6,
96,
16393,
1977,
6311,
121,
1499,
6,
96,
13714,
23,
3268,
209,
121,
1499,
6,
96,
13714,
23,
3268,
204,
121,
1499,
6,
96,
137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16393,
1977,
6311,
121,
21680,
953,
834,
2445,
940,
4327,
549,
17444,
427,
96,
13714,
23,
3268,
209,
121,
3274,
3,
31,
1935,
2423,
2729,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest population for the province having a rank under 5? | CREATE TABLE table_63864 (
"Year" real,
"Population" real,
"Five Year % change" text,
"Ten Year % change" text,
"Rank Among Provinces" real
) | SELECT MAX("Population") FROM table_63864 WHERE "Rank Among Provinces" < '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3840,
591,
41,
96,
476,
2741,
121,
490,
6,
96,
27773,
7830,
121,
490,
6,
96,
371,
757,
2929,
3,
1454,
483,
121,
1499,
6,
96,
382,
35,
2929,
3,
1454,
483,
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,
4800,
4,
599,
121,
27773,
7830,
8512,
21680,
953,
834,
3891,
3840,
591,
549,
17444,
427,
96,
22557,
3,
7264,
19573,
7,
121,
3,
2,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the largest vote result if loss/gain is -0.5%? | CREATE TABLE table_25818630_1 (
result___votes INTEGER,
loss_gain VARCHAR
) | SELECT MAX(result___votes) FROM table_25818630_1 WHERE loss_gain = "-0.5%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4959,
3840,
1458,
834,
536,
41,
741,
834,
834,
834,
1621,
1422,
3,
21342,
17966,
6,
1453,
834,
16720,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
60,
7,
83,
17,
834,
834,
834,
1621,
1422,
61,
21680,
953,
834,
1828,
4959,
3840,
1458,
834,
536,
549,
17444,
427,
1453,
834,
16720,
3274,
96,
18,
12100,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
How many share values are listed for the episode with a rating/share value of 2.6/8? | CREATE TABLE table_1708 (
"Episode #" real,
"US air date" text,
"Rating" text,
"Share" text,
"Rating/Share (18\u201349)" text,
"Viewers (millions)" text
) | SELECT COUNT("Share") FROM table_1708 WHERE "Rating/Share (18\u201349)" = '2.6/8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4018,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
3063,
799,
833,
121,
1499,
6,
96,
448,
1014,
121,
1499,
6,
96,
24501,
121,
1499,
6,
96,
448,
1014,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24501,
8512,
21680,
953,
834,
2517,
4018,
549,
17444,
427,
96,
448,
1014,
87,
24501,
9323,
2,
76,
11138,
3647,
61,
121,
3274,
3,
31,
22724,
9483,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Date of the Game with a Score of w 112-107 (ot)? | CREATE TABLE table_name_29 (
date VARCHAR,
score VARCHAR
) | SELECT date FROM table_name_29 WHERE score = "w 112-107 (ot)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
833,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7678,
13,
8,
4435,
28,
3,
9,
17763,
13,
3,
210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
2604,
3274,
96,
210,
850,
17234,
4560,
41,
32,
17,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the stolen ends for germany | CREATE TABLE table_25107064_2 (stolen_ends INTEGER, country VARCHAR, Germany VARCHAR) | SELECT MIN(stolen_ends) FROM table_25107064_2 WHERE country = Germany | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
1714,
2518,
4389,
834,
357,
41,
7,
235,
40,
35,
834,
989,
7,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
3434,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7,
235,
40,
35,
834,
989,
7,
61,
21680,
953,
834,
1828,
1714,
2518,
4389,
834,
357,
549,
17444,
427,
684,
3274,
3434,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tell me the number of patients who were ordered pleural fluid lab test and have diagnoses icd9 code 3970. | 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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "3970" AND lab.fluid = "Pleural" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What is the time for the rank after 5 with sc/d notes? | CREATE TABLE table_name_27 (
time VARCHAR,
notes VARCHAR,
rank VARCHAR
) | SELECT time FROM table_name_27 WHERE notes = "sc/d" AND rank > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
97,
584,
4280,
28027,
6,
3358,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
97,
21,
8,
11003,
227,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
3358,
3274,
96,
7,
75,
87,
26,
121,
3430,
11003,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the goals with games of 6 | CREATE TABLE table_69273 (
"Player" text,
"AFL debut" text,
"Games" text,
"Goals" text,
"Kicks" text,
"Handballs" text,
"Disposals" text,
"Marks" text,
"Tackles" text
) | SELECT "Goals" FROM table_69273 WHERE "Games" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
2555,
519,
41,
96,
15800,
49,
121,
1499,
6,
96,
188,
10765,
5695,
121,
1499,
6,
96,
23055,
7,
121,
1499,
6,
96,
6221,
5405,
121,
1499,
6,
96,
439,
3142,
7,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6221,
5405,
121,
21680,
953,
834,
3951,
2555,
519,
549,
17444,
427,
96,
23055,
7,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the representating for ingenjör andrées luftfärd | CREATE TABLE table_name_82 (representing VARCHAR, original_title VARCHAR) | SELECT representing FROM table_name_82 WHERE original_title = "ingenjör andrées luftfärd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
60,
12072,
584,
4280,
28027,
6,
926,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4221,
1014,
21,
16,
729,
354,
4446,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9085,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
926,
834,
21869,
3274,
96,
53,
35,
354,
4446,
11,
52,
1325,
3,
20620,
89,
3185,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Title is listed for the Year of 1999? | CREATE TABLE table_name_63 (
title VARCHAR,
year VARCHAR
) | SELECT title FROM table_name_63 WHERE year = 1999 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
2233,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
11029,
19,
2616,
21,
8,
2929,
13,
5247,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
215,
3274,
5247,
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... |
Which standing broad jump (cm) had the b grade? | CREATE TABLE table_name_67 (
standing_broad_jump__cm_ VARCHAR,
grade VARCHAR
) | SELECT standing_broad_jump__cm_ FROM table_name_67 WHERE grade = "b" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
4125,
834,
115,
8635,
834,
2047,
1167,
834,
834,
75,
51,
834,
584,
4280,
28027,
6,
2769,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4125,
834,
115,
8635,
834,
2047,
1167,
834,
834,
75,
51,
834,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
2769,
3274,
96,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the finishes for Lambros Athanassoulas having 0 podiums and 0 stage wins? | CREATE TABLE table_name_57 (finishes INTEGER, driver VARCHAR, podiums VARCHAR, stage_wins VARCHAR) | SELECT SUM(finishes) FROM table_name_57 WHERE podiums = 0 AND stage_wins = 0 AND driver = "lambros athanassoulas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
25535,
15,
7,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
6,
22828,
7,
584,
4280,
28027,
6,
1726,
834,
3757,
7,
584,
4280,
28027,
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,
180,
6122,
599,
25535,
15,
7,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
22828,
7,
3274,
3,
632,
3430,
1726,
834,
3757,
7,
3274,
3,
632,
3430,
2535,
3274,
96,
40,
265,
5702,
7,
44,
2618,
9,
7,
7,
7... |
How many losses does Alex Wilkinson have? | CREATE TABLE table_name_98 (
losses VARCHAR,
name VARCHAR
) | SELECT COUNT(losses) FROM table_name_98 WHERE name = "alex wilkinson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
8467,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8467,
405,
5104,
8540,
7815,
106,
43,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
564,
3274,
96,
138,
994,
3,
210,
173,
7815,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Club Team has a Position of (d), a Nationality of canada, and a Player of andrew macwilliam? | CREATE TABLE table_name_7 (club_team VARCHAR, player VARCHAR, position VARCHAR, nationality VARCHAR) | SELECT club_team FROM table_name_7 WHERE position = "(d)" AND nationality = "canada" AND player = "andrew macwilliam" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
13442,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1886,
834,
11650,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1102,
3274,
96,
599,
26,
61,
121,
3430,
1157,
485,
3274,
96,
658,
18089,
121,
3430,
1959,
3274,
96,
232,
60,
210,
11486,
8894,
23,
265,
121,
1,
-... |
What Position has a Time of 20.66? | CREATE TABLE table_78600 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text,
"Time" real
) | SELECT "Position" FROM table_78600 WHERE "Time" = '20.66' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
6007,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
427,
2169,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
3940,
6007,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
1755,
5,
3539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the 08-09 i/o best of the player with 1386 points? | CREATE TABLE table_24990183_5 (ws_points VARCHAR) | SELECT 08 AS _09_i_o_best FROM table_24990183_5 WHERE ws_points = 1386 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
26901,
24361,
834,
755,
41,
210,
7,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
12046,
18,
4198,
3,
23,
87,
32,
200,
13,
8,
1959,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12046,
6157,
3,
834,
4198,
834,
23,
834,
32,
834,
9606,
21680,
953,
834,
2266,
26901,
24361,
834,
755,
549,
17444,
427,
3,
210,
7,
834,
2700,
7,
3274,
1179,
3840,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is total amount of points of entrants with a ford cosworth engine and a year later than 1991? | CREATE TABLE table_name_21 (
points VARCHAR,
engine VARCHAR,
year VARCHAR
) | SELECT COUNT(points) FROM table_name_21 WHERE engine = "ford cosworth" AND year > 1991 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
979,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
792,
866,
13,
979,
13,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
1948,
3274,
96,
2590,
576,
7,
7048,
121,
3430,
215,
2490,
9957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the sum of points in 1989 with 0 wins? | CREATE TABLE table_35201 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) | SELECT SUM("Points") FROM table_35201 WHERE "Wins" = '0' AND "Year" = '1989' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
22772,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
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,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
121,
22512,
7,
8512,
21680,
953,
834,
2469,
22772,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3914,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Which season has Caps lower than 36 for the Club of NAC Breda? | CREATE TABLE table_name_35 (
season VARCHAR,
caps VARCHAR,
club VARCHAR
) | SELECT season FROM table_name_35 WHERE caps < 36 AND club = "nac breda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
774,
584,
4280,
28027,
6,
16753,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
774,
65,
4000,
7,
1364,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
16753,
3,
2,
4475,
3430,
1886,
3274,
96,
11962,
3,
1999,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many Latin Americans lived in 2011 in Saskatchewan? | CREATE TABLE table_1939405_2 (latin_americans_2011 INTEGER, province VARCHAR) | SELECT MIN(latin_americans_2011) FROM table_1939405_2 WHERE province = "Saskatchewan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3288,
591,
3076,
834,
357,
41,
14098,
834,
23064,
29,
7,
834,
13907,
3,
21342,
17966,
6,
7985,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6271,
5452... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
14098,
834,
23064,
29,
7,
834,
13907,
61,
21680,
953,
834,
2294,
3288,
591,
3076,
834,
357,
549,
17444,
427,
7985,
3274,
96,
134,
9,
7,
8682,
1033,
3877,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who lost on May 31? | CREATE TABLE table_name_94 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_94 WHERE date = "may 31" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
2298,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
1513,
30,
932,
2664,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1453,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
833,
3274,
96,
13726,
2664,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What events took place in episode 12? | CREATE TABLE table_24051050_1 (events VARCHAR, episode VARCHAR) | SELECT events FROM table_24051050_1 WHERE episode = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
25926,
1752,
834,
536,
41,
15,
2169,
7,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
984,
808,
286,
16,
5640,
586,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
984,
21680,
953,
834,
11944,
25926,
1752,
834,
536,
549,
17444,
427,
5640,
3274,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of the player with an Overall larger than 227? | CREATE TABLE table_name_14 (
player VARCHAR,
overall INTEGER
) | SELECT player FROM table_name_14 WHERE overall > 227 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
1959,
584,
4280,
28027,
6,
1879,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
1959,
28,
46,
9126,
2186,
145,
204,
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,
1959,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
1879,
2490,
204,
2555,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many dollars is the revenue when the net profit is 55.4 million dollars? | CREATE TABLE table_18077713_1 (
revenue__us_$million_ VARCHAR,
net_profit__us_$m_ VARCHAR
) | SELECT revenue__us_$million_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "55.4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
26225,
2368,
834,
536,
41,
3751,
834,
834,
302,
834,
3229,
17030,
834,
584,
4280,
28027,
6,
3134,
834,
6046,
834,
834,
302,
834,
3229,
51,
834,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3751,
834,
834,
302,
834,
3229,
17030,
834,
21680,
953,
834,
20829,
26225,
2368,
834,
536,
549,
17444,
427,
3134,
834,
6046,
834,
834,
302,
834,
3229,
51,
834,
3274,
96,
3769,
5,
20364,
1,
-100,
-100,
-100,
-100,
-1... |
Show the number of male and female assistant professors Plot them as bar chart, display in descending by the X-axis. | CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Faculty_Participates_in (
FacID INTEGER... | SELECT Sex, COUNT(*) FROM Faculty WHERE Rank = "AsstProf" GROUP BY Sex ORDER BY Sex DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15077,
6203,
834,
77,
41,
21341,
23,
26,
3,
21342,
17966,
6,
1810,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
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,
679,
226,
6,
2847,
17161,
599,
1935,
61,
21680,
16896,
549,
17444,
427,
3,
22557,
3274,
96,
188,
7,
7,
17,
23057,
121,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
679,
226,
309,
25067,
1,
-100,
-10... |
What is teh stage with Daniele Bennati as the points classification and Giovanni VIsconti as the general classification? | CREATE TABLE table_35466 (
"Stage" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text
) | SELECT "Stage" FROM table_35466 WHERE "Points classification" = 'daniele bennati' AND "General classification" = 'giovanni visconti' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
591,
3539,
41,
96,
134,
6505,
121,
1499,
6,
96,
20857,
13774,
121,
1499,
6,
96,
22512,
7,
13774,
121,
1499,
6,
96,
329,
32,
14016,
77,
7,
13774,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
6505,
121,
21680,
953,
834,
2469,
591,
3539,
549,
17444,
427,
96,
22512,
7,
13774,
121,
3274,
3,
31,
26,
2738,
400,
36,
29,
18530,
31,
3430,
96,
20857,
13774,
121,
3274,
3,
31,
10253,
208,
14431,
4642,
10... |
What is the country with a rank less than 2? | CREATE TABLE table_name_98 (country VARCHAR, rank INTEGER) | SELECT country FROM table_name_98 WHERE rank < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
17529,
584,
4280,
28027,
6,
11003,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
684,
28,
3,
9,
11003,
705,
145,
204,
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,
684,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
11003,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is fleet number for the year of 19xx? | CREATE TABLE table_name_62 (fleet_number VARCHAR, year VARCHAR) | SELECT fleet_number FROM table_name_62 WHERE year = "19xx" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
89,
109,
15,
17,
834,
5525,
1152,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
9111,
381,
21,
8,
215,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9111,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
215,
3274,
96,
2294,
19230,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many hosts does each nationality have? List the nationality and the count. | CREATE TABLE party_host (
party_id number,
host_id number,
is_main_in_charge others
)
CREATE TABLE party (
party_id number,
party_theme text,
location text,
first_year text,
last_year text,
number_of_hosts number
)
CREATE TABLE host (
host_id number,
name text,
national... | SELECT nationality, COUNT(*) FROM host GROUP BY nationality | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
834,
12675,
41,
1088,
834,
23,
26,
381,
6,
2290,
834,
23,
26,
381,
6,
19,
834,
7484,
834,
77,
834,
7993,
717,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1157,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
2290,
350,
4630,
6880,
272,
476,
1157,
485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What happened to the incombent who was elected in 1980? | CREATE TABLE table_18261 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_18261 WHERE "First elected" = '1980' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
357,
4241,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
2606,
357,
4241,
549,
17444,
427,
96,
25171,
8160,
121,
3274,
3,
31,
2294,
2079,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name and email of the user whose name contains the word Swift . | CREATE TABLE user_profiles (
name VARCHAR,
email VARCHAR
) | SELECT name, email FROM user_profiles WHERE name LIKE '%Swift%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1139,
834,
18816,
7,
41,
564,
584,
4280,
28027,
6,
791,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
564,
11,
791,
13,
8,
1139,
3,
2544,
564,
2579,
8,
1448,
204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
6,
791,
21680,
1139,
834,
18816,
7,
549,
17444,
427,
564,
8729,
9914,
3,
31,
1454,
134,
210,
99,
17,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the scorer mccoist (3), johnston, butcher, steven? | CREATE TABLE table_name_48 (date VARCHAR, scorers VARCHAR) | SELECT date FROM table_name_48 WHERE scorers = "mccoist (3), johnston, butcher, steven" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
5522,
584,
4280,
28027,
6,
14056,
277,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
2604,
52,
3,
51,
75,
509,
343,
10153,
6,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
14056,
277,
3274,
96,
51,
75,
509,
343,
10153,
6,
3,
27341,
4411,
6,
68,
1703,
6,
3,
849,
1926,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total of electors when the share of votes was 11,0%? | CREATE TABLE table_name_70 (electors INTEGER, share_of_votes VARCHAR) | SELECT SUM(electors) FROM table_name_70 WHERE share_of_votes = "11,0%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
400,
5317,
7,
3,
21342,
17966,
6,
698,
834,
858,
834,
1621,
1422,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
13,
11924,
127,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
400,
5317,
7,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
698,
834,
858,
834,
1621,
1422,
3274,
96,
2596,
6,
6932,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is average age of patients whose admission location is emergency room admit and days of hospital stay is 10? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.days_stay = "10" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
427,
13098,
18464,
17063,
3,
30270,
8502,
12604,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
9... |
Name the number when acquisition via far eastern | CREATE TABLE table_15463188_16 (number VARCHAR, acquisition_via VARCHAR) | SELECT number FROM table_15463188_16 WHERE acquisition_via = "Far Eastern" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
3891,
25794,
834,
2938,
41,
5525,
1152,
584,
4280,
28027,
6,
6566,
834,
5907,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
116,
6566,
1009,
623,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
381,
21680,
953,
834,
27308,
3891,
25794,
834,
2938,
549,
17444,
427,
6566,
834,
5907,
3274,
96,
371,
291,
7345,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the language of the film directed by Federico Fellini? | CREATE TABLE table_name_27 (language VARCHAR, director VARCHAR) | SELECT language FROM table_name_27 WHERE director = "federico fellini" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
24925,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1612,
13,
8,
814,
6640,
57,
14560,
5807,
3,
17160,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1612,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
2090,
3274,
96,
16812,
5807,
3110,
6129,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many networks are listed when the year is 2008? | CREATE TABLE table_2941848_10 (network VARCHAR, year VARCHAR) | SELECT COUNT(network) FROM table_2941848_10 WHERE year = 2008 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4240,
2606,
3707,
834,
1714,
41,
1582,
1981,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5275,
33,
2616,
116,
8,
215,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1582,
1981,
61,
21680,
953,
834,
357,
4240,
2606,
3707,
834,
1714,
549,
17444,
427,
215,
3274,
2628,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What location has the name of Sakakita BS? | CREATE TABLE table_39595 (
"Name" text,
"Dist. from Origin" text,
"Dist. from Terminus" text,
"Speed Limit" text,
"Location (all in Nagano )" text
) | SELECT "Location (all in Nagano )" FROM table_39595 WHERE "Name" = 'sakakita bs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3301,
3301,
41,
96,
23954,
121,
1499,
6,
96,
308,
343,
5,
45,
19477,
121,
1499,
6,
96,
308,
343,
5,
45,
10181,
302,
121,
1499,
6,
96,
28328,
18185,
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,
434,
32,
75,
257,
41,
1748,
16,
17421,
152,
32,
3,
61,
121,
21680,
953,
834,
519,
3301,
3301,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
7,
5667,
9229,
9,
3,
115,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize the relationship between salary and manager_id . | 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_I... | SELECT SALARY, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
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,
180,
4090,
24721,
6,
283,
15610,
17966,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
15610,
17966... |
What is the nationality of the ship when the principle victims are civilians? | CREATE TABLE table_name_49 (nat VARCHAR, principal_victims VARCHAR) | SELECT nat FROM table_name_49 WHERE principal_victims = "civilians" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
29,
144,
584,
4280,
28027,
6,
3218,
834,
7287,
2998,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1157,
485,
13,
8,
4383,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
29,
144,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
3218,
834,
7287,
2998,
7,
3274,
96,
27981,
173,
7137,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose marital status is widowed and lab test fluid is pleural? | 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 (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "WIDOWED" AND lab.fluid = "Pleural" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the 2011 value for the paris masters tournament with 1r in 2008? | CREATE TABLE table_name_5 (tournament VARCHAR) | SELECT 2011 FROM table_name_5 WHERE 2008 = "1r" AND tournament = "paris masters" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2722,
701,
21,
8,
260,
159,
2325,
7,
5892,
28,
209,
52,
16,
2628... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2722,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
2628,
3274,
96,
536,
52,
121,
3430,
5892,
3274,
96,
1893,
159,
2325,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Label of the UICI-1069 Catalog? | CREATE TABLE table_name_42 (label VARCHAR, catalog VARCHAR) | SELECT label FROM table_name_42 WHERE catalog = "uici-1069" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
40,
10333,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
16229,
13,
8,
412,
18316,
4536,
3951,
22424,
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,
3783,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
10173,
3274,
96,
76,
1294,
4536,
3951,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many totals does cork have whose rank is larger than 2? | CREATE TABLE table_name_27 (
total INTEGER,
county VARCHAR,
rank VARCHAR
) | SELECT SUM(total) FROM table_name_27 WHERE county = "cork" AND rank > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
792,
3,
21342,
17966,
6,
5435,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
7,
405,
4301,
157,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
5435,
3274,
96,
5715,
157,
121,
3430,
11003,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the rank (night) when the rating is more than 4.3 and the viewers (millions) is more than 10.72? | CREATE TABLE table_name_29 (
rank__night_ INTEGER,
rating VARCHAR,
viewers__millions_ VARCHAR
) | SELECT AVG(rank__night_) FROM table_name_29 WHERE rating > 4.3 AND viewers__millions_ > 10.72 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
11003,
834,
834,
7602,
834,
3,
21342,
17966,
6,
5773,
584,
4280,
28027,
6,
13569,
834,
834,
17030,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
6254,
834,
834,
7602,
834,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
5773,
2490,
3,
21841,
3430,
13569,
834,
834,
17030,
7,
834,
2490,
5477,
5865,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many goals did Joey Worthen have when he had 15 assists? | CREATE TABLE table_33867 (
"Rank" text,
"Player" text,
"Goals" text,
"Assists" text,
"Points" text,
"Years" text
) | SELECT "Goals" FROM table_33867 WHERE "Assists" = '15' AND "Player" = 'joey worthen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3747,
3708,
41,
96,
22557,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
6221,
5405,
121,
1499,
6,
96,
188,
7,
7,
343,
7,
121,
1499,
6,
96,
22512,
7,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6221,
5405,
121,
21680,
953,
834,
519,
3747,
3708,
549,
17444,
427,
96,
188,
7,
7,
343,
7,
121,
3274,
3,
31,
1808,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
1927,
15,
63,
1494,
35,
31,
1,
-100,
-100,
-100... |
systolic blood pressure > 160 and diastolic blood pressure > 100 | CREATE TABLE table_train_172 (
"id" int,
"systolic_blood_pressure_sbp" int,
"c_peptide_level" float,
"hemoglobin_a1c_hba1c" float,
"peak_stimulated_c_peptide" float,
"diastolic_blood_pressure_dbp" int,
"mixed_meal_tolerance_test_mmtt" bool,
"vitamin_d" int,
"NOUSE" float
) | SELECT * FROM table_train_172 WHERE systolic_blood_pressure_sbp > 160 AND diastolic_blood_pressure_dbp > 100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
27156,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,
17,
6,
96,
75,
834,
21826,
15,
834,
4563... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
27156,
549,
17444,
427,
3,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
2490,
11321,
3430,
1227,
9,
7,
235,
2176,
834,
27798,
834,
26866,
834,
26,
115,
102,
2490... |
What district is incumbent frank chelf from? | CREATE TABLE table_1341884_19 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1341884_19 WHERE incumbent = "Frank Chelf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2606,
4608,
834,
2294,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3939,
19,
28406,
3,
89,
6254,
3,
8738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2606,
4608,
834,
2294,
549,
17444,
427,
28406,
3274,
96,
371,
6254,
4004,
10386,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many people have served as the bishop of iceland since 1801 ? | CREATE TABLE table_203_875 (
id number,
"#" number,
"name" text,
"birth and death" text,
"office started" text,
"office ended" text
) | SELECT COUNT("name") FROM table_203_875 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
927,
3072,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
20663,
11,
1687,
121,
1499,
6,
96,
19632,
708,
121,
1499,
6,
96,
19632,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
927,
3072,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For teams that won exactly 15, how many points were scored? | CREATE TABLE table_74079 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Points" text
) | SELECT "Points" FROM table_74079 WHERE "Won" = '15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2445,
4440,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22512,
7,
121,
21680,
953,
834,
940,
2445,
4440,
549,
17444,
427,
96,
518,
106,
121,
3274,
3,
31,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
give me the number of patients whose primary disease is newborn and lab test abnormal status is abnormal? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "NEWBORN" AND lab.flag = "abnormal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
When was the earliest incumbent dave reichert was first elected? | CREATE TABLE table_name_86 (
first_elected INTEGER,
incumbent VARCHAR
) | SELECT MIN(first_elected) FROM table_name_86 WHERE incumbent = "dave reichert" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
166,
834,
19971,
3,
21342,
17966,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
3,
16454,
28406,
836,
162,
3,
4994,
49,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
14672,
834,
19971,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
28406,
3274,
96,
26,
9,
162,
3,
4994,
49,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are Tiger Woods' average earnings? | CREATE TABLE table_68304 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT AVG("Money ( $ )") FROM table_68304 WHERE "Player" = 'tiger woods' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
23702,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
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,
71,
17217,
599,
121,
9168,
15,
63,
41,
1514,
3,
61,
8512,
21680,
953,
834,
3651,
23702,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
17,
4424,
1679,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total when the B Score was 9.15 for Cheng Fei ( chn )? | CREATE TABLE table_name_70 (
total INTEGER,
b_score VARCHAR,
gymnast VARCHAR
) | SELECT AVG(total) FROM table_name_70 WHERE b_score = 9.15 AND gymnast = "cheng fei ( chn )" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
792,
3,
21342,
17966,
6,
3,
115,
834,
7,
9022,
584,
4280,
28027,
6,
23379,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
3,
115,
834,
7,
9022,
3274,
5835,
1808,
3430,
23379,
17,
3274,
96,
1559,
122,
3,
89,
15,
23,
41,
3,
524,
29,
3,
61,
121,
1,
-10... |
When was Alianza's first season in first division with a promotion after 1959? | CREATE TABLE table_name_63 (first_season_in_first_division VARCHAR, first_season_after_most_recent_promotion VARCHAR, name VARCHAR) | SELECT first_season_in_first_division FROM table_name_63 WHERE first_season_after_most_recent_promotion = "1959" AND name = "alianza" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
14672,
834,
9476,
834,
77,
834,
14672,
834,
26,
23,
6610,
584,
4280,
28027,
6,
166,
834,
9476,
834,
10245,
834,
5463,
834,
60,
3728,
834,
1409,
7259,
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,
166,
834,
9476,
834,
77,
834,
14672,
834,
26,
23,
6610,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
166,
834,
9476,
834,
10245,
834,
5463,
834,
60,
3728,
834,
1409,
7259,
3274,
96,
2294,
3390,
121,
3430,
564,... |
What the summary of episode 15? | CREATE TABLE table_2140071_7 (
episode VARCHAR
) | SELECT episode AS Summary FROM table_2140071_7 WHERE episode = 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
5548,
4450,
834,
940,
41,
5640,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
8,
9251,
13,
5640,
627,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5640,
6157,
20698,
21680,
953,
834,
2658,
5548,
4450,
834,
940,
549,
17444,
427,
5640,
3274,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What county has others at 5? | CREATE TABLE table_2264 (
"County" text,
"McCain#" real,
"McCain%" text,
"Obama#" real,
"Obama%" text,
"Barr#" real,
"Barr%" text,
"Nader#" real,
"Nader%" text,
"McKinney#" real,
"McKinney%" text,
"Others#" real,
"Others%" text,
"Total ballots" real,
"Total el... | SELECT "County" FROM table_2264 WHERE "Others#" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4389,
41,
96,
10628,
63,
121,
1499,
6,
96,
329,
75,
254,
9,
77,
4663,
121,
490,
6,
96,
329,
75,
254,
9,
77,
1454,
121,
1499,
6,
96,
667,
115,
265,
9,
4663,
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,
10628,
63,
121,
21680,
953,
834,
2884,
4389,
549,
17444,
427,
96,
667,
189,
277,
4663,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many Losses have an NTFA Div 2 of perth, and Wins smaller than 10? | CREATE TABLE table_name_45 (
losses VARCHAR,
ntfa_div_2 VARCHAR,
wins VARCHAR
) | SELECT COUNT(losses) FROM table_name_45 WHERE ntfa_div_2 = "perth" AND wins < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
8467,
584,
4280,
28027,
6,
3,
29,
17,
89,
9,
834,
8481,
834,
357,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
3,
29,
17,
89,
9,
834,
8481,
834,
357,
3274,
96,
883,
189,
121,
3430,
9204,
3,
2,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are all the payment methods? | CREATE TABLE customers (payment_method VARCHAR) | SELECT DISTINCT payment_method FROM customers | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
21752,
834,
23152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
8,
1942,
2254,
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,
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,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1942,
834,
23152,
21680,
722,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was president Year of 2002-2003, second semester? | CREATE TABLE table_name_89 (president VARCHAR, year VARCHAR) | SELECT president FROM table_name_89 WHERE year = "2002-2003, second semester" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
102,
15704,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
2753,
2929,
13,
4407,
18,
23948,
6,
511,
10542,
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,
2753,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
215,
3274,
96,
24898,
18,
23948,
6,
511,
10542,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When BVA was 3%, what was the Ipsos? | CREATE TABLE table_name_16 (
ipsos_5_30_09 VARCHAR,
bva_6_1_09 VARCHAR
) | SELECT ipsos_5_30_09 FROM table_name_16 WHERE bva_6_1_09 = "3%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
3,
15432,
32,
7,
834,
755,
834,
1458,
834,
4198,
584,
4280,
28027,
6,
3,
115,
900,
834,
948,
834,
536,
834,
4198,
584,
4280,
28027,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15432,
32,
7,
834,
755,
834,
1458,
834,
4198,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
3,
115,
900,
834,
948,
834,
536,
834,
4198,
3274,
96,
5170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is No. 7, when No. 4 is Madison, and when No. 10 is Amelia? | CREATE TABLE table_45950 (
"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. 7" FROM table_45950 WHERE "No. 4" = 'madison' AND "No. 10" = 'amelia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
25188,
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,
96,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4168,
5,
489,
121,
21680,
953,
834,
2128,
25188,
549,
17444,
427,
96,
4168,
5,
3,
20364,
3274,
3,
31,
11374,
23,
739,
31,
3430,
96,
4168,
5,
335,
121,
3274,
3,
31,
265,
13240,
31,
1,
-100,
-100,
-100,
-100,
... |
What actor plays Marie-Rose De Putter? | CREATE TABLE table_79387 (
"Actor" text,
"Character" text,
"Soap Opera" text,
"Years" text,
"Duration" text
) | SELECT "Actor" FROM table_79387 WHERE "Character" = 'marie-rose de putter' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
519,
4225,
41,
96,
188,
5317,
121,
1499,
6,
96,
18947,
2708,
49,
121,
1499,
6,
96,
5231,
9,
102,
6411,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
12998,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
5317,
121,
21680,
953,
834,
4440,
519,
4225,
549,
17444,
427,
96,
18947,
2708,
49,
121,
3274,
3,
31,
17289,
15,
18,
8115,
20,
474,
449,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the partner at the Tampa tournament? | CREATE TABLE table_name_93 (
partner VARCHAR,
tournament VARCHAR
) | SELECT partner FROM table_name_93 WHERE tournament = "tampa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
2397,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2397,
44,
8,
18855,
5892,
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,
2397,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
5892,
3274,
96,
17,
4624,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What league is entering this round with 24 clubs remaining? | CREATE TABLE table_name_39 (
leagues_entering_at_this_round VARCHAR,
clubs_remaining VARCHAR
) | SELECT leagues_entering_at_this_round FROM table_name_39 WHERE clubs_remaining = 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
5533,
7,
834,
4617,
1007,
834,
144,
834,
8048,
834,
7775,
584,
4280,
28027,
6,
8122,
834,
60,
7484,
53,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5533,
7,
834,
4617,
1007,
834,
144,
834,
8048,
834,
7775,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
8122,
834,
60,
7484,
53,
3274,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What component has an integrated of one? | CREATE TABLE table_name_21 (component VARCHAR, integrated VARCHAR) | SELECT component FROM table_name_21 WHERE integrated = "one" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
287,
9977,
584,
4280,
28027,
6,
4580,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3876,
65,
46,
4580,
13,
80,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3876,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
4580,
3274,
96,
782,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Number of Households that have a Per Capita Income of $21,345? | CREATE TABLE table_name_59 (number_of_households INTEGER, per_capita_income VARCHAR) | SELECT AVG(number_of_households) FROM table_name_59 WHERE per_capita_income = "$21,345" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
5525,
1152,
834,
858,
834,
1840,
6134,
7,
3,
21342,
17966,
6,
399,
834,
4010,
155,
9,
834,
15759,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
5525,
1152,
834,
858,
834,
1840,
6134,
7,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
399,
834,
4010,
155,
9,
834,
15759,
3274,
96,
3229,
2658,
6,
3710,
17395,
1,
-100,
-100,
-100,
-100,
... |
What is the highest Bronze with the Event 1972 Heidelberg and Total less than 5? | CREATE TABLE table_name_27 (bronze INTEGER, event VARCHAR, total VARCHAR) | SELECT MAX(bronze) FROM table_name_27 WHERE event = "1972 heidelberg" AND total < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
13711,
776,
3,
21342,
17966,
6,
605,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
20841,
28,
8,
804... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
605,
3274,
96,
2294,
5865,
3,
88,
1599,
40,
2235,
121,
3430,
792,
3,
2,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the 1st leg of the match that had an aggregate of 4-3? | CREATE TABLE table_34521 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "1st leg" FROM table_34521 WHERE "Agg." = '4-3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2128,
2658,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
536,
7,
17,
4553,
121,
21680,
953,
834,
519,
2128,
2658,
549,
17444,
427,
96,
188,
4102,
535,
3274,
3,
31,
591,
3486,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the challenger when guillaume brahimi was the iron chef? | CREATE TABLE table_29281529_2 (challenger VARCHAR, iron_chef VARCHAR) | SELECT challenger FROM table_29281529_2 WHERE iron_chef = "Guillaume Brahimi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2577,
1808,
3166,
834,
357,
41,
12654,
109,
9369,
584,
4280,
28027,
6,
3575,
834,
1033,
89,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
1921,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1921,
52,
21680,
953,
834,
3166,
2577,
1808,
3166,
834,
357,
549,
17444,
427,
3575,
834,
1033,
89,
3274,
96,
9105,
1092,
9,
440,
15,
3497,
10813,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the old Bulgarian word for avgust? | CREATE TABLE table_6466 (
"English name" text,
"Bulgarian name" text,
"Bulgarian name ( Transliteration )" text,
"Old Bulgarian Names" text,
"Old Bulgarian name (Transliteration)" text,
"Old Bulgarian name - Meaning" text
) | SELECT "Old Bulgarian name - Meaning" FROM table_6466 WHERE "Bulgarian name ( Transliteration )" = 'avgust' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
3539,
41,
96,
26749,
564,
121,
1499,
6,
96,
279,
83,
122,
6855,
564,
121,
1499,
6,
96,
279,
83,
122,
6855,
564,
41,
4946,
9842,
257,
3,
61,
121,
1499,
6,
96,
667,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
40,
26,
15536,
29,
564,
3,
18,
25148,
121,
21680,
953,
834,
4389,
3539,
549,
17444,
427,
96,
279,
83,
122,
6855,
564,
41,
4946,
9842,
257,
3,
61,
121,
3274,
3,
31,
9,
208,
17198,
31,
1,
-100,
-100,
-1... |
What is the latest amount of won legs in the payoffs when the prize money was 2,350? | CREATE TABLE table_26756 (
"Player" text,
"Group Legs won" real,
"Play-Off Legs won" real,
"Winners Group Legs won" real,
"Winners Play-Off Legs won" real,
"Final position money won*" text,
"Total money won" text
) | SELECT MAX("Winners Play-Off Legs won") FROM table_26756 WHERE "Total money won" = '£2,350' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3708,
4834,
41,
96,
15800,
49,
121,
1499,
6,
96,
27247,
18978,
7,
751,
121,
490,
6,
96,
15800,
18,
21265,
18978,
7,
751,
121,
490,
6,
96,
18455,
687,
7,
1531,
18978,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
687,
7,
2911,
18,
21265,
18978,
7,
751,
8512,
21680,
953,
834,
357,
3708,
4834,
549,
17444,
427,
96,
3696,
1947,
540,
751,
121,
3274,
3,
31,
19853,
4482,
16975,
31,
1,
-100,
-100,
-100,
-... |
WHAT IS THE LOWEST DATE FOR KOREA, IN CD FORMAT? | CREATE TABLE table_44843 (
"Date" real,
"Region" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT MIN("Date") FROM table_44843 WHERE "Region" = 'korea' AND "Format" = 'cd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
4608,
519,
41,
96,
308,
342,
121,
490,
6,
96,
17748,
23,
106,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
342,
8512,
21680,
953,
834,
3628,
4608,
519,
549,
17444,
427,
96,
17748,
23,
106,
121,
3274,
3,
31,
5543,
15,
9,
31,
3430,
96,
3809,
3357,
121,
3274,
3,
31,
75,
26,
31,
1,
-100,
-100,
... |
Which opponent's march was 31? | CREATE TABLE table_name_19 (opponent VARCHAR, march VARCHAR) | SELECT opponent FROM table_name_19 WHERE march = 31 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
32,
102,
9977,
584,
4280,
28027,
6,
10556,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
15264,
31,
7,
10556,
47,
2664,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
10556,
3274,
2664,
1,
-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 number of each allergie type? Return a bar chart, and could you order by the x-axis from low to high? | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGE... | SELECT AllergyType, COUNT(AllergyType) FROM Allergy_Type GROUP BY AllergyType ORDER BY AllergyType | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
25160,
41,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
201,
432,
49,
122,
63,
25160,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
49,
122,
63,
25160,
6,
2847,
17161,
599,
6838,
49,
122,
63,
25160,
61,
21680,
432,
49,
122,
63,
834,
25160,
350,
4630,
6880,
272,
476,
432,
49,
122,
63,
25160,
4674,
11300,
272,
476,
432,
49,
122,
63,
25160,
... |
Show the employee ids and the number of documents destroyed by each employee by a scatter chart. | CREATE TABLE Documents_to_be_Destroyed (
Document_ID INTEGER,
Destruction_Authorised_by_Employee_ID INTEGER,
Destroyed_by_Employee_ID INTEGER,
Planned_Destruction_Date DATETIME,
Actual_Destruction_Date DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE Roles (
Role_Code CHAR(15),
Role_... | SELECT Destroyed_by_Employee_ID, COUNT(*) FROM Documents_to_be_Destroyed GROUP BY Destroyed_by_Employee_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
834,
235,
834,
346,
834,
2962,
6626,
10093,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
2973,
26853,
834,
23602,
127,
3375,
834,
969,
834,
427,
51,
7379,
63,
15,
15,
834,
430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
374,
6626,
10093,
834,
969,
834,
427,
51,
7379,
63,
15,
15,
834,
4309,
6,
2847,
17161,
599,
1935,
61,
21680,
11167,
7,
834,
235,
834,
346,
834,
2962,
6626,
10093,
350,
4630,
6880,
272,
476,
374,
6626,
10093,
834,
... |
Who was the outgoing manager that was replaced by Tony Mowbray? | CREATE TABLE table_name_92 (outgoing_manager VARCHAR, replaced_by VARCHAR) | SELECT outgoing_manager FROM table_name_92 WHERE replaced_by = "tony mowbray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
670,
9545,
834,
24185,
584,
4280,
28027,
6,
5821,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
91,
9545,
2743,
24,
47,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
91,
9545,
834,
24185,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
5821,
834,
969,
3274,
96,
17,
106,
63,
2288,
210,
1939,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients belonging to black/haitian ethnic background hav ethe procedure icd9 code 8854? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND procedures.icd9_code = "8854" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
how many clubs are listed in the table ? | CREATE TABLE table_203_581 (
id number,
"club" text,
"chinese" text,
"city" text,
"home stadium" text,
"capacity" number,
"average attendance" number
) | SELECT COUNT("club") FROM table_203_581 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3449,
536,
41,
3,
23,
26,
381,
6,
96,
13442,
121,
1499,
6,
96,
1436,
1496,
15,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
5515,
14939,
121,
1499,
6,
96,
4010... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13442,
8512,
21680,
953,
834,
23330,
834,
3449,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What region has 0.3% solar panel? | CREATE TABLE table_25042332_26 (region VARCHAR, solar_panel VARCHAR) | SELECT region FROM table_25042332_26 WHERE solar_panel = "0.3%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
591,
2773,
2668,
834,
2688,
41,
18145,
584,
4280,
28027,
6,
3693,
834,
28726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1719,
65,
4097,
5170,
3693,
2952,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1719,
21680,
953,
834,
11434,
591,
2773,
2668,
834,
2688,
549,
17444,
427,
3693,
834,
28726,
3274,
96,
19997,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the original US Tour cast when the original broadway was Kevin Chamberlin? | CREATE TABLE table_name_75 (
original_us_tour_cast VARCHAR,
original_broadway_cast VARCHAR
) | SELECT original_us_tour_cast FROM table_name_75 WHERE original_broadway_cast = "kevin chamberlin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
926,
834,
302,
834,
17,
1211,
834,
5254,
584,
4280,
28027,
6,
926,
834,
115,
8635,
1343,
834,
5254,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
926,
834,
302,
834,
17,
1211,
834,
5254,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
926,
834,
115,
8635,
1343,
834,
5254,
3274,
96,
1050,
2494,
10751,
40,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What state has the University of California, Los Angeles? | CREATE TABLE table_name_67 (
state VARCHAR,
host VARCHAR
) | SELECT state FROM table_name_67 WHERE host = "university of california, los angeles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
538,
584,
4280,
28027,
6,
2290,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
538,
65,
8,
636,
13,
1826,
6,
3144,
4975,
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,
538,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
2290,
3274,
96,
7846,
485,
13,
3,
15534,
1161,
29,
23,
9,
6,
10381,
11831,
15,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the city with the height (ft) more than 328.1, rank higher than 56, a height (m) of 103 and floors less than 28? | CREATE TABLE table_name_14 (city VARCHAR, floors VARCHAR, height__m_ VARCHAR, height__ft_ VARCHAR, rank VARCHAR) | SELECT city FROM table_name_14 WHERE height__ft_ > 328.1 AND rank > 56 AND height__m_ = 103 AND floors < 28 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
6726,
584,
4280,
28027,
6,
8242,
584,
4280,
28027,
6,
3902,
834,
834,
51,
834,
584,
4280,
28027,
6,
3902,
834,
834,
89,
17,
834,
584,
4280,
28027,
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,
690,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
3902,
834,
834,
89,
17,
834,
2490,
3538,
20677,
3430,
11003,
2490,
11526,
3430,
3902,
834,
834,
51,
834,
3274,
3,
17864,
3430,
8242,
3,
2,
2059,
1,
-100,
-100,... |
Which mountain range contains Sierra Blanca Peak? | CREATE TABLE table_name_68 (mountain_range VARCHAR, mountain_peak VARCHAR) | SELECT mountain_range FROM table_name_68 WHERE mountain_peak = "sierra blanca peak" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
11231,
9,
77,
834,
5517,
584,
4280,
28027,
6,
4180,
834,
14661,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4180,
620,
2579,
17171,
12824,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4180,
834,
5517,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
4180,
834,
14661,
3274,
96,
7,
23,
16841,
8753,
9,
6734,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of chapters listed for the fraternity with a headquarters in Austin, Texas? | CREATE TABLE table_10054296_1 (chapters INTEGER, classification VARCHAR, headquarters VARCHAR) | SELECT MAX(chapters) FROM table_10054296_1 WHERE classification = "Fraternity" AND headquarters = "Austin, Texas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
5062,
357,
4314,
834,
536,
41,
524,
6789,
277,
3,
21342,
17966,
6,
13774,
584,
4280,
28027,
6,
13767,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
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,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
524,
6789,
277,
61,
21680,
953,
834,
2915,
5062,
357,
4314,
834,
536,
549,
17444,
427,
13774,
3274,
96,
371,
52,
9,
2947,
485,
121,
3430,
13767,
3274,
96,
14934,
17,
77,
6,
2514,
121,
1,
-100,
-100,
... |
When was the final loss of the club last won in 2001 and has a total of 3 wins? | CREATE TABLE table_name_84 (
last_final_lost VARCHAR,
wins VARCHAR,
last_win VARCHAR
) | SELECT last_final_lost FROM table_name_84 WHERE wins = "3" AND last_win = "2001" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
336,
834,
12406,
834,
2298,
17,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
336,
834,
3757,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
336,
834,
12406,
834,
2298,
17,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
9204,
3274,
96,
519,
121,
3430,
336,
834,
3757,
3274,
96,
23658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the last 10 meetings that have slu, 9-8 as the overall record? | CREATE TABLE table_name_52 (
last_10_meetings VARCHAR,
overall_record VARCHAR
) | SELECT last_10_meetings FROM table_name_52 WHERE overall_record = "slu, 9-8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
336,
834,
1714,
834,
526,
15,
1222,
7,
584,
4280,
28027,
6,
1879,
834,
60,
7621,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
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,
0,
0,
0... | [
3,
23143,
14196,
336,
834,
1714,
834,
526,
15,
1222,
7,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
1879,
834,
60,
7621,
3274,
96,
7,
40,
76,
6,
668,
6039,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Return a histogram on what is the code of each role and the number of employees in each role? | CREATE TABLE Documents_to_be_Destroyed (
Document_ID INTEGER,
Destruction_Authorised_by_Employee_ID INTEGER,
Destroyed_by_Employee_ID INTEGER,
Planned_Destruction_Date DATETIME,
Actual_Destruction_Date DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE Roles (
Role_Code CHAR(15),
Role_... | SELECT Role_Code, COUNT(*) FROM Employees GROUP BY Role_Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
834,
235,
834,
346,
834,
2962,
6626,
10093,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
2973,
26853,
834,
23602,
127,
3375,
834,
969,
834,
427,
51,
7379,
63,
15,
15,
834,
430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2158,
109,
834,
22737,
6,
2847,
17161,
599,
1935,
61,
21680,
15871,
7,
350,
4630,
6880,
272,
476,
2158,
109,
834,
22737,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.