NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many opponents did they play on 17/05/2009? | CREATE TABLE table_24316 (
"Competition" text,
"Round" text,
"Opponent" text,
"Result" text,
"Score" text,
"Home/Away" text,
"Venue" text,
"Attendance" text,
"Date" text
) | SELECT COUNT("Opponent") FROM table_24316 WHERE "Date" = '17/05/2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
25946,
41,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
667,
102,
9977,
8512,
21680,
953,
834,
2266,
25946,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2517,
31911,
16660,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many winners did Halcones uv xalapa have? | CREATE TABLE table_34265 (
"Team" text,
"Winners" text,
"Runners-Up" text,
"Third Place" text,
"Fourth Place" text
) | SELECT "Winners" FROM table_34265 WHERE "Team" = 'halcones uv xalapa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
357,
4122,
41,
96,
18699,
121,
1499,
6,
96,
18455,
687,
7,
121,
1499,
6,
96,
23572,
7,
18,
11161,
121,
1499,
6,
96,
382,
9288,
26,
3399,
121,
1499,
6,
96,
371,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18455,
687,
7,
121,
21680,
953,
834,
3710,
357,
4122,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
3828,
1018,
15,
7,
3,
76,
208,
3,
226,
138,
9750,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the total number of singles w–l where doubles w–l is 11–14 | CREATE TABLE table_10294071_1 (singles_w_l VARCHAR, doubles_w_l VARCHAR) | SELECT COUNT(singles_w_l) FROM table_10294071_1 WHERE doubles_w_l = "11–14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3166,
2445,
4450,
834,
536,
41,
7,
53,
965,
834,
210,
834,
40,
584,
4280,
28027,
6,
1486,
7,
834,
210,
834,
40,
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,
2847,
17161,
599,
7,
53,
965,
834,
210,
834,
40,
61,
21680,
953,
834,
1714,
3166,
2445,
4450,
834,
536,
549,
17444,
427,
1486,
7,
834,
210,
834,
40,
3274,
96,
2596,
104,
2534,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
Provide the number of patients with self pay insurance who stayed in the hosptial for more than 20 days. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Self Pay" AND demographic.days_stay > "20" | [
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,
29441,
3274,
96,
134,
10386,
5077,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
96,
1755,
121,
... |
Name the catalog for 26 march 1996 | CREATE TABLE table_75093 (
"Date" text,
"Label" text,
"Region" text,
"Format" text,
"Catalog" text
) | SELECT "Catalog" FROM table_75093 WHERE "Date" = '26 march 1996' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9979,
4271,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
17748,
23,
106,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
18610,
9,
2152,
121,
21680,
953,
834,
9979,
4271,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2688,
10556,
6911,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which country has the banglavision Network? | CREATE TABLE table_name_85 (
origin_of_programming VARCHAR,
network VARCHAR
) | SELECT origin_of_programming FROM table_name_85 WHERE network = "banglavision" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
5233,
834,
858,
834,
7050,
53,
584,
4280,
28027,
6,
1229,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
65,
8,
4514,
7002,
6610,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5233,
834,
858,
834,
7050,
53,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1229,
3274,
96,
3478,
7002,
6610,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what's the success where date of completion is september 28, 2007 | CREATE TABLE table_419 (
"Symbol" text,
"Description" text,
"Success" text,
"Date of completion" text,
"Deadline for completion" text
) | SELECT "Success" FROM table_419 WHERE "Date of completion" = 'September 28, 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2294,
41,
96,
18650,
121,
1499,
6,
96,
2962,
11830,
121,
1499,
6,
96,
134,
17431,
15,
7,
7,
121,
1499,
6,
96,
308,
342,
13,
6929,
121,
1499,
6,
96,
2962,
9,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17431,
15,
7,
7,
121,
21680,
953,
834,
591,
2294,
549,
17444,
427,
96,
308,
342,
13,
6929,
121,
3274,
3,
31,
27652,
13719,
4101,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who were the candidates if the incumbent was Henry Logan? | CREATE TABLE table_2668173_4 (
candidates VARCHAR,
incumbent VARCHAR
) | SELECT candidates FROM table_2668173_4 WHERE incumbent = "Henry Logan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
2517,
519,
834,
591,
41,
4341,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4341,
3,
99,
8,
28406,
47,
7780... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4341,
21680,
953,
834,
2688,
3651,
2517,
519,
834,
591,
549,
17444,
427,
28406,
3274,
96,
566,
35,
651,
22227,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What velodrome took place earlier than 1950 with a winner from France in tandem paced over a distance of 951.750 km? | CREATE TABLE table_name_6 (
velodrome VARCHAR,
distance VARCHAR,
pacing VARCHAR,
year VARCHAR,
country VARCHAR
) | SELECT velodrome FROM table_name_6 WHERE year < 1950 AND country = "france" AND pacing = "tandem paced" AND distance = "951.750 km" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
3,
4911,
32,
26,
11956,
584,
4280,
28027,
6,
2357,
584,
4280,
28027,
6,
3,
5379,
53,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
684,
584,
4280,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4911,
32,
26,
11956,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
215,
3,
2,
10247,
3430,
684,
3274,
96,
89,
5219,
121,
3430,
3,
5379,
53,
3274,
96,
17,
152,
1778,
3,
18789,
121,
3430,
2357,
3274,
96,
33... |
Name the most game for december 1 | CREATE TABLE table_27722734_7 (
game INTEGER,
date VARCHAR
) | SELECT MAX(game) FROM table_27722734_7 WHERE date = "December 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
5865,
2555,
3710,
834,
940,
41,
467,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
467,
21,
20,
75,
18247,
209,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
61,
21680,
953,
834,
2555,
5865,
2555,
3710,
834,
940,
549,
17444,
427,
833,
3274,
96,
29835,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a bar chart about the distribution of meter_600 and meter_100 , show y-axis in ascending order. | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
) | SELECT meter_600, meter_100 FROM swimmer ORDER BY meter_100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
1499,
6,
27813,
935,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4401,
834,
6007,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
2915,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many music festivals have had each kind of result, ordered descending by count. Show bar chart. | 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,
Volume_Issue text,
Issue_Date text,
Weeks_on_Top real,
Song text,
Artist_ID int
) | SELECT Result, COUNT(*) FROM music_festival GROUP BY Result 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,
3,
20119,
6,
2847,
17161,
599,
1935,
61,
21680,
723,
834,
89,
24742,
350,
4630,
6880,
272,
476,
3,
20119,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
authors working on ImageNet | CREATE TABLE field (
fieldid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE writes (
paperid int,
authorid int
) | SELECT DISTINCT writes.paperid FROM dataset, paper, paperdataset, writes WHERE dataset.datasetname = 'ImageNet' AND paperdataset.datasetid = dataset.datasetid AND paper.paperid = paperdataset.paperid AND writes.paperid = paper.paperid GROUP BY writes.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1057,
41,
1057,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2291,
41,
2291,
23,
26,
16,
17,
6,
2291,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
11858,
5,
19587,
23,
26,
21680,
17953,
6,
1040,
6,
1040,
6757,
2244,
6,
11858,
549,
17444,
427,
17953,
5,
6757,
2244,
4350,
3274,
3,
31,
29979,
9688,
31,
3430,
1040,
6757,
2244,
5,
6757,
2244,... |
What is the average total for Tiger Woods? | CREATE TABLE table_name_26 (
total INTEGER,
player VARCHAR
) | SELECT AVG(total) FROM table_name_26 WHERE player = "tiger woods" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
792,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
792,
21,
11804,
2985,
7,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1959,
3274,
96,
17,
4424,
1679,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart of name versus age | CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
)
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
)
CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
) | SELECT Name, Age FROM editor | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
834,
287,
1538,
17,
15,
15,
41,
11953,
834,
4309,
16,
17,
6,
3559,
834,
4309,
16,
17,
6,
3118,
834,
25160,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
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,
5570,
6,
7526,
21680,
6005,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average total medals of the nation with 4 bronze and more than 1 silver medals? | CREATE TABLE table_name_94 (
total INTEGER,
bronze VARCHAR,
silver VARCHAR
) | SELECT AVG(total) FROM table_name_94 WHERE bronze = 4 AND silver > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
792,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
792,
9365,
7,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
13467,
3274,
314,
3430,
4294,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many jewish have a muslim less than 36,041, a total less than 161,042, a year after 2006, with a druze greater than 2,534? | CREATE TABLE table_35406 (
"Year" real,
"Jewish" real,
"Muslim" real,
"Christian" real,
"Druze" real,
"Total" real
) | SELECT SUM("Jewish") FROM table_35406 WHERE "Muslim" < '36,041' AND "Total" < '161,042' AND "Year" > '2006' AND "Druze" > '2,534' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
2445,
948,
41,
96,
476,
2741,
121,
490,
6,
96,
7851,
210,
1273,
121,
490,
6,
96,
329,
302,
4941,
121,
490,
6,
96,
28412,
121,
490,
6,
96,
14561,
10953,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
7851,
210,
1273,
8512,
21680,
953,
834,
2469,
2445,
948,
549,
17444,
427,
96,
329,
302,
4941,
121,
3,
2,
3,
31,
3420,
6,
632,
4853,
31,
3430,
96,
3696,
1947,
121,
3,
2,
3,
31,
2938,
4347,
... |
How many comments are there in the Bethel (CA) Borough area? | CREATE TABLE table_22056 (
"# s Dam and GNIS query Link" real,
"# s Lake and GNIS query Link" real,
"# s Reservoir and GNIS query Link" real,
"Borough or Census area" text,
"Comment" text
) | SELECT COUNT("Comment") FROM table_22056 WHERE "Borough or Census area" = 'Bethel (CA)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1755,
4834,
41,
96,
4663,
3,
7,
10939,
11,
3,
13738,
4555,
11417,
7505,
121,
490,
6,
96,
4663,
3,
7,
2154,
11,
3,
13738,
4555,
11417,
7505,
121,
490,
6,
96,
4663,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5890,
297,
8512,
21680,
953,
834,
357,
1755,
4834,
549,
17444,
427,
96,
279,
32,
13245,
42,
23086,
616,
121,
3274,
3,
31,
2703,
532,
40,
41,
4490,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the name of the episode that was written by Michael Rauch? | CREATE TABLE table_23117208_5 (
title VARCHAR,
written_by VARCHAR
) | SELECT title FROM table_23117208_5 WHERE written_by = "Michael Rauch" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
20275,
23946,
834,
755,
41,
2233,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
5640,
24,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2773,
20275,
23946,
834,
755,
549,
17444,
427,
1545,
834,
969,
3274,
96,
329,
362,
9,
15,
40,
27095,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose admission year is less than 2121 and diagnoses short title is constipation nos? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2121" AND diagnoses.short_title = "Constipation NOS" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the dpi of a scanner with the mm dimensions 280 x 95 x 40? | CREATE TABLE table_16409745_1 (
dpi VARCHAR,
dimensions__mm_ VARCHAR
) | SELECT dpi FROM table_16409745_1 WHERE dimensions__mm_ = "280 x 95 x 40" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2445,
4327,
2128,
834,
536,
41,
3,
26,
102,
23,
584,
4280,
28027,
6,
8393,
834,
834,
635,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
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,
26,
102,
23,
21680,
953,
834,
2938,
2445,
4327,
2128,
834,
536,
549,
17444,
427,
8393,
834,
834,
635,
834,
3274,
96,
17518,
3,
226,
11923,
3,
226,
1283,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which season had a Regionalliga Sud of Stuttgarter Kickers? | CREATE TABLE table_name_68 (
season VARCHAR,
regionalliga_süd VARCHAR
) | SELECT season FROM table_name_68 WHERE regionalliga_süd = "stuttgarter kickers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
774,
584,
4280,
28027,
6,
3518,
17140,
834,
7,
1272,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
774,
141,
3,
9,
7676,
17140,
901... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
3518,
17140,
834,
7,
1272,
26,
3274,
96,
7,
17,
76,
17,
17,
1478,
449,
4583,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Venue, when Status is "2007 Rugby World Cup", when Against is less than 22, and when Date is "08/09/2007"? | CREATE TABLE table_name_22 (venue VARCHAR, date VARCHAR, status VARCHAR, against VARCHAR) | SELECT venue FROM table_name_22 WHERE status = "2007 rugby world cup" AND against < 22 AND date = "08/09/2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
15098,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
29940... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
2637,
3274,
96,
20615,
22209,
296,
4119,
121,
3430,
581,
3,
2,
1630,
3430,
833,
3274,
96,
4018,
31497,
20615,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the amount of name , and group by attribute name. | 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 T1.Name, COUNT(T1.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name | [
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,
332,
5411,
23954,
6,
2847,
17161,
599,
382,
5411,
23954,
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,
... |
What's the Dutch word for Apel? | CREATE TABLE table_name_48 (dutch VARCHAR, crimean_gothic VARCHAR) | SELECT dutch FROM table_name_48 WHERE crimean_gothic = "apel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
1259,
17,
524,
584,
4280,
28027,
6,
5447,
152,
834,
839,
189,
447,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
10098,
1448,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
146,
17,
524,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
5447,
152,
834,
839,
189,
447,
3274,
96,
9,
4343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Can you tell me the sum of FA Cup Goals that has the League Cup Goals larger than 0? | CREATE TABLE table_name_57 (fa_cup_goals INTEGER, league_cup_goals INTEGER) | SELECT SUM(fa_cup_goals) FROM table_name_57 WHERE league_cup_goals > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
89,
9,
834,
4658,
834,
839,
5405,
3,
21342,
17966,
6,
5533,
834,
4658,
834,
839,
5405,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
89,
9,
834,
4658,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
5533,
834,
4658,
834,
839,
5405,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Player, when Money ( $ ) is less than 387, and when Score is '73-76-74-72=295'? | CREATE TABLE table_name_40 (
player VARCHAR,
money___$__ VARCHAR,
score VARCHAR
) | SELECT player FROM table_name_40 WHERE money___$__ < 387 AND score = 73 - 76 - 74 - 72 = 295 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1959,
584,
4280,
28027,
6,
540,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
540,
834,
834,
834,
3229,
834,
834,
3,
2,
220,
4225,
3430,
2604,
3274,
3,
4552,
3,
18,
3,
3959,
3,
18,
3,
4581,
3,
18,
9455,
3274,
204,
3301,
1,
-100,
-... |
What is the country of player ed sneed with a to par of +3? | CREATE TABLE table_77463 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_77463 WHERE "To par" = '+3' AND "Player" = 'ed sneed' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
4448,
519,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
4013,
4448,
519,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
1220,
519,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
15,
26,
3,
7,
29,
6958,
31,
1,
-100,
-100,
-100,
-... |
Visualize a bar chart for what are the names of different tracks, and how many races has each had? | CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
) | SELECT T2.Name, COUNT(*) FROM race AS T1 JOIN track AS T2 ON T1.Track_ID = T2.Track_ID GROUP BY T1.Track_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1964,
41,
10949,
834,
4309,
16,
17,
6,
5570,
1499,
6,
4501,
1499,
6,
7678,
1499,
6,
8799,
834,
4309,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1463,
41,
8799,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23954,
6,
2847,
17161,
599,
1935,
61,
21680,
1964,
6157,
332,
536,
3,
15355,
3162,
1463,
6157,
332,
357,
9191,
332,
5411,
382,
16729,
834,
4309,
3274,
332,
4416,
382,
16729,
834,
4309,
350,
4630,
6880,
272,... |
Which Score in the final has a Surface of hard on august 20, 1989? | CREATE TABLE table_name_47 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR) | SELECT score_in_the_final FROM table_name_47 WHERE surface = "hard" AND date = "august 20, 1989" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
7,
9022,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1774,
3274,
96,
5651,
121,
3430,
833,
3274,
96,
402,
17198,
16047,
9975,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the state that had the vassal name of li? | CREATE TABLE table_name_8 (state VARCHAR, name VARCHAR) | SELECT state FROM table_name_8 WHERE name = "li" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
5540,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
538,
24,
141,
8,
409,
7,
7,
138,
564,
13,
3,
40,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
538,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
564,
3274,
96,
40,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the crowd total at mcg? | CREATE TABLE table_name_45 (crowd VARCHAR, venue VARCHAR) | SELECT COUNT(crowd) FROM table_name_45 WHERE venue = "mcg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
75,
3623,
26,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4374,
792,
44,
3,
51,
75,
122,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
5669,
3274,
96,
51,
75,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the broadcast date of 6.9 million viewers | CREATE TABLE table_2114308_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR) | SELECT broadcast_date FROM table_2114308_1 WHERE viewers__in_millions_ = "6.9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
25133,
4018,
834,
536,
41,
115,
8635,
5254,
834,
5522,
584,
4280,
28027,
6,
13569,
834,
834,
77,
834,
17030,
7,
834,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6878,
834,
5522,
21680,
953,
834,
2658,
25133,
4018,
834,
536,
549,
17444,
427,
13569,
834,
834,
77,
834,
17030,
7,
834,
3274,
96,
948,
5,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average age for each gender? | CREATE TABLE personfriend (
name text,
friend text,
year number
)
CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
) | SELECT AVG(age), gender FROM person GROUP BY gender | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
568,
15504,
41,
564,
1499,
6,
1565,
1499,
6,
215,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
568,
41,
564,
1499,
6,
1246,
381,
6,
690,
1499,
6,
7285,
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,
0... | [
3,
23143,
14196,
71,
17217,
599,
545,
201,
7285,
21680,
568,
350,
4630,
6880,
272,
476,
7285,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest Round that lasted 1:44? | CREATE TABLE table_48249 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT MAX("Round") FROM table_48249 WHERE "Time" = '1:44' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
357,
3647,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
3707,
357,
3647,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
536,
10,
3628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest numbered episode that had a rating/share of 0.9/4 and more than 3.79 million viewers? | CREATE TABLE table_76755 (
"Episode #" real,
"US air date" text,
"Rating" text,
"Share" text,
"Rating/Share (18\u201349)" text,
"Viewers (millions)" real
) | SELECT MIN("Episode #") FROM table_76755 WHERE "Rating/Share (18\u201349)" = '0.9/4' AND "Viewers (millions)" > '3.79' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
3072,
755,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
3063,
799,
833,
121,
1499,
6,
96,
448,
1014,
121,
1499,
6,
96,
24501,
121,
1499,
6,
96,
448,
101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
427,
102,
159,
32,
221,
1713,
8512,
21680,
953,
834,
3959,
3072,
755,
549,
17444,
427,
96,
448,
1014,
87,
24501,
9323,
2,
76,
11138,
3647,
61,
121,
3274,
3,
31,
23758,
13572,
31,
3430,
96,
1527... |
What is the Regionalliga Sud for 1995-96? | CREATE TABLE table_5598 (
"Season" text,
"Regionalliga S\u00fcd" text,
"Regionalliga West/S\u00fcdwest" text,
"Regionalliga Nord" text,
"Regionalliga Nord-Ost" text
) | SELECT "Regionalliga S\u00fcd" FROM table_5598 WHERE "Season" = '1995-96' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
3916,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
17748,
6318,
17140,
180,
2,
76,
1206,
89,
75,
26,
121,
1499,
6,
96,
17748,
6318,
17140,
1244,
87,
134,
2,
76,
120... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17748,
6318,
17140,
180,
2,
76,
1206,
89,
75,
26,
121,
21680,
953,
834,
3769,
3916,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
2294,
3301,
18,
4314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the record as of July 22? | CREATE TABLE table_15697 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | SELECT "Record" FROM table_15697 WHERE "Date" = 'july 22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
4327,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
25463,
4327,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2047,
120,
1630,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the court ranking of 5th son of tadayori and has revenues of 10,000 koku? | CREATE TABLE table_name_32 (
court_rank VARCHAR,
revenues VARCHAR,
lineage VARCHAR
) | SELECT court_rank FROM table_name_32 WHERE revenues = "10,000 koku" AND lineage = "5th son of tadayori" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
1614,
834,
6254,
584,
4280,
28027,
6,
14609,
584,
4280,
28027,
6,
689,
545,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1614... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1614,
834,
6254,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
14609,
3274,
96,
29573,
3,
157,
18512,
121,
3430,
689,
545,
3274,
96,
755,
189,
520,
13,
3,
17,
9,
1135,
2057,
121,
1,
-100,
-100,
-100,
-100,
-1... |
What locations are considered centre? | CREATE TABLE table_26387382_1 (
power__mw·hr_yr_ VARCHAR,
location__county_ VARCHAR
) | SELECT power__mw·hr_yr_ FROM table_26387382_1 WHERE location__county_ = "Centre" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3747,
4552,
4613,
834,
536,
41,
579,
834,
834,
51,
210,
2,
107,
52,
834,
63,
52,
834,
584,
4280,
28027,
6,
1128,
834,
834,
13362,
63,
834,
584,
4280,
28027,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
579,
834,
834,
51,
210,
2,
107,
52,
834,
63,
52,
834,
21680,
953,
834,
2688,
3747,
4552,
4613,
834,
536,
549,
17444,
427,
1128,
834,
834,
13362,
63,
834,
3274,
96,
254,
9578,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What were the high assist on january 2? | CREATE TABLE table_name_61 (high_assists VARCHAR, date VARCHAR) | SELECT high_assists FROM table_name_61 WHERE date = "january 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
306,
2094,
30,
3,
7066,
76,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What Congress had less than 23 cosponsors and had June 30, 2005 as the date of introduction of the bill? | CREATE TABLE table_35160 (
"Congress" text,
"Bill number(s)" text,
"Date introduced" text,
"Sponsor(s)" text,
"# of cosponsors" real,
"Latest status" text
) | SELECT "Congress" FROM table_35160 WHERE "# of cosponsors" < '23' AND "Date introduced" = 'june 30, 2005' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
19129,
41,
96,
4302,
10292,
121,
1499,
6,
96,
279,
1092,
381,
599,
7,
61,
121,
1499,
6,
96,
308,
342,
3665,
121,
1499,
6,
96,
134,
5041,
7,
127,
599,
7,
61,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4302,
10292,
121,
21680,
953,
834,
2469,
19129,
549,
17444,
427,
96,
4663,
13,
576,
7,
5041,
7,
127,
7,
121,
3,
2,
3,
31,
2773,
31,
3430,
96,
308,
342,
3665,
121,
3274,
3,
31,
6959,
15,
11558,
3105,
31,
1,... |
What is the Pilot number for the YouTube Hero greg pattillo? | CREATE TABLE table_40939 (
"Pilot" text,
"Original Airdate" text,
"Musical Guest/Song performed" text,
"YouTube Hero" text,
"MySpace Band" text
) | SELECT "Pilot" FROM table_40939 WHERE "YouTube Hero" = 'greg pattillo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4198,
3288,
41,
96,
345,
23,
3171,
121,
1499,
6,
96,
667,
3380,
10270,
1761,
5522,
121,
1499,
6,
96,
29035,
138,
14252,
87,
134,
2444,
3032,
121,
1499,
6,
96,
3774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
23,
3171,
121,
21680,
953,
834,
591,
4198,
3288,
549,
17444,
427,
96,
3774,
382,
76,
346,
14953,
121,
3274,
3,
31,
18301,
6234,
17,
1092,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Manufacturer has a Time/Retired of accident? | CREATE TABLE table_name_73 (manufacturer VARCHAR, time_retired VARCHAR) | SELECT manufacturer FROM table_name_73 WHERE time_retired = "accident" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
348,
76,
8717,
450,
49,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
15248,
65,
3,
9,
2900,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4818,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
6004,
4215,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the average of credits of courses that have more than one prerequisite for each title with a bar chart, I want to order in descending by the y-axis. | CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
) | SELECT title, AVG(credits) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY title ORDER BY AVG(credits) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
97,
834,
7,
3171,
41,
97,
834,
7,
3171,
834,
23,
26,
3,
4331,
4059,
10820,
6,
239,
3,
4331,
4059,
14296,
6,
456,
834,
107,
52,
206,
17552,
16426,
6,
456,
834,
1109,
206,
17552,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2233,
6,
71,
17217,
599,
15547,
7,
61,
21680,
503,
6157,
332,
536,
3,
15355,
3162,
554,
60,
1824,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
23,
26,
350,
4630,
6880,
272,
476... |
What is the highest 2003 value with a 1990 greater than 74, a 125 value in 1985, and a 1995 value greater than 130? | CREATE TABLE table_40319 (
"Party" text,
"1985" real,
"1987" real,
"1990" real,
"1995" real,
"1999" real,
"2003" real,
"2007" real,
"2011" real
) | SELECT MAX("2003") FROM table_40319 WHERE "1990" > '74' AND "1985" = '125' AND "1995" > '130' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
519,
2294,
41,
96,
13725,
63,
121,
1499,
6,
96,
24151,
17395,
490,
6,
96,
2294,
4225,
121,
490,
6,
96,
2294,
2394,
121,
490,
6,
96,
19479,
17395,
490,
6,
96,
2294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23948,
8512,
21680,
953,
834,
2445,
519,
2294,
549,
17444,
427,
96,
2294,
2394,
121,
2490,
3,
31,
4581,
31,
3430,
96,
24151,
17395,
3274,
3,
31,
10124,
31,
3430,
96,
19479,
17395,
2490,
3,
31,
2... |
What player was drafted 252? | CREATE TABLE table_name_52 (
player VARCHAR,
pick VARCHAR
) | SELECT player FROM table_name_52 WHERE pick = 252 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
1959,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
47,
3,
23505,
944,
357,
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,
1959,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
1432,
3274,
944,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For each director, how many reviews have they received Visualize by bar chart, order bar in desc order. | CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
) | SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY director DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
4309,
16,
17,
6,
2233,
1499,
6,
215,
16,
17,
6,
2090,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52,
4309,
16,
17,
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,
2090,
6,
2847,
17161,
599,
1935,
61,
21680,
10743,
6157,
332,
536,
3,
15355,
3162,
21662,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
350,
4630,
6880,
272,
476,
332,
5411,
25982,
4674,
11300,... |
Can you tell me the highest Ofsted number that has the Type of infants, and the Intake larger than 60? | CREATE TABLE table_45330 (
"Name" text,
"Faith" text,
"Type" text,
"Intake" real,
"DCSF number" real,
"Ofsted number" real
) | SELECT MAX("Ofsted number") FROM table_45330 WHERE "Type" = 'infants' AND "Intake" > '60' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
17225,
41,
96,
23954,
121,
1499,
6,
96,
371,
9,
23,
189,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
1570,
4914,
121,
490,
6,
96,
6338,
7016,
381,
121,
490,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
667,
89,
6265,
381,
8512,
21680,
953,
834,
2128,
17225,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
77,
89,
2366,
31,
3430,
96,
1570,
4914,
121,
2490,
3,
31,
3328,
31,
1,
-100,
-100,
-100,
-... |
How many documents were shipped by USPS? | CREATE TABLE Documents (Id VARCHAR); CREATE TABLE Ref_Shipping_Agents (Id VARCHAR) | SELECT COUNT(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
10499,
23,
5341,
834,
188,
5560,
7,
41,
196,
26,
584,
4280,
28027,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
419,
89,
834,
10499,
23,
5341,
834,
188,
5560,
7,
3,
15355,
3162,
11167,
7,
9191,
11167,
7,
5,
2009,
2462,
834,
9,
5560,
834,
4978,
3274,
419,
89,
834,
10499,
23,
5341,
834,
188,... |
What is the total of tries for a player with conv smaller than 45, 19 starts and pens fewer than 22? | CREATE TABLE table_10151 (
"Player" text,
"Span" text,
"Start" real,
"Tries" real,
"Conv" real,
"Pens" real,
"Drop" real
) | SELECT COUNT("Tries") FROM table_10151 WHERE "Conv" < '45' AND "Start" = '19' AND "Pens" < '22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
26578,
41,
96,
15800,
49,
121,
1499,
6,
96,
19675,
121,
1499,
6,
96,
7681,
17,
121,
490,
6,
96,
382,
2593,
121,
490,
6,
96,
4302,
208,
121,
490,
6,
96,
345,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
382,
2593,
8512,
21680,
953,
834,
1714,
26578,
549,
17444,
427,
96,
4302,
208,
121,
3,
2,
3,
31,
2128,
31,
3430,
96,
7681,
17,
121,
3274,
3,
31,
2294,
31,
3430,
96,
345,
35,
7,
121,
3,
2... |
When the Score was 6-2, which Opponent was played? | CREATE TABLE table_name_16 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_16 WHERE score = "6-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
32,
102,
9977,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
17763,
47,
3,
25369,
6,
84,
4495,
9977,
47,
1944... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
2604,
3274,
96,
25369,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the position of the player whose team lost super bowl xxv before 1992, with a team defense rank larger than 3? | CREATE TABLE table_36475 (
"Year" real,
"NFL Team" text,
"Position" text,
"Team Defense Rank" real,
"Team Performance" text
) | SELECT "Position" FROM table_36475 WHERE "Team Defense Rank" > '3' AND "Year" < '1992' AND "Team Performance" = 'lost super bowl xxv' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
591,
3072,
41,
96,
476,
2741,
121,
490,
6,
96,
12619,
434,
2271,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
18699,
13143,
3,
22557,
121,
490,
6,
96,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
3420,
591,
3072,
549,
17444,
427,
96,
18699,
13143,
3,
22557,
121,
2490,
3,
31,
519,
31,
3430,
96,
476,
2741,
121,
3,
2,
3,
31,
19479,
357,
31,
3430,
96,
18699,
8233,
... |
Give me a bar chart for budget_in_billions of each name, and sort by the total number in asc. | CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
) | SELECT Name, Budget_in_Billions FROM department ORDER BY Budget_in_Billions | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
758,
41,
3066,
834,
4309,
16,
17,
6,
819,
834,
4309,
16,
17,
6,
7234,
834,
2708,
53,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
819,
41,
819,
834,
4309,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
12532,
834,
77,
834,
279,
14916,
7,
21680,
3066,
4674,
11300,
272,
476,
12532,
834,
77,
834,
279,
14916,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many bulldog drummond books did gerard fairlie write ? | CREATE TABLE table_203_394 (
id number,
"title" text,
"author" text,
"date" number,
"length\n(first edition)" text
) | SELECT COUNT("title") FROM table_203_394 WHERE "author" = 'gerard fairlie' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3288,
591,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
17415,
121,
1499,
6,
96,
5522,
121,
381,
6,
96,
19457,
2,
29,
599,
14672,
4182,
61,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
21869,
8512,
21680,
953,
834,
23330,
834,
3288,
591,
549,
17444,
427,
96,
17415,
121,
3274,
3,
31,
1304,
986,
2725,
1896,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the result for 2004 when A is the result for 2005, and the result of q1 when 2009? | CREATE TABLE table_name_32 (
Id VARCHAR
) | SELECT 2004 FROM table_name_32 WHERE 2005 = "a" AND 2009 = "q1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
21,
4406,
116,
71,
19,
8,
741,
21,
3105,
6,
11,
8,
741,
13,
3,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4406,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
3105,
3274,
96,
9,
121,
3430,
2464,
3274,
96,
1824,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who played 44 games who averaged over 2.07 goals against? | CREATE TABLE table_name_88 (player VARCHAR, goals_against_average VARCHAR, games_played VARCHAR) | SELECT player FROM table_name_88 WHERE goals_against_average > 2.07 AND games_played = 44 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
20846,
584,
4280,
28027,
6,
1766,
834,
9,
16720,
7,
17,
834,
28951,
584,
4280,
28027,
6,
1031,
834,
4895,
15,
26,
584,
4280,
28027,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1766,
834,
9,
16720,
7,
17,
834,
28951,
2490,
6864,
940,
3430,
1031,
834,
4895,
15,
26,
3274,
8537,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Return a bar chart about the distribution of All_Home and School_ID , and group by attribute ACC_Home, and order in asc by the Y-axis please. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT All_Home, School_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY School_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
19040,
6,
432,
834,
19040,
4674,
11300,
272,
476,
1121,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of patients with atrial septal defect/mitral valve replacement repair atrial-septal defect/sda who have procedure icd9 code 3613? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "ATRIAL SEPTAL DEFECT\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA" AND procedures.icd9_code = "3613" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is the date of birth of Jerry Deberry? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT demographic.dob FROM demographic WHERE demographic.name = "Jerry Deberry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
26,
32,
115,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
683,
49,
651,
374,
7418,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average total that is 1st in 2010? | CREATE TABLE table_35739 (
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2013" text,
"Total" real
) | SELECT AVG("Total") FROM table_35739 WHERE "2010" = '1st' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3436,
3288,
41,
96,
22594,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
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,
71,
17217,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
519,
3436,
3288,
549,
17444,
427,
96,
14926,
121,
3274,
3,
31,
536,
7,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the population density of the Capital Region of Denmark? | CREATE TABLE table_16278602_1 (
pop_density__per_km²_ VARCHAR,
english_name VARCHAR
) | SELECT pop_density__per_km²_ FROM table_16278602_1 WHERE english_name = "Capital Region of Denmark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2555,
3840,
4305,
834,
536,
41,
2783,
834,
537,
7,
485,
834,
834,
883,
834,
5848,
357,
834,
584,
4280,
28027,
6,
22269,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2783,
834,
537,
7,
485,
834,
834,
883,
834,
5848,
357,
834,
21680,
953,
834,
2938,
2555,
3840,
4305,
834,
536,
549,
17444,
427,
22269,
834,
4350,
3274,
96,
19566,
9538,
6163,
13,
18001,
121,
1,
-100,
-100,
-100,
-10... |
When steroids won the poll, who was advocate #1? | CREATE TABLE table_20301 (
"#" real,
"Advocate # 1" text,
"Advocate # 2" text,
"Root of All Evil" text,
"Poll winner" text,
"Original air date" text
) | SELECT "Advocate # 1" FROM table_20301 WHERE "Poll winner" = 'Steroids' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
25626,
41,
96,
4663,
121,
490,
6,
96,
21021,
32,
8367,
1713,
209,
121,
1499,
6,
96,
21021,
32,
8367,
1713,
204,
121,
1499,
6,
96,
22778,
17,
13,
432,
26567,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21021,
32,
8367,
1713,
209,
121,
21680,
953,
834,
1755,
25626,
549,
17444,
427,
96,
8931,
40,
4668,
121,
3274,
3,
31,
14337,
8184,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Support Category had a Round score of 9? | CREATE TABLE table_name_67 (support_category VARCHAR, round VARCHAR) | SELECT support_category FROM table_name_67 WHERE round = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
20390,
834,
8367,
839,
651,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4224,
17459,
141,
3,
9,
9609,
2604,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
380,
834,
8367,
839,
651,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1751,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Alyona Klimenko's Pos.? | CREATE TABLE table_name_86 (
pos VARCHAR,
name VARCHAR
) | SELECT pos FROM table_name_86 WHERE name = "alyona klimenko" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
3,
2748,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
71,
120,
106,
9,
24066,
51,
18994,
31,
7,
13995,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2748,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
564,
3274,
96,
9,
120,
106,
9,
3,
157,
4941,
18994,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When did the mf from England play for Gillingham that made 0 goals and less than 37 appearances? | CREATE TABLE table_name_79 (
gillingham_career VARCHAR,
position VARCHAR,
nationality VARCHAR,
goals VARCHAR,
apps VARCHAR
) | SELECT gillingham_career FROM table_name_79 WHERE goals = 0 AND apps < 37 AND nationality = "england" AND position = "mf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
3,
122,
1092,
14799,
834,
2864,
49,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
6,
4050,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
122,
1092,
14799,
834,
2864,
49,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1766,
3274,
3,
632,
3430,
4050,
3,
2,
6862,
3430,
1157,
485,
3274,
96,
4606,
40,
232,
121,
3430,
1102,
3274,
96,
51,
89,
121,
... |
what is drug type and drug route of drug code onda4i? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT prescriptions.drug_type, prescriptions.route FROM prescriptions WHERE prescriptions.formulary_drug_cd = "ONDA4I" | [
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,
7744,
7,
5,
26,
13534,
834,
6137,
6,
7744,
7,
5,
20300,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
20128,
63,
834,
26,
13534,
834,
75,
26,
3274,
96,
24796,
188,
591,
196,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
what is the total when the league is less than 1? | CREATE TABLE table_7916 (
"Name" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Total" real
) | SELECT "Total" FROM table_7916 WHERE "League" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
2938,
41,
96,
23954,
121,
1499,
6,
96,
2796,
9,
5398,
121,
490,
6,
96,
4795,
3802,
121,
490,
6,
96,
2796,
9,
5398,
3802,
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,
96,
3696,
1947,
121,
21680,
953,
834,
4440,
2938,
549,
17444,
427,
96,
2796,
9,
5398,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Elector has the Place of Birth listed as Bavaria? | CREATE TABLE table_name_4 (elector VARCHAR, place_of_birth VARCHAR) | SELECT elector FROM table_name_4 WHERE place_of_birth = "bavaria" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
400,
5317,
584,
4280,
28027,
6,
286,
834,
858,
834,
20663,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
21543,
127,
65,
8,
3399,
13,
263... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11924,
127,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
286,
834,
858,
834,
20663,
3274,
96,
115,
9,
9504,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many entrants did the events won by Frank Gary average? | CREATE TABLE table_38768 (
"Entrants" real,
"Winner" text,
"Prize" text,
"Runner-up" text,
"Results" text
) | SELECT AVG("Entrants") FROM table_38768 WHERE "Winner" = 'frank gary' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4225,
3651,
41,
96,
16924,
3569,
7,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
7855,
776,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
20119,
7,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
16924,
3569,
7,
8512,
21680,
953,
834,
519,
4225,
3651,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
89,
6254,
5260,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average December, when Game is '36'? | CREATE TABLE table_name_39 (
december INTEGER,
game VARCHAR
) | SELECT AVG(december) FROM table_name_39 WHERE game = 36 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
20,
75,
18247,
3,
21342,
17966,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1882,
6,
116,
4435,
19,
3,
31,
3420... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
221,
75,
18247,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
467,
3274,
4475,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the score when Arsenal was the away team? | CREATE TABLE table_name_49 (
score VARCHAR,
away_team VARCHAR
) | SELECT score FROM table_name_49 WHERE away_team = "arsenal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
2604,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
22358,
47,
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,
2604,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
550,
834,
11650,
3274,
96,
291,
7,
35,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison | CREATE TABLE table_name_74 (laps INTEGER, rider VARCHAR, grid VARCHAR, bike VARCHAR) | SELECT AVG(laps) FROM table_name_74 WHERE grid > 12 AND bike = "ducati 999rs" AND rider = "dean ellison" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
8478,
7,
3,
21342,
17966,
6,
2564,
52,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
6,
3724,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8478,
7,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
8634,
2490,
586,
3430,
3724,
3274,
96,
1259,
16461,
3,
19446,
52,
7,
121,
3430,
2564,
52,
3274,
96,
221,
152,
3,
7999,
739,
121,
1,
... |
What position has ongoing first-team appearances, Graham Burke for a player, and whose club is Aston Villa? | CREATE TABLE table_51192 (
"Player" text,
"Position" text,
"First-Team Appearances" text,
"First-Team Goals" text,
"Current Club" text
) | SELECT "Position" FROM table_51192 WHERE "First-Team Appearances" = 'ongoing' AND "Current Club" = 'aston villa' AND "Player" = 'graham burke' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
19978,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
25171,
18,
18699,
2276,
2741,
663,
7,
121,
1499,
6,
96,
25171,
18,
18699,
17916,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
5553,
19978,
549,
17444,
427,
96,
25171,
18,
18699,
2276,
2741,
663,
7,
121,
3274,
3,
31,
106,
9545,
31,
3430,
96,
254,
450,
5320,
1949,
121,
3274,
3,
31,
9,
4411,
121... |
What is Identifier, when City of License is Hornepayne? | CREATE TABLE table_name_55 (identifier VARCHAR, city_of_license VARCHAR) | SELECT identifier FROM table_name_55 WHERE city_of_license = "hornepayne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
8826,
52,
584,
4280,
28027,
6,
690,
834,
858,
834,
28062,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
21153,
7903,
6,
116,
896,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
8826,
52,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
690,
834,
858,
834,
28062,
3274,
96,
6293,
15,
102,
21993,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date has a round more than 9? | CREATE TABLE table_40082 (
"Round" real,
"Location" text,
"Circuit" text,
"Date" text,
"Winning Driver" text,
"Winning Team" text
) | SELECT "Date" FROM table_40082 WHERE "Round" > '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5548,
4613,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
518,
10503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
5548,
4613,
549,
17444,
427,
96,
448,
32,
1106,
121,
2490,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the original air date(s) for season episode 20? | CREATE TABLE table_29109 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer" text,
"Original Airdate" text
) | SELECT "Original Airdate" FROM table_29109 WHERE "Season #" = '20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
17304,
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,
121,
1499,
6,
96,
24965,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
1761,
5522,
121,
21680,
953,
834,
3166,
17304,
549,
17444,
427,
96,
134,
15,
9,
739,
1713,
121,
3274,
3,
31,
1755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the numbers for the player with a height in ft of 6-7 for the guard | CREATE TABLE table_name_4 (no_s_ VARCHAR, height_in_ft VARCHAR, position VARCHAR) | SELECT no_s_ FROM table_name_4 WHERE height_in_ft = "6-7" AND position = "guard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
29,
32,
834,
7,
834,
584,
4280,
28027,
6,
3902,
834,
77,
834,
89,
17,
584,
4280,
28027,
6,
1102,
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,
150,
834,
7,
834,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
3902,
834,
77,
834,
89,
17,
3274,
96,
25302,
121,
3430,
1102,
3274,
96,
11010,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the district for rep. warren r. davis died during previous congress | CREATE TABLE table_225200_4 (district VARCHAR, reason_for_change VARCHAR) | SELECT district FROM table_225200_4 WHERE reason_for_change = "Rep. Warren R. Davis died during previous congress" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
3632,
834,
591,
41,
26,
23,
20066,
584,
4280,
28027,
6,
1053,
834,
1161,
834,
13073,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3939,
21,
3852,
5,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
20489,
3632,
834,
591,
549,
17444,
427,
1053,
834,
1161,
834,
13073,
3274,
96,
1649,
102,
5,
16700,
391,
5,
8688,
3977,
383,
1767,
27197,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Series has a season that is older than 2003 with a Podiums entry of 1 and a Points entry that is n/a? | CREATE TABLE table_name_96 (
series VARCHAR,
points VARCHAR,
season VARCHAR,
podiums VARCHAR
) | SELECT series FROM table_name_96 WHERE season < 2003 AND podiums = "1" AND points = "n/a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
939,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
22828,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
939,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
774,
3,
2,
3888,
3430,
22828,
7,
3274,
96,
536,
121,
3430,
979,
3274,
96,
29,
87,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
provide the number of patients with diagnoses icd9 code 5781 who have been admitted for more than 16 days in hospital. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "16" AND diagnoses.icd9_code = "5781" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Record of 16–29 is how many attendance? | CREATE TABLE table_name_32 (attendance VARCHAR, record VARCHAR) | SELECT attendance FROM table_name_32 WHERE record = "16–29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
15116,
663,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
11392,
13,
898,
104,
3166,
19,
149,
186,
11364,
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,
11364,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1368,
3274,
96,
2938,
104,
3166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When by80607002529af is the part number and september 2009 is the release date what is the l2 cache? | CREATE TABLE table_22632 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"Turbo" text,
"Cores" real,
"L2 cache" text,
"L3 cache" text,
"I/O bus" text,
"Mult." text,
"Memory" text,
"Voltage" text,
"TDP" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
) | SELECT "L2 cache" FROM table_22632 WHERE "Release date" = 'September 2009' AND "Part number(s)" = 'BY80607002529AF' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2688,
2668,
41,
96,
24663,
381,
121,
1499,
6,
96,
7,
7727,
381,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
382,
450,
115,
32,
121,
1499,
6,
96,
254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
357,
11800,
121,
21680,
953,
834,
357,
2688,
2668,
549,
17444,
427,
96,
1649,
40,
14608,
833,
121,
3274,
3,
31,
27652,
2464,
31,
3430,
96,
13725,
381,
599,
7,
61,
121,
3274,
3,
31,
279,
476,
2079,
3328,
... |
A bar chart for what are the number of the name of rooms booked by customers whose first name has 'ROY' in part?, list by the Y-axis in descending. | CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
) | SELECT roomName, COUNT(roomName) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE FirstName LIKE '%ROY%' GROUP BY roomName ORDER BY COUNT(roomName) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27659,
7,
41,
3636,
3,
21342,
17966,
6,
4181,
3,
3463,
4,
382,
6,
1972,
1570,
3,
3463,
4,
382,
6,
1972,
15767,
3,
3463,
4,
382,
6,
13002,
17833,
6,
2506,
23954,
3,
3463,
4,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
562,
23954,
6,
2847,
17161,
599,
3082,
23954,
61,
21680,
27659,
7,
6157,
332,
536,
3,
15355,
3162,
4181,
7,
6157,
332,
357,
9191,
332,
5411,
22778,
51,
3274,
332,
4416,
22778,
51,
196,
26,
549,
17444,
427,
1485,
239... |
How many losses did the Golden rivers of hay have? | CREATE TABLE table_name_2 (
losses INTEGER,
golden_rivers VARCHAR
) | SELECT AVG(losses) FROM table_name_2 WHERE golden_rivers = "hay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
8467,
3,
21342,
17966,
6,
7069,
834,
5927,
277,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8467,
410,
8,
7100,
16912,
13,
3,
1268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
7069,
834,
5927,
277,
3274,
96,
12687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the sum on week against the Tampa Bay Buccaneers with less than 60,320 in attendance? | CREATE TABLE table_name_41 (week INTEGER, opponent VARCHAR, attendance VARCHAR) | SELECT SUM(week) FROM table_name_41 WHERE opponent = "tampa bay buccaneers" AND attendance < 60 OFFSET 320 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
8041,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
30,
471,
581,
8,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
15264,
3274,
96,
17,
4624,
9,
10210,
8062,
1608,
15,
277,
121,
3430,
11364,
3,
2,
1640,
3,
15316,
20788,
3,
15003,
1,
-100,
-100,
-100,
... |
What is the Total with a Player named robbie winters? | CREATE TABLE table_6507 (
"Position" text,
"Player" text,
"Premiership" text,
"Norwegian Cup" text,
"UEFA" text,
"Total" text
) | SELECT "Total" FROM table_6507 WHERE "Player" = 'robbie winters' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15348,
940,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10572,
51,
972,
2009,
121,
1499,
6,
96,
567,
127,
1123,
22898,
3802,
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,
3696,
1947,
121,
21680,
953,
834,
15348,
940,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
5840,
4232,
2265,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
List each language and the number of TV Channels using it. | CREATE TABLE TV_Channel (LANGUAGE VARCHAR) | SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1424,
834,
3541,
4515,
40,
41,
12303,
13961,
11187,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
284,
1612,
11,
8,
381,
13,
1424,
9916,
7,
338,
34,
5,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
12303,
13961,
11187,
6,
2847,
17161,
599,
1935,
61,
21680,
1424,
834,
3541,
4515,
40,
350,
4630,
6880,
272,
476,
3,
12303,
13961,
11187,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the arrival for Wansford, Peterborough East? | CREATE TABLE table_18332845_2 (
arrival VARCHAR,
calling_at VARCHAR
) | SELECT arrival FROM table_18332845_2 WHERE calling_at = "Wansford, Peterborough East" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24361,
28070,
2128,
834,
357,
41,
6870,
584,
4280,
28027,
6,
3874,
834,
144,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6870,
21,
549,
3247,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6870,
21680,
953,
834,
24361,
28070,
2128,
834,
357,
549,
17444,
427,
3874,
834,
144,
3274,
96,
518,
3247,
2590,
6,
2737,
12823,
1932,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Where is rory loy moving to? | CREATE TABLE table_50074 (
"Nat." text,
"Name" text,
"Moving to" text,
"Type" text,
"Transfer window" text,
"Transfer fee" text
) | SELECT "Moving to" FROM table_50074 WHERE "Name" = 'rory loy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2560,
4581,
41,
96,
567,
144,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
329,
32,
3745,
12,
121,
1499,
6,
96,
25160,
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,
329,
32,
3745,
12,
121,
21680,
953,
834,
2560,
4581,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
52,
127,
63,
6899,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Visualize a bar chart about the distribution of ACC_Road and the sum of Team_ID , and group by attribute ACC_Road, list ACC_Road in asc order. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT ACC_Road, SUM(Team_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY ACC_Road | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
448,
32,
9,
26,
6,
180,
6122,
599,
18699,
834,
4309,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
4674,
11300,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
... |
What was the date of the Mariners game that had a loss of Segui (0-5)? | CREATE TABLE table_56305 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Date" FROM table_56305 WHERE "Loss" = 'segui (0-5)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
26724,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,
663... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4834,
26724,
549,
17444,
427,
96,
434,
32,
7,
7,
121,
3274,
3,
31,
7,
15,
7938,
17482,
18,
9120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131? | CREATE TABLE table_56167 (
"Rd #" real,
"Pick #" real,
"Player" text,
"Team (League)" text,
"Reg GP" real,
"Pl GP" real
) | SELECT COUNT("Pl GP") FROM table_56167 WHERE "Reg GP" < '5' AND "Team (League)" = 'seattle thunderbirds' AND "Pick #" < '131' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
27650,
41,
96,
448,
26,
1713,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
41,
2796,
9,
5398,
61,
121,
1499,
6,
96,
1774... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
345,
40,
3,
8049,
8512,
21680,
953,
834,
4834,
27650,
549,
17444,
427,
96,
17748,
3,
8049,
121,
3,
2,
3,
31,
755,
31,
3430,
96,
18699,
41,
2796,
9,
5398,
61,
121,
3274,
3,
31,
7,
15,
9,
... |
What name has pembroke as the built by hm dockyard, and may 1825 as the laid down? | CREATE TABLE table_7080 (
"Name" text,
"Built by HM Dockyard" text,
"Ordered" text,
"Laid down" text,
"Launched" text
) | SELECT "Name" FROM table_7080 WHERE "Built by HM Dockyard" = 'pembroke' AND "Laid down" = 'may 1825' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
2079,
41,
96,
23954,
121,
1499,
6,
96,
7793,
173,
17,
57,
3,
20611,
22314,
6636,
121,
1499,
6,
96,
7395,
26,
3737,
121,
1499,
6,
96,
434,
6146,
323,
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,
23954,
121,
21680,
953,
834,
2518,
2079,
549,
17444,
427,
96,
7793,
173,
17,
57,
3,
20611,
22314,
6636,
121,
3274,
3,
31,
855,
12634,
1825,
15,
31,
3430,
96,
434,
6146,
323,
121,
3274,
3,
31,
13726,
507,
1828,... |
What is the average amount of goals that have a goal difference or 8 and the losses are smaller than 12? | CREATE TABLE table_33103 (
"Position" real,
"Club" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Points" real,
"Goal Difference" real
) | SELECT AVG("Goals for") FROM table_33103 WHERE "Goal Difference" = '8' AND "Losses" < '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
17864,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
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,
121,
6221,
5405,
21,
8512,
21680,
953,
834,
4201,
17864,
549,
17444,
427,
96,
6221,
138,
27187,
121,
3274,
3,
31,
927,
31,
3430,
96,
434,
13526,
7,
121,
3,
2,
3,
31,
2122,
31,
1,
-100,
-100,
-100... |
Name the gore number for others # 6.6% | CREATE TABLE table_23014476_1 (gore__number INTEGER, others__number VARCHAR) | SELECT MIN(gore__number) FROM table_23014476_1 WHERE others__number = "6.6%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
20885,
3959,
834,
536,
41,
839,
60,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
717,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
839,
60,
834,
834,
5525,
1152,
61,
21680,
953,
834,
13427,
20885,
3959,
834,
536,
549,
17444,
427,
717,
834,
834,
5525,
1152,
3274,
96,
28833,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which opponent has the same score as san marino ? | CREATE TABLE table_204_282 (
id number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text,
"#" number
) | SELECT "opponent" FROM table_204_282 WHERE "opponent" <> 'san marino' AND "score" = (SELECT "score" FROM table_204_282 WHERE "opponent" = 'san marino') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2577,
357,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
60,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
32,
102,
9977,
121,
21680,
953,
834,
26363,
834,
2577,
357,
549,
17444,
427,
96,
32,
102,
9977,
121,
3,
2,
3155,
3,
31,
7,
152,
3,
12181,
32,
31,
3430,
96,
7,
9022,
121,
3274,
41,
23143,
14196,
96,
7,
9022... |
WHich INEGI code has a Population density (/km 2 ) smaller than 81.4 and 0.6593 Human Development Index (2000)? | CREATE TABLE table_name_17 (inegi_code INTEGER, population_density___km_2__ VARCHAR, human_development_index__2000_ VARCHAR) | SELECT AVG(inegi_code) FROM table_name_17 WHERE population_density___km_2__ < 81.4 AND human_development_index__2000_ = 0.6593 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
77,
11097,
834,
4978,
3,
21342,
17966,
6,
2074,
834,
537,
7,
485,
834,
834,
834,
5848,
834,
357,
834,
834,
584,
4280,
28027,
6,
936,
834,
19677,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
77,
11097,
834,
4978,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
2074,
834,
537,
7,
485,
834,
834,
834,
5848,
834,
357,
834,
834,
3,
2,
505,
14912,
3430,
936,
834,
19677,
834,
18288,
83... |
What are the id and address of the shops which have a happy hour in May? | CREATE TABLE member (
member_id number,
name text,
membership_card text,
age number,
time_of_purchase number,
level_of_membership number,
address text
)
CREATE TABLE shop (
shop_id number,
address text,
num_of_staff text,
score number,
open_year text
)
CREATE TABLE happy_hour (
hh_id number,
shop_id number,
month text,
num_of_shaff_in_charge number
)
CREATE TABLE happy_hour_member (
hh_id number,
member_id number,
total_amount number
) | SELECT t1.address, t1.shop_id FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id = t2.shop_id WHERE month = 'May' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
1144,
834,
23,
26,
381,
6,
564,
1499,
6,
4757,
834,
6043,
1499,
6,
1246,
381,
6,
97,
834,
858,
834,
29446,
381,
6,
593,
834,
858,
834,
12066,
2009,
381,
6,
1115,
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,
3,
17,
5411,
9,
26,
12039,
6,
3,
17,
5411,
6921,
834,
23,
26,
21680,
1814,
6157,
3,
17,
536,
3,
15355,
3162,
1095,
834,
5842,
6157,
3,
17,
357,
9191,
3,
17,
5411,
6921,
834,
23,
26,
3274,
3,
17,
4416,
6921,
... |
What's the loss for September 16? | CREATE TABLE table_79725 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | SELECT "Loss" FROM table_79725 WHERE "Date" = 'september 16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4327,
1828,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
1649,
7621,
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,
0... | [
3,
23143,
14196,
96,
434,
32,
7,
7,
121,
21680,
953,
834,
940,
4327,
1828,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
18247,
898,
31,
1,
-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.