NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What score was conceded by Richmond? | CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_94 WHERE home_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2604,
47,
28325,
26,
57,
17247,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
234,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Position has a Nationality of united states, and a Pick of 9? | CREATE TABLE table_51444 (
"Round" real,
"Pick" real,
"Position" text,
"Nationality" text,
"School/club team" text
) | SELECT "Position" FROM table_51444 WHERE "Nationality" = 'united states' AND "Pick" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2534,
3628,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
29364,
87,
13442,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
755,
2534,
3628,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
345,
3142,
121,
3274,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100... |
In the match as corio oval, who was the away team? | CREATE TABLE table_name_29 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team FROM table_name_29 WHERE venue = "corio oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
550,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
8,
1588,
38,
4301,
23,
32,
17986,
6,
113,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
5669,
3274,
96,
5715,
23,
32,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which nationality do the Montreal Canadiens belong to with a pick# of 25? | CREATE TABLE table_68950 (
"Pick #" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Nationality" FROM table_68950 WHERE "NHL team" = 'montreal canadiens' AND "Pick #" = '25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
25188,
41,
96,
345,
3142,
1713,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24732,
485,
121,
21680,
953,
834,
3651,
25188,
549,
17444,
427,
96,
15743,
434,
372,
121,
3274,
3,
31,
4662,
6644,
27114,
7,
31,
3430,
96,
345,
3142,
1713,
121,
3274,
3,
31,
1828,
31,
1,
-100,
-100,
-100,
-100... |
I want to know the right ascension which has an NGC less than 6575 and declination of °38′00″ | CREATE TABLE table_name_72 (right_ascension___j2000__ VARCHAR, ngc_number VARCHAR, declination___j2000__ VARCHAR) | SELECT right_ascension___j2000__ FROM table_name_72 WHERE ngc_number < 6575 AND declination___j2000__ = "°38′00″" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
3535,
834,
9,
7,
75,
35,
1938,
834,
834,
834,
354,
13527,
834,
834,
584,
4280,
28027,
6,
3,
1725,
75,
834,
5525,
1152,
584,
4280,
28027,
6,
20,
11005... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
269,
834,
9,
7,
75,
35,
1938,
834,
834,
834,
354,
13527,
834,
834,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
3,
1725,
75,
834,
5525,
1152,
3,
2,
7123,
3072,
3430,
20,
11005,
257,
834,
834,
834,
354,
135... |
How many values of attendance occur when ave. on previous season is +645? | CREATE TABLE table_2970978_1 (ave_attendance VARCHAR, ___ave_on_prev_season VARCHAR) | SELECT COUNT(ave_attendance) FROM table_2970978_1 WHERE ___ave_on_prev_season = "+645" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2518,
21441,
834,
536,
41,
9,
162,
834,
15116,
663,
584,
4280,
28027,
6,
3,
834,
834,
834,
9,
162,
834,
106,
834,
2026,
208,
834,
9476,
584,
4280,
28027,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
9,
162,
834,
15116,
663,
61,
21680,
953,
834,
3166,
2518,
21441,
834,
536,
549,
17444,
427,
3,
834,
834,
834,
9,
162,
834,
106,
834,
2026,
208,
834,
9476,
3274,
96,
1220,
4389,
17395,
1,
-100,
-1... |
Who directed episode # 92 (4)? | CREATE TABLE table_name_21 (directed_by VARCHAR, episode__number VARCHAR) | SELECT directed_by FROM table_name_21 WHERE episode__number = "92 (4)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
22955,
834,
969,
584,
4280,
28027,
6,
5640,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
6640,
5640,
1713,
3,
4508,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6640,
834,
969,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
5640,
834,
834,
5525,
1152,
3274,
96,
4508,
3,
10820,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many patients with a primary disease of overdose had an admission location of phys referral/normal deli? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT MIN(demographic.age) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.diagnosis = "OVERDOSE" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
8023,
476,
134,
4083,
20805,
21415,
87,
24833,
329,
4090,
309,
22590,
121,
3430,
14798,
5,
25930,
4... |
who was the last opponent ? | CREATE TABLE table_203_368 (
id number,
"date" text,
"opponent" text,
"venue" text,
"result" text
) | SELECT "opponent" FROM table_203_368 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3651,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
32,
102,
9977,
121,
21680,
953,
834,
23330,
834,
519,
3651,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Venue for Hawke's bay? | CREATE TABLE table_45687 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT "Venue" FROM table_45687 WHERE "Opposing Team" = 'hawke''s bay' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
3651,
940,
41,
96,
667,
102,
2748,
53,
2271,
121,
1499,
6,
96,
20749,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
17,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
2128,
3651,
940,
549,
17444,
427,
96,
667,
102,
2748,
53,
2271,
121,
3274,
3,
31,
14400,
15,
31,
31,
7,
10210,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the result of the election when Tic Forrester ran as an incumbent? | CREATE TABLE table_18502 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_18502 WHERE "Incumbent" = 'Tic Forrester' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
4305,
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,
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,
20119,
121,
21680,
953,
834,
21594,
4305,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
382,
447,
242,
60,
1370,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
where was the only 64th position held ? | CREATE TABLE table_204_760 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) | SELECT "venue" FROM table_204_760 WHERE "position" = 64 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
28212,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
15,
2169,
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,
15098,
121,
21680,
953,
834,
26363,
834,
28212,
549,
17444,
427,
96,
4718,
121,
3274,
6687,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name for the play from the Ukraine, and a 1.93 xxo? | CREATE TABLE table_name_50 (
name VARCHAR,
nationality VARCHAR
) | SELECT name FROM table_name_50 WHERE nationality = "ukraine" AND 193 = "xxo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
564,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
21,
8,
577,
45,
8,
11897,
6,
11,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1157,
485,
3274,
96,
1598,
6559,
15,
121,
3430,
957,
519,
3274,
96,
19230,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who directed the episode with a production code of 301? | CREATE TABLE table_18424435_4 (directed_by VARCHAR, production_code VARCHAR) | SELECT directed_by FROM table_18424435_4 WHERE production_code = 301 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4165,
3628,
2469,
834,
591,
41,
22955,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
6640,
8,
5640,
28,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6640,
834,
969,
21680,
953,
834,
2606,
4165,
3628,
2469,
834,
591,
549,
17444,
427,
999,
834,
4978,
3274,
3,
25626,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the most swimsuit for interview less than 8.46 | CREATE TABLE table_name_1 (
swimsuit INTEGER,
interview INTEGER
) | SELECT MAX(swimsuit) FROM table_name_1 WHERE interview < 8.46 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
9728,
7628,
3,
21342,
17966,
6,
2772,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
9728,
7628,
21,
2772,
705,
145,
4848,
4448,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
7,
210,
603,
7628,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
2772,
3,
2,
4848,
4448,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the budget type code with most number of documents. | CREATE TABLE Documents_with_expenses (budget_type_code VARCHAR) | SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
834,
4065,
834,
994,
3801,
15,
7,
41,
11073,
2782,
834,
6137,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1487,
686,
1081,
28,
167,
381,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1487,
834,
6137,
834,
4978,
21680,
11167,
7,
834,
4065,
834,
994,
3801,
15,
7,
350,
4630,
6880,
272,
476,
1487,
834,
6137,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
... |
get the details of employees who manage a department. | CREATE TABLE employees (
department_id VARCHAR,
employee_id VARCHAR
)
CREATE TABLE departments (
department_id VARCHAR,
manager_id VARCHAR
) | SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
3066,
834,
23,
26,
584,
4280,
28027,
6,
3490,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3066,
834,
23,
26,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1429,
21680,
1652,
6157,
332,
536,
3,
15355,
3162,
10521,
6157,
332,
357,
9191,
332,
5411,
221,
2274,
297,
834,
23,
26,
3274,
332,
4416,
221,
2274,
297,
834,
23,
26,
549,
17444,
427,
332,
5411... |
What circuit did Juan Manuel Fangio have the fastest lap at the german grand prix? | CREATE TABLE table_name_16 (circuit VARCHAR, fastest_lap VARCHAR, race VARCHAR) | SELECT circuit FROM table_name_16 WHERE fastest_lap = "juan manuel fangio" AND race = "german grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
15357,
21560,
584,
4280,
28027,
6,
10391,
834,
8478,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
4558,
410,
15597,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4558,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
10391,
834,
8478,
3274,
96,
2047,
152,
19901,
1819,
10253,
121,
3430,
1964,
3274,
96,
1304,
348,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was drafted by the Baltimore Colts? | CREATE TABLE table_2508633_3 (player VARCHAR, nfl_team VARCHAR) | SELECT player FROM table_2508633_3 WHERE nfl_team = "Baltimore Colts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
3840,
4201,
834,
519,
41,
20846,
584,
4280,
28027,
6,
3,
29,
89,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
3,
23505,
57,
8,
1554... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
11434,
3840,
4201,
834,
519,
549,
17444,
427,
3,
29,
89,
40,
834,
11650,
3274,
96,
279,
2920,
23,
3706,
3043,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date was the attendance a bye? | CREATE TABLE table_name_44 (
date VARCHAR,
attendance VARCHAR
) | SELECT date FROM table_name_44 WHERE attendance = "bye" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
833,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
11364,
3,
9,
57,
15,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
11364,
3274,
96,
969,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many golds have a bronze greater than 1, a silver greater than 1, with total as the rank? | CREATE TABLE table_name_61 (gold VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR) | SELECT COUNT(gold) FROM table_name_61 WHERE bronze > 1 AND silver > 1 AND rank = "total" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
14910,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14910,
61,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
13467,
2490,
209,
3430,
4294,
2490,
209,
3430,
11003,
3274,
96,
235,
1947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where does Norway rank in total medals among countries with fewer than 7 bronzes? | CREATE TABLE table_name_96 (
rank VARCHAR,
bronze VARCHAR,
nation VARCHAR
) | SELECT rank FROM table_name_96 WHERE bronze < 7 AND nation = "norway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
405,
16491,
11003,
16,
792,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
13467,
3,
2,
489,
3430,
2982,
3274,
96,
29,
127,
1343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number listed for matches? | CREATE TABLE table_30787 (
"Player" text,
"Matches" real,
"Innings" real,
"Runs" real,
"Average" text,
"Highest Score" text,
"100s" real,
"50s" real
) | SELECT MAX("Matches") FROM table_30787 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
3940,
940,
41,
96,
15800,
49,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
196,
9416,
7,
121,
490,
6,
96,
448,
202,
7,
121,
490,
6,
96,
188,
624,
545,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
329,
144,
2951,
8512,
21680,
953,
834,
1458,
3940,
940,
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 number of patients with hematology as lab test category had complete atroiventricular block? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Atrioventricular block, complete" AND lab."CATEGORY" = "Hematology" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
what is the number of patients whose discharge location is rehab/distinct part hosp and procedure icd9 code is 5187? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND procedures.icd9_code = "5187" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Name the location of the church for bremanger | CREATE TABLE table_178408_1 (location_of_the_church VARCHAR, sub_parish__sokn_ VARCHAR) | SELECT location_of_the_church FROM table_178408_1 WHERE sub_parish__sokn_ = "Bremanger" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4608,
4018,
834,
536,
41,
14836,
834,
858,
834,
532,
834,
28854,
584,
4280,
28027,
6,
769,
834,
1893,
1273,
834,
834,
7,
1825,
29,
834,
584,
4280,
28027,
61,
3,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
858,
834,
532,
834,
28854,
21680,
953,
834,
2517,
4608,
4018,
834,
536,
549,
17444,
427,
769,
834,
1893,
1273,
834,
834,
7,
1825,
29,
834,
3274,
96,
279,
60,
348,
1304,
121,
1,
-100,
-100,
-100,
-100,
-... |
Who was in third place in the 1980 season? | CREATE TABLE table_23647668_2 (
third_place VARCHAR,
season VARCHAR
) | SELECT third_place FROM table_23647668_2 WHERE season = 1980 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4389,
3959,
3651,
834,
357,
41,
1025,
834,
4687,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
16,
1025,
286,
16,
8,
669... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1025,
834,
4687,
21680,
953,
834,
2773,
4389,
3959,
3651,
834,
357,
549,
17444,
427,
774,
3274,
6694,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the price of the internet provider that has an upstream rate of 256 kbit and a downstream rate of 512 kbit? | CREATE TABLE table_43730 (
"Internet Plan" text,
"Downstream" text,
"Upstream" text,
"Bandwidth Included" text,
"Price" text
) | SELECT "Price" FROM table_43730 WHERE "Upstream" = '256 kbit' AND "Downstream" = '512 kbit' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4118,
1458,
41,
96,
22912,
2926,
121,
1499,
6,
96,
308,
9197,
8103,
121,
1499,
6,
96,
11161,
8103,
121,
1499,
6,
96,
279,
232,
12018,
189,
15746,
26,
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,
345,
4920,
121,
21680,
953,
834,
591,
4118,
1458,
549,
17444,
427,
96,
11161,
8103,
121,
3274,
3,
31,
19337,
3,
157,
2360,
31,
3430,
96,
308,
9197,
8103,
121,
3274,
3,
31,
24163,
3,
157,
2360,
31,
1,
-100,
-... |
What is the total number of Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4? | CREATE TABLE table_name_59 (bronze VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR) | SELECT COUNT(bronze) FROM table_name_59 WHERE gold > 0 AND rank = "4" AND total > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
13711,
776,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
2045,
2490,
3,
632,
3430,
11003,
3274,
96,
20364,
3430,
792,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the Score on February 18, 2008? | CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_32 WHERE date = "february 18, 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
17763,
30,
2083,
14985,
2628,
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,
2604,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
14985,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What player from England was the runner-up at the match played at the Royal Porthcawl Golf Club? | CREATE TABLE table_name_83 (
runner_up VARCHAR,
country VARCHAR,
venue VARCHAR
) | SELECT runner_up FROM table_name_83 WHERE country = "england" AND venue = "royal porthcawl golf club" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
3,
10806,
834,
413,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
45,
2789,
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,
3,
10806,
834,
413,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
684,
3274,
96,
4606,
40,
232,
121,
3430,
5669,
3274,
96,
8170,
138,
2147,
107,
658,
210,
40,
4319,
1886,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the Elector with a Faction of roman, and an Elevated with 1244, may 28? | CREATE TABLE table_56640 (
"Elector" text,
"Nationality" text,
"Faction" text,
"Order and Title" text,
"Elevated" text,
"Elevator" text
) | SELECT "Elector" FROM table_56640 WHERE "Faction" = 'roman' AND "Elevated" = '1244, may 28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
23714,
41,
96,
21543,
127,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
371,
4787,
121,
1499,
6,
96,
7395,
588,
11,
11029,
121,
1499,
6,
96,
427,
10912,
920,
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,
21543,
127,
121,
21680,
953,
834,
4834,
23714,
549,
17444,
427,
96,
371,
4787,
121,
3274,
3,
31,
3522,
152,
31,
3430,
96,
427,
10912,
920,
121,
3274,
3,
31,
22504,
8525,
164,
2059,
31,
1,
-100,
-100,
-100,
-10... |
Which Weight & Height has a Player of michael worrincy? | CREATE TABLE table_name_65 (weight_ VARCHAR, _height VARCHAR, player VARCHAR) | SELECT weight_ & _height FROM table_name_65 WHERE player = "michael worrincy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
9378,
834,
584,
4280,
28027,
6,
3,
834,
88,
2632,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
14230,
3,
184,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1293,
834,
3,
184,
3,
834,
88,
2632,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1959,
3274,
96,
51,
362,
9,
15,
40,
2275,
52,
52,
23,
11298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest Grid with a Driver of piers courage? | CREATE TABLE table_name_31 (grid INTEGER, driver VARCHAR) | SELECT MAX(grid) FROM table_name_31 WHERE driver = "piers courage" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
3496,
26,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
23644,
28,
3,
9,
10546,
13,
3,
8343,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
2535,
3274,
96,
8343,
7,
11578,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
At which games did Tunisia win a bronze in the men's 1500 m freestyle? | CREATE TABLE table_name_59 (
games VARCHAR,
medal VARCHAR,
event VARCHAR
) | SELECT games FROM table_name_59 WHERE medal = "bronze" AND event = "men's 1500 m freestyle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
1031,
584,
4280,
28027,
6,
9365,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
486,
84,
1031,
410,
22564,
23,
9,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1031,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
9365,
3274,
96,
13711,
776,
121,
3430,
605,
3274,
96,
904,
31,
7,
15011,
3,
51,
339,
4084,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Position has a College/Junior/Club Team (League) of estevan bruins (wchl), and a Round of 3? | CREATE TABLE table_34317 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) | SELECT "Position" FROM table_34317 WHERE "College/Junior/Club Team (League)" = 'estevan bruins (wchl)' AND "Round" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
519,
2517,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
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,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
3710,
519,
2517,
549,
17444,
427,
96,
9939,
7883,
87,
683,
202,
23,
127,
87,
254,
11158,
2271,
41,
2796,
9,
5398,
61,
121,
3274,
3,
31,
2613,
2132,
3,
115,
23162,
41,
... |
What are the least losses of Warrnambool with more than 6 wins and less than 630 against? | CREATE TABLE table_63532 (
"Club" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT MIN("Losses") FROM table_63532 WHERE "Against" < '630' AND "Club" = 'warrnambool' AND "Wins" > '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
4867,
357,
41,
96,
254,
11158,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6,
96,
20749,
121,
490,
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,
3,
17684,
599,
121,
434,
13526,
7,
8512,
21680,
953,
834,
3891,
4867,
357,
549,
17444,
427,
96,
20749,
121,
3,
2,
3,
31,
26106,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
2910,
52,
13363,
12840,
40,
31,
3430,
9... |
yes or no for the gold coast with yes for melbourne, yes for adelaide, yes for auckland? | CREATE TABLE table_name_2 (gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR, adelaide VARCHAR) | SELECT gold_coast FROM table_name_2 WHERE melbourne = "yes" AND adelaide = "yes" AND auckland = "yes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
14910,
834,
25500,
584,
4280,
28027,
6,
3,
9,
4636,
40,
232,
584,
4280,
28027,
6,
3,
2341,
26255,
584,
4280,
28027,
6,
3,
15311,
5385,
584,
4280,
28027,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2045,
834,
25500,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
3,
2341,
26255,
3274,
96,
10070,
121,
3430,
3,
15311,
5385,
3274,
96,
10070,
121,
3430,
3,
9,
4636,
40,
232,
3274,
96,
10070,
121,
1,
-100,
-100,
... |
How many attended the game on 4 February 2003? | CREATE TABLE table_name_81 (
attendance INTEGER,
date VARCHAR
) | SELECT AVG(attendance) FROM table_name_81 WHERE date = "4 february 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
11364,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5526,
8,
467,
30,
314,
2083,
3888,
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,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
833,
3274,
96,
591,
29976,
76,
1208,
3888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
A bar chart showing the average price of each cinema, show in descending by the y-axis please. | CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
) | SELECT Name, AVG(Price) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Name ORDER BY AVG(Price) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10276,
41,
17544,
834,
4309,
16,
17,
6,
5570,
1499,
6,
2384,
29,
53,
834,
1201,
16,
17,
6,
4000,
9,
6726,
16,
17,
6,
10450,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
71,
17217,
599,
345,
4920,
61,
21680,
2023,
6157,
332,
536,
3,
15355,
3162,
814,
6157,
332,
357,
9191,
332,
5411,
371,
173,
51,
834,
4309,
3274,
332,
4416,
371,
173,
51,
834,
4309,
3,
15355,
3162,
10276,
... |
Plot a pie chart to show different nominees and the number of musicals they have been nominated. | CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
)
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
) | SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4183,
41,
22307,
834,
4309,
16,
17,
6,
5570,
1499,
6,
2929,
16,
17,
6,
3677,
1499,
6,
17459,
1499,
6,
465,
8695,
15,
1499,
6,
3,
20119,
1499,
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,
465,
8695,
15,
6,
2847,
17161,
599,
1935,
61,
21680,
4183,
350,
4630,
6880,
272,
476,
465,
8695,
15,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In which tournament did Al Geiberger finish runner-up? | CREATE TABLE table_name_2 (tournament VARCHAR, runner_s__up VARCHAR) | SELECT tournament FROM table_name_2 WHERE runner_s__up = "al geiberger" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
5892,
410,
901,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
138,
873,
23,
16170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many golds does Germany have with more than 1 silver? | CREATE TABLE table_61385 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Gold") FROM table_61385 WHERE "Silver" > '1' AND "Nation" = 'germany' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
519,
4433,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23576,
8512,
21680,
953,
834,
4241,
519,
4433,
549,
17444,
427,
96,
134,
173,
624,
121,
2490,
3,
31,
536,
31,
3430,
96,
567,
257,
121,
3274,
3,
31,
1304,
348,
63,
31,
1,
-100,
-100,
-100,
-1... |
Where was the fight that lasted 3 rounds and was won or loss by a decision? | CREATE TABLE table_name_65 (
location VARCHAR,
round VARCHAR,
method VARCHAR
) | SELECT location FROM table_name_65 WHERE round = 3 AND method = "decision" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
1128,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1573,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
2870,
24,
3,
19054,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1751,
3274,
220,
3430,
1573,
3274,
96,
221,
18901,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many yards per attempt were there when total yards were 513? | CREATE TABLE table_19517448_3 (
yards_per_attempt VARCHAR,
total_yards VARCHAR
) | SELECT yards_per_attempt FROM table_19517448_3 WHERE total_yards = "513" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
27693,
3707,
834,
519,
41,
6460,
834,
883,
834,
144,
17,
9045,
584,
4280,
28027,
6,
792,
834,
6636,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6460,
834,
883,
834,
144,
17,
9045,
21680,
953,
834,
22464,
27693,
3707,
834,
519,
549,
17444,
427,
792,
834,
6636,
7,
3274,
96,
755,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the english version that is buena vista edition is daisuke gouri? | CREATE TABLE table_25173505_13 (
english_version VARCHAR,
buena_vista_edition VARCHAR
) | SELECT english_version FROM table_25173505_13 WHERE buena_vista_edition = "Daisuke Gouri" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2517,
2469,
3076,
834,
2368,
41,
22269,
834,
8674,
584,
4280,
28027,
6,
8524,
35,
9,
834,
17493,
834,
15,
10569,
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,
22269,
834,
8674,
21680,
953,
834,
1828,
2517,
2469,
3076,
834,
2368,
549,
17444,
427,
8524,
35,
9,
834,
17493,
834,
15,
10569,
3274,
96,
308,
9,
159,
1598,
15,
1263,
459,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the language for Strong Heart? | CREATE TABLE table_name_64 (language VARCHAR, title VARCHAR) | SELECT language FROM table_name_64 WHERE title = "strong heart" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
24925,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1612,
21,
16366,
6219,
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,
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,
1612,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
2233,
3274,
96,
25866,
842,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the latest season number that Eric Tuchman directed? | CREATE TABLE table_2219961_2 (season__number INTEGER, director VARCHAR) | SELECT MAX(season__number) FROM table_2219961_2 WHERE director = "Eric Tuchman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
19479,
4241,
834,
357,
41,
9476,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1251,
774,
381,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9476,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2884,
19479,
4241,
834,
357,
549,
17444,
427,
2090,
3274,
96,
427,
2234,
332,
2295,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is safe if John and Nicole are eliminated? | CREATE TABLE table_12305325_4 (
safe VARCHAR,
eliminated VARCHAR
) | SELECT safe FROM table_12305325_4 WHERE eliminated = "John and Nicole" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
1458,
4867,
1828,
834,
591,
41,
1346,
584,
4280,
28027,
6,
17809,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
1346,
3,
99,
1079,
11,
18063,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1346,
21680,
953,
834,
2122,
1458,
4867,
1828,
834,
591,
549,
17444,
427,
17809,
3274,
96,
18300,
11,
18063,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Away team has a Home team of south melbourne? | CREATE TABLE table_52320 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_52320 WHERE "Home team" = 'south melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
15003,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
5373,
15003,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
7,
670,
107,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many countries do not have an roller coaster longer than 3000? | CREATE TABLE roller_coaster (
roller_coaster_id number,
name text,
park text,
country_id number,
length number,
height number,
speed text,
opened text,
status text
)
CREATE TABLE country (
country_id number,
name text,
population number,
area number,
languages text
) | SELECT COUNT(*) FROM country WHERE NOT country_id IN (SELECT country_id FROM roller_coaster WHERE length > 3000) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10866,
834,
25500,
49,
41,
10866,
834,
25500,
49,
834,
23,
26,
381,
6,
564,
1499,
6,
2447,
1499,
6,
684,
834,
23,
26,
381,
6,
2475,
381,
6,
3902,
381,
6,
1634,
1499,
6,
2946,
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,
2847,
17161,
599,
1935,
61,
21680,
684,
549,
17444,
427,
4486,
684,
834,
23,
26,
3388,
41,
23143,
14196,
684,
834,
23,
26,
21680,
10866,
834,
25500,
49,
549,
17444,
427,
2475,
2490,
220,
2313,
61,
1,
-100,
-100,
-10... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find hire_date and the sum of employee_id bin hire_date by time, and visualize them by a bar chart, display by the y axis in descending please. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE 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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
) | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(EMPLOYEE_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
... |
What is the Object Number for the item with wheels 4-4-0 and a location of Barrow Hill? | CREATE TABLE table_name_95 (
objectnumber VARCHAR,
location VARCHAR,
wheels VARCHAR
) | SELECT objectnumber FROM table_name_95 WHERE location = "barrow hill" AND wheels = "4-4-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
3735,
5525,
1152,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
8277,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17057,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3735,
5525,
1152,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1128,
3274,
96,
115,
6770,
9956,
121,
3430,
8277,
3274,
96,
591,
18,
26814,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the least passengers from the Dallas/Fort Worth International (DFW) airport? | CREATE TABLE table_name_75 (passengers INTEGER, airport VARCHAR) | SELECT MIN(passengers) FROM table_name_75 WHERE airport = "dallas/fort worth international (dfw)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
3968,
4606,
277,
3,
21342,
17966,
6,
3761,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
9234,
45,
8,
9628,
87,
3809,
17,
16990... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3968,
4606,
277,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
3761,
3274,
96,
26,
1748,
9,
7,
87,
1161,
17,
1494,
1038,
41,
26,
89,
210,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the record for April 21? | CREATE TABLE table_name_42 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_42 WHERE date = "april 21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
21,
1186,
1401,
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,
1368,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
1401,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the title of the production code 1acx09? | CREATE TABLE table_18734298_1 (
title VARCHAR,
production_code VARCHAR
) | SELECT title FROM table_18734298_1 WHERE production_code = "1ACX09" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4552,
4165,
3916,
834,
536,
41,
2233,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2233,
13,
8,
999,
1081,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
2606,
4552,
4165,
3916,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
96,
536,
5173,
4,
4198,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the location when the name is 'I feel free' b/w 'n.s.u.', with a release date of December 1966, on the Atco 6462 label? | CREATE TABLE table_44699 (
"Name" text,
"Location" text,
"Format" text,
"Record Label" text,
"Release Date" text
) | SELECT "Location" FROM table_44699 WHERE "Name" = 'i feel free" b/w "n.s.u.' AND "Release Date" = 'december 1966' AND "Record Label" = 'atco 6462' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4448,
3264,
41,
96,
23954,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
1649,
7621,
16229,
121,
1499,
6,
96,
1649,
40,
14608,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
21680,
953,
834,
591,
4448,
3264,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
23,
473,
339,
121,
3,
115,
87,
210,
96,
29,
5,
7,
5,
76,
5,
31,
3430,
96,
1649,
40,
14608,
7678,
121... |
what is the away team score when the home team is essendon? | CREATE TABLE table_58498 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_58498 WHERE "Home team" = 'essendon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
591,
3916,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
3449,
591,
3916,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
8185,
2029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subject id 990 is diagnosed with which icd9 code and admission type? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT demographic.admission_type, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "990" | [
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,
14798,
5,
9,
26,
5451,
834,
6137,
6,
18730,
7,
5,
447,
26,
1298,
834,
4978,
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,
... |
what is the director of la ronde | CREATE TABLE table_name_23 (
director VARCHAR,
original_title VARCHAR
) | SELECT director FROM table_name_23 WHERE original_title = "la ronde" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
2090,
584,
4280,
28027,
6,
926,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2090,
13,
50,
19033,
15,
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,
2090,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
926,
834,
21869,
3274,
96,
521,
19033,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the system for aries | CREATE TABLE table_25605 (
"Star" text,
"Stellar classification" text,
"Distance from Earth ( ly )" text,
"Constellation" text,
"Dust (or Debris; Temperature (K)" text,
"System" text,
"Dust (or Debris) Location (AU)" text,
"Cool Dust > 10 AU" text,
"Stellar Age (Myr)" text
) | SELECT "System" FROM table_25605 WHERE "Constellation" = 'Aries' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
3076,
41,
96,
7681,
121,
1499,
6,
96,
134,
6714,
291,
13774,
121,
1499,
6,
96,
308,
23,
8389,
45,
4030,
41,
3,
120,
3,
61,
121,
1499,
6,
96,
4302,
7,
6714,
257,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14342,
121,
21680,
953,
834,
19337,
3076,
549,
17444,
427,
96,
4302,
7,
6714,
257,
121,
3274,
3,
31,
188,
2593,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the location for school eckstein | CREATE TABLE table_17641314_3 (
location_denotes_location_of_school_by_seattle_neighborhood VARCHAR,
_does_not_necessary_correspond_with_attendance_area VARCHAR,
school VARCHAR
) | SELECT location_denotes_location_of_school_by_seattle_neighborhood, _does_not_necessary_correspond_with_attendance_area FROM table_17641314_3 WHERE school = "Eckstein" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4389,
2368,
2534,
834,
519,
41,
1128,
834,
221,
7977,
7,
834,
14836,
834,
858,
834,
6646,
834,
969,
834,
7,
15,
9,
8692,
834,
29848,
107,
6693,
4500,
584,
4280,
28027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1128,
834,
221,
7977,
7,
834,
14836,
834,
858,
834,
6646,
834,
969,
834,
7,
15,
9,
8692,
834,
29848,
107,
6693,
4500,
6,
3,
834,
26,
32,
15,
7,
834,
2264,
834,
29,
15,
2319,
7,
1208,
834,
5715,
18429,
834,
406... |
In what conflicts was the Italian Navy Combatants B? | CREATE TABLE table_26977890_1 (
conflict VARCHAR,
combatants_b VARCHAR
) | SELECT conflict FROM table_26977890_1 WHERE combatants_b = "Italian Navy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4327,
3940,
2394,
834,
536,
41,
4129,
584,
4280,
28027,
6,
4719,
2366,
834,
115,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
17824,
47,
8,
4338,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4129,
21680,
953,
834,
2688,
4327,
3940,
2394,
834,
536,
549,
17444,
427,
4719,
2366,
834,
115,
3274,
96,
196,
17,
9,
9928,
10662,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What district was Harold Earthman the incumbent in? | CREATE TABLE table_1342233_42 (
district VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_1342233_42 WHERE incumbent = "Harold Earthman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
20879,
834,
4165,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3939,
47,
28925,
4030,
348,
8,
28406,
16,
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,
3939,
21680,
953,
834,
2368,
4165,
20879,
834,
4165,
549,
17444,
427,
28406,
3274,
96,
15537,
1490,
4030,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many different counts of the votes for Bush are there in the county where he got 69.7% of the votes? | CREATE TABLE table_2401326_1 (
bush_number VARCHAR,
bush_percentage VARCHAR
) | SELECT COUNT(bush_number) FROM table_2401326_1 WHERE bush_percentage = "69.7%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
2368,
2688,
834,
536,
41,
17907,
834,
5525,
1152,
584,
4280,
28027,
6,
17907,
834,
883,
3728,
545,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3465,
107,
834,
5525,
1152,
61,
21680,
953,
834,
11944,
2368,
2688,
834,
536,
549,
17444,
427,
17907,
834,
883,
3728,
545,
3274,
96,
3951,
5,
6170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country is Istanbul in? | CREATE TABLE table_name_11 (
country VARCHAR,
city VARCHAR
) | SELECT country FROM table_name_11 WHERE city = "istanbul" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
684,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
19,
20958,
16,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
690,
3274,
96,
343,
152,
6724,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the IATA for Ringway Airport in the United Kingdom? | CREATE TABLE table_name_1 (iata VARCHAR, country VARCHAR, airport VARCHAR) | SELECT iata FROM table_name_1 WHERE country = "united kingdom" AND airport = "ringway airport" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
17221,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
3761,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
27,
19282,
21,
7888,
1343,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17221,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
14740,
121,
3430,
3761,
3274,
96,
1007,
1343,
3761,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position does Jamar Chaney play? | CREATE TABLE table_name_45 (position VARCHAR, name VARCHAR) | SELECT position FROM table_name_45 WHERE name = "jamar chaney" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
4718,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
405,
11340,
291,
3643,
3186,
577,
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,
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,
1102,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
564,
3274,
96,
1191,
1635,
3,
3441,
3186,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which team has an away team score of 9.11 (65)? | CREATE TABLE table_11862 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_11862 WHERE "Away team score" = '9.11 (65)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
4056,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
20056,
4056,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
8797,
2596,
11372,
9120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the record 3-3? | CREATE TABLE table_name_99 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_99 WHERE record = "3-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
5522,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
1368,
220,
3486,
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,
833,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1368,
3274,
96,
519,
3486,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Attendance, when Opponent is Pittsburgh Steelers? | CREATE TABLE table_41910 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Attendance" FROM table_41910 WHERE "Opponent" = 'pittsburgh steelers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2294,
1714,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
591,
2294,
1714,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
5230,
17,
7289,
107,
2470,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
count the number of patients admitted before the year 2167 with lab test item id 51300. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2167" AND lab.itemid = "51300" | [
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,... |
What is the IUNC of district of Cayo and reserve of Actun Tunichil Muknal? | CREATE TABLE table_46798 (
"Reserve" text,
"District" text,
"IUCN" text,
"Co-management" text,
"Est." real,
"Description" text
) | SELECT "IUCN" FROM table_46798 WHERE "District" = 'cayo' AND "Reserve" = 'actun tunichil muknal' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3708,
3916,
41,
96,
1649,
3473,
15,
121,
1499,
6,
96,
308,
23,
20066,
121,
1499,
6,
96,
19120,
10077,
121,
1499,
6,
96,
3881,
18,
12271,
121,
1499,
6,
96,
14997,
535... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19120,
10077,
121,
21680,
953,
834,
591,
3708,
3916,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
658,
63,
32,
31,
3430,
96,
1649,
3473,
15,
121,
3274,
3,
31,
18141,
29,
5240,
362,
173,
3,
51,
1598... |
When was the order placed whose shipment tracking number is 3452? Give me the date. | CREATE TABLE shipments (
order_id VARCHAR,
shipment_tracking_number VARCHAR
)
CREATE TABLE orders (
date_order_placed VARCHAR,
order_id VARCHAR
) | SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
30645,
41,
455,
834,
23,
26,
584,
4280,
28027,
6,
19843,
834,
17,
22499,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5022,
41,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
5522,
834,
9397,
834,
4687,
26,
21680,
5022,
6157,
332,
536,
3,
15355,
3162,
3,
30645,
6157,
332,
357,
9191,
332,
5411,
9397,
834,
23,
26,
3274,
332,
4416,
9397,
834,
23,
26,
549,
17444,
427,
332,
4416,
... |
What was the speed of 200feet Giant Drop attraction? | CREATE TABLE table_71834 (
"Park" text,
"Tower height" text,
"Drop height*" text,
"Speed" text,
"Model" text,
"Opened" text,
"Height requirement" text
) | SELECT "Speed" FROM table_71834 WHERE "Model" = 'giant drop' AND "Drop height*" = '200feet' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2606,
3710,
41,
96,
26163,
121,
1499,
6,
96,
3696,
3321,
3902,
121,
1499,
6,
96,
308,
9505,
3902,
1935,
121,
1499,
6,
96,
28328,
121,
1499,
6,
96,
24663,
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,
28328,
121,
21680,
953,
834,
940,
2606,
3710,
549,
17444,
427,
96,
24663,
121,
3274,
3,
31,
22898,
17,
2328,
31,
3430,
96,
308,
9505,
3902,
1935,
121,
3274,
3,
31,
3632,
89,
15,
15,
17,
31,
1,
-100,
-100,
-1... |
Which locations had their first year in 2001? | CREATE TABLE table_29788320_2 (location VARCHAR, first_year VARCHAR) | SELECT location FROM table_29788320_2 WHERE first_year = 2001 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
21441,
4591,
1755,
834,
357,
41,
14836,
584,
4280,
28027,
6,
166,
834,
1201,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3248,
141,
70,
166,
215,
16,
4402... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
357,
21441,
4591,
1755,
834,
357,
549,
17444,
427,
166,
834,
1201,
3274,
4402,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What home team played the away team of Richmond? | CREATE TABLE table_name_75 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_75 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
234,
372,
1944,
8,
550,
372,
13,
17247,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the average silver for total more than 1 with bronze of 2 for france and gold more than 0 | CREATE TABLE table_51647 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Silver") FROM table_51647 WHERE "Total" > '1' AND "Bronze" = '2' AND "Nation" = 'france' AND "Gold" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2938,
4177,
41,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
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,
71,
17217,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
755,
2938,
4177,
549,
17444,
427,
96,
3696,
1947,
121,
2490,
3,
31,
536,
31,
3430,
96,
22780,
29,
776,
121,
3274,
3,
31,
357,
31,
3430,
96,
567,
257,
12... |
What nationality is the player Muggsy Bogues? | CREATE TABLE table_10015132_2 (
nationality VARCHAR,
player VARCHAR
) | SELECT nationality FROM table_10015132_2 WHERE player = "Muggsy Bogues" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
1808,
23757,
834,
357,
41,
1157,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1157,
485,
19,
8,
1959,
283,
13917,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
2915,
1808,
23757,
834,
357,
549,
17444,
427,
1959,
3274,
96,
329,
13917,
7,
63,
1491,
15991,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the rank of Lee Trevino, who had less than 27 wins? | CREATE TABLE table_name_89 (rank INTEGER, player VARCHAR, wins VARCHAR) | SELECT SUM(rank) FROM table_name_89 WHERE player = "lee trevino" AND wins < 27 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
6254,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
5531,
4691,
2494,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6254,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
1959,
3274,
96,
109,
15,
3,
929,
2494,
32,
121,
3430,
9204,
3,
2,
2307,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What year was Hartland College founded? | CREATE TABLE table_2076608_3 (founded VARCHAR, school VARCHAR) | SELECT founded FROM table_2076608_3 WHERE school = "Hartland College" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
3539,
4018,
834,
519,
41,
23329,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
10498,
40,
232,
1888,
5710,
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,
5710,
21680,
953,
834,
26426,
3539,
4018,
834,
519,
549,
17444,
427,
496,
3274,
96,
15537,
17,
40,
232,
1888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the least amount of wins with earnings that are more than $2,556,043, and where Lee Trevino is a player? | CREATE TABLE table_39495 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Wins" real
) | SELECT MIN("Wins") FROM table_39495 WHERE "Earnings ( $ )" > '2,556,043' AND "Player" = 'lee trevino' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
591,
3301,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
291,
29,
53,
7,
41,
1514,
3,
61,
121,
490,
6,
96,
184... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
7,
8512,
21680,
953,
834,
3288,
591,
3301,
549,
17444,
427,
96,
427,
291,
29,
53,
7,
41,
1514,
3,
61,
121,
2490,
3,
31,
4482,
3769,
11071,
632,
4906,
31,
3430,
96,
15800,
49,
121,
3274... |
Name the classification for 9, 9, 8, 9 | CREATE TABLE table_73350 (
"Episode" real,
"Song" text,
"Average grade" text,
"Detailed grades" text,
"Classification (Judges)" text,
"Classification (Viewers)" text
) | SELECT "Classification (Judges)" FROM table_73350 WHERE "Detailed grades" = '9, 9, 8, 9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
16975,
41,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
134,
2444,
121,
1499,
6,
96,
188,
624,
545,
2769,
121,
1499,
6,
96,
29872,
13082,
121,
1499,
6,
96,
21486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21486,
2420,
41,
683,
13164,
7,
61,
121,
21680,
953,
834,
4552,
16975,
549,
17444,
427,
96,
29872,
13082,
121,
3274,
3,
31,
1298,
6,
9902,
9478,
668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which IHSAA Football Class has an IHSAA Class of aa, and an Enrollment of 475? | CREATE TABLE table_name_14 (ihsaa_football_class VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR) | SELECT ihsaa_football_class FROM table_name_14 WHERE ihsaa_class = "aa" AND enrollment = 475 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
23,
107,
7,
9,
9,
834,
6259,
3184,
834,
4057,
584,
4280,
28027,
6,
3,
23,
107,
7,
9,
9,
834,
4057,
584,
4280,
28027,
6,
17938,
584,
4280,
28027,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
23,
107,
7,
9,
9,
834,
6259,
3184,
834,
4057,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
3,
23,
107,
7,
9,
9,
834,
4057,
3274,
96,
9,
9,
121,
3430,
17938,
3274,
314,
3072,
1,
-100,
-100,
-100,
-100,... |
What is the amount of snow where the days for storms are 31? | CREATE TABLE table_name_61 (snow__days_year_ INTEGER, storms__days_year_ VARCHAR) | SELECT SUM(snow__days_year_) FROM table_name_61 WHERE storms__days_year_ = 31 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
7,
7651,
834,
834,
1135,
7,
834,
1201,
834,
3,
21342,
17966,
6,
5536,
7,
834,
834,
1135,
7,
834,
1201,
834,
584,
4280,
28027,
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,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7,
7651,
834,
834,
1135,
7,
834,
1201,
834,
61,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
5536,
7,
834,
834,
1135,
7,
834,
1201,
834,
3274,
2664,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the greatest lane that David Payne was in when he ran longer than 13.17? | CREATE TABLE table_name_99 (
lane INTEGER,
athlete VARCHAR,
time VARCHAR
) | SELECT MAX(lane) FROM table_name_99 WHERE athlete = "david payne" AND time > 13.17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
3,
8102,
3,
21342,
17966,
6,
17893,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4016,
3,
8102,
24,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
8102,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
17893,
3274,
96,
26,
9,
6961,
726,
29,
15,
121,
3430,
97,
2490,
8808,
2517,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Binibining Pilipinas-International has a Year larger than 1990, and a Binibining Pilipinas-Universe of maria lourdes gonzalez? | CREATE TABLE table_name_7 (
binibining_pilipinas_international VARCHAR,
year VARCHAR,
binibining_pilipinas_universe VARCHAR
) | SELECT binibining_pilipinas_international FROM table_name_7 WHERE year > 1990 AND binibining_pilipinas_universe = "maria lourdes gonzalez" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
2701,
23,
4517,
53,
834,
102,
173,
23,
3180,
9,
7,
834,
27817,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2701,
23,
4517,
53,
834,
102,
173,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2701,
23,
4517,
53,
834,
102,
173,
23,
3180,
9,
7,
834,
27817,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
215,
2490,
5541,
3430,
2701,
23,
4517,
53,
834,
102,
173,
23,
3180,
9,
7,
834,
7846,
15,
3274,
96,... |
who is the top athlete from poland | CREATE TABLE table_204_155 (
id number,
"rank" number,
"heat" number,
"athlete" text,
"nationality" text,
"time" number,
"notes" text
) | SELECT "athlete" FROM table_204_155 WHERE "nationality" = 'poland' ORDER BY "rank" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
20896,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
88,
144,
121,
381,
6,
96,
26170,
15,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
715,
121,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
26170,
15,
121,
21680,
953,
834,
26363,
834,
20896,
549,
17444,
427,
96,
16557,
485,
121,
3274,
3,
31,
3233,
232,
31,
4674,
11300,
272,
476,
96,
6254,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score of the game with a record of 37 26 9? | CREATE TABLE table_name_5 (
score VARCHAR,
record VARCHAR
) | SELECT score FROM table_name_5 WHERE record = "37–26–9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
2604,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
28,
3,
9,
1368,
13,
6862,
2208,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
1368,
3274,
96,
4118,
104,
2688,
104,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest number of points a player got during the game on May 25? | CREATE TABLE table_name_85 (high_points VARCHAR, date VARCHAR) | SELECT high_points FROM table_name_85 WHERE date = "may 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
13,
979,
3,
9,
1959,
530,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
833,
3274,
96,
13726,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When fm 97.3 is the frequency how many formats are there? | CREATE TABLE table_18536769_1 (
format VARCHAR,
frequency VARCHAR
) | SELECT COUNT(format) FROM table_18536769_1 WHERE frequency = "FM 97.3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4867,
3708,
3951,
834,
536,
41,
1910,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
89,
51,
668,
27914,
19,
8,
7321,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8995,
61,
21680,
953,
834,
2606,
4867,
3708,
3951,
834,
536,
549,
17444,
427,
7321,
3274,
96,
14908,
668,
27914,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the attendance on May 13? | CREATE TABLE table_name_76 (
attendance VARCHAR,
date VARCHAR
) | SELECT attendance FROM table_name_76 WHERE date = "may 13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
11364,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
30,
932,
1179,
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,
11364,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
833,
3274,
96,
13726,
1179,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who tied for the highest rebounds during the game against Orlando? | CREATE TABLE table_2807 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High rebounds" FROM table_2807 WHERE "Team" = 'Orlando' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4560,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
3,
23768,
121,
21680,
953,
834,
2577,
4560,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
667,
7721,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the names of projects that require more than 300 hours, and how many scientists are assigned to each? | CREATE TABLE assignedto (
scientist number,
project text
)
CREATE TABLE projects (
code text,
name text,
hours number
)
CREATE TABLE scientists (
ssn number,
name text
) | SELECT COUNT(*), T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7604,
235,
41,
17901,
381,
6,
516,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1195,
41,
1081,
1499,
6,
564,
1499,
6,
716,
381,
3,
61,
3,
32102,
32103,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
332,
5411,
4350,
21680,
1195,
6157,
332,
536,
3,
15355,
3162,
7604,
235,
6157,
332,
357,
9191,
332,
5411,
4978,
3274,
332,
4416,
23574,
549,
17444,
427,
332,
5411,
5842,
7,
2490,
3147,
350... |
What is the highest number of matches? | CREATE TABLE table_1479 (
"Player" text,
"Team" text,
"Matches" real,
"Innings" real,
"Runs" real,
"Average" text,
"Highest Score" text,
"100s" real,
"50s" real
) | SELECT MAX("Matches") FROM table_1479 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4440,
41,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
196,
9416,
7,
121,
490,
6,
96,
448,
202,
7,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
329,
144,
2951,
8512,
21680,
953,
834,
2534,
4440,
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,
... |
who is the player with the greatest number of matches played ? | CREATE TABLE table_203_221 (
id number,
"name" text,
"nationality" text,
"matches played" number,
"goals scored" number,
"notes" text
) | SELECT "name" FROM table_203_221 ORDER BY "matches played" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
2658,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
19515,
15,
7,
1944,
121,
381,
6,
96,
839,
5405,
5799,
121,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
23330,
834,
357,
2658,
4674,
11300,
272,
476,
96,
19515,
15,
7,
1944,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In which position did Iljuštšenko finish in the European Championships held prior to 2008? | CREATE TABLE table_name_48 (position VARCHAR, year VARCHAR, competition VARCHAR) | SELECT position FROM table_name_48 WHERE year < 2008 AND competition = "european championships" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
4718,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
1102,
410,
802,
2047,
2,
17,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
215,
3,
2,
2628,
3430,
2259,
3274,
96,
28188,
152,
10183,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the % with total value of 249887 and queens value of 6.8% | CREATE TABLE table_1108394_43 (_percentage VARCHAR, total VARCHAR, queens VARCHAR) | SELECT _percentage FROM table_1108394_43 WHERE total = 249887 AND queens = "6.8_percentage" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
4591,
4240,
834,
4906,
41,
834,
883,
3728,
545,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
14915,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
834,
883,
3728,
545,
21680,
953,
834,
19277,
4591,
4240,
834,
4906,
549,
17444,
427,
792,
3274,
997,
3916,
4225,
3430,
14915,
7,
3274,
96,
948,
5,
927,
834,
883,
3728,
545,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What's the pos for an asts less than 117? | CREATE TABLE table_name_52 (pos VARCHAR, asts INTEGER) | SELECT pos FROM table_name_52 WHERE asts < 117 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
2748,
584,
4280,
28027,
6,
38,
17,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3,
2748,
21,
46,
38,
17,
7,
705,
145,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2748,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
38,
17,
7,
3,
2,
3,
20275,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what position did the player from connecticut play | CREATE TABLE table_15874 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
) | SELECT "Position" FROM table_15874 WHERE "School/Club Team" = 'Connecticut' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26556,
4581,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
535,
490,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
16,
7030,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
26556,
4581,
549,
17444,
427,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
25772,
23,
3044,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.