NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What song title was written by Kal Mann and Bernie Lowe? | CREATE TABLE table_name_14 (song_title VARCHAR, writer_s_ VARCHAR) | SELECT song_title FROM table_name_14 WHERE writer_s_ = "kal mann and bernie lowe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
7,
2444,
834,
21869,
584,
4280,
28027,
6,
4346,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2324,
2233,
47,
1545,
57,
5740,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2324,
834,
21869,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
4346,
834,
7,
834,
3274,
96,
4766,
3,
2434,
11,
36,
23752,
731,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What school did the player attend who's hometown was Montvale, NJ? | CREATE TABLE table_17056 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
) | SELECT "School" FROM table_17056 WHERE "Hometown" = 'Montvale, NJ' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
4834,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
6858,
279,
21409,
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,
29364,
121,
21680,
953,
834,
536,
2518,
4834,
549,
17444,
427,
96,
19040,
3540,
121,
3274,
3,
31,
9168,
17,
2165,
15,
6,
11522,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the emission rating in Mid-Atlantic South for the vehicle that was rated 300 g/mi (186 g/km) in the Midwest? | CREATE TABLE table_20552 (
"Vehicle" text,
"EPA rated All-electric range" text,
"EPA rated combined fuel economy" text,
"Alaska ( Juneau )" text,
"California (San Francisco)" text,
"Mid-Atlantic South (Washington, D.C.)" text,
"U.S. national average electric mix" text,
"Southeast (Atlant... | SELECT "Mid-Atlantic South (Washington, D.C.)" FROM table_20552 WHERE "Midwest (Des Moines)" = '300 g/mi (186 g/km)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
5373,
41,
96,
553,
15,
107,
23,
2482,
121,
1499,
6,
96,
13986,
3,
4094,
432,
18,
17470,
620,
121,
1499,
6,
96,
13986,
3,
4094,
3334,
2914,
2717,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
23,
26,
18,
188,
17,
1618,
1225,
1013,
41,
518,
3198,
6029,
6,
309,
5,
254,
5,
61,
121,
21680,
953,
834,
23201,
5373,
549,
17444,
427,
96,
329,
23,
26,
12425,
41,
2962,
7,
1290,
4477,
61,
121,
3274,
3... |
How many students are enrolled in the class taught by some professor from the accounting department? | CREATE TABLE department (
dept_code VARCHAR,
dept_name VARCHAR
)
CREATE TABLE CLASS (
class_code VARCHAR,
crs_code VARCHAR
)
CREATE TABLE course (
crs_code VARCHAR,
dept_code VARCHAR
)
CREATE TABLE enroll (
class_code VARCHAR
) | SELECT COUNT(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4978,
584,
4280,
28027,
6,
20,
102,
17,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
31598,
41,
853,
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,
2847,
17161,
599,
1935,
61,
21680,
3,
31598,
6157,
332,
536,
3,
15355,
3162,
17990,
6157,
332,
357,
9191,
332,
5411,
4057,
834,
4978,
3274,
332,
4416,
4057,
834,
4978,
3,
15355,
3162,
503,
6157,
332,
519,
9191,
332,
... |
Where was the game held on August 20, 2004? | CREATE TABLE table_name_78 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_78 WHERE date = "august 20, 2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
15098,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
467,
1213,
30,
1660,
16047,
4406,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
833,
3274,
96,
402,
17198,
16047,
4406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the benue house made of? | CREATE TABLE table_11464746_1 (composition VARCHAR, house_name VARCHAR) | SELECT composition FROM table_11464746_1 WHERE house_name = "Benue" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4448,
4177,
4448,
834,
536,
41,
287,
4718,
584,
4280,
28027,
6,
629,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
36,
29,
76,
15,
629,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5761,
21680,
953,
834,
2596,
4448,
4177,
4448,
834,
536,
549,
17444,
427,
629,
834,
4350,
3274,
96,
279,
35,
76,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the platform when the developer was Telltale Games? | CREATE TABLE table_name_43 (platform_s_ VARCHAR, developer_s_ VARCHAR) | SELECT platform_s_ FROM table_name_43 WHERE developer_s_ = "telltale games" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
29100,
834,
7,
834,
584,
4280,
28027,
6,
7523,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1585,
116,
8,
7523,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1585,
834,
7,
834,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
7523,
834,
7,
834,
3274,
96,
6714,
11686,
1031,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
has patient 030-42006 ever undergone a hypotonic fluid administration - d5 half-normal saline during this hospital visit? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE cost (
costid num... | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-42006' AND patient.hospitaldischargetime IS NULL)) AND treatment.treatme... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
What Londongborough has a Dialcode of 01992? | CREATE TABLE table_name_15 (londonborough VARCHAR, dialcode VARCHAR) | SELECT londonborough FROM table_name_15 WHERE dialcode = "01992" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
40,
106,
2029,
12823,
584,
4280,
28027,
6,
10362,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1524,
122,
12823,
65,
3,
9,
5267,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
40,
106,
2029,
12823,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
10362,
4978,
3274,
96,
4542,
3264,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the nationality of the swimmer in the semifinal with a time of 29.51? | CREATE TABLE table_49136 (
"Event" text,
"Date" text,
"Round" text,
"Name" text,
"Nationality" text,
"Time" text,
"Record" text
) | SELECT "Nationality" FROM table_49136 WHERE "Round" = 'semifinal' AND "Time" = '29.51' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
23459,
41,
96,
427,
2169,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24732,
485,
121,
21680,
953,
834,
3647,
23459,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
7,
15,
51,
23,
12406,
31,
3430,
96,
13368,
121,
3274,
3,
31,
3166,
5,
5553,
31,
1,
-100,
-100,
-100,
-100,... |
Find the number of medications prescribed for each brand. | CREATE TABLE nurse (
employeeid number,
name text,
position text,
registered boolean,
ssn number
)
CREATE TABLE appointment (
appointmentid number,
patient number,
prepnurse number,
physician number,
start time,
end time,
examinationroom text
)
CREATE TABLE on_call (
... | SELECT COUNT(*), T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10444,
41,
3490,
23,
26,
381,
6,
564,
1499,
6,
1102,
1499,
6,
3366,
3,
12840,
109,
152,
6,
3,
7,
7,
29,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4141,
41,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
332,
5411,
4350,
21680,
7757,
6157,
332,
536,
3,
15355,
3162,
27766,
7,
6157,
332,
357,
9191,
332,
5411,
4978,
3274,
332,
4416,
526,
17530,
350,
4630,
6880,
272,
476,
332,
5411,
12164,
1,
... |
What was the title of the episode that martin worth wrote the story for? | CREATE TABLE table_41524 (
"Episode" real,
"Title" text,
"Story" text,
"Adapted by" text,
"Director" text,
"Airdate" text,
"Exists?" text
) | SELECT "Title" FROM table_41524 WHERE "Story" = 'martin worth' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
1808,
2266,
41,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
134,
10972,
121,
1499,
6,
96,
14808,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
591,
1808,
2266,
549,
17444,
427,
96,
134,
10972,
121,
3274,
3,
31,
1635,
17,
77,
1494,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Career SR of the year that held the masters series Sr tournament | CREATE TABLE table_name_62 (career_sr VARCHAR, tournament VARCHAR) | SELECT career_sr FROM table_name_62 WHERE tournament = "masters series sr" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
2864,
49,
834,
7,
52,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
15151,
3,
6857,
13,
8,
215,
24,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1415,
834,
7,
52,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
5892,
3274,
96,
7429,
7,
939,
3,
7,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the mix artist for the closing party setlist where artist 1 is Dillinja and Skibadee? | CREATE TABLE table_29264319_1 (
mix_artist VARCHAR,
setlist VARCHAR,
artist_1 VARCHAR
) | SELECT mix_artist FROM table_29264319_1 WHERE setlist = "Closing Party" AND artist_1 = "Dillinja and Skibadee" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2688,
4906,
2294,
834,
536,
41,
2153,
834,
1408,
343,
584,
4280,
28027,
6,
356,
3350,
584,
4280,
28027,
6,
2377,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
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,
2153,
834,
1408,
343,
21680,
953,
834,
3166,
2688,
4906,
2294,
834,
536,
549,
17444,
427,
356,
3350,
3274,
96,
254,
2298,
53,
3450,
121,
3430,
2377,
834,
536,
3274,
96,
308,
1092,
77,
1191,
11,
7409,
5514,
15,
15,
... |
what is diagnoses icd9 code of subject id 3343? | 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 prescription... | SELECT diagnoses.icd9_code FROM diagnoses WHERE diagnoses.subject_id = "3343" | [
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,
18730,
7,
5,
447,
26,
1298,
834,
4978,
21680,
18730,
7,
549,
17444,
427,
18730,
7,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4201,
4906,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give the number of patients of hispanic/latino-puerto rican ethnicity who were admitted as newborn. | 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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "NEWBORN" AND demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
4171,
518,
8471,
14151,
121,
3430,
14798,
5,
15,
189,
2532,
48... |
What is the average silver with more than 0 gold, a Rank of 1, and a Total smaller than 30? | CREATE TABLE table_80074 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Silver") FROM table_80074 WHERE "Gold" > '0' AND "Rank" = '1' AND "Total" < '30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
6192,
4581,
41,
96,
22557,
121,
1499,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
6192,
4581,
549,
17444,
427,
96,
23576,
121,
2490,
3,
31,
632,
31,
3430,
96,
22557,
121,
3274,
3,
31,
536,
31,
3430,
96,
3696,
1947,
121,
3,
2,
3,
31,
... |
Name the sum of grid with laps more than 97 | CREATE TABLE table_38668 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
) | SELECT SUM("Grid") FROM table_38668 WHERE "Laps" > '97' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3840,
3651,
41,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
13313,
26,
8512,
21680,
953,
834,
519,
3840,
3651,
549,
17444,
427,
96,
3612,
102,
7,
121,
2490,
3,
31,
4327,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the sum of year for connaught engineering and points less than 0 | CREATE TABLE table_name_49 (year INTEGER, entrant VARCHAR, points VARCHAR) | SELECT SUM(year) FROM table_name_49 WHERE entrant = "connaught engineering" AND points < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
1201,
3,
21342,
17966,
6,
3,
295,
3569,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4505,
13,
215,
21,
975,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
3,
295,
3569,
3274,
96,
1018,
29,
9313,
3867,
121,
3430,
979,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the leading scorer when the attendance is more than 12,107 on 4 april 2008 | CREATE TABLE table_11227 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | SELECT "Leading scorer" FROM table_11227 WHERE "Attendance" > '12,107' AND "Date" = '4 april 2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
357,
2555,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2796,
9,
26,
53,
2604,
52,
121,
21680,
953,
834,
2596,
357,
2555,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
2122,
6,
18057,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
591,
3,
9,
2246,
... |
What is the Date of the 1999 fifa confederations cup? | CREATE TABLE table_name_45 (
date VARCHAR,
competition VARCHAR
) | SELECT date FROM table_name_45 WHERE competition = "1999 fifa confederations cup" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
833,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7678,
13,
8,
5247,
361,
89,
9,
975,
16812,
1628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
2259,
3274,
96,
2294,
3264,
361,
89,
9,
975,
16812,
1628,
4119,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the nationality of Duke? | CREATE TABLE table_50098 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) | SELECT "Nationality" FROM table_50098 WHERE "School/Club Team" = 'duke' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2560,
3916,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
3,
13313,
5271,
4664,
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,
24732,
485,
121,
21680,
953,
834,
2560,
3916,
549,
17444,
427,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
1259,
1050,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Compare the total number of trains in each name by a bar graph, sort by the total number in ascending. | CREATE TABLE railway (
Railway_ID int,
Railway text,
Builder text,
Built text,
Wheels text,
Location text,
ObjectNumber text
)
CREATE TABLE manager (
Manager_ID int,
Name text,
Country text,
Working_year_starts text,
Age int,
Level int
)
CREATE TABLE railway_manage ... | SELECT Name, COUNT(Name) FROM train GROUP BY Name ORDER BY COUNT(Name) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14421,
41,
18025,
834,
4309,
16,
17,
6,
18025,
1499,
6,
16799,
1499,
6,
14862,
1499,
6,
10707,
7,
1499,
6,
10450,
1499,
6,
3,
17057,
567,
5937,
49,
1499,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
23954,
61,
21680,
2412,
350,
4630,
6880,
272,
476,
5570,
4674,
11300,
272,
476,
2847,
17161,
599,
23954,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Were there Bulletins to all contacts of the proprietary license created by Microsoft with no transport layer of security? | CREATE TABLE table_name_43 (bulletins_to_all_contacts VARCHAR, creator VARCHAR, transport_layer_security VARCHAR, license VARCHAR) | SELECT bulletins_to_all_contacts FROM table_name_43 WHERE transport_layer_security = "no" AND license = "proprietary" AND creator = "microsoft" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
6724,
1655,
77,
7,
834,
235,
834,
1748,
834,
27608,
7,
584,
4280,
28027,
6,
9931,
584,
4280,
28027,
6,
1855,
834,
18270,
834,
19361,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11126,
77,
7,
834,
235,
834,
1748,
834,
27608,
7,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1855,
834,
18270,
834,
19361,
3274,
96,
29,
32,
121,
3430,
3344,
3274,
96,
19453,
63,
121,
3430,
9931,
3274,
96,
... |
What is the total number of totals for nations with 1 silver and more than 1 bronze? | CREATE TABLE table_13370 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT COUNT("Total") FROM table_13370 WHERE "Bronze" > '1' AND "Silver" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
22520,
41,
96,
22557,
121,
1499,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
8512,
21680,
953,
834,
2368,
22520,
549,
17444,
427,
96,
22780,
29,
776,
121,
2490,
3,
31,
536,
31,
3430,
96,
134,
173,
624,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,... |
Name the number of population for врбас | CREATE TABLE table_2562572_20 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR) | SELECT COUNT(population__2011_) FROM table_2562572_20 WHERE cyrillic_name_other_names = "Врбас" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
1755,
41,
9791,
7830,
834,
834,
13907,
834,
584,
4280,
28027,
6,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
584,
4280,
28027,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9791,
7830,
834,
834,
13907,
834,
61,
21680,
953,
834,
19337,
1828,
5865,
834,
1755,
549,
17444,
427,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
3274,
96,
2,
8452,
2,
2533,
534... |
In what year was Xavier Malisse the runner-up with scores of 4–6, 6–4, [8–10]? | CREATE TABLE table_name_65 (year VARCHAR, outcome VARCHAR, score VARCHAR) | SELECT year FROM table_name_65 WHERE outcome = "runner-up" AND score = "4–6, 6–4, [8–10]" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
1201,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
215,
47,
3,
4,
9,
5144,
2148,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
6138,
3274,
96,
10806,
18,
413,
121,
3430,
2604,
3274,
96,
591,
104,
11071,
431,
104,
8525,
784,
927,
104,
1714,
908,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the gender for the person that recieved over 11,542 votes in pasadena? | CREATE TABLE table_66812 (
"Riding" text,
"Candidate's Name" text,
"Gender" text,
"Residence" text,
"Occupation" text,
"Votes" real,
"Rank" text
) | SELECT "Gender" FROM table_66812 WHERE "Votes" > '11,542' AND "Residence" = 'pasadena' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
4959,
357,
41,
96,
448,
12469,
121,
1499,
6,
96,
14050,
12416,
342,
31,
7,
5570,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
1649,
1583,
3772,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
517,
3868,
121,
21680,
953,
834,
3539,
4959,
357,
549,
17444,
427,
96,
553,
32,
1422,
121,
2490,
3,
31,
2596,
6,
5062,
357,
31,
3430,
96,
1649,
1583,
3772,
121,
3274,
3,
31,
8020,
9,
537,
9,
31,
1,
-100,
-... |
Out of total number of patients who had incision of vessel, lower limb arteries, how many of them were born before 2167? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2167" AND procedures.long_title = "Incision of vessel, lower limb arteries" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
give the number of white patients who stayed in the hospital for more than 7 days. | 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
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.days_stay > "7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
15313,
14871,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
96,
... |
Who was the partner when the score was 7 5, 7 6 (7 5)? | CREATE TABLE table_27427 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Partner" FROM table_27427 WHERE "Score" = '7–5, 7–6 (7–5)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
591,
2555,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13725,
687,
121,
21680,
953,
834,
2555,
591,
2555,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
940,
104,
11116,
489,
104,
948,
13649,
104,
9120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What Round 32 had a # of bids smaller than 2? | CREATE TABLE table_name_31 (round_of_32 VARCHAR, _number_of_bids INTEGER) | SELECT round_of_32 FROM table_name_31 WHERE _number_of_bids < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
7775,
834,
858,
834,
2668,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
834,
858,
834,
9824,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1751,
834,
858,
834,
2668,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
3,
834,
5525,
1152,
834,
858,
834,
9824,
7,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the five most commonly carried out specimen tests since 2101? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
sy... | SELECT t1.culturesite FROM (SELECT microlab.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microlab WHERE STRFTIME('%y', microlab.culturetakentime) >= '2101' GROUP BY microlab.culturesite) AS t1 WHERE t1.c1 <= 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
10547,
3585,
21680,
41,
23143,
14196,
2179,
9339,
5,
10547,
3585,
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,
... |
how many cultivars are of the semi double flower type ? | CREATE TABLE table_203_699 (
id number,
"name" text,
"parentage" text,
"size" text,
"flower colour" text,
"flower type" text
) | SELECT COUNT("name") FROM table_203_699 WHERE "flower type" = 'semi-double' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
948,
3264,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
12352,
545,
121,
1499,
6,
96,
7991,
121,
1499,
6,
96,
14923,
3243,
121,
1499,
6,
96,
14923,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4350,
8512,
21680,
953,
834,
23330,
834,
948,
3264,
549,
17444,
427,
96,
14923,
686,
121,
3274,
3,
31,
7,
15,
51,
23,
18,
25761,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose diagnoses icd9 code is 99799 and drug route is ng? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "99799" AND prescriptions.route = "NG" | [
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,
3... |
What is the protein name when aa length is 202 aa? | CREATE TABLE table_28969 (
"Species" text,
"Common Name" text,
"Protein Name" text,
"Accession Number" text,
"NT Length" text,
"NT Identity" text,
"AA Length" text,
"AA Identity" text,
"E-Value" text
) | SELECT "Protein Name" FROM table_28969 WHERE "AA Length" = '202 aa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3914,
3951,
41,
96,
7727,
725,
121,
1499,
6,
96,
10205,
106,
5570,
121,
1499,
6,
96,
3174,
17,
2455,
5570,
121,
1499,
6,
96,
31679,
23,
106,
7720,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3174,
17,
2455,
5570,
121,
21680,
953,
834,
357,
3914,
3951,
549,
17444,
427,
96,
5498,
312,
1725,
189,
121,
3274,
3,
31,
19818,
3,
9,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the product name and price of its most expensive product using a bar chart, and show in asc by the y-axis. | 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, MAX(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY MAX(T1.Price) | [
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,
4800,
4,
599,
382,
5411,
345,
4920,
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 is the Leading scorer with a Visitor of grizzlies, and with a Score with 114 111? | CREATE TABLE table_10739 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
) | SELECT "Leading scorer" FROM table_10739 WHERE "Visitor" = 'grizzlies' AND "Score" = '114–111' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
3288,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2796,
9,
26,
53,
2604,
52,
121,
21680,
953,
834,
18057,
3288,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
3496,
5271,
4664,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
18959,
104,
15866,
31,
1,... |
What was the score on the first leg when gimnasia de mendoza played at home for the second leg? | CREATE TABLE table_61348 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
) | SELECT "1st Leg" FROM table_61348 WHERE "Home (2nd leg)" = 'gimnasia de mendoza' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
519,
3707,
41,
96,
19040,
4077,
7,
17,
4553,
61,
121,
1499,
6,
96,
19040,
4743,
727,
4553,
61,
121,
1499,
6,
96,
536,
7,
17,
18978,
121,
1499,
6,
96,
357,
727,
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,
96,
536,
7,
17,
18978,
121,
21680,
953,
834,
4241,
519,
3707,
549,
17444,
427,
96,
19040,
4743,
727,
4553,
61,
121,
3274,
3,
31,
122,
603,
29,
15974,
20,
1076,
26,
13277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the Tie no when the Home team was Ramsgate? | CREATE TABLE table_name_20 (
tie_no VARCHAR,
home_team VARCHAR
) | SELECT tie_no FROM table_name_20 WHERE home_team = "ramsgate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
6177,
834,
29,
32,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2262,
15,
150,
116,
8,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6177,
834,
29,
32,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
234,
834,
11650,
3274,
96,
2375,
7,
5339,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the least purse for 2011 | CREATE TABLE table_15618241_1 (purse___us INTEGER, year VARCHAR) | SELECT MIN(purse___us) AS $__ FROM table_15618241_1 WHERE year = 2011 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
2606,
2266,
536,
834,
536,
41,
3791,
7,
15,
834,
834,
834,
302,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
20717,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3791,
7,
15,
834,
834,
834,
302,
61,
6157,
1514,
834,
834,
21680,
953,
834,
25463,
2606,
2266,
536,
834,
536,
549,
17444,
427,
215,
3274,
2722,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the date of appointment for the manager of lecce when the previous manager's contract expired? | CREATE TABLE table_name_79 (
date_of_appointment VARCHAR,
manner_of_departure VARCHAR,
team VARCHAR
) | SELECT date_of_appointment FROM table_name_79 WHERE manner_of_departure = "contract expired" AND team = "lecce" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
833,
834,
858,
834,
9,
102,
2700,
297,
584,
4280,
28027,
6,
3107,
834,
858,
834,
221,
2274,
1462,
584,
4280,
28027,
6,
372,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
9,
102,
2700,
297,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
3107,
834,
858,
834,
221,
2274,
1462,
3274,
96,
20871,
24909,
121,
3430,
372,
3274,
96,
109,
75,
565,
121,
1,
-100,
-100,
-... |
What is the compression ration when the continuous power is hp (kw) at 2,200 RPM and the octane rating is 80/87? | CREATE TABLE table_16548 (
"Engine" text,
"Power, continuous" text,
"Critical altitude This is the highest altitude at which the engine can achieve its full continuous power rating. Above this altitude, power falls off with height as with a naturally aspirated engine . See Supercharger#Altitude effects for ... | SELECT "Compression ratio" FROM table_16548 WHERE "Power, continuous" = 'hp (kW) at 2,200 RPM' AND "Octane rating" = '80/87' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
3707,
41,
96,
31477,
121,
1499,
6,
96,
23553,
6,
7558,
121,
1499,
6,
96,
254,
13224,
1489,
491,
6592,
100,
19,
8,
2030,
491,
6592,
44,
84,
8,
1948,
54,
1984,
165,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5890,
8243,
5688,
121,
21680,
953,
834,
22823,
3707,
549,
17444,
427,
96,
23553,
6,
7558,
121,
3274,
3,
31,
107,
102,
41,
21729,
61,
44,
3547,
3632,
391,
6218,
31,
3430,
96,
667,
75,
17,
152,
15,
5773,
121,
... |
Name the 2011 for 2010 of olympic games | CREATE TABLE table_70102 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
) | SELECT "2011" FROM table_70102 WHERE "2010" = 'olympic games' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
14388,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907,
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,
13907,
121,
21680,
953,
834,
2518,
14388,
549,
17444,
427,
96,
14926,
121,
3274,
3,
31,
32,
120,
51,
6174,
1031,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Votes (%), when Episode is "1x03"? | CREATE TABLE table_name_14 (votes___percentage_ VARCHAR, episode VARCHAR) | SELECT votes___percentage_ FROM table_name_14 WHERE episode = "1x03" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
1621,
1422,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3152,
1422,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11839,
834,
834,
834,
883,
3728,
545,
834,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
5640,
3274,
96,
536,
226,
4928,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the record for milwaukee | CREATE TABLE table_23248940_7 (
record VARCHAR,
team VARCHAR
) | SELECT record FROM table_23248940_7 WHERE team = "Milwaukee" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
3914,
2445,
834,
940,
41,
1368,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1368,
21,
15533,
210,
402,
1050,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
2773,
2266,
3914,
2445,
834,
940,
549,
17444,
427,
372,
3274,
96,
329,
173,
210,
402,
1050,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Winner, when Win # is greater than 1, and when Points is less than 94? | CREATE TABLE table_name_76 (winner VARCHAR, win__number VARCHAR, points VARCHAR) | SELECT winner FROM table_name_76 WHERE win__number > 1 AND points < 94 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
3757,
687,
584,
4280,
28027,
6,
1369,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
18125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
1369,
834,
834,
5525,
1152,
2490,
209,
3430,
979,
3,
2,
3,
4240,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Quarterback rating of the player who got a comp percentage of 62.0? | CREATE TABLE table_18686317_1 (qb_rating VARCHAR, comp__percentage VARCHAR) | SELECT qb_rating FROM table_18686317_1 WHERE comp__percentage = "62.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
3651,
3891,
2517,
834,
536,
41,
1824,
115,
834,
52,
1014,
584,
4280,
28027,
6,
2890,
834,
834,
883,
3728,
545,
584,
4280,
28027,
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,
0,
0,
0... | [
3,
23143,
14196,
3,
1824,
115,
834,
52,
1014,
21680,
953,
834,
2606,
3651,
3891,
2517,
834,
536,
549,
17444,
427,
2890,
834,
834,
883,
3728,
545,
3274,
96,
948,
24273,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who were the opponents during the final when christina wheeler was partner? | CREATE TABLE table_name_87 (opponents_in_the_final VARCHAR, partner VARCHAR) | SELECT opponents_in_the_final FROM table_name_87 WHERE partner = "christina wheeler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
32,
102,
9977,
7,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
16383,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16383,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
2397,
3274,
96,
15294,
77,
9,
5094,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What days held has 1 as the reign with eden black as the wrestlers? | CREATE TABLE table_64096 (
"Wrestlers" text,
"Reign" text,
"Days held" text,
"Location" text,
"Event" text
) | SELECT "Days held" FROM table_64096 WHERE "Reign" = '1' AND "Wrestlers" = 'eden black' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23714,
4314,
41,
96,
518,
6216,
1171,
7,
121,
1499,
6,
96,
1649,
3191,
121,
1499,
6,
96,
16803,
7,
1213,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
427,
2169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16803,
7,
1213,
121,
21680,
953,
834,
23714,
4314,
549,
17444,
427,
96,
1649,
3191,
121,
3274,
3,
31,
536,
31,
3430,
96,
518,
6216,
1171,
7,
121,
3274,
3,
31,
15,
537,
1001,
31,
1,
-100,
-100,
-100,
-100,
-1... |
Which division was the Rampage in when they were in the 2nd round in the Open Cup? | CREATE TABLE table_31654 (
"Year" real,
"Division" text,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT "Division" FROM table_31654 WHERE "Open Cup" = '2nd round' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25946,
5062,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
5,
7960,
121,
1499,
6,
96,
15800,
1647,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
23,
6610,
121,
21680,
953,
834,
25946,
5062,
549,
17444,
427,
96,
22696,
3802,
121,
3274,
3,
31,
357,
727,
1751,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What time that is networked has an ad freq of 20 minutes until 7pm? | CREATE TABLE table_13893 (
"Time" text,
"Show Name" text,
"DJ's" text,
"Local/Networked" text,
"Ad Freq" text,
"News Freq" text
) | SELECT "Time" FROM table_13893 WHERE "Local/Networked" = 'networked' AND "Ad Freq" = '20 minutes until 7pm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
4271,
41,
96,
13368,
121,
1499,
6,
96,
134,
4067,
5570,
121,
1499,
6,
96,
308,
683,
31,
7,
121,
1499,
6,
96,
434,
32,
1489,
87,
9688,
1981,
15,
26,
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,
13368,
121,
21680,
953,
834,
22744,
4271,
549,
17444,
427,
96,
434,
32,
1489,
87,
9688,
1981,
15,
26,
121,
3274,
3,
31,
1582,
1981,
15,
26,
31,
3430,
96,
188,
26,
5532,
1824,
121,
3274,
3,
31,
1755,
676,
552... |
who got the first position when fujieda city government got the fourth position? | CREATE TABLE table_21632864_1 (champions VARCHAR, fourth_place VARCHAR) | SELECT champions FROM table_21632864_1 WHERE fourth_place = "Fujieda City Government" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27184,
28070,
4389,
834,
536,
41,
17788,
12364,
7,
584,
4280,
28027,
6,
4509,
834,
4687,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
530,
8,
166,
1102,
116,
768... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6336,
7,
21680,
953,
834,
27184,
28070,
4389,
834,
536,
549,
17444,
427,
4509,
834,
4687,
3274,
96,
371,
76,
354,
5973,
9,
896,
3141,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees who do not work in departments with managers that have ids between 100 and 200, find hire_date and the amount of hire_date bin hire_date by weekday, and visualize them by a bar chart. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
54... |
What round was matt roth drafted? | CREATE TABLE table_14897 (
"Player" text,
"Position" text,
"Round" real,
"Pick" real,
"NFL Club" text
) | SELECT COUNT("Round") FROM table_14897 WHERE "Player" = 'matt roth' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24748,
4327,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
12619,
434,
1949,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
24748,
4327,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
3357,
17,
3,
2719,
107,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the period for the DET Team with a time of 11:27? | CREATE TABLE table_name_52 (
period VARCHAR,
team VARCHAR,
time VARCHAR
) | SELECT period FROM table_name_52 WHERE team = "det" AND time = "11:27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
1059,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1059,
21,
8,
3396,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1059,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
372,
3274,
96,
221,
17,
121,
3430,
97,
3274,
96,
2596,
10,
2555,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
With a works number of 40864 for the builder of Baldwin Locomotive Works, the number listed is? | CREATE TABLE table_44602 (
"Number" text,
"Builder" text,
"Type" text,
"Date" text,
"Works number" real
) | SELECT "Number" FROM table_44602 WHERE "Builder" = 'baldwin locomotive works' AND "Works number" = '40864' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
3328,
357,
41,
96,
567,
5937,
49,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
12492,
7,
381,
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,
567,
5937,
49,
121,
21680,
953,
834,
3628,
3328,
357,
549,
17444,
427,
96,
24752,
49,
121,
3274,
3,
31,
8267,
3757,
31301,
930,
31,
3430,
96,
12492,
7,
381,
121,
3274,
3,
31,
2445,
3840,
591,
31,
1,
-100,
-1... |
What is 454 gs flx when pacbio is 100-500 mb? | CREATE TABLE table_17778 (
"Sequencer" text,
"Ion Torrent PGM" text,
"454 GS FLX" text,
"HiSeq 2000" text,
"SOLiDv4" text,
"PacBio" text,
"Sanger 3730xl" text
) | SELECT "454 GS FLX" FROM table_17778 WHERE "PacBio" = '100-500 Mb' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26793,
3940,
41,
96,
134,
15,
835,
29,
2110,
121,
1499,
6,
96,
196,
106,
3,
31610,
276,
7381,
121,
1499,
6,
96,
2128,
591,
3,
8256,
7212,
4,
121,
1499,
6,
96,
12146,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2128,
591,
3,
8256,
7212,
4,
121,
21680,
953,
834,
26793,
3940,
549,
17444,
427,
96,
345,
9,
75,
26475,
121,
3274,
3,
31,
2915,
18,
2560,
283,
115,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find the number of urgent hospital admission patients who are less than 68 years of age. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.age < "68" | [
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,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
5905,
517,
6431,
121,
3430,
14798,
5,
545,
3,
2,
96,
3651,
1... |
What is the Chassis having a year later than 1990, and Minardi Scuderia Italia as an entrant, and 4 points? | CREATE TABLE table_11934 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Chassis" FROM table_11934 WHERE "Year" > '1990' AND "Entrant" = 'minardi scuderia italia' AND "Points" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
3710,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3541,
6500,
7,
121,
21680,
953,
834,
19993,
3710,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
2294,
2394,
31,
3430,
96,
16924,
3569,
121,
3274,
3,
31,
1109,
986,
23,
3,
7,
1071,
26,
4476,
34,
5434,
31,... |
Draw a scatterplot of acc percent vs all_games_percent where acc percent is on the x-axis and points are colored by ACC_Road | 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_Per... | SELECT ACC_Percent, All_Games_Percent FROM basketball_match GROUP BY ACC_Road | [
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,
3,
14775,
834,
12988,
3728,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Stuffit ability that has a gzip of yes, ISO/CD images of no and LHA/LZH of no? | CREATE TABLE table_name_75 (
stuffit VARCHAR,
lha_lzh VARCHAR,
gzip VARCHAR,
iso_cd_image VARCHAR
) | SELECT stuffit FROM table_name_75 WHERE gzip = "yes" AND iso_cd_image = "no" AND lha_lzh = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
2005,
155,
584,
4280,
28027,
6,
3,
40,
1024,
834,
40,
172,
107,
584,
4280,
28027,
6,
3,
122,
13453,
584,
4280,
28027,
6,
19,
32,
834,
75,
26,
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,
2005,
155,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
3,
122,
13453,
3274,
96,
10070,
121,
3430,
19,
32,
834,
75,
26,
834,
8221,
3274,
96,
29,
32,
121,
3430,
3,
40,
1024,
834,
40,
172,
107,
3274,
96,
29,... |
What was the result of the film with the Portuguese title, Um Filme Falado? | CREATE TABLE table_24785 (
"Year (Ceremony)" text,
"English title" text,
"Portuguese title" text,
"Director" text,
"Result" text
) | SELECT "Result" FROM table_24785 WHERE "Portuguese title" = 'Um Filme Falado' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4177,
4433,
41,
96,
476,
2741,
41,
254,
49,
15,
21208,
61,
121,
1499,
6,
96,
26749,
2233,
121,
1499,
6,
96,
14714,
76,
15991,
15,
2233,
121,
1499,
6,
96,
23620,
127,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
357,
4177,
4433,
549,
17444,
427,
96,
14714,
76,
15991,
15,
2233,
121,
3274,
3,
31,
1265,
51,
3417,
15,
10747,
9,
26,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is average age of patients whose admission type is emergency and year of birth is greater than 2074? | 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
)
C... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dob_year > "2074" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
427,
13098,
18464,
17063,
121,
3430,
14798,
5,
26,
32,
115,
834,
1201,
2490,
96,
26426,
20364,
1,
... |
How many kills when percentage is more than 0.313, attempts are more than 1035 and assists are larger than 57? | CREATE TABLE table_59081 (
"Season" text,
"GP/MP" text,
"Kills" real,
"K/Game" real,
"Errors" real,
"Total Attempts" real,
"Percentage" real,
"Assists" real,
"Service Aces" real,
"Digs" real,
"Solo Blocks" real,
"Block Assists" real,
"Total Blocks" real,
"Points" ... | SELECT COUNT("Kills") FROM table_59081 WHERE "Percentage" > '0.313' AND "Total Attempts" > '1035' AND "Assists" > '57' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
4018,
536,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
8049,
87,
5244,
121,
1499,
6,
96,
439,
1092,
7,
121,
490,
6,
96,
439,
87,
23055,
121,
490,
6,
96,
10575,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
439,
1092,
7,
8512,
21680,
953,
834,
3390,
4018,
536,
549,
17444,
427,
96,
12988,
3728,
545,
121,
2490,
3,
31,
19997,
2368,
31,
3430,
96,
3696,
1947,
3,
31108,
7,
121,
2490,
3,
31,
1714,
246... |
What kind of IATA that has a Airport of berlin schönefeld airport? | CREATE TABLE table_name_83 (iata VARCHAR, airport VARCHAR) | SELECT iata FROM table_name_83 WHERE airport = "berlin schönefeld airport" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
17221,
584,
4280,
28027,
6,
3761,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
773,
13,
27,
19282,
24,
65,
3,
9,
5735,
13,
3,
27995,
11878... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17221,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
3761,
3274,
96,
27995,
11878,
5003,
3761,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show all customer ids and the number of cards owned by each customer with a scatter chart. | CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transa... | SELECT customer_id, COUNT(*) FROM Customers_Cards GROUP BY customer_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
834,
6936,
26,
7,
41,
895,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
23,
26,
3,
21342,
17966,
6,
895,
834,
6137,
834,
4978,
584,
4280,
28027,
599,
1808,
201,
895,
834,
5525... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
884,
834,
23,
26,
6,
2847,
17161,
599,
1935,
61,
21680,
16423,
834,
6936,
26,
7,
350,
4630,
6880,
272,
476,
884,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average Points for a year before 1955? | CREATE TABLE table_70167 (
"Year" real,
"Team" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT AVG("Points") FROM table_70167 WHERE "Year" < '1955' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
27650,
41,
96,
476,
2741,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
121,
22512,
7,
8512,
21680,
953,
834,
2518,
27650,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
3769,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
March 0.41 in July? | CREATE TABLE table_15945862_1 (july VARCHAR, march VARCHAR) | SELECT july FROM table_15945862_1 WHERE march = "0.41" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4240,
3449,
4056,
834,
536,
41,
2047,
120,
584,
4280,
28027,
6,
10556,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1332,
4097,
4853,
16,
1718,
58,
3,
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,
3,
2047,
120,
21680,
953,
834,
1808,
4240,
3449,
4056,
834,
536,
549,
17444,
427,
10556,
3274,
96,
22776,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
List the names of aircrafts and that won matches at least twice. | CREATE TABLE MATCH (
Winning_Aircraft VARCHAR
)
CREATE TABLE aircraft (
Aircraft VARCHAR,
Aircraft_ID VARCHAR
) | SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
283,
29572,
41,
549,
10503,
834,
20162,
6696,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6442,
41,
1761,
6696,
584,
4280,
28027,
6,
1761,
6696,
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,
332,
5411,
20162,
6696,
21680,
6442,
6157,
332,
536,
3,
15355,
3162,
283,
29572,
6157,
332,
357,
9191,
332,
5411,
20162,
6696,
834,
4309,
3274,
332,
4416,
518,
10503,
834,
20162,
6696,
350,
4630,
6880,
272,
476,
332,
... |
When the game was played at Domnarvsvallen who were the opponents? | CREATE TABLE table_name_12 (opponents VARCHAR, venue VARCHAR) | SELECT opponents FROM table_name_12 WHERE venue = "domnarvsvallen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
32,
102,
9977,
7,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
467,
47,
1944,
44,
10576,
29,
291,
208,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16383,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
5669,
3274,
96,
5012,
29,
291,
208,
7,
2165,
40,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many gold medals did Denmark win? | CREATE TABLE table_name_65 (gold INTEGER, nation VARCHAR) | SELECT MIN(gold) FROM table_name_65 WHERE nation = "denmark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
14910,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2045,
9365,
7,
410,
18001,
1369,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
14910,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
2982,
3274,
96,
537,
3920,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the name of the home team that played against Hawthorn? | CREATE TABLE table_name_13 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_13 WHERE away_team = "hawthorn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
234,
372,
24,
1944... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1024,
210,
17,
6293,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
On what Date were the Results 5:1? | CREATE TABLE table_38131 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
) | SELECT "Date" FROM table_38131 WHERE "Results\u00b9" = '5:1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
22048,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
7,
2,
76,
1206,
115,
1298,
121,
1499,
6,
96,
25160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3747,
22048,
549,
17444,
427,
96,
20119,
7,
2,
76,
1206,
115,
1298,
121,
3274,
3,
31,
755,
10,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the original air date of season 9? | CREATE TABLE table_18217753_1 (original_air_date VARCHAR, season__number VARCHAR) | SELECT original_air_date FROM table_18217753_1 WHERE season__number = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2658,
4013,
4867,
834,
536,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
774,
834,
834,
5525,
1152,
584,
4280,
28027,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
834,
5522,
21680,
953,
834,
2606,
2658,
4013,
4867,
834,
536,
549,
17444,
427,
774,
834,
834,
5525,
1152,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the drug that patient 010-8740 was allergic to when they came to the hospital last time? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CRE... | SELECT allergy.drugname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-8740' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hos... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23886,
5,
26,
13534,
4350,
21680,
23886,
549,
17444,
427,
23886,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
... |
Which Free polite has a Genitive 1 of *=ku? | CREATE TABLE table_name_13 (
free VARCHAR,
ku VARCHAR,
genitive_1 VARCHAR
) | SELECT free AS polite FROM table_name_13 WHERE genitive_1 = * = ku | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
339,
584,
4280,
28027,
6,
3,
2729,
584,
4280,
28027,
6,
3,
729,
23,
3268,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1443,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
339,
6157,
1977,
6311,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
3,
729,
23,
3268,
834,
536,
3274,
1429,
3274,
3,
2729,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest number of people in attendance when the record was 9–26? | CREATE TABLE table_name_7 (attendance INTEGER, record VARCHAR) | SELECT MIN(attendance) FROM table_name_7 WHERE record = "9–26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
15116,
663,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
151,
16,
11364,
116,
8,
1368,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1368,
3274,
96,
1298,
104,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the difference in total victims between vilovo and novi sad ? | CREATE TABLE table_204_693 (
id number,
"place" text,
"total" number,
"men" number,
"women" number,
"children" number,
"elderly" number,
"serbs" number,
"jews" number,
"romani" number,
"rusyns" number,
"hungarians" number,
"russians" number
) | SELECT ABS((SELECT "total" FROM table_204_693 WHERE "place" = 'vilovo') - (SELECT "total" FROM table_204_693 WHERE "place" = 'novi sad')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3951,
519,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
1499,
6,
96,
235,
1947,
121,
381,
6,
96,
904,
121,
381,
6,
96,
210,
32,
904,
121,
381,
6,
96,
25782,
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,
20798,
599,
599,
23143,
14196,
96,
235,
1947,
121,
21680,
953,
834,
26363,
834,
3951,
519,
549,
17444,
427,
96,
4687,
121,
3274,
3,
31,
6372,
32,
1621,
31,
61,
3,
18,
41,
23143,
14196,
96,
235,
1947,
121,
21680,
9... |
What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championship> | CREATE TABLE table_name_52 (season INTEGER, wins VARCHAR, races VARCHAR, series VARCHAR) | SELECT MIN(season) FROM table_name_52 WHERE races = "6" AND series = "all-japan gt championship" AND wins = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
9476,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
9476,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
10879,
3274,
96,
948,
121,
3430,
939,
3274,
96,
1748,
18,
1191,
2837,
3,
122,
17,
10183,
121,
3430,
9204,
3274,
96,
357,
121,
1,
-100,
-1... |
Which TV station had a Romaji Title Maou? | CREATE TABLE table_name_64 (
tv_station VARCHAR,
romaji_title VARCHAR
) | SELECT tv_station FROM table_name_64 WHERE romaji_title = "maou" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
3,
17,
208,
834,
6682,
584,
4280,
28027,
6,
3,
3522,
17815,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1424,
2478,
141,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17,
208,
834,
6682,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
3,
3522,
17815,
834,
21869,
3274,
96,
51,
9,
1063,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of the Home Captain for 23,24,25,26 july 1992? | CREATE TABLE table_name_7 (
home_captain VARCHAR,
date VARCHAR
) | SELECT home_captain FROM table_name_7 WHERE date = "23,24,25,26 july 1992" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
234,
834,
4010,
17,
9,
77,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
1210,
12202,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
4010,
17,
9,
77,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
833,
3274,
96,
2773,
6,
2266,
6,
1828,
6,
2688,
3,
2047,
120,
9047,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the call sign for country station fm 93.1? | CREATE TABLE table_name_34 (call_sign VARCHAR, format VARCHAR, frequency VARCHAR) | SELECT call_sign FROM table_name_34 WHERE format = "country" AND frequency = "fm 93.1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
16482,
834,
6732,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
580,
1320,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
580,
834,
6732,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
1910,
3274,
96,
17529,
121,
3430,
7321,
3274,
96,
89,
51,
668,
18495,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
No Decision listed above has a visitor of Montreal. | CREATE TABLE table_name_62 (decision VARCHAR, visitor VARCHAR) | SELECT decision FROM table_name_62 WHERE visitor = "montreal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
221,
18901,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
465,
25006,
2616,
756,
65,
3,
9,
7019,
13,
17219,
5,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1357,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
7019,
3274,
96,
4662,
6644,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Overall has a Name of markus koch? | CREATE TABLE table_47834 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT SUM("Overall") FROM table_47834 WHERE "Name" = 'markus koch' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3940,
3710,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
180,
6122,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
591,
3940,
3710,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
3920,
302,
3,
18758,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who rode mad rush? | CREATE TABLE table_39028 (
"Saddle cloth" real,
"Horse" text,
"Trainer" text,
"Jockey" text,
"Weight (kg)" real,
"Barrier [b ]" text,
"Placing" text
) | SELECT "Jockey" FROM table_39028 WHERE "Horse" = 'mad rush' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2394,
2577,
41,
96,
134,
9,
8437,
10366,
121,
490,
6,
96,
566,
127,
7,
15,
121,
1499,
6,
96,
9402,
4899,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
683,
3961,
15,
63,
121,
21680,
953,
834,
519,
2394,
2577,
549,
17444,
427,
96,
566,
127,
7,
15,
121,
3274,
3,
31,
11374,
10505,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What place did Fred Couples finish in? | CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_84 WHERE player = "fred couples" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
4687,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
286,
410,
12264,
25185,
7,
1992,
16,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
1959,
3274,
96,
89,
1271,
11992,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the Second with Nikolina Petric as Third? | CREATE TABLE table_75267 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Second" FROM table_75267 WHERE "Third" = 'nikolina petric' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
357,
3708,
41,
96,
567,
257,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
2796,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
1018,
26,
121,
21680,
953,
834,
3072,
357,
3708,
549,
17444,
427,
96,
382,
9288,
26,
121,
3274,
3,
31,
4953,
12057,
9,
158,
3929,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is the incumbent candidate in the election of percy priest (d) 90.8% robert m. donihi (r) 9.2%? | CREATE TABLE table_1342013_41 (incumbent VARCHAR, candidates VARCHAR) | SELECT incumbent FROM table_1342013_41 WHERE candidates = "Percy Priest (D) 90.8% Robert M. Donihi (R) 9.2%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
11138,
834,
4853,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
28406,
4775,
16,
8,
4356,
13,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
28406,
21680,
953,
834,
23747,
11138,
834,
4853,
549,
17444,
427,
4341,
3274,
96,
12988,
75,
63,
24582,
41,
308,
61,
2777,
5,
5953,
2715,
283,
5,
1008,
23,
107,
23,
41,
448,
61,
5835,
5406,
121,
1,
-100,
-100,
-10... |
After 2009, what's the nationality of a player named Dwayne de Rosario Category:articles with hcards? | CREATE TABLE table_name_78 (
nationality VARCHAR,
year VARCHAR,
player VARCHAR
) | SELECT nationality FROM table_name_78 WHERE year > 2009 AND player = "dwayne de rosario category:articles with hcards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
1157,
485,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
621,
2464,
6,
125,
31,
7,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
215,
2490,
2464,
3430,
1959,
3274,
96,
26,
1343,
29,
15,
20,
3,
1859,
14414,
3295,
10,
8372,
7,
28,
3,
107,
6043,
7,
121,
1,
-100,
-100,
-100,
-100,
... |
What is Film Title Used In Nomination, when Original Title is "Báng-Kah (艋舺)" | CREATE TABLE table_name_27 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) | SELECT film_title_used_in_nomination FROM table_name_27 WHERE original_title = "báng-kah (艋舺)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
9988,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
584,
4280,
28027,
6,
926,
834,
21869,
584,
4280,
28027,
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,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
926,
834,
21869,
3274,
96,
115,
12916,
122,
18,
1258,
107,
41,
2,
61,
121,
1,
-100,
-100,
-100,
-100,
-1... |
How many wines are there for each grape, display by the the total number in desc please. | CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE appellations (
No... | SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
465,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
9426,
651,
3,
3463,
4,
382,
6,
3,
27794,
257,
3,
3463,
4,
382,
6,
1015,
3,
3463,
4,
382,
6,
5570,
3,
3463,
4,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
29083,
6,
2847,
17161,
599,
1935,
61,
21680,
2013,
350,
4630,
6880,
272,
476,
29083,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many goals scored have utenis utena as the club, with wins less than 8? | CREATE TABLE table_12173 (
"Position" real,
"Club" text,
"Games played" text,
"Wins" real,
"Draws" real,
"Loses" real,
"Goals scored" real,
"Goals conceded" real,
"Points" real
) | SELECT SUM("Goals scored") FROM table_12173 WHERE "Club" = 'utenis utena' AND "Wins" < '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22011,
4552,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
23055,
7,
1944,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
6221,
5405,
5799,
8512,
21680,
953,
834,
22011,
4552,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
76,
324,
159,
3,
76,
324,
9,
31,
3430,
96,
18455,
7,
121,
3,
2,
3,
31,
927,
31,
1,
... |
What is the date where the winner was Tom Kite (10)? | CREATE TABLE table_name_24 (
date VARCHAR,
winner VARCHAR
) | SELECT date FROM table_name_24 WHERE winner = "tom kite (10)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
833,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
213,
8,
4668,
47,
3059,
5747,
15,
41,
16968,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
4668,
3274,
96,
235,
51,
3650,
15,
41,
16968,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show the title and score of the movie with a bar chart, and I want to show Y-axis in descending order. | CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
) | SELECT title, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY stars DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
3,
52,
4309,
16,
17,
6,
3,
51,
4309,
16,
17,
6,
4811,
16,
17,
6,
5773,
308,
342,
833,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2233,
6,
4811,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
4674,
11300,
272,
476,
4811,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the entrant for 1967? | CREATE TABLE table_name_76 (entrant VARCHAR, year VARCHAR) | SELECT entrant FROM table_name_76 WHERE year = 1967 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
295,
3569,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
295,
3569,
21,
18148,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
295,
3569,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
215,
3274,
18148,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find the number of patients admitted before the year 2203 who had the procedure titled insertion of drug-eluting coronary artery stents. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2203" AND procedures.long_title = "Insertion of drug-eluting coronary artery stent(s)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
lactose intolerance | CREATE TABLE table_train_230 (
"id" int,
"anemia" bool,
"diabetic" string,
"lactose_intolerance" bool,
"hb" float,
"body_mass_index_bmi" float,
"NOUSE" float
) | SELECT * FROM table_train_230 WHERE lactose_intolerance = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
13427,
41,
96,
23,
26,
121,
16,
17,
6,
96,
152,
11658,
121,
3,
12840,
40,
6,
96,
26,
23,
9,
346,
1225,
121,
6108,
6,
96,
9700,
235,
7,
15,
834,
77,
235,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
13427,
549,
17444,
427,
12868,
235,
7,
15,
834,
77,
235,
109,
5219,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who was hired before 2002-06-21, find hire_date and the sum of employee_id bin hire_date by time, and visualize them by a bar chart. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
1,
-100,
-100,
-100,
-10... |
Who was the writer when there were 15.85 million US viewers? | CREATE TABLE table_1309 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "Written by" FROM table_1309 WHERE "U.S. viewers (millions)" = '15.85' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4198,
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,
15,
26,
57,
121,
1499,
6,
96,
249... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24965,
324,
57,
121,
21680,
953,
834,
2368,
4198,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
7,
61,
121,
3274,
3,
31,
1808,
5,
4433,
31,
1,
-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.