NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
during their current hospital encounter, patient 006-195316 has been allergic to any substance? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemics... | SELECT COUNT(*) > 0 FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-195316' AND patient.hospitaldischargetime IS NULL)) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
23886,
549,
17444,
427,
23886,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
1006... |
What was Len Sutton's total number of completed laps when his qualifying time was 142.653? | CREATE TABLE table_69634 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
) | SELECT COUNT("Laps") FROM table_69634 WHERE "Qual" = '142.653' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3891,
591,
41,
96,
476,
2741,
121,
1499,
6,
96,
7681,
17,
121,
1499,
6,
96,
5991,
138,
121,
1499,
6,
96,
22557,
121,
1499,
6,
96,
371,
77,
1273,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
3951,
3891,
591,
549,
17444,
427,
96,
5991,
138,
121,
3274,
3,
31,
2534,
22724,
4867,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the total prize money where John Tabatabai was the runner-up? | CREATE TABLE table_12454156_1 (prize_money VARCHAR, runner_up VARCHAR) | SELECT prize_money FROM table_12454156_1 WHERE runner_up = "John Tabatabai" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22504,
5062,
25463,
834,
536,
41,
2246,
776,
834,
28442,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
792,
6441,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6441,
834,
28442,
21680,
953,
834,
22504,
5062,
25463,
834,
536,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
18300,
10456,
144,
9,
9441,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHAT TRIES HAVE TRIES AGAINST AT 140? | CREATE TABLE table_name_14 (tries_for VARCHAR, tries_against VARCHAR) | SELECT tries_for FROM table_name_14 WHERE tries_against = "140" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
9000,
834,
1161,
584,
4280,
28027,
6,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
11466,
11973,
21490,
114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9000,
834,
1161,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
3,
9000,
834,
9,
16720,
7,
17,
3274,
96,
22012,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who were the candidates in district Wisconsin 1? | CREATE TABLE table_1341472_51 (
candidates VARCHAR,
district VARCHAR
) | SELECT candidates FROM table_1341472_51 WHERE district = "Wisconsin 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
24719,
357,
834,
5553,
41,
4341,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4341,
16,
3939,
10212,
209,
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,
4341,
21680,
953,
834,
23747,
24719,
357,
834,
5553,
549,
17444,
427,
3939,
3274,
96,
518,
159,
8056,
77,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of hours since patient 032-24135 first visited ward 1068 on this hospital visit? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '032-24135' AND patient.wardid = 1068 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
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,
997,
1429,
41,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
3,
5211,
12224,
6431,
834,
382,
15382,
9960,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
20466,
17,
715,
61,
61,
216... |
What team did he compete for in the GP3 series? | CREATE TABLE table_20500097_1 (
team VARCHAR,
series VARCHAR
) | SELECT team FROM table_20500097_1 WHERE series = "GP3 series" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
12814,
4327,
834,
536,
41,
372,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
410,
3,
88,
5978,
21,
16,
8,
3,
8049,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
1755,
12814,
4327,
834,
536,
549,
17444,
427,
939,
3274,
96,
8049,
519,
939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Bob Tway's To par? | CREATE TABLE table_12519 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "To par" FROM table_12519 WHERE "Player" = 'bob tway' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
2294,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
10124,
2294,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
17396,
3,
17,
1343,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the fewest ties the team had with fewer than 7 games? | CREATE TABLE table_34008 (
"Games" real,
"Drawn" real,
"Lost" real,
"Goal difference" text,
"Points" real
) | SELECT MIN("Drawn") FROM table_34008 WHERE "Games" < '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21129,
4018,
41,
96,
23055,
7,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
6221,
138,
1750,
121,
1499,
6,
96,
22512,
7,
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,
308,
10936,
29,
8512,
21680,
953,
834,
21129,
4018,
549,
17444,
427,
96,
23055,
7,
121,
3,
2,
3,
31,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What episode number was written by Anthony Sparks? | CREATE TABLE table_28172 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT MIN("No.") FROM table_28172 WHERE "Written by" = 'Anthony Sparks' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
27156,
41,
96,
4168,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3380,
10270,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
4168,
5,
8512,
21680,
953,
834,
2577,
27156,
549,
17444,
427,
96,
24965,
324,
57,
121,
3274,
3,
31,
188,
29,
189,
106,
63,
15036,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
as is the quantity variety of score between ultimate the place opponents between remaining is alexandra fusai nathalie tauziat | CREATE TABLE table_23197088_4 (score_in_final VARCHAR, opponents_in_final VARCHAR) | SELECT COUNT(score_in_final) FROM table_23197088_4 WHERE opponents_in_final = "Alexandra Fusai Nathalie Tauziat" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2294,
2518,
4060,
834,
591,
41,
7,
9022,
834,
77,
834,
12406,
584,
4280,
28027,
6,
16383,
834,
77,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
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,
2847,
17161,
599,
7,
9022,
834,
77,
834,
12406,
61,
21680,
953,
834,
2773,
2294,
2518,
4060,
834,
591,
549,
17444,
427,
16383,
834,
77,
834,
12406,
3274,
96,
27280,
152,
3515,
6343,
7,
9,
23,
9267,
1024,
1896,
11452... |
tell me the patient ids who are diagnosed with increased intracranial pressure in 2102. | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
i... | SELECT patient.uniquepid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'increased intracranial pressure' AND STRFTIME('%y', diagnosis.diagnosistime) = '2102') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
202,
1495,
12417,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
8209,
5,
10061,
15129,
21545,
23,
26,
21680,
8209,
549,
17444,
427,
8209,
5,
25930,
4844,
159,
435... |
What school in Dalefield has a roll less than 81? | CREATE TABLE table_name_61 (name VARCHAR, roll VARCHAR, area VARCHAR) | SELECT name FROM table_name_61 WHERE roll < 81 AND area = "dalefield" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
4350,
584,
4280,
28027,
6,
3812,
584,
4280,
28027,
6,
616,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
496,
16,
10729,
15,
1846,
65,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
3812,
3,
2,
3,
4959,
3430,
616,
3274,
96,
5437,
1846,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What date did Carlton play as the away team? | CREATE TABLE table_name_54 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_54 WHERE away_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
410,
3,
30339,
577,
38,
8,
550,
372,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
the artist ash only had one song that appeared in the o.c. what is the name of that song ? | CREATE TABLE table_203_357 (
id number,
"artist" text,
"song" text,
"soundtrack" text,
"episode(s)" text,
"notes" text
) | SELECT "song" FROM table_203_357 WHERE "artist" = 'ash' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3436,
41,
3,
23,
26,
381,
6,
96,
1408,
343,
121,
1499,
6,
96,
7,
2444,
121,
1499,
6,
96,
17481,
11991,
121,
1499,
6,
96,
15,
102,
159,
32,
221,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
2444,
121,
21680,
953,
834,
23330,
834,
519,
3436,
549,
17444,
427,
96,
1408,
343,
121,
3274,
3,
31,
3198,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest bronze for San Marino with less than 82 total and less than 3 golds? | CREATE TABLE table_58489 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Bronze") FROM table_58489 WHERE "Total" < '82' AND "Nation" = 'san marino' AND "Gold" < '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
591,
3914,
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,
4800,
4,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
3449,
591,
3914,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
4613,
31,
3430,
96,
567,
257,
121,
3274,
3,
31,
7,
152,
3,
12181,
32,
31,
3430,
96,... |
What unit has gen et sp nov as the novelty? | CREATE TABLE table_name_51 (
unit VARCHAR,
novelty VARCHAR
) | SELECT unit FROM table_name_51 WHERE novelty = "gen et sp nov" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
1745,
584,
4280,
28027,
6,
30372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1745,
65,
3,
729,
3,
15,
17,
3,
7,
102,
3,
5326,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1745,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
30372,
3274,
96,
729,
3,
15,
17,
3,
7,
102,
3,
5326,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the series number for 'the night of the flying pie plate | CREATE TABLE table_23350 (
"Series #" real,
"Season #" real,
"Title" text,
"Director(s)" text,
"Writer(s)" text,
"Airdate" text,
"Production code" real,
"Arties disguises" text
) | SELECT MAX("Series #") FROM table_23350 WHERE "Title" = 'The Night of the Flying Pie Plate' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
1752,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
599,
7,
61,
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,
4800,
4,
599,
121,
12106,
7,
1713,
8512,
21680,
953,
834,
20879,
1752,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
634,
5190,
13,
8,
8223,
53,
11591,
14477,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Tell me the event for 2012 london games | CREATE TABLE table_name_70 (
event VARCHAR,
games VARCHAR
) | SELECT event FROM table_name_70 WHERE games = "2012 london" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
605,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
605,
21,
1673,
3,
40,
106,
2029,
1031,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
1031,
3274,
96,
12172,
3,
40,
106,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When did Fejzi Bej Alizoti's term start? | CREATE TABLE table_47528 (
"Name" text,
"Born-Died" text,
"Term start" text,
"Term end" text,
"Political Party" text
) | SELECT "Term start" FROM table_47528 WHERE "Name" = 'fejzi bej alizoti' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3072,
2577,
41,
96,
23954,
121,
1499,
6,
96,
279,
127,
29,
18,
8639,
26,
121,
1499,
6,
96,
11679,
456,
121,
1499,
6,
96,
11679,
414,
121,
1499,
6,
96,
8931,
155,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11679,
456,
121,
21680,
953,
834,
591,
3072,
2577,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
89,
15,
354,
702,
36,
354,
491,
14406,
17,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the final score for the match where Hereford United was the home team? | CREATE TABLE table_name_57 (
score VARCHAR,
home_team VARCHAR
) | SELECT score FROM table_name_57 WHERE home_team = "hereford united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
2604,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
804,
2604,
21,
8,
1588,
213,
947,
2590,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
234,
834,
11650,
3274,
96,
88,
60,
2590,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Return the number of music festivals of each category, order from high to low by the Y. | CREATE TABLE music_festival (
ID int,
Music_Festival text,
Date_of_ceremony text,
Category text,
Volume int,
Result text
)
CREATE TABLE artist (
Artist_ID int,
Artist text,
Age int,
Famous_Title text,
Famous_Release_date text
)
CREATE TABLE volume (
Volume_ID int,
V... | SELECT Category, COUNT(*) FROM music_festival GROUP BY Category ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
723,
834,
89,
24742,
41,
4699,
16,
17,
6,
3057,
834,
371,
24742,
1499,
6,
7678,
834,
858,
834,
2110,
15,
21208,
1499,
6,
17459,
1499,
6,
14816,
16,
17,
6,
3,
20119,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
17459,
6,
2847,
17161,
599,
1935,
61,
21680,
723,
834,
89,
24742,
350,
4630,
6880,
272,
476,
17459,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average To Par, when Score is '72-67-71-72=282'? | CREATE TABLE table_name_40 (
to_par INTEGER,
score VARCHAR
) | SELECT AVG(to_par) FROM table_name_40 WHERE score = 72 - 67 - 71 - 72 = 282 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
12,
834,
1893,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
304,
2180,
6,
116,
17763,
19,
3,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
235,
834,
1893,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
2604,
3274,
9455,
3,
18,
3,
3708,
3,
18,
3,
4450,
3,
18,
9455,
3274,
2059,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the formed that has type of 4-cor | CREATE TABLE table_80045 (
"Units" text,
"Type" text,
"Period used" text,
"Formed from" text,
"Trailers" text
) | SELECT "Formed from" FROM table_80045 WHERE "Type" = '4-cor' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
6192,
2128,
41,
96,
5110,
7085,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
12988,
23,
32,
26,
261,
121,
1499,
6,
96,
3809,
2726,
45,
121,
1499,
6,
96,
9402,
173,
277,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
3809,
2726,
45,
121,
21680,
953,
834,
6192,
2128,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
591,
18,
5715,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of headquarter and the amount of headquarter , and group by attribute headquarter, and could you display by the bars in descending? | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Headquarter, COUNT(Headquarter) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3642,
19973,
6,
2847,
17161,
599,
3845,
9,
26,
19973,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272... |
What is the place of the song 'Never Change'? | CREATE TABLE table_name_79 (
place INTEGER,
song VARCHAR
) | SELECT SUM(place) FROM table_name_79 WHERE song = "never change" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
286,
3,
21342,
17966,
6,
2324,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
286,
13,
8,
2324,
3,
31,
567,
3258,
5968,
31,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
4687,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
2324,
3274,
96,
29,
3258,
483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the names of gymnasts? | CREATE TABLE people (
Name VARCHAR,
People_ID VARCHAR
)
CREATE TABLE gymnast (
Gymnast_ID VARCHAR
) | SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
5570,
584,
4280,
28027,
6,
2449,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
23379,
17,
41,
31560,
17,
834,
4309,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
332,
4416,
23954,
21680,
23379,
17,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
517,
63,
51,
29,
9,
7,
17,
834,
4309,
3274,
332,
4416,
24337,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the rank of the games that had 9 gold and 9 silvers? | CREATE TABLE table_name_47 (rank VARCHAR, gold VARCHAR, silver VARCHAR) | SELECT rank FROM table_name_47 WHERE gold = "9" AND silver = "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
6254,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
8,
1031,
24,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
2045,
3274,
96,
1298,
121,
3430,
4294,
3274,
96,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the episode told by Kiki and directed by Will Dixon? | CREATE TABLE table_10470082_6 (
title VARCHAR,
storyteller VARCHAR,
director VARCHAR
) | SELECT title FROM table_10470082_6 WHERE storyteller = "Kiki" AND director = "Will Dixon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
9295,
4613,
834,
948,
41,
2233,
584,
4280,
28027,
6,
733,
13069,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
15442,
9295,
4613,
834,
948,
549,
17444,
427,
733,
13069,
3274,
96,
439,
9069,
121,
3430,
2090,
3274,
96,
518,
1092,
30368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the lowest total with a finish of t47? | CREATE TABLE table_12952 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT MIN("Total") FROM table_12952 WHERE "Finish" = 't47' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22174,
5373,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
22174,
5373,
549,
17444,
427,
96,
371,
77,
1273,
121,
3274,
3,
31,
17,
4177,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What 2009 has statistics by surface in 2012? | CREATE TABLE table_name_66 (Id VARCHAR) | SELECT 2009 FROM table_name_66 WHERE 2012 = "statistics by surface" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2464,
65,
7475,
57,
1774,
16,
1673,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2464,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1673,
3274,
96,
8547,
3040,
7,
57,
1774,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many Deaths have a Fate of damaged, and a Tonnage (GRT) smaller than 4,917? | CREATE TABLE table_name_1 (
deaths VARCHAR,
fate VARCHAR,
tonnage___grt__ VARCHAR
) | SELECT COUNT(deaths) FROM table_name_1 WHERE fate = "damaged" AND tonnage___grt__ < 4 OFFSET 917 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
14319,
584,
4280,
28027,
6,
15126,
584,
4280,
28027,
6,
12,
29,
9761,
834,
834,
834,
122,
52,
17,
834,
834,
584,
4280,
28027,
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,
221,
9,
189,
7,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
15126,
3274,
96,
7812,
11438,
121,
3430,
12,
29,
9761,
834,
834,
834,
122,
52,
17,
834,
834,
3,
2,
314,
3,
15316,
20788,
66... |
Which episodes originally aired on April 19, 2010? | CREATE TABLE table_22170495_7 (title VARCHAR, original_airing VARCHAR) | SELECT title FROM table_22170495_7 WHERE original_airing = "April 19, 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2517,
6348,
3301,
834,
940,
41,
21869,
584,
4280,
28027,
6,
926,
834,
2256,
53,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13562,
5330,
3,
2378,
26,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2884,
2517,
6348,
3301,
834,
940,
549,
17444,
427,
926,
834,
2256,
53,
3274,
96,
23323,
12370,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average year of an entrant that had fewer than 6 points and a Maserati Straight-6 engine? | CREATE TABLE table_name_25 (year INTEGER, points VARCHAR, engine VARCHAR) | SELECT AVG(year) FROM table_name_25 WHERE points < 6 AND engine = "maserati straight-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
1201,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
215,
13,
46,
3,
295,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
979,
3,
2,
431,
3430,
1948,
3274,
96,
2754,
15,
6850,
2541,
5783,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the year for clay for boston and guillermo vilas | CREATE TABLE table_23235767_4 (
year VARCHAR,
opponent_in_the_final VARCHAR,
surface VARCHAR,
championship VARCHAR
) | SELECT year FROM table_23235767_4 WHERE surface = "Clay" AND championship = "Boston" AND opponent_in_the_final = "Guillermo Vilas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2773,
3436,
3708,
834,
591,
41,
215,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
10183,
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,
215,
21680,
953,
834,
2773,
2773,
3436,
3708,
834,
591,
549,
17444,
427,
1774,
3274,
96,
254,
5595,
121,
3430,
10183,
3274,
96,
279,
32,
4411,
121,
3430,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
9105,
7613,
5... |
how many patients whose admission type is urgent and lab test fluid is joint fluid? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.fluid = "Joint Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the total laps when manufacturer of gilera has time of 40:19.910 and grid is larger than 3? | CREATE TABLE table_46292 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT SUM("Laps") FROM table_46292 WHERE "Manufacturer" = 'gilera' AND "Time" = '40:19.910' AND "Grid" > '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3166,
357,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
4448,
3166,
357,
549,
17444,
427,
96,
7296,
76,
8717,
450,
49,
121,
3274,
3,
31,
122,
173,
1498,
31,
3430,
96,
13368,
121,
3274,
3,
31,
2445,
10,
2294,
5... |
mini _ mental status exam score > 16 and < 25 . | CREATE TABLE table_train_99 (
"id" int,
"mini_mental_state_examination_mmse" int,
"language" string,
"renal_disease" bool,
"hepatic_disease" bool,
"allergy_to_formoterol" bool,
"geriatric_depression_scale_gds" int,
"NOUSE" float
) | SELECT * FROM table_train_99 WHERE mini_mental_state_examination_mmse >= 16 AND mini_mental_state_examination_mmse <= 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
3264,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7619,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
121,
16,
17,
6,
96,
24925,
121,
6108,
6,
96,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
3264,
549,
17444,
427,
3016,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
2490,
2423,
898,
3430,
3016,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
3... |
What is the aspect ratio for the September 1, 2009 release? | CREATE TABLE table_8584 (
"DVD title" text,
"Season" text,
"Aspect ratio" text,
"Episode count" real,
"Time length" text,
"Release date" text
) | SELECT "Aspect ratio" FROM table_8584 WHERE "Release date" = 'september 1, 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4433,
4608,
41,
96,
13529,
308,
2233,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
188,
5628,
5688,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
3476,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
5628,
5688,
121,
21680,
953,
834,
4433,
4608,
549,
17444,
427,
96,
1649,
40,
14608,
833,
121,
3274,
3,
31,
7,
6707,
18247,
1914,
2464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the course for team time trial | CREATE TABLE table_35000 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
) | SELECT "Course" FROM table_35000 WHERE "Type" = 'team time trial' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
2313,
41,
96,
308,
342,
121,
1499,
6,
96,
3881,
3589,
15,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
18455,
687,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
3881,
3589,
15,
121,
21680,
953,
834,
2469,
2313,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
11650,
97,
3689,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the dates of orders which belong to the customer named 'Jeramie'. | CREATE TABLE customers (
customer_id VARCHAR,
customer_name VARCHAR
)
CREATE TABLE orders (
date_order_placed VARCHAR,
customer_id VARCHAR
) | SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
884,
834,
23,
26,
584,
4280,
28027,
6,
884,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5022,
41,
833,
834,
9397,
834,
4687,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
5522,
834,
9397,
834,
4687,
26,
21680,
722,
6157,
332,
536,
3,
15355,
3162,
5022,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,
332,
4416,
25697,
49,
834,
23,
26,
549,
17444,
427,
332,
... |
How many goals for had a drawn more than 12 for the Goole Town team, as well as more than 60 goals against? | CREATE TABLE table_45228 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" real
) | SELECT SUM("Goals For") FROM table_45228 WHERE "Drawn" > '12' AND "Team" = 'goole town' AND "Goals Against" > '60' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
357,
2577,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
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,
180,
6122,
599,
121,
6221,
5405,
242,
8512,
21680,
953,
834,
2128,
357,
2577,
549,
17444,
427,
96,
308,
10936,
29,
121,
2490,
3,
31,
2122,
31,
3430,
96,
18699,
121,
3274,
3,
31,
839,
32,
109,
1511,
31,
3430,
96,
... |
What is the Speed when Construction begun in 2010, and an Expected start of revenue services of 2015? | CREATE TABLE table_38453 (
"Line" text,
"Speed" text,
"Length" text,
"Construction begun" text,
"Expected start of revenue services" real
) | SELECT "Speed" FROM table_38453 WHERE "Construction begun" = '2010' AND "Expected start of revenue services" = '2015' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
2128,
519,
41,
96,
21022,
121,
1499,
6,
96,
28328,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
4302,
7,
26853,
11173,
121,
1499,
6,
96,
12882,
7633,
456,
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,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
28328,
121,
21680,
953,
834,
3747,
2128,
519,
549,
17444,
427,
96,
4302,
7,
26853,
11173,
121,
3274,
3,
31,
14926,
31,
3430,
96,
12882,
7633,
456,
13,
3751,
364,
121,
3274,
3,
31,
8651,
31,
1,
-100,
-100,
-100... |
Which Visitor played on January 17? | CREATE TABLE table_name_67 (
visitor VARCHAR,
date VARCHAR
) | SELECT visitor FROM table_name_67 WHERE date = "january 17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4957,
127,
1944,
30,
1762,
1003,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7019,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
1003,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients whose admission type is elective and admission year is less than 2107? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.admityear < "2107" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
3577,
14196,
8087,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
2,... |
What was the poll source that showed Democrat: John Lynch at 62% and had a lead margin of less than 33? | CREATE TABLE table_9675 (
"Poll Source" text,
"Dates administered" text,
"Democrat: John Lynch" text,
"Republican: Joe Kenney" text,
"Lead Margin" real
) | SELECT "Poll Source" FROM table_9675 WHERE "Lead Margin" < '33' AND "Democrat: John Lynch" = '62%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4314,
3072,
41,
96,
8931,
40,
9149,
121,
1499,
6,
96,
308,
6203,
19092,
121,
1499,
6,
96,
19679,
10,
1079,
25381,
121,
1499,
6,
96,
1649,
15727,
152,
10,
4967,
16267,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8931,
40,
9149,
121,
21680,
953,
834,
4314,
3072,
549,
17444,
427,
96,
2796,
9,
26,
16409,
77,
121,
3,
2,
3,
31,
4201,
31,
3430,
96,
19679,
10,
1079,
25381,
121,
3274,
3,
31,
948,
5406,
31,
1,
-100,
-100,
... |
Create a pie chart showing how many nationality across nationality. | CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type text
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance... | SELECT Nationality, COUNT(Nationality) FROM journalist GROUP BY Nationality | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9994,
41,
9994,
834,
4309,
16,
17,
6,
5570,
1499,
6,
868,
485,
1499,
6,
7526,
1499,
6,
13825,
834,
9238,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1506,
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,
868,
485,
6,
2847,
17161,
599,
24732,
485,
61,
21680,
9994,
350,
4630,
6880,
272,
476,
868,
485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Shawn Respert play for what school/club team? | CREATE TABLE table_name_66 (
school_club_team VARCHAR,
player VARCHAR
) | SELECT school_club_team FROM table_name_66 WHERE player = "shawn respert" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
15333,
29,
419,
4339,
17,
577,
21,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
496,
834,
13442,
834,
11650,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1959,
3274,
96,
15622,
29,
23259,
49,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the order of succession for the department of education? | CREATE TABLE table_name_87 (order_of_succession VARCHAR, department VARCHAR) | SELECT order_of_succession FROM table_name_87 WHERE department = "education" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
9397,
834,
858,
834,
7,
76,
75,
19988,
584,
4280,
28027,
6,
3066,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
455,
13,
22289,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
455,
834,
858,
834,
7,
76,
75,
19988,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
3066,
3274,
96,
29117,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many point totals are there that rank higher than 9 and have a PPG avg higher than 13.4? | CREATE TABLE table_name_48 (
total_points VARCHAR,
rank VARCHAR,
ppg_avg VARCHAR
) | SELECT COUNT(total_points) FROM table_name_48 WHERE rank > 9 AND ppg_avg > 13.4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
792,
834,
2700,
7,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
3,
1572,
122,
834,
9,
208,
122,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
834,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
11003,
2490,
668,
3430,
3,
1572,
122,
834,
9,
208,
122,
2490,
8808,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show all investor details. | CREATE TABLE INVESTORS (
Investor_details VARCHAR
) | SELECT Investor_details FROM INVESTORS | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27,
17058,
6038,
22500,
41,
16873,
834,
221,
5756,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
12024,
1030,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16873,
834,
221,
5756,
7,
21680,
27,
17058,
6038,
22500,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
A bar chart about what is minimum hours of the students playing in different position?, list x-axis in asc order. | CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
) | SELECT pPos, MIN(T2.HS) FROM Tryout AS T1 JOIN Player AS T2 ON T1.pID = T2.pID GROUP BY pPos ORDER BY pPos | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12387,
41,
3,
102,
4309,
206,
17552,
599,
11116,
632,
201,
3,
102,
23954,
3,
4331,
4059,
599,
1755,
201,
3,
63,
6936,
26,
3,
4331,
4059,
17867,
6,
3,
4950,
206,
17552,
599,
11116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
102,
345,
32,
7,
6,
3,
17684,
599,
382,
4416,
4950,
61,
21680,
5263,
670,
6157,
332,
536,
3,
15355,
3162,
12387,
6157,
332,
357,
9191,
332,
5411,
102,
4309,
3274,
332,
4416,
102,
4309,
350,
4630,
6880,
272,
476... |
Name the engine with rounds of 11 and teams of 25 | CREATE TABLE table_name_29 (
engine VARCHAR,
rounds VARCHAR,
teams VARCHAR
) | SELECT engine FROM table_name_29 WHERE rounds = "11" AND teams = "25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
1948,
584,
4280,
28027,
6,
14419,
584,
4280,
28027,
6,
2323,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1948,
28,
14419,
13,
850,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1948,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
14419,
3274,
96,
2596,
121,
3430,
2323,
3274,
96,
1828,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT IS THE LOWEST MONEY WITH TO PAR LARGER THAN 26? | CREATE TABLE table_name_1 (money___ INTEGER, to_par INTEGER) | SELECT MIN(money___) AS $__ FROM table_name_1 WHERE to_par > 26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
28442,
834,
834,
834,
3,
21342,
17966,
6,
12,
834,
1893,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
3,
20573,
6038,
283,
7894,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
28442,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
12,
834,
1893,
2490,
2208,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Pick # of 203 went to which college? | CREATE TABLE table_name_16 (college VARCHAR, pick__number VARCHAR) | SELECT college FROM table_name_16 WHERE pick__number = 203 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
3297,
7883,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8356,
1713,
13,
3,
23330,
877,
12,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1900,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
3,
23330,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When yen galagnara is the name what is the highest total days in the pbb house? | CREATE TABLE table_19061741_1 (
total_days_in_pbb_house INTEGER,
name VARCHAR
) | SELECT MAX(total_days_in_pbb_house) FROM table_19061741_1 WHERE name = "Yen Galagnara" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
4241,
4581,
536,
834,
536,
41,
792,
834,
1135,
7,
834,
77,
834,
102,
115,
115,
834,
1840,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
235,
1947,
834,
1135,
7,
834,
77,
834,
102,
115,
115,
834,
1840,
61,
21680,
953,
834,
11776,
4241,
4581,
536,
834,
536,
549,
17444,
427,
564,
3274,
96,
476,
35,
15210,
11260,
52,
9,
121,
1,
-100,
-... |
What Allied-Unrelated is labeled as 'common'? | CREATE TABLE table_51967 (
"Component" text,
"Integrated" text,
"Allied-Related" text,
"Allied-Unrelated" text,
"Holding" text
) | SELECT "Allied-Unrelated" FROM table_51967 WHERE "Allied-Related" = 'common' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2294,
3708,
41,
96,
5890,
9977,
121,
1499,
6,
96,
22259,
121,
1499,
6,
96,
26454,
18,
1649,
40,
920,
121,
1499,
6,
96,
26454,
18,
5110,
3897,
121,
1499,
6,
96,
566,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26454,
18,
5110,
3897,
121,
21680,
953,
834,
755,
2294,
3708,
549,
17444,
427,
96,
26454,
18,
1649,
40,
920,
121,
3274,
3,
31,
287,
2157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many first elected with district being new york2 | CREATE TABLE table_1341549_33 (
first_elected VARCHAR,
district VARCHAR
) | SELECT COUNT(first_elected) FROM table_1341549_33 WHERE district = "New York2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
1808,
3647,
834,
4201,
41,
166,
834,
19971,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
166,
8160,
28,
3939,
271,
126,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
1808,
3647,
834,
4201,
549,
17444,
427,
3939,
3274,
96,
6861,
1060,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the constructor when the tyre is d, the engine is talbot 23cv 4.5 l6, the chassis is talbot-lago t26c and the entrant is ecurie belge? | CREATE TABLE table_name_75 (
constructor VARCHAR,
entrant VARCHAR,
chassis VARCHAR,
tyre VARCHAR,
engine VARCHAR
) | SELECT constructor FROM table_name_75 WHERE tyre = "d" AND engine = "talbot 23cv 4.5 l6" AND chassis = "talbot-lago t26c" AND entrant = "ecurie belge" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
6774,
127,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
6,
3,
17,
63,
60,
584,
4280,
28027,
6,
1948,
584,
4280,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6774,
127,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
3,
17,
63,
60,
3274,
96,
26,
121,
3430,
1948,
3274,
96,
1947,
4045,
1902,
75,
208,
3,
12451,
3,
40,
948,
121,
3430,
22836,
3274,
96,
1947,
4045,
18,
... |
Which Fuel Propulsion has a Fleet Series (Quantity) of 04001-04125 (125)? | CREATE TABLE table_name_73 (
fuel_propulsion VARCHAR,
fleet_series__quantity_ VARCHAR
) | SELECT fuel_propulsion FROM table_name_73 WHERE fleet_series__quantity_ = "04001-04125 (125)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2914,
834,
1409,
20567,
584,
4280,
28027,
6,
9111,
834,
10833,
7,
834,
834,
13158,
485,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2914,
834,
1409,
20567,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
9111,
834,
10833,
7,
834,
834,
13158,
485,
834,
3274,
96,
6348,
17465,
18083,
10124,
16465,
9120,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the fewest seats with fewer than 5.4% seats and more than -1 change? | CREATE TABLE table_name_12 (seats INTEGER, _percentage_votes VARCHAR, change VARCHAR) | SELECT MIN(seats) FROM table_name_12 WHERE _percentage_votes < 5.4 AND change > -1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
7,
1544,
7,
3,
21342,
17966,
6,
3,
834,
883,
3728,
545,
834,
1621,
1422,
584,
4280,
28027,
6,
483,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
7,
1544,
7,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
3,
834,
883,
3728,
545,
834,
1621,
1422,
3,
2,
3,
27436,
3430,
483,
2490,
3,
2292,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who had a perfection percentage of 73.24%? | CREATE TABLE table_name_62 (name VARCHAR, perfection VARCHAR) | SELECT name FROM table_name_62 WHERE perfection = "73.24%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
4350,
584,
4280,
28027,
6,
12768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
3,
9,
12768,
5294,
13,
489,
19162,
5988,
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,
564,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
12768,
3274,
96,
940,
19162,
5988,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many games did the 201213 austin peay state governors basketball team win ? | CREATE TABLE table_204_436 (
id number,
"date" text,
"time" text,
"opponent" text,
"site" text,
"tv" text,
"result" text,
"attendance" number,
"record" text
) | SELECT COUNT(*) FROM table_204_436 WHERE "result" = 'w' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
3420,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
3585,
121,
1499,
6,
96,
17,
208,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
591,
3420,
549,
17444,
427,
96,
60,
7,
83,
17,
121,
3274,
3,
31,
210,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the largest crowd size at a match against the Chicago Cardinals after Week 10 of the season? | CREATE TABLE table_name_20 (
attendance INTEGER,
opponent VARCHAR,
week VARCHAR
) | SELECT MAX(attendance) FROM table_name_20 WHERE opponent = "chicago cardinals" AND week > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
11364,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
4374,
812,
44,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
15264,
3274,
96,
1436,
658,
839,
895,
10270,
7,
121,
3430,
471,
2490,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the ids of all students who have attended at least one course? | CREATE TABLE candidates (
candidate_id number,
candidate_details text
)
CREATE TABLE courses (
course_id text,
course_name text,
course_description text,
other_details text
)
CREATE TABLE people_addresses (
person_address_id number,
person_id number,
address_id number,
date_fro... | SELECT student_id FROM student_course_attendance | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4341,
41,
4775,
834,
23,
26,
381,
6,
4775,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2996,
41,
503,
834,
23,
26,
1499,
6,
503,
834,
4350,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1236,
834,
23,
26,
21680,
1236,
834,
19221,
834,
15116,
663,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the name and job title of the staff who was assigned the latest? | CREATE TABLE staff_department_assignments (
job_title_code VARCHAR,
staff_id VARCHAR,
date_assigned_to VARCHAR
)
CREATE TABLE staff (
staff_name VARCHAR,
staff_id VARCHAR
) | SELECT T1.staff_name, T2.job_title_code FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
871,
834,
221,
2274,
297,
834,
9,
7,
6732,
4128,
41,
613,
834,
21869,
834,
4978,
584,
4280,
28027,
6,
871,
834,
23,
26,
584,
4280,
28027,
6,
833,
834,
9,
7,
15532,
834,
235,
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,
332,
5411,
26416,
834,
4350,
6,
332,
4416,
16899,
834,
21869,
834,
4978,
21680,
871,
6157,
332,
536,
3,
15355,
3162,
871,
834,
221,
2274,
297,
834,
9,
7,
6732,
4128,
6157,
332,
357,
9191,
332,
5411,
26416,
834,
23,
... |
What Tournament had a Victory of 1 Stroke with a Winning score of –16 (67-66-70-69=272)? | CREATE TABLE table_name_71 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR) | SELECT tournament FROM table_name_71 WHERE margin_of_victory = "1 stroke" AND winning_score = –16(67 - 66 - 70 - 69 = 272) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
6346,
834,
858,
834,
7287,
10972,
3274,
96,
536,
9529,
121,
3430,
3447,
834,
7,
9022,
3274,
3,
104,
2938,
599,
3708,
3,
18,
3,
3539,
3,
18,
2861,
3,
18,
3... |
What is the incumbent for 1974? | CREATE TABLE table_1341577_22 (
incumbent VARCHAR,
first_elected VARCHAR
) | SELECT incumbent FROM table_1341577_22 WHERE first_elected = 1974 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
1808,
4013,
834,
2884,
41,
28406,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
28406,
21,
17184,
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,
28406,
21680,
953,
834,
23747,
1808,
4013,
834,
2884,
549,
17444,
427,
166,
834,
19971,
3274,
17184,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
I want to know the date with attendance of 35,763 | CREATE TABLE table_name_88 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_88 WHERE attendance = "35,763" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
5522,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
12,
214,
8,
833,
28,
11364,
13,
3097,
6,
3959,
519,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
11364,
3274,
96,
2469,
6,
3959,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
On how many locations is the Saint Joseph's College of Maine located? | CREATE TABLE table_1973816_1 (location VARCHAR, institution VARCHAR) | SELECT COUNT(location) FROM table_1973816_1 WHERE institution = "Saint Joseph's College of Maine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
3747,
2938,
834,
536,
41,
14836,
584,
4280,
28027,
6,
6568,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
149,
186,
3248,
19,
8,
2788,
6187,
31,
7,
1888,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14836,
61,
21680,
953,
834,
27181,
3747,
2938,
834,
536,
549,
17444,
427,
6568,
3274,
96,
26667,
6187,
31,
7,
1888,
13,
13905,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the winner of rashmi desai? | CREATE TABLE table_17998 (
"Season" real,
"Season Premiere Date" text,
"Season Finale Date" text,
"Winner" text,
"1st Runner Up" text,
"2nd Runner Up" text
) | SELECT "Winner" FROM table_17998 WHERE "1st Runner Up" = 'Rashmi Desai' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
3916,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
134,
15,
9,
739,
6552,
15,
7678,
121,
1499,
6,
96,
134,
15,
9,
739,
6514,
15,
7678,
121,
1499,
6,
96,
18455,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18455,
687,
121,
21680,
953,
834,
26593,
3916,
549,
17444,
427,
96,
536,
7,
17,
3,
23572,
3234,
121,
3274,
3,
31,
448,
3198,
51,
23,
2973,
9,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was Fitzroy the home team? | CREATE TABLE table_name_94 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_94 WHERE home_team = "fitzroy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
5522,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
9783,
172,
8170,
8,
234,
372,
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,
833,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
234,
834,
11650,
3274,
96,
89,
5615,
8170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Where is the team that has a stadium capable of a capacity of 10,517 5,006 located? | CREATE TABLE table_283203_1 (
location VARCHAR,
capacity VARCHAR
) | SELECT location FROM table_283203_1 WHERE capacity = "10,517 5,006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
15003,
519,
834,
536,
41,
1128,
584,
4280,
28027,
6,
2614,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
372,
24,
65,
3,
9,
14939,
3919,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
2577,
15003,
519,
834,
536,
549,
17444,
427,
2614,
3274,
96,
1714,
6,
755,
2517,
7836,
1206,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What category has a year after 2004? | CREATE TABLE table_34930 (
"Year" real,
"Award" text,
"Nominated work" text,
"Category" text,
"Result" text
) | SELECT "Category" FROM table_34930 WHERE "Year" > '2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3647,
1458,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
121,
1499,
6,
96,
4168,
1109,
920,
161,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
18610,
6066,
651,
121,
21680,
953,
834,
519,
3647,
1458,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
21653,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which pick was Bill Bray? | CREATE TABLE table_11632 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"School" text
) | SELECT SUM("Pick") FROM table_11632 WHERE "Player" = 'bill bray' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
2668,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
121,
345,
3142,
8512,
21680,
953,
834,
20159,
2668,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
3727,
40,
3858,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average number of years spent working as a journalist? | CREATE TABLE journalist (
Years_working INTEGER
) | SELECT AVG(Years_working) FROM journalist | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9994,
41,
13825,
834,
9238,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
203,
1869,
464,
38,
3,
9,
9994,
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,
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,
71,
17217,
599,
476,
2741,
7,
834,
9238,
61,
21680,
9994,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Scatter chart. what are the different account ids that have made financial transactions, as well as how many transactions correspond to each? | CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transaction_id INTEGER,
account_id INTEGER,
card_id INTEGER,
transaction_type VARCHAR(15),
transaction_date DATETIME,
transaction_amount DOUBLE,
transaction_comment VARCHAR(255),
other_transaction_details VARCHAR(... | SELECT account_id, COUNT(*) FROM Financial_Transactions GROUP BY account_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5421,
834,
18474,
4787,
7,
41,
5878,
834,
23,
26,
3,
21342,
17966,
6,
1767,
834,
7031,
4787,
834,
23,
26,
3,
21342,
17966,
6,
905,
834,
23,
26,
3,
21342,
17966,
6,
895,
834,
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,
905,
834,
23,
26,
6,
2847,
17161,
599,
1935,
61,
21680,
5421,
834,
18474,
4787,
7,
350,
4630,
6880,
272,
476,
905,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What transfer window has bra as the country, with 3.4m as the transfer fee? | CREATE TABLE table_6633 (
"Name" text,
"Country" text,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" text,
"Transfer fee" text,
"Source" text
) | SELECT "Transfer window" FROM table_6633 WHERE "Country" = 'bra' AND "Transfer fee" = '£3.4m' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
4201,
41,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
329,
32,
3745,
45,
121,
1499,
6,
96,
18474,
1010,
2034,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18474,
1010,
2034,
121,
21680,
953,
834,
3539,
4201,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
1939,
31,
3430,
96,
18474,
1010,
2572,
121,
3274,
3,
31,
19853,
23204,
51,
31,
1,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose primary disease is cerebral aneurysm/sda and age is less than 44? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CEREBRAL ANEURYSM/SDA" AND demographic.age < "44" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
4770,
4386,
279,
21415,
3,
5033,
26296,
476,
4212,
87,
134,
4296,
121,... |
In what county did McCain get 57.8%? | CREATE TABLE table_20799905_1 (county VARCHAR, mccain_percentage VARCHAR) | SELECT county FROM table_20799905_1 WHERE mccain_percentage = "57.8%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
19446,
3076,
834,
536,
41,
13362,
63,
584,
4280,
28027,
6,
3,
51,
12464,
77,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
5435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5435,
21680,
953,
834,
26426,
19446,
3076,
834,
536,
549,
17444,
427,
3,
51,
12464,
77,
834,
883,
3728,
545,
3274,
96,
3436,
5,
5953,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Among patients admitted before 2151, how many of them had item ID 51100? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2151" AND lab.itemid = "51100" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many neighborhoods have a business with rating 5 in Madison ? | CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address varchar,
city varchar,
latitude varchar,
longitude varchar,
review_count bigint,
is_open tinyint,
rating float,
state varchar
)
CREATE TABLE neighborhood (
id int,
business_id varchar,
... | SELECT COUNT(DISTINCT (neighborhood.neighborhood_name)) FROM business, neighborhood WHERE business.city = 'Madison' AND business.rating = 5 AND neighborhood.business_id = business.business_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
268,
41,
6894,
16,
17,
6,
268,
834,
23,
26,
3,
4331,
4059,
6,
564,
3,
4331,
4059,
6,
423,
834,
9,
26,
12039,
3,
4331,
4059,
6,
690,
3,
4331,
4059,
6,
50,
6592,
3,
4331,
4059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
41,
29848,
107,
6693,
4500,
5,
29848,
107,
6693,
4500,
834,
4350,
61,
61,
21680,
268,
6,
5353,
549,
17444,
427,
268,
5,
6726,
3274,
3,
31,
329,
9,
26,
23,
739,
31,
3430,
268,
... |
Which Position has Draws smaller than 7 and a Played larger than 22? | CREATE TABLE table_name_16 (position INTEGER, draws VARCHAR, played VARCHAR) | SELECT AVG(position) FROM table_name_16 WHERE draws < 7 AND played > 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
4718,
3,
21342,
17966,
6,
14924,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
14258,
65,
19183,
7,
2755,
145,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
4718,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
14924,
3,
2,
489,
3430,
1944,
2490,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total number of losses for a draw of 7, and 1 points less than 33? | CREATE TABLE table_name_21 (
lost VARCHAR,
drawn VARCHAR,
points_1 VARCHAR
) | SELECT COUNT(lost) FROM table_name_21 WHERE drawn = 7 AND points_1 < 33 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
1513,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
979,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
6796,
3274,
489,
3430,
979,
834,
536,
3,
2,
5400,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the company of the tallest entrepreneur. | CREATE TABLE entrepreneur (Company VARCHAR, People_ID VARCHAR); CREATE TABLE people (People_ID VARCHAR, Height VARCHAR) | SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
12290,
41,
5890,
2837,
63,
584,
4280,
28027,
6,
2449,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
24337,
834,
4309,
584,
4280,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5890,
2837,
63,
21680,
3,
12290,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
24337,
834,
4309,
3274,
332,
4416,
24337,
834,
4309,
4674,
11300,
272,
476,
332,
4416,
3845,
2632,
309,... |
how long did patient 032-1755's first stay stay in the hospital? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime t... | SELECT STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', patient.hospitaladmittime) FROM patient WHERE patient.uniquepid = '032-1755' AND NOT patient.hospitaladmittime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
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,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
31386,
26,
159,
7993,
715,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
31386,
20466,
17,
715,
61,
21680,
1868,
549,
17444,
427... |
What is the home team score of the Ghantoot Racing and Polo Club Ground? | CREATE TABLE table_name_25 (home_team VARCHAR, ground VARCHAR) | SELECT home_team AS score FROM table_name_25 WHERE ground = "ghantoot racing and polo club" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
1591,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
2604,
13,
8,
350,
2618,
235,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
1591,
3274,
96,
22637,
235,
32,
17,
8191,
11,
3,
3233,
32,
1886,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What opponent got 44 points in their game? | CREATE TABLE table_23243769_4 (
opponent VARCHAR,
opp_points VARCHAR
) | SELECT opponent FROM table_23243769_4 WHERE opp_points = 44 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
4118,
3951,
834,
591,
41,
15264,
584,
4280,
28027,
6,
3,
32,
1572,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
15264,
530,
8537,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
2773,
2266,
4118,
3951,
834,
591,
549,
17444,
427,
3,
32,
1572,
834,
2700,
7,
3274,
8537,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the attendance in week 6? | CREATE TABLE table_name_13 (attendance VARCHAR, week VARCHAR) | SELECT attendance FROM table_name_13 WHERE week = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
15116,
663,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
16,
471,
431,
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,
2368,
549,
17444,
427,
471,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What player is from the Denver Broncos? | CREATE TABLE table_name_43 (player VARCHAR, team VARCHAR) | SELECT player FROM table_name_43 WHERE team = "denver broncos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
20846,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
19,
45,
8,
12154,
4027,
29,
509,
7,
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,
1959,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
372,
3274,
96,
537,
624,
3,
13711,
509,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the least amount of prize money when there are 21 events? | CREATE TABLE table_36215 (
"Rank" real,
"Player" text,
"Country" text,
"Events" real,
"Prize money ( $ )" real
) | SELECT MIN("Prize money ( $ )") FROM table_36215 WHERE "Events" = '21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
357,
1808,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
2169,
7,
121,
490,
6,
96,
7855,
776,
540,
41,
1514,
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,
7855,
776,
540,
41,
1514,
3,
61,
8512,
21680,
953,
834,
3420,
357,
1808,
549,
17444,
427,
96,
427,
2169,
7,
121,
3274,
3,
31,
2658,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which state is Tehachapi Pass Wind Farm located in? | CREATE TABLE table_56499 (
"Wind farm" text,
"Capacity (MW)" real,
"Country" text,
"State/Province" text,
"Notes" text
) | SELECT "State/Province" FROM table_56499 WHERE "Wind farm" = 'tehachapi pass wind farm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
591,
3264,
41,
96,
18455,
26,
3797,
121,
1499,
6,
96,
19566,
9,
6726,
41,
16027,
61,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
4748,
87,
3174,
2494,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
4748,
87,
3174,
2494,
565,
121,
21680,
953,
834,
4834,
591,
3264,
549,
17444,
427,
96,
18455,
26,
3797,
121,
3274,
3,
31,
17,
15,
107,
1836,
13306,
1903,
2943,
3797,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007? | CREATE TABLE table_name_33 (start INTEGER, year VARCHAR, team VARCHAR, finish VARCHAR) | SELECT AVG(start) FROM table_name_33 WHERE team = "andretti green racing" AND finish > 3 AND year < 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
10208,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
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,
71,
17217,
599,
10208,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
372,
3274,
96,
232,
52,
10652,
1442,
8191,
121,
3430,
1992,
2490,
220,
3430,
215,
3,
2,
4101,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
have patient 027-120551's respiration's been greater than 13.0 on the current intensive care unit visit? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medi... | SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-120551') AND patient.unitdischargetime IS NULL) AND vitalperiodi... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
3362,
4267,
32,
4370,
549,
17444,
427,
3362,
4267,
32,
4370,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
... |
What is Country, when Player is "Dow Finsterwald"? | CREATE TABLE table_name_54 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_54 WHERE player = "dow finsterwald" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
17529,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6993,
6,
116,
12387,
19,
96,
308,
2381,
7430,
1370,
11611... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
1959,
3274,
96,
15198,
2202,
1370,
11611,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When was the episode with Amy Williams as Andrew and Jack's guest broadcast? | CREATE TABLE table_30974 (
"Episode" text,
"First broadcast" text,
"Andrew and Jacks guest" text,
"Jamies guests" text,
"Scores" text
) | SELECT "First broadcast" FROM table_30974 WHERE "Andrew and Jacks guest" = 'Amy Williams' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
4327,
591,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
25171,
6878,
121,
1499,
6,
96,
7175,
60,
210,
11,
4496,
7,
3886,
121,
1499,
6,
96,
683,
265,
725,
255... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25171,
6878,
121,
21680,
953,
834,
1458,
4327,
591,
549,
17444,
427,
96,
7175,
60,
210,
11,
4496,
7,
3886,
121,
3274,
3,
31,
188,
2258,
6060,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score for the match where the opponent in the final was james cerretani todd perry? | CREATE TABLE table_name_5 (score VARCHAR, opponents_in_the_final VARCHAR) | SELECT score FROM table_name_5 WHERE opponents_in_the_final = "james cerretani todd perry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
7,
9022,
584,
4280,
28027,
6,
16383,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
8,
1588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
16383,
834,
77,
834,
532,
834,
12406,
3274,
96,
1191,
2687,
3,
2110,
60,
17,
2738,
12,
26,
26,
399,
651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Singapore Gross with a Producer that is 2000? | CREATE TABLE table_name_72 (singapore_gross VARCHAR, producer VARCHAR) | SELECT singapore_gross FROM table_name_72 WHERE producer = "2000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
7,
53,
9,
21642,
834,
3844,
7,
7,
584,
4280,
28027,
6,
8211,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6243,
17969,
28,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10159,
9,
21642,
834,
3844,
7,
7,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
8211,
3274,
96,
13527,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show minimum, maximum, and average market value for all companies. | CREATE TABLE company (
company_id number,
rank number,
company text,
headquarters text,
main_industry text,
sales_billion number,
profits_billion number,
assets_billion number,
market_value number
)
CREATE TABLE gas_station (
station_id number,
open_year number,
location... | SELECT MIN(market_value), MAX(market_value), AVG(market_value) FROM company | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
349,
41,
349,
834,
23,
26,
381,
6,
11003,
381,
6,
349,
1499,
6,
13767,
1499,
6,
711,
834,
13580,
7,
8224,
1499,
6,
1085,
834,
115,
14916,
381,
6,
9613,
834,
115,
14916,
381,
6,
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,
17684,
599,
8809,
834,
12097,
201,
4800,
4,
599,
8809,
834,
12097,
201,
71,
17217,
599,
8809,
834,
12097,
61,
21680,
349,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the pick number for the player(s) drafted in round 8? | CREATE TABLE table_name_31 (
pick__number VARCHAR,
round VARCHAR
) | SELECT pick__number FROM table_name_31 WHERE round = "round 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1432,
381,
21,
8,
1959,
599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1432,
834,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1751,
3274,
96,
7775,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-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.