answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k | input_ids listlengths 512 512 | labels listlengths 512 512 |
|---|---|---|---|---|
SELECT city FROM station GROUP BY city ORDER BY MAX(lat) DESC | List all the cities in a decreasing order of each city's stations' highest latitude. | CREATE TABLE station (city VARCHAR, lat INTEGER) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
2478,
41,
6726,
584,
4280,
28027,
6,
50,
17,
3,
21342,
17966,
61,
11860,
10,
6792,
66,
8,
3119,
16,
3,
9,
23155,
455,
13,
284,
690,
31,
7,
6991,
31,
2030,
50,
6592,
5,
11801,
10,
1,
... | [
3,
23143,
14196,
690,
21680,
2478,
350,
4630,
6880,
272,
476,
690,
4674,
11300,
272,
476,
4800,
4,
599,
40,
144,
61,
309,
25067,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT opponent FROM table_name_65 WHERE save = "smith (22)" | Which opponent has a save of smith (22)? | CREATE TABLE table_name_65 (
opponent VARCHAR,
save VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
15264,
584,
4280,
28027,
6,
1097,
584,
4280,
28027,
3,
61,
11860,
10,
4073,
15264,
65,
3,
9,
1097,
13,
3,
16331,
4743,
7318,
58,
11801,
10,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1097,
3274,
96,
16331,
4743,
7318,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT result FROM table_1341690_20 WHERE incumbent = "Robert Bauman" | What are all the results where Robert Bauman is the incumbent politician? | CREATE TABLE table_1341690_20 (result VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
1755,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
363,
33,
66,
8,
772,
213,
2715,
3528,
348,
19,
8,
28406,
24694,
58... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
2938,
2394,
834,
1755,
549,
17444,
427,
28406,
3274,
96,
24372,
49,
17,
3528,
348,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT date, cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 5 | What are the dates that had the top 5 cloud cover rates? Also tell me the cloud cover rate. | CREATE TABLE weather (date VARCHAR, cloud_cover VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1969,
41,
5522,
584,
4280,
28027,
6,
3126,
834,
9817,
584,
4280,
28027,
61,
11860,
10,
363,
33,
8,
5128,
24,
141,
8,
420,
305,
3126,
1189,
1917,
58,
1203,
817,
140,
8,
3126,
1189,
1080,
... | [
3,
23143,
14196,
833,
6,
3126,
834,
9817,
21680,
1969,
4674,
11300,
272,
476,
3126,
834,
9817,
309,
25067,
8729,
12604,
305,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... |
SELECT win_draw_lose FROM table_name_71 WHERE venue = "home" AND team = "derby county" | What was the result of the home game against Derby County? | CREATE TABLE table_name_71 (
win_draw_lose VARCHAR,
venue VARCHAR,
team VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
1369,
834,
19489,
834,
10227,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
11860,
10,
363,
47,
8,
741,
13,
8,
234,
467,
58... | [
3,
23143,
14196,
1369,
834,
19489,
834,
10227,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
5669,
3274,
96,
5515,
121,
3430,
372,
3274,
96,
588,
969,
5435,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT candidates FROM table_1341690_35 WHERE incumbent = "Del Latta" | Who were the candidates in the district won by the incumbent Del Latta? | CREATE TABLE table_1341690_35 (candidates VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
2469,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
2645,
130,
8,
4341,
16,
8,
3939,
751,
57,
8,
28406,
6236,
301,
1... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2938,
2394,
834,
2469,
549,
17444,
427,
28406,
3274,
96,
2962,
40,
301,
14748,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT id, duration FROM trip ORDER BY duration DESC LIMIT 3 | What are the ids and durations of the trips with the top 3 durations? | CREATE TABLE trip (id VARCHAR, duration VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1469,
41,
23,
26,
584,
4280,
28027,
6,
8659,
584,
4280,
28027,
61,
11860,
10,
363,
33,
8,
3,
23,
26,
7,
11,
8659,
7,
13,
8,
6846,
28,
8,
420,
220,
8659,
7,
58,
11801,
10,
1,
0,
0,
... | [
3,
23143,
14196,
3,
23,
26,
6,
8659,
21680,
1469,
4674,
11300,
272,
476,
8659,
309,
25067,
8729,
12604,
220,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... |
SELECT AVG(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 16472)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arte... | tell me the average arterial bp [systolic] of patient 16472 until 08/15/2105? | CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,... | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
16319,
41,
7358,
834,
23,
26,
381,
6,
1426,
834,
23,
26,
381,
6,
141,
51,
834,
23,
26,
381,
6,
3,
23,
1071,
21545,
834,
23,
26,
381,
6,
605,
6137,
1499,
6,
124,
15129,
1499,
6,
615,
... | [
3,
23143,
14196,
71,
17217,
599,
4059,
17,
15,
2169,
7,
5,
12097,
5525,
61,
21680,
5059,
15,
2169,
7,
549,
17444,
427,
5059,
15,
2169,
7,
5,
23,
1071,
21545,
834,
23,
26,
3388,
41,
23143,
14196,
3,
23,
1071,
21545,
7,
5,
23,
1... |
SELECT candidates FROM table_1341690_35 WHERE first_elected = 1966 | Who were the candidates in the districts that was first elected in 1966? | CREATE TABLE table_1341690_35 (candidates VARCHAR, first_elected VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
2469,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
11860,
10,
2645,
130,
8,
4341,
16,
8,
14126,
24,
47,
166,
8160,
1... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2938,
2394,
834,
2469,
549,
17444,
427,
166,
834,
19971,
3274,
20658,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT T1.name, T1.long, AVG(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id | For each station, return its longitude and the average duration of trips that started from the station. | CREATE TABLE station (name VARCHAR, long VARCHAR, id VARCHAR); CREATE TABLE trip (duration INTEGER, start_station_id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
2478,
41,
4350,
584,
4280,
28027,
6,
307,
584,
4280,
28027,
6,
3,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
1469,
41,
1259,
2661,
3,
21342,
17966,
6,
456,
834,
6682,
834... | [
3,
23143,
14196,
332,
5411,
4350,
6,
332,
5411,
2961,
6,
71,
17217,
599,
382,
4416,
1259,
2661,
61,
21680,
2478,
6157,
332,
536,
3,
15355,
3162,
1469,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
10208,
834,
6682,
834,
... |
SELECT SUM("Total") FROM table_43812 WHERE "Club" = 'darlington' AND "League goals" = '13' AND "League Cup goals" = '1' | Which Total has a Club of darlington, and a League goals of 13, and a League Cup goals of 1? | CREATE TABLE table_43812 (
"Club" text,
"League goals" text,
"FA Cup goals" text,
"League Cup goals" text,
"Total" real
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3747,
2122,
41,
96,
254,
11158,
121,
1499,
6,
96,
2796,
9,
5398,
1766,
121,
1499,
6,
96,
4795,
3802,
1766,
121,
1499,
6,
96,
2796,
9,
5398,
3802,
1766,
121,
1499,
6,
96,
... | [
3,
23143,
14196,
180,
6122,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
591,
3747,
2122,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
3439,
40,
6029,
31,
3430,
96,
2796,
9,
5398,
1766,
121,
3274,
3,
31,
2368,
31,
3430,
96,
... |
SELECT candidates FROM table_1341690_5 WHERE district = "California 10" | Who was running for office in the California 10 district? | CREATE TABLE table_1341690_5 (candidates VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
755,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
2645,
47,
1180,
21,
828,
16,
8,
1826,
335,
3939,
58,
11801,
10,
1,... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2938,
2394,
834,
755,
549,
17444,
427,
3939,
3274,
96,
14318,
99,
127,
29,
23,
9,
335,
121,
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,
... |
SELECT T1.name, T1.lat, MIN(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.end_station_id GROUP BY T2.end_station_id | For each station, find its latitude and the minimum duration of trips that ended at the station. | CREATE TABLE trip (duration INTEGER, end_station_id VARCHAR); CREATE TABLE station (name VARCHAR, lat VARCHAR, id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1469,
41,
1259,
2661,
3,
21342,
17966,
6,
414,
834,
6682,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
2478,
41,
4350,
584,
4280,
28027,
6,
50,
17,
584,
4280,
28027,
6... | [
3,
23143,
14196,
332,
5411,
4350,
6,
332,
5411,
40,
144,
6,
3,
17684,
599,
382,
4416,
1259,
2661,
61,
21680,
2478,
6157,
332,
536,
3,
15355,
3162,
1469,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
989,
834,
6682,
834... |
SELECT DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%germany%' OR Location LIKE '%Germany%' OR Location LIKE N'%DE%' OR Location LIKE N'%de%' OR Location LIKE N'%deutschland%' ORDER BY Reputation DESC LIMIT 3000 | Top SO users from germany. | CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE Po... | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
180,
13917,
15,
6265,
26527,
7,
41,
27,
26,
381,
6,
1844,
196,
26,
381,
6,
24589,
308,
342,
97,
6,
2276,
8843,
138,
308,
342,
97,
6,
419,
21440,
308,
342,
97,
6,
13307,
1265,
7,
49,
... | [
3,
23143,
14196,
11677,
23954,
6,
419,
2562,
257,
6,
3637,
1265,
52,
40,
6,
10450,
21680,
13504,
549,
17444,
427,
10450,
8729,
9914,
3,
31,
1454,
1304,
348,
63,
1454,
31,
4674,
10450,
8729,
9914,
3,
31,
1454,
24518,
63,
1454,
31,
... |
SELECT COUNT(party) FROM table_1341690_5 WHERE district = "California 23" | How many parties won the election in the California 23 district? | CREATE TABLE table_1341690_5 (party VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
755,
41,
8071,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
571,
186,
2251,
751,
8,
4356,
16,
8,
1826,
1902,
3939,
58,
11801,
10,
1,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8071,
61,
21680,
953,
834,
23747,
2938,
2394,
834,
755,
549,
17444,
427,
3939,
3274,
96,
14318,
99,
127,
29,
23,
9,
1902,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT DISTINCT start_station_name FROM trip WHERE duration < 100 | List all the distinct stations from which a trip of duration below 100 started. | CREATE TABLE trip (start_station_name VARCHAR, duration INTEGER) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1469,
41,
10208,
834,
6682,
834,
4350,
584,
4280,
28027,
6,
8659,
3,
21342,
17966,
61,
11860,
10,
6792,
66,
8,
6746,
6991,
45,
84,
3,
9,
1469,
13,
8659,
666,
910,
708,
5,
11801,
10,
1,
... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
456,
834,
6682,
834,
4350,
21680,
1469,
549,
17444,
427,
8659,
3,
2,
910,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT * FROM table_train_103 WHERE age >= 65 | age 65 years and older | CREATE TABLE table_train_103 (
"id" int,
"systolic_blood_pressure_sbp" int,
"epilepsy" bool,
"diastolic_blood_pressure_dbp" int,
"heart_rate" int,
"seizure_disorder" bool,
"age" float,
"NOUSE" float
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
17864,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,
17,
6,
96,
15,
102,
699,
19819,
121,
3,
12840,... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
17864,
549,
17444,
427,
1246,
2490,
2423,
7123,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT MAX(first_elected) FROM table_1341690_5 WHERE party = "Republican" | What republican candidate was first elected most recently? | CREATE TABLE table_1341690_5 (first_elected INTEGER, party VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
755,
41,
14672,
834,
19971,
3,
21342,
17966,
6,
1088,
584,
4280,
28027,
61,
11860,
10,
363,
20237,
152,
4775,
47,
166,
8160,
167,
1310,
58,
11801,
10,
1,
... | [
3,
23143,
14196,
4800,
4,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
2938,
2394,
834,
755,
549,
17444,
427,
1088,
3274,
96,
1649,
15727,
152,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70 | Find all the zip codes in which the max dew point have never reached 70. | CREATE TABLE weather (zip_code VARCHAR, max_dew_point_f VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1969,
41,
13453,
834,
4978,
584,
4280,
28027,
6,
9858,
834,
221,
210,
834,
2700,
834,
89,
584,
4280,
28027,
61,
11860,
10,
2588,
66,
8,
10658,
5633,
16,
84,
8,
9858,
20,
210,
500,
43,
47... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
10658,
834,
4978,
21680,
1969,
262,
4,
30416,
3,
23143,
14196,
3,
15438,
25424,
6227,
10658,
834,
4978,
21680,
1969,
549,
17444,
427,
9858,
834,
221,
210,
834,
2700,
834,
89,
2490,
2423,
2861,
1... |
SELECT location FROM table_name_4 WHERE frequency = "102.5 fm" | Which Location has a Frequency of 102.5 fm? | CREATE TABLE table_name_4 (
location VARCHAR,
frequency VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
1128,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
3,
61,
11860,
10,
4073,
10450,
65,
3,
9,
5532,
835,
11298,
13,
335,
15967,
3,
89,
51,
58,
11801,
10,
1,
... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
7321,
3274,
96,
1714,
15967,
3,
89,
51,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT district FROM table_1341707_12 WHERE first_elected = 1952 | Phillip Landrum was first elected in 1952 from the ninth district of Georgia. | CREATE TABLE table_1341707_12 (district VARCHAR, first_elected VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
4560,
834,
2122,
41,
26,
23,
20066,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
11860,
10,
16202,
2216,
2781,
47,
166,
8160,
16,
23744,
45,
8,
24651,
... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2517,
4560,
834,
2122,
549,
17444,
427,
166,
834,
19971,
3274,
23744,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT id FROM trip WHERE duration >= (SELECT AVG(duration) FROM trip WHERE zip_code = 94103) | Find the id for the trips that lasted at least as long as the average duration of trips in zip code 94103. | CREATE TABLE trip (id VARCHAR, duration INTEGER, zip_code VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1469,
41,
23,
26,
584,
4280,
28027,
6,
8659,
3,
21342,
17966,
6,
10658,
834,
4978,
584,
4280,
28027,
61,
11860,
10,
2588,
8,
3,
23,
26,
21,
8,
6846,
24,
3,
19054,
44,
709,
38,
307,
38,... | [
3,
23143,
14196,
3,
23,
26,
21680,
1469,
549,
17444,
427,
8659,
2490,
2423,
41,
23143,
14196,
71,
17217,
599,
1259,
2661,
61,
21680,
1469,
549,
17444,
427,
10658,
834,
4978,
3274,
3,
4240,
17864,
61,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT MIN(crowd) FROM table_name_89 WHERE venue = "victoria park" | What is the smallest crowd for victoria park? | CREATE TABLE table_name_89 (
crowd INTEGER,
venue VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
4374,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
3,
61,
11860,
10,
363,
19,
8,
3,
17924,
4374,
21,
3,
7287,
3600,
9,
2447,
58,
11801,
10,
1,
0,
0,
0,
... | [
3,
23143,
14196,
3,
17684,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
5669,
3274,
96,
7287,
3600,
9,
2447,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT party FROM table_1341707_15 WHERE district = "Illinois 12" | What party did the incumbent from the Illinois 12 district belong to? | CREATE TABLE table_1341707_15 (party VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
4560,
834,
1808,
41,
8071,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
363,
1088,
410,
8,
28406,
45,
8,
7659,
586,
3939,
13000,
12,
58,
11801,
10,
1,... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
2517,
4560,
834,
1808,
549,
17444,
427,
3939,
3274,
96,
196,
195,
77,
32,
159,
586,
121,
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,
... |
SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31 | What are the dates in which the mean sea level pressure was between 30.3 and 31? | CREATE TABLE weather (date VARCHAR, mean_sea_level_pressure_inches INTEGER) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1969,
41,
5522,
584,
4280,
28027,
6,
1243,
834,
7,
15,
9,
834,
4563,
834,
26866,
834,
77,
2951,
3,
21342,
17966,
61,
11860,
10,
363,
33,
8,
5128,
16,
84,
8,
1243,
2805,
593,
1666,
47,
... | [
3,
23143,
14196,
833,
21680,
1969,
549,
17444,
427,
1243,
834,
7,
15,
9,
834,
4563,
834,
26866,
834,
77,
2951,
272,
7969,
518,
23394,
220,
19997,
3430,
2664,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT MAX("Season no.") FROM table_73846 WHERE "Title" = 'Stray' | What episode number in the season is titled 'stray'? | CREATE TABLE table_73846 (
"Season no." real,
"Series no." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3747,
4448,
41,
96,
134,
15,
9,
739,
150,
535,
490,
6,
96,
12106,
7,
150,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,... | [
3,
23143,
14196,
4800,
4,
599,
121,
134,
15,
9,
739,
150,
5,
8512,
21680,
953,
834,
940,
3747,
4448,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
11500,
9,
63,
31,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT incumbent FROM table_1341707_15 WHERE party = "Democratic" AND result = "Re-elected" AND district = "Illinois 11" | Who was the democratic incumbent in the Illinois 11 district who was re-elected? | CREATE TABLE table_1341707_15 (incumbent VARCHAR, district VARCHAR, party VARCHAR, result VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
4560,
834,
1808,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
11860,
10,
2645,
47,
8,... | [
3,
23143,
14196,
28406,
21680,
953,
834,
23747,
2517,
4560,
834,
1808,
549,
17444,
427,
1088,
3274,
96,
19679,
447,
121,
3430,
741,
3274,
96,
1649,
18,
19971,
121,
3430,
3939,
3274,
96,
196,
195,
77,
32,
159,
850,
121,
1,
0,
0,
0,... |
SELECT date, max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1 | Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference. | CREATE TABLE weather (date VARCHAR, max_temperature_f VARCHAR, min_temperature_f VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1969,
41,
5522,
584,
4280,
28027,
6,
9858,
834,
21010,
15,
834,
89,
584,
4280,
28027,
6,
3519,
834,
21010,
15,
834,
89,
584,
4280,
28027,
61,
11860,
10,
2588,
8,
239,
16,
84,
8,
1750,
34... | [
3,
23143,
14196,
833,
6,
9858,
834,
21010,
15,
834,
89,
3,
18,
3519,
834,
21010,
15,
834,
89,
21680,
1969,
4674,
11300,
272,
476,
9858,
834,
21010,
15,
834,
89,
3,
18,
3519,
834,
21010,
15,
834,
89,
8729,
12604,
209,
1,
0,
0,
... |
SELECT "Position" FROM table_439 WHERE "Overall Pick #" = '17' | What is the position for the pick number 17? | CREATE TABLE table_439 (
"Overall Pick #" real,
"AFL Team" text,
"Player" text,
"Position" text,
"College" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3288,
41,
96,
23847,
1748,
8356,
1713,
121,
490,
6,
96,
188,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
591,
3288,
549,
17444,
427,
96,
23847,
1748,
8356,
1713,
121,
3274,
3,
31,
2517,
31,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT incumbent FROM table_1341707_15 WHERE first_elected = "1964" | Which incumbent was first elected in 1964? | CREATE TABLE table_1341707_15 (incumbent VARCHAR, first_elected VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
4560,
834,
1808,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
11860,
10,
4073,
28406,
47,
166,
8160,
16,
18969,
58,
11801,
10,
... | [
3,
23143,
14196,
28406,
21680,
953,
834,
23747,
2517,
4560,
834,
1808,
549,
17444,
427,
166,
834,
19971,
3274,
96,
26937,
20364,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT DISTINCT T1.id, T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12 | What are the id and name of the stations that have ever had more than 12 bikes available? | CREATE TABLE station (id VARCHAR, name VARCHAR); CREATE TABLE status (station_id VARCHAR, bikes_available INTEGER) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
2478,
41,
23,
26,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
2637,
41,
6682,
834,
23,
26,
584,
4280,
28027,
6,
13490,
834,
28843,
3,
21342,
17966,
61,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
23,
26,
6,
332,
5411,
4350,
21680,
2478,
6157,
332,
536,
3,
15355,
3162,
2637,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
6682,
834,
23,
26,
549,
17444,
427,
332,
4... |
SELECT MIN(no) FROM table_15621965_18 WHERE position = "Forward-Center" | WHAT WAS THE NUMBER OF THE ONLY FORWARD-CENTER TO MAKE THE ROSTER? | CREATE TABLE table_15621965_18 (
no INTEGER,
position VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4056,
2294,
4122,
834,
2606,
41,
150,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
3,
61,
11860,
10,
21665,
7896,
134,
1853,
445,
6122,
12920,
3347,
1853,
20728,
5652,
518,
10... | [
3,
23143,
14196,
3,
17684,
599,
29,
32,
61,
21680,
953,
834,
1808,
4056,
2294,
4122,
834,
2606,
549,
17444,
427,
1102,
3274,
96,
3809,
2239,
18,
24382,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT party FROM table_1341707_15 WHERE district = "Illinois 1" | What party did the incumbent from the Illinois 1 district belong to? | CREATE TABLE table_1341707_15 (party VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
4560,
834,
1808,
41,
8071,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
363,
1088,
410,
8,
28406,
45,
8,
7659,
209,
3939,
13000,
12,
58,
11801,
10,
1,... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
2517,
4560,
834,
1808,
549,
17444,
427,
3939,
3274,
96,
196,
195,
77,
32,
159,
209,
121,
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,
... |
SELECT zip_code FROM weather GROUP BY zip_code HAVING AVG(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING COUNT(*) >= 100 | Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place. | CREATE TABLE weather (zip_code VARCHAR, mean_humidity INTEGER); CREATE TABLE trip (zip_code VARCHAR, mean_humidity INTEGER) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1969,
41,
13453,
834,
4978,
584,
4280,
28027,
6,
1243,
834,
4884,
23,
26,
485,
3,
21342,
17966,
3670,
205,
4386,
6048,
332,
17098,
1469,
41,
13453,
834,
4978,
584,
4280,
28027,
6,
1243,
834,... | [
3,
23143,
14196,
10658,
834,
4978,
21680,
1969,
350,
4630,
6880,
272,
476,
10658,
834,
4978,
454,
6968,
2365,
71,
17217,
599,
526,
152,
834,
4884,
23,
26,
485,
61,
3,
2,
2861,
3,
21342,
5249,
14196,
3,
23143,
14196,
10658,
834,
4978... |
SELECT "Class Pos." FROM table_77295 WHERE "Pos." = '4th' | What was the class position of the team that was in the 4th position? | CREATE TABLE table_77295 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
357,
3301,
41,
96,
476,
2741,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
3881,
18,
20982,
52,
7,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
... | [
3,
23143,
14196,
96,
21486,
13995,
535,
21680,
953,
834,
4013,
357,
3301,
549,
17444,
427,
96,
345,
32,
7,
535,
3274,
3,
31,
591,
189,
31,
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,
... |
SELECT candidates FROM table_1341690_9 WHERE incumbent = "Don Fuqua" | What candidates ran in the election with don fuqua? | CREATE TABLE table_1341690_9 (candidates VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
1298,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
363,
4341,
4037,
16,
8,
4356,
28,
278,
7683,
4960,
58,
11801,
10,
... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2938,
2394,
834,
1298,
549,
17444,
427,
28406,
3274,
96,
13843,
6343,
4960,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT name FROM station WHERE city = "Palo Alto" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING COUNT(*) > 100 | What are the names of stations that are located in Palo Alto city but have never been the ending point of trips more than 100 times? | CREATE TABLE trip (name VARCHAR, end_station_name VARCHAR, city VARCHAR); CREATE TABLE station (name VARCHAR, end_station_name VARCHAR, city VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1469,
41,
4350,
584,
4280,
28027,
6,
414,
834,
6682,
834,
4350,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
2478,
41,
4350,
584,
4280,
28027,
6,
414,
834,
... | [
3,
23143,
14196,
564,
21680,
2478,
549,
17444,
427,
690,
3274,
96,
345,
138,
32,
4588,
32,
121,
262,
4,
30416,
3,
23143,
14196,
414,
834,
6682,
834,
4350,
21680,
1469,
350,
4630,
6880,
272,
476,
414,
834,
6682,
834,
4350,
454,
6968,... |
SELECT customer_last_name, COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id | How many accounts for each customer? Show a bar chart that groups by customer's last name. | CREATE TABLE Product_Categories (
production_type_code VARCHAR(15),
product_type_description VARCHAR(80),
vat_rating DECIMAL(19,4)
)
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
date_account_opened DATETIME,
account_name VARCHAR(50),
other_account_details VARCHAR(255... | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
6246,
834,
18610,
6066,
2593,
41,
999,
834,
6137,
834,
4978,
584,
4280,
28027,
599,
1808,
201,
556,
834,
6137,
834,
221,
11830,
584,
4280,
28027,
599,
2079,
201,
409,
17,
834,
52,
1014,
3396... | [
3,
23143,
14196,
884,
834,
5064,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
6288,
7,
6157,
332,
536,
3,
15355,
3162,
16423,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,
332,
4416,
25697,
49,
834,
23,
26,
35... |
SELECT COUNT(incumbent) FROM table_1341690_9 WHERE candidates = "Sam M. Gibbons (D) Unopposed" | How many incumbent candidates in the election featuring sam m. gibbons (d) unopposed? | CREATE TABLE table_1341690_9 (incumbent VARCHAR, candidates VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
1298,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
61,
11860,
10,
571,
186,
28406,
4341,
16,
8,
4356,
4767,
3,
7,
265,
3,
51,
5,
... | [
3,
23143,
14196,
2847,
17161,
599,
77,
75,
5937,
295,
61,
21680,
953,
834,
23747,
2938,
2394,
834,
1298,
549,
17444,
427,
4341,
3274,
96,
134,
265,
283,
5,
17223,
5407,
7,
41,
308,
61,
597,
28236,
3843,
121,
1,
0,
0,
0,
0,
0,
... |
SELECT COUNT(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = "Mountain View" AND T3.city = "Palo Alto" | How many trips started from Mountain View city and ended at Palo Alto city? | CREATE TABLE station (city VARCHAR, id VARCHAR); CREATE TABLE trip (end_station_id VARCHAR, id VARCHAR); CREATE TABLE station (id VARCHAR, city VARCHAR); CREATE TABLE trip (start_station_id VARCHAR, id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
2478,
41,
6726,
584,
4280,
28027,
6,
3,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
1469,
41,
989,
834,
6682,
834,
23,
26,
584,
4280,
28027,
6,
3,
23,
26,
584,
4280,
280... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2478,
6157,
332,
536,
3,
15355,
3162,
1469,
6157,
332,
357,
3,
15355,
3162,
2478,
6157,
332,
519,
3,
15355,
3162,
1469,
6157,
332,
591,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
10... |
SELECT date FROM table_2446333_2 WHERE circuit = "Eastern Creek Raceway" | Name the date for eastern creek raceway | CREATE TABLE table_2446333_2 (
date VARCHAR,
circuit VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4448,
23360,
834,
357,
41,
833,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
11860,
10,
5570,
8,
833,
21,
13350,
25153,
1964,
1343,
11801,
10,
1,
0,
0,
0,
0,
0,
... | [
3,
23143,
14196,
833,
21680,
953,
834,
2266,
4448,
23360,
834,
357,
549,
17444,
427,
4558,
3274,
96,
427,
9,
13072,
7682,
10949,
1343,
121,
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... |
SELECT MAX(first_elected) FROM table_1341690_9 | What is the last year that someone is first elected? | CREATE TABLE table_1341690_9 (first_elected INTEGER) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
1298,
41,
14672,
834,
19971,
3,
21342,
17966,
61,
11860,
10,
363,
19,
8,
336,
215,
24,
841,
19,
166,
8160,
58,
11801,
10,
1,
0,
0,
0,
0,
0,
0,
0,
0,... | [
3,
23143,
14196,
4800,
4,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
2938,
2394,
834,
1298,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT AVG(T1.lat), AVG(T1.long) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id | What is the average latitude and longitude of the starting points of all trips? | CREATE TABLE trip (start_station_id VARCHAR); CREATE TABLE station (lat INTEGER, long INTEGER, id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
1469,
41,
10208,
834,
6682,
834,
23,
26,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
2478,
41,
40,
144,
3,
21342,
17966,
6,
307,
3,
21342,
17966,
6,
3,
23,
26,
584,
4280,
28027,
... | [
3,
23143,
14196,
71,
17217,
599,
382,
5411,
40,
144,
201,
71,
17217,
599,
382,
5411,
2961,
61,
21680,
2478,
6157,
332,
536,
3,
15355,
3162,
1469,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
10208,
834,
6682,
834,
23,
... |
SELECT MIN("Total Kurdistan List") FROM table_26850 | Name the least total kurdistan list | CREATE TABLE table_26850 (
"Governorate" text,
"Kurdistan Democratic Party" real,
"Patriotic Union of Kurdistan" real,
"Total Kurdistan List" real,
"Total Governorate Seats" real
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
17246,
41,
96,
27304,
127,
342,
121,
1499,
6,
96,
439,
450,
26,
343,
152,
10021,
3450,
121,
490,
6,
96,
20742,
9798,
3545,
13,
8333,
26,
343,
152,
121,
490,
6,
96,
3696,
... | [
3,
23143,
14196,
3,
17684,
599,
121,
3696,
1947,
8333,
26,
343,
152,
6792,
8512,
21680,
953,
834,
2688,
17246,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT incumbent FROM table_1341690_9 WHERE first_elected = 1940 | Who was the incumbent in 1940? | CREATE TABLE table_1341690_9 (incumbent VARCHAR, first_elected VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2394,
834,
1298,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
11860,
10,
2645,
47,
8,
28406,
16,
15830,
58,
11801,
10,
1,
0,
... | [
3,
23143,
14196,
28406,
21680,
953,
834,
23747,
2938,
2394,
834,
1298,
549,
17444,
427,
166,
834,
19971,
3274,
15830,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT COUNT(*) FROM book | How many books are there? | CREATE TABLE book (Id VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
484,
41,
196,
26,
584,
4280,
28027,
61,
11860,
10,
571,
186,
1335,
33,
132,
58,
11801,
10,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
484,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT MIN(week) FROM table_name_40 WHERE record = "8–5" | What is the earliest week that shows a record of 8 5? | CREATE TABLE table_name_40 (
week INTEGER,
record VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
471,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
3,
61,
11860,
10,
363,
19,
8,
3,
16454,
471,
24,
1267,
3,
9,
1368,
13,
505,
305,
58,
11801,
10,
1,
0,
... | [
3,
23143,
14196,
3,
17684,
599,
8041,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
1368,
3274,
96,
927,
104,
17395,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT party FROM table_1341718_14 WHERE incumbent = "Sidney R. Yates" | what is the party when the incumbent is sidney r. yates? | CREATE TABLE table_1341718_14 (party VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
2606,
834,
2534,
41,
8071,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
125,
19,
8,
1088,
116,
8,
28406,
19,
108,
26,
3186,
3,
52,
5,
3,
63,
6203,
... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
2517,
2606,
834,
2534,
549,
17444,
427,
28406,
3274,
96,
134,
23,
26,
3186,
391,
5,
4701,
1422,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT Writer FROM book ORDER BY Writer | List the writers of the books in ascending alphabetical order. | CREATE TABLE book (Writer VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
484,
41,
24965,
49,
584,
4280,
28027,
61,
11860,
10,
6792,
8,
5943,
13,
8,
1335,
16,
25200,
53,
20688,
1950,
455,
5,
11801,
10,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
3,
23143,
14196,
8733,
52,
21680,
484,
4674,
11300,
272,
476,
8733,
52,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT Carrier, COUNT(Carrier) FROM phone GROUP BY Carrier | Create a pie chart showing the number of carrier across carrier. | CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stoc... | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
512,
41,
3611,
834,
4309,
16,
17,
6,
3570,
1499,
6,
1174,
51,
834,
858,
834,
15,
51,
7379,
63,
15,
15,
7,
16,
17,
6,
1174,
51,
834,
858,
834,
6921,
7,
490,
6,
29153,
16,
17,
3,
61,... | [
3,
23143,
14196,
1184,
6711,
6,
2847,
17161,
599,
6936,
6711,
61,
21680,
951,
350,
4630,
6880,
272,
476,
1184,
6711,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... |
SELECT MAX(first_elected) FROM table_1341718_14 WHERE district = "Illinois 7" | what was the year first elected for district illinois 7? | CREATE TABLE table_1341718_14 (first_elected INTEGER, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
2606,
834,
2534,
41,
14672,
834,
19971,
3,
21342,
17966,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
125,
47,
8,
215,
166,
8160,
21,
3939,
3,
1092,
77,
32,
159,
489,
... | [
3,
23143,
14196,
4800,
4,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
2517,
2606,
834,
2534,
549,
17444,
427,
3939,
3274,
96,
196,
195,
77,
32,
159,
489,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... |
SELECT Title FROM book ORDER BY Issues | List the titles of the books in ascending order of issues. | CREATE TABLE book (Title VARCHAR, Issues VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
484,
41,
382,
155,
109,
584,
4280,
28027,
6,
13235,
7,
584,
4280,
28027,
61,
11860,
10,
6792,
8,
8342,
13,
8,
1335,
16,
25200,
53,
455,
13,
807,
5,
11801,
10,
1,
0,
0,
0,
0,
0,
0,
... | [
3,
23143,
14196,
11029,
21680,
484,
4674,
11300,
272,
476,
13235,
7,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.icd9_code = "56210" | how many patients whose admission type is emergency and diagnoses icd9 code is 56210? | 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 (
... | [
4398,
7,
10,
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,
3,
... | [
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... |
SELECT COUNT(incumbent) FROM table_1341718_14 WHERE candidates = "Phil Crane (R) 58.0% Edward A. Warman (D) 42.0%" | how many times was the candidates phil crane (r) 58.0% edward a. warman (d) 42.0%? | CREATE TABLE table_1341718_14 (incumbent VARCHAR, candidates VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
2606,
834,
2534,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
61,
11860,
10,
149,
186,
648,
47,
8,
4341,
3,
18118,
25126,
41,
52,
61,
3,
344... | [
3,
23143,
14196,
2847,
17161,
599,
77,
75,
5937,
295,
61,
21680,
953,
834,
23747,
2517,
2606,
834,
2534,
549,
17444,
427,
4341,
3274,
96,
23305,
18630,
15,
41,
448,
61,
3,
3449,
5,
6932,
8200,
71,
5,
1602,
348,
41,
308,
61,
6426,
... |
SELECT Title FROM book WHERE Writer <> "Elaine Lee" | What are the titles of the books whose writer is not "Elaine Lee"? | CREATE TABLE book (Title VARCHAR, Writer VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
484,
41,
382,
155,
109,
584,
4280,
28027,
6,
8733,
52,
584,
4280,
28027,
61,
11860,
10,
363,
33,
8,
8342,
13,
8,
1335,
3,
2544,
4346,
19,
59,
96,
10991,
7043,
5531,
121,
58,
11801,
10,
... | [
3,
23143,
14196,
11029,
21680,
484,
549,
17444,
427,
8733,
52,
3,
2,
3155,
96,
10991,
7043,
5531,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT COUNT("Series Number") FROM table_45278 WHERE "Original Air Date" < '1999' AND "Number of Episodes" > '7' AND "DVD Region 1 release date" = '16 april 2013' | How many series originally aired before 1999 with more than 7 episodes and a DVD Region 1 release date of 16 april 2013? | CREATE TABLE table_45278 (
"Series Number" real,
"Number of Episodes" real,
"Original Air Date" real,
"DVD Region 2 release date" text,
"DVD Region 1 release date" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
357,
3940,
41,
96,
12106,
7,
7720,
121,
490,
6,
96,
567,
5937,
49,
13,
16112,
7,
121,
490,
6,
96,
667,
3380,
10270,
1761,
7678,
121,
490,
6,
96,
13529,
308,
6163,
204,
... | [
3,
23143,
14196,
2847,
17161,
599,
121,
12106,
7,
7720,
8512,
21680,
953,
834,
2128,
357,
3940,
549,
17444,
427,
96,
667,
3380,
10270,
1761,
7678,
121,
3,
2,
3,
31,
2294,
3264,
31,
3430,
96,
567,
5937,
49,
13,
16112,
7,
121,
2490,... |
SELECT COUNT(candidates) FROM table_1341718_14 WHERE district = "Illinois 18" | how many times was it the district illinois 18? | CREATE TABLE table_1341718_14 (candidates VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
2606,
834,
2534,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
149,
186,
648,
47,
34,
8,
3939,
3,
1092,
77,
32,
159,
507,
58,
... | [
3,
23143,
14196,
2847,
17161,
599,
1608,
12416,
6203,
61,
21680,
953,
834,
23747,
2517,
2606,
834,
2534,
549,
17444,
427,
3939,
3274,
96,
196,
195,
77,
32,
159,
507,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT Title, Issues FROM book | What are the title and issues of the books? | CREATE TABLE book (Title VARCHAR, Issues VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
484,
41,
382,
155,
109,
584,
4280,
28027,
6,
13235,
7,
584,
4280,
28027,
61,
11860,
10,
363,
33,
8,
2233,
11,
807,
13,
8,
1335,
58,
11801,
10,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
3,
23143,
14196,
11029,
6,
13235,
7,
21680,
484,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT away FROM table_name_68 WHERE round = "q3" | What away is there for the q3 round? | CREATE TABLE table_name_68 (
away VARCHAR,
round VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
550,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
11860,
10,
363,
550,
19,
132,
21,
8,
3,
1824,
519,
1751,
58,
11801,
10,
1,
0,
0,
0,
0,
0,
0,
... | [
3,
23143,
14196,
550,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
1751,
3274,
96,
1824,
519,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT candidates FROM table_1341718_14 WHERE incumbent = "Ed Derwinski" | who were the candidates when the incumbent was ed derwinski? | CREATE TABLE table_1341718_14 (candidates VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
2606,
834,
2534,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
113,
130,
8,
4341,
116,
8,
28406,
47,
3,
15,
26,
74,
3757,
4009,... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2517,
2606,
834,
2534,
549,
17444,
427,
28406,
3274,
96,
427,
26,
660,
3757,
4009,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT Publication_Date FROM publication ORDER BY Price DESC | What are the dates of publications in descending order of price? | CREATE TABLE publication (Publication_Date VARCHAR, Price VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
5707,
41,
30931,
257,
834,
308,
342,
584,
4280,
28027,
6,
5312,
584,
4280,
28027,
61,
11860,
10,
363,
33,
8,
5128,
13,
10142,
16,
3,
30960,
455,
13,
594,
58,
11801,
10,
1,
0,
0,
0,
0,
... | [
3,
23143,
14196,
2575,
257,
834,
308,
342,
21680,
5707,
4674,
11300,
272,
476,
5312,
309,
25067,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT COUNT(*) FROM table_203_652 WHERE "score" = '1-0' | how many competitions had a score of 1-0 at most ? | CREATE TABLE table_203_652 (
id number,
"goal" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4122,
357,
41,
3,
23,
26,
381,
6,
96,
839,
138,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
121,... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
4122,
357,
549,
17444,
427,
96,
7,
9022,
121,
3274,
3,
31,
18930,
31,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT MIN(first_elected) FROM table_1341718_14 WHERE party = "Republican" AND candidates = "Robert H. Michel (R) 66.1% Rosa Lee Fox (D) 33.9%" | When was the first elected when the party was republican and the candidate were robert h. michel (r) 66.1% rosa lee fox (d) 33.9%? | CREATE TABLE table_1341718_14 (first_elected INTEGER, party VARCHAR, candidates VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
2606,
834,
2534,
41,
14672,
834,
19971,
3,
21342,
17966,
6,
1088,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
61,
11860,
10,
366,
47,
8,
166,
8160,
116,
8,
1088,
47... | [
3,
23143,
14196,
3,
17684,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
2517,
2606,
834,
2534,
549,
17444,
427,
1088,
3274,
96,
1649,
15727,
152,
121,
3430,
4341,
3274,
96,
24372,
49,
17,
454,
5,
9411,
41,
448,
61,
3,
3539,
... |
SELECT DISTINCT Publisher FROM publication WHERE Price > 5000000 | What are the distinct publishers of publications with price higher than 5000000? | CREATE TABLE publication (Publisher VARCHAR, Price INTEGER) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
5707,
41,
31009,
49,
584,
4280,
28027,
6,
5312,
3,
21342,
17966,
61,
11860,
10,
363,
33,
8,
6746,
18902,
13,
10142,
28,
594,
1146,
145,
2899,
19568,
58,
11801,
10,
1,
0,
0,
0,
0,
0,
0,... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
19816,
21680,
5707,
549,
17444,
427,
5312,
2490,
2899,
19568,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT COUNT("Silver") FROM table_66695 WHERE "Bronze" > '1' AND "Rank" < '5' | What is the total number of Silver for the Nation with more than 1 Bronze and a Rank less than 5? | CREATE TABLE table_66695 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3951,
755,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
3,
23143,
14196,
2847,
17161,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
3539,
3951,
755,
549,
17444,
427,
96,
22780,
29,
776,
121,
2490,
3,
31,
536,
31,
3430,
96,
22557,
121,
3,
2,
3,
31,
755,
31,
1,
0,
0,
0,
0,
0,
0,
... |
SELECT incumbent FROM table_1341707_45 WHERE district = "Texas 15" | Who is the incumbent in district Texas 15? | CREATE TABLE table_1341707_45 (incumbent VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
4560,
834,
2128,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
2645,
19,
8,
28406,
16,
3939,
2514,
627,
58,
11801,
10,
1,
0,
0... | [
3,
23143,
14196,
28406,
21680,
953,
834,
23747,
2517,
4560,
834,
2128,
549,
17444,
427,
3939,
3274,
96,
13598,
9,
7,
627,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1 | List the publisher of the publication with the highest price. | CREATE TABLE publication (Publisher VARCHAR, Price VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
5707,
41,
31009,
49,
584,
4280,
28027,
6,
5312,
584,
4280,
28027,
61,
11860,
10,
6792,
8,
14859,
13,
8,
5707,
28,
8,
2030,
594,
5,
11801,
10,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
3,
23143,
14196,
19816,
21680,
5707,
4674,
11300,
272,
476,
5312,
309,
25067,
8729,
12604,
209,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT "opponent#" FROM table_204_617 WHERE "date" > (SELECT "date" FROM table_204_617 WHERE "opponent#" = 'usc') ORDER BY "date" LIMIT 1 | who was the sooners opponent after usc ? | CREATE TABLE table_204_617 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
2517,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
4663,
121,
1499,
6,
96,
6254,
4663,
121,
1499,
6,
96,
3585,
121,
1499,
6,
96,
17,
2... | [
3,
23143,
14196,
96,
32,
102,
9977,
4663,
121,
21680,
953,
834,
26363,
834,
948,
2517,
549,
17444,
427,
96,
5522,
121,
2490,
41,
23143,
14196,
96,
5522,
121,
21680,
953,
834,
26363,
834,
948,
2517,
549,
17444,
427,
96,
32,
102,
9977... |
SELECT district FROM table_1341718_44 WHERE incumbent = "Earle Cabell" | Which district elected incumbent Earle Cabell? | CREATE TABLE table_1341718_44 (district VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
2606,
834,
3628,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
4073,
3939,
8160,
28406,
22101,
15,
1336,
7708,
58,
11801,
10,
1,
0,
... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2517,
2606,
834,
3628,
549,
17444,
427,
28406,
3274,
96,
427,
291,
109,
1336,
7708,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... |
SELECT Publication_Date FROM publication ORDER BY Price LIMIT 3 | List the publication dates of publications with 3 lowest prices. | CREATE TABLE publication (Publication_Date VARCHAR, Price VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
5707,
41,
30931,
257,
834,
308,
342,
584,
4280,
28027,
6,
5312,
584,
4280,
28027,
61,
11860,
10,
6792,
8,
5707,
5128,
13,
10142,
28,
220,
7402,
1596,
5,
11801,
10,
1,
0,
0,
0,
0,
0,
0,... | [
3,
23143,
14196,
2575,
257,
834,
308,
342,
21680,
5707,
4674,
11300,
272,
476,
5312,
8729,
12604,
220,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... |
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'oxycodone (sustained release)' AND DATETIME(prescriptions.startda... | list the top five most common drugs that patients were prescribed within 2 months after being prescribed oxycodone (sustained release) since 1 year ago. | CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE cost (
row_id number... | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
3,
26,
834,
447,
26,
834,
25930,
18716,
7,
41,
7358,
834,
23,
26,
381,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
205,
4386,
6048,... | [
3,
23143,
14196,
3,
17,
5787,
26,
13534,
21680,
41,
23143,
14196,
3,
17,
4416,
26,
13534,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,
6157,
3,
75,
536,... |
SELECT result FROM table_1341718_44 WHERE incumbent = "Ray Roberts" | What was the result when Ray Roberts was elected? | CREATE TABLE table_1341718_44 (result VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
2606,
834,
3628,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
363,
47,
8,
741,
116,
8279,
2715,
7,
47,
8160,
58,
11801,
10,
1,
... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
2517,
2606,
834,
3628,
549,
17444,
427,
28406,
3274,
96,
25619,
2715,
7,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT T1.Title, T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID | Show the title and publication dates of books. | CREATE TABLE book (Title VARCHAR, Book_ID VARCHAR); CREATE TABLE publication (Publication_Date VARCHAR, Book_ID VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
484,
41,
382,
155,
109,
584,
4280,
28027,
6,
3086,
834,
4309,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
5707,
41,
30931,
257,
834,
308,
342,
584,
4280,
28027,
6,
3086,
834,
4309,
... | [
3,
23143,
14196,
332,
5411,
382,
155,
109,
6,
332,
4416,
30931,
257,
834,
308,
342,
21680,
484,
6157,
332,
536,
3,
15355,
3162,
5707,
6157,
332,
357,
9191,
332,
5411,
13355,
834,
4309,
3274,
332,
4416,
13355,
834,
4309,
1,
0,
0,
0... |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((flight.stops = 0) AND date_day.day_number = 27 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AN... | list all flights on sunday from SAN FRANCISCO to PITTSBURGH nonstop | CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_co... | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
847,
41,
847,
834,
5525,
1152,
16,
17,
6,
847,
834,
4350,
1499,
3,
61,
205,
4386,
6048,
332,
17098,
11545,
41,
11545,
834,
4978,
3,
4331,
4059,
6,
11545,
834,
4350,
1499,
6,
2232,
1499,
... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
3777,
5,
89,
2242,
834,
23,
26,
21680,
3761,
834,
5114,
6157,
3,
18375,
14536,
834,
18062,
553,
8906,
834,
632,
6,
3761,
834,
5114,
6157,
3,
18375,
14536,
834,
18062,
553,
8906,
834,
4347,
690... |
SELECT MAX(first_elected) FROM table_1341738_11 | What is the highest year that a candidate was first elected? | CREATE TABLE table_1341738_11 (first_elected INTEGER) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
3747,
834,
2596,
41,
14672,
834,
19971,
3,
21342,
17966,
61,
11860,
10,
363,
19,
8,
2030,
215,
24,
3,
9,
4775,
47,
166,
8160,
58,
11801,
10,
1,
0,
0,
0,
0,
0,
... | [
3,
23143,
14196,
4800,
4,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
2517,
3747,
834,
2596,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T2.Price > 4000000 | Show writers who have published a book with price more than 4000000. | CREATE TABLE publication (Book_ID VARCHAR, Price INTEGER); CREATE TABLE book (Writer VARCHAR, Book_ID VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
5707,
41,
13355,
834,
4309,
584,
4280,
28027,
6,
5312,
3,
21342,
17966,
3670,
205,
4386,
6048,
332,
17098,
484,
41,
24965,
49,
584,
4280,
28027,
6,
3086,
834,
4309,
584,
4280,
28027,
61,
118... | [
3,
23143,
14196,
332,
5411,
24965,
49,
21680,
484,
6157,
332,
536,
3,
15355,
3162,
5707,
6157,
332,
357,
9191,
332,
5411,
13355,
834,
4309,
3274,
332,
4416,
13355,
834,
4309,
549,
17444,
427,
332,
4416,
345,
4920,
2490,
4837,
19568,
1... |
SELECT COUNT("Date") FROM table_29902 WHERE "High rebounds" = 'Marcus Camby (18)' | How many times was the high rebounds by marcus camby (18)? | CREATE TABLE table_29902 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2394,
357,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
237... | [
3,
23143,
14196,
2847,
17161,
599,
121,
308,
342,
8512,
21680,
953,
834,
3166,
2394,
357,
549,
17444,
427,
96,
21417,
3,
23768,
121,
3274,
3,
31,
7286,
1071,
7,
5184,
969,
9323,
61,
31,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT candidates FROM table_1341718_36 WHERE incumbent = "Bill Harsha" | Incumbent Bill Harsha was the winner in an election in which the candidates were who? | CREATE TABLE table_1341718_36 (candidates VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
2606,
834,
3420,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
1542,
5937,
295,
3259,
3504,
7,
1024,
47,
8,
4668,
16,
46,
4356,
... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2517,
2606,
834,
3420,
549,
17444,
427,
28406,
3274,
96,
279,
1092,
3504,
7,
1024,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Price DESC | Show the titles of books in descending order of publication price. | CREATE TABLE publication (Book_ID VARCHAR, Price VARCHAR); CREATE TABLE book (Title VARCHAR, Book_ID VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
5707,
41,
13355,
834,
4309,
584,
4280,
28027,
6,
5312,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
484,
41,
382,
155,
109,
584,
4280,
28027,
6,
3086,
834,
4309,
584,
4280,
28027,
61... | [
3,
23143,
14196,
332,
5411,
382,
155,
109,
21680,
484,
6157,
332,
536,
3,
15355,
3162,
5707,
6157,
332,
357,
9191,
332,
5411,
13355,
834,
4309,
3274,
332,
4416,
13355,
834,
4309,
4674,
11300,
272,
476,
332,
4416,
345,
4920,
309,
25067... |
SELECT "Shirt sponsor" FROM table_29469 WHERE "Head coach" = 'Samad Marfavi' | What sponsor has the head coach Samad Marfavi? | CREATE TABLE table_29469 (
"Team" text,
"Head coach" text,
"Team captain" text,
"Kit maker" text,
"Shirt sponsor" text,
"Past Season" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4240,
3951,
41,
96,
18699,
121,
1499,
6,
96,
3845,
9,
26,
3763,
121,
1499,
6,
96,
18699,
14268,
121,
1499,
6,
96,
439,
155,
13762,
121,
1499,
6,
96,
16671,
9037,
121,
1499... | [
3,
23143,
14196,
96,
16671,
9037,
121,
21680,
953,
834,
357,
4240,
3951,
549,
17444,
427,
96,
3845,
9,
26,
3763,
121,
3274,
3,
31,
134,
9,
11374,
1571,
89,
2960,
31,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT party FROM table_1341738_36 WHERE first_elected = 1954 | What was the party of the first elected candidate in 1954? | CREATE TABLE table_1341738_36 (party VARCHAR, first_elected VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
3747,
834,
3420,
41,
8071,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
11860,
10,
363,
47,
8,
1088,
13,
8,
166,
8160,
4775,
16,
24970,
58,
11801,
10,... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
2517,
3747,
834,
3420,
549,
17444,
427,
166,
834,
19971,
3274,
24970,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*) > 1 | Show publishers that have more than one publication. | CREATE TABLE publication (Publisher VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
5707,
41,
31009,
49,
584,
4280,
28027,
61,
11860,
10,
3111,
18902,
24,
43,
72,
145,
80,
5707,
5,
11801,
10,
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,
19816,
21680,
5707,
350,
4630,
6880,
272,
476,
19816,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
209,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT demographic.dob, demographic.diagnosis FROM demographic WHERE demographic.name = "Brian Brock" | what is date of birth and primary disease of subject name brian brock? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | [
4398,
7,
10,
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,
3,
... | [
3,
23143,
14196,
14798,
5,
26,
32,
115,
6,
14798,
5,
25930,
4844,
159,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
279,
5288,
26349,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT COUNT(district) FROM table_1341738_36 WHERE incumbent = "Donald D. Clancy" | How many districts does Donald D. Clancy represent? | CREATE TABLE table_1341738_36 (district VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
3747,
834,
3420,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
571,
186,
14126,
405,
7459,
309,
5,
4779,
6833,
4221,
58,
11801,
10,
... | [
3,
23143,
14196,
2847,
17161,
599,
26,
23,
20066,
61,
21680,
953,
834,
23747,
2517,
3747,
834,
3420,
549,
17444,
427,
28406,
3274,
96,
13843,
138,
26,
309,
5,
4779,
6833,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT Publisher, COUNT(*) FROM publication GROUP BY Publisher | Show different publishers together with the number of publications they have. | CREATE TABLE publication (Publisher VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
5707,
41,
31009,
49,
584,
4280,
28027,
61,
11860,
10,
3111,
315,
18902,
544,
28,
8,
381,
13,
10142,
79,
43,
5,
11801,
10,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
3,
23143,
14196,
19816,
6,
2847,
17161,
599,
1935,
61,
21680,
5707,
350,
4630,
6880,
272,
476,
19816,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" GROUP BY date_of_enrolment ORDER BY date_of_enrolment DESC | Find the number of the enrollment date for all the tests that have 'Pass' result, and could you order x axis from high to low order please? | CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Student_Tests_Taken (
registration_id IN... | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
4375,
41,
1236,
834,
23,
26,
3,
21342,
17966,
6,
833,
834,
858,
834,
5200,
257,
309,
6048,
382,
15382,
6,
833,
834,
858,
834,
521,
4377,
834,
2152,
106,
309,
6048,
382,
15382,
6,
11255,
... | [
3,
23143,
14196,
833,
834,
858,
834,
35,
3491,
297,
6,
2847,
17161,
599,
5522,
834,
858,
834,
35,
3491,
297,
61,
21680,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
6157,
332,
536,
3,
15355,
3162,
6341,
834,
382,
222,
7,
834,
... |
SELECT party FROM table_1341738_34 WHERE incumbent = "Lawrence H. Fountain" | Which party is Lawrence H. Fountain part of? | CREATE TABLE table_1341738_34 (party VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
3747,
834,
3710,
41,
8071,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
4073,
1088,
19,
16617,
454,
5,
30566,
294,
13,
58,
11801,
10,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
2517,
3747,
834,
3710,
549,
17444,
427,
28406,
3274,
96,
3612,
210,
52,
1433,
454,
5,
30566,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1 | Please show the most common publication date. | CREATE TABLE publication (Publication_Date VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
5707,
41,
30931,
257,
834,
308,
342,
584,
4280,
28027,
61,
11860,
10,
863,
504,
8,
167,
1017,
5707,
833,
5,
11801,
10,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
3,
23143,
14196,
2575,
257,
834,
308,
342,
21680,
5707,
350,
4630,
6880,
272,
476,
2575,
257,
834,
308,
342,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT "Opponent" FROM table_61636 WHERE "Arena" = 'honda center' AND "Date" = 'march 29' | What is the Opponent at the Honda Center on March 29? | CREATE TABLE table_61636 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Arena" text,
"Points" real
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2938,
3420,
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,
... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
948,
2938,
3420,
549,
17444,
427,
96,
188,
1536,
9,
121,
3274,
3,
31,
31782,
1530,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
51,
7064,
2838,
31,
1,
0,
0,
0,
0,
0,
0,... |
SELECT first_elected FROM table_1341738_34 WHERE district = "North Carolina 8" | Who was the first person elected in North Carolina 8? | CREATE TABLE table_1341738_34 (first_elected VARCHAR, district VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
3747,
834,
3710,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
11860,
10,
2645,
47,
8,
166,
568,
8160,
16,
1117,
5089,
505,
58,
11801,
10,
... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
23747,
2517,
3747,
834,
3710,
549,
17444,
427,
3939,
3274,
96,
22969,
5089,
505,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*) > 1 | List the writers who have written more than one book. | CREATE TABLE book (Writer VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
484,
41,
24965,
49,
584,
4280,
28027,
61,
11860,
10,
6792,
8,
5943,
113,
43,
1545,
72,
145,
80,
484,
5,
11801,
10,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
3,
23143,
14196,
8733,
52,
21680,
484,
350,
4630,
6880,
272,
476,
8733,
52,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
209,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT nhl_team FROM table_2850912_10 WHERE player = "Ron Annear" | Which team drafted Ron Annear? | CREATE TABLE table_2850912_10 (
nhl_team VARCHAR,
player VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
1752,
4729,
357,
834,
1714,
41,
3,
29,
107,
40,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
11860,
10,
4073,
372,
3,
23505,
10297,
8977,
291,
58,
11801,... | [
3,
23143,
14196,
3,
29,
107,
40,
834,
11650,
21680,
953,
834,
2577,
1752,
4729,
357,
834,
1714,
549,
17444,
427,
1959,
3274,
96,
448,
106,
8977,
291,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT candidates FROM table_1341738_34 WHERE first_elected = "1952" AND party = "Democratic" | who was the candidate elected to the democratic party in 1952? | CREATE TABLE table_1341738_34 (candidates VARCHAR, first_elected VARCHAR, party VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
3747,
834,
3710,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
61,
11860,
10,
113,
47,
8,
4775,
8160,
12,
... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
2517,
3747,
834,
3710,
549,
17444,
427,
166,
834,
19971,
3274,
96,
22464,
357,
121,
3430,
1088,
3274,
96,
19679,
447,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT Title FROM book WHERE NOT Book_ID IN (SELECT Book_ID FROM publication) | List the titles of books that are not published. | CREATE TABLE book (Title VARCHAR, Book_ID VARCHAR); CREATE TABLE publication (Title VARCHAR, Book_ID VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
484,
41,
382,
155,
109,
584,
4280,
28027,
6,
3086,
834,
4309,
584,
4280,
28027,
3670,
205,
4386,
6048,
332,
17098,
5707,
41,
382,
155,
109,
584,
4280,
28027,
6,
3086,
834,
4309,
584,
4280,
... | [
3,
23143,
14196,
11029,
21680,
484,
549,
17444,
427,
4486,
3086,
834,
4309,
3388,
41,
23143,
14196,
3086,
834,
4309,
21680,
5707,
61,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT COUNT(wins) FROM table_name_13 WHERE podiums > 1 AND races = 9 AND season > 1984 | How many wins has a podiums greater than 1 and 9 as the races with a season after 1984? | CREATE TABLE table_name_13 (
wins VARCHAR,
season VARCHAR,
podiums VARCHAR,
races VARCHAR
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
9204,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
22828,
7,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
3,
61,
11860,
10,
571,
186,
9204,
65,
3,
9,
22... | [
3,
23143,
14196,
2847,
17161,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
22828,
7,
2490,
209,
3430,
10879,
3274,
668,
3430,
774,
2490,
13480,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT district FROM table_1341738_19 WHERE incumbent = "Joe Waggonner" | What district did Joe Waggonner belong to? | CREATE TABLE table_1341738_19 (district VARCHAR, incumbent VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
3747,
834,
2294,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
11860,
10,
363,
3939,
410,
4967,
3129,
4102,
106,
687,
13000,
12,
58,
11801,
10,
... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2517,
3747,
834,
2294,
549,
17444,
427,
28406,
3274,
96,
683,
32,
15,
3129,
4102,
106,
687,
121,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT Publisher FROM publication WHERE Price > 10000000 INTERSECT SELECT Publisher FROM publication WHERE Price < 5000000 | Show the publishers that have publications with price higher than 10000000 and publications with price lower than 5000000. | CREATE TABLE publication (Publisher VARCHAR, Price INTEGER) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
5707,
41,
31009,
49,
584,
4280,
28027,
6,
5312,
3,
21342,
17966,
61,
11860,
10,
3111,
8,
18902,
24,
43,
10142,
28,
594,
1146,
145,
5580,
19568,
11,
10142,
28,
594,
1364,
145,
2899,
19568,
... | [
3,
23143,
14196,
19816,
21680,
5707,
549,
17444,
427,
5312,
2490,
5580,
19568,
3,
21342,
5249,
14196,
3,
23143,
14196,
19816,
21680,
5707,
549,
17444,
427,
5312,
3,
2,
2899,
19568,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT COUNT("album") FROM table_204_244 | how many album entries are there ? | CREATE TABLE table_204_244 (
id number,
"year" number,
"album" text,
"peak\nus" number,
"peak\nus\nholiday" number,
"certifications\n(sales threshold)" text
) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
3628,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
23703,
121,
1499,
6,
96,
14661,
2,
29,
302,
121,
381,
6,
96,
14661,
2,
29,
302,
2,
29,
2831,
23,
... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23703,
8512,
21680,
953,
834,
26363,
834,
357,
3628,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SELECT incumbent FROM table_1341738_19 WHERE first_elected = 1940 | What is the name of the incumbent who was first eleccted in 1940? | CREATE TABLE table_1341738_19 (incumbent VARCHAR, first_elected VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
3747,
834,
2294,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
11860,
10,
363,
19,
8,
564,
13,
8,
28406,
113,
47,
166,
3,
400,... | [
3,
23143,
14196,
28406,
21680,
953,
834,
23747,
2517,
3747,
834,
2294,
549,
17444,
427,
166,
834,
19971,
3274,
15830,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
SELECT COUNT(DISTINCT Publication_Date) FROM publication | What is the number of distinct publication dates? | CREATE TABLE publication (Publication_Date VARCHAR) | [
4398,
7,
10,
205,
4386,
6048,
332,
17098,
5707,
41,
30931,
257,
834,
308,
342,
584,
4280,
28027,
61,
11860,
10,
363,
19,
8,
381,
13,
6746,
5707,
5128,
58,
11801,
10,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
2575,
257,
834,
308,
342,
61,
21680,
5707,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.