NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the highest crowd at mcg? | CREATE TABLE table_name_72 (crowd INTEGER, venue VARCHAR) | SELECT MAX(crowd) FROM table_name_72 WHERE venue = "mcg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
75,
3623,
26,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
4374,
44,
3,
51,
75,
122,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
5669,
3274,
96,
51,
75,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the name of a league in the sport of baseball? | CREATE TABLE table_name_96 (league VARCHAR, sport VARCHAR) | SELECT league FROM table_name_96 WHERE sport = "baseball" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
29512,
584,
4280,
28027,
6,
2600,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
3,
9,
5533,
16,
8,
2600,
13,
9600,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5533,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2600,
3274,
96,
10925,
3184,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the birthdays of people in ascending order of height? | CREATE TABLE People (Birth_Date VARCHAR, Height VARCHAR) | SELECT Birth_Date FROM People ORDER BY Height | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2449,
41,
279,
23,
52,
189,
834,
308,
342,
584,
4280,
28027,
6,
24231,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
3591,
7,
13,
151,
16,
25200,
53,
455,
13,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26337,
834,
308,
342,
21680,
2449,
4674,
11300,
272,
476,
24231,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What bike does dean ellison ride? | CREATE TABLE table_name_48 (
bike VARCHAR,
rider VARCHAR
) | SELECT bike FROM table_name_48 WHERE rider = "dean ellison" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
3724,
584,
4280,
28027,
6,
2564,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3724,
405,
20,
152,
3,
7999,
739,
2564,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3724,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
2564,
52,
3274,
96,
221,
152,
3,
7999,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the father who was born in 1204 and married ottokar ii? | CREATE TABLE table_name_89 (
father VARCHAR,
spouse VARCHAR,
birth VARCHAR
) | SELECT father FROM table_name_89 WHERE spouse = "ottokar ii" AND birth = "1204" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
2353,
584,
4280,
28027,
6,
9911,
584,
4280,
28027,
6,
3879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
2353,
113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2353,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
9911,
3274,
96,
32,
17,
235,
4031,
3,
23,
23,
121,
3430,
3879,
3274,
96,
15518,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest wins with less than 2 Byes? | CREATE TABLE table_name_15 (wins INTEGER, byes INTEGER) | SELECT MIN(wins) FROM table_name_15 WHERE byes < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
3757,
7,
3,
21342,
17966,
6,
57,
15,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
9204,
28,
705,
145,
204,
938,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
57,
15,
7,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many have the number 8 | CREATE TABLE table_16125 (
"No." real,
"#" real,
"Title" text,
"Director" text,
"Writer" text,
"US air date" text,
"Storyteller" text,
"Villains" text
) | SELECT COUNT("No.") FROM table_16125 WHERE "#" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
10124,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
3063,
799... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4168,
5,
8512,
21680,
953,
834,
2938,
10124,
549,
17444,
427,
96,
4663,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is their record on April 2? | CREATE TABLE table_6117 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Record" FROM table_6117 WHERE "Date" = 'april 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
2517,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,
663,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
4241,
2517,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which event has a year of 2000? | CREATE TABLE table_name_72 (
event VARCHAR,
year VARCHAR
) | SELECT event FROM table_name_72 WHERE year = 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
605,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
605,
65,
3,
9,
215,
13,
2766,
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,
605,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
215,
3274,
2766,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
get the number of elective hospital admission patients who had closed biopsy of tongue. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.short_title = "Closed biopsy of tongue" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which leagues entered in rounds where there were 16 winners from the previous round? | CREATE TABLE table_26072 (
"Round" text,
"Clubs remaining" real,
"Clubs involved" real,
"Winners from previous round" text,
"New entries this round" text,
"Leagues entering at this round" text
) | SELECT "Leagues entering at this round" FROM table_26072 WHERE "Winners from previous round" = '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
5865,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
254,
11158,
7,
4080,
121,
490,
6,
96,
254,
11158,
7,
1381,
121,
490,
6,
96,
18455,
687,
7,
45,
1767,
1751,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2796,
9,
15991,
7084,
44,
48,
1751,
121,
21680,
953,
834,
18365,
5865,
549,
17444,
427,
96,
18455,
687,
7,
45,
1767,
1751,
121,
3274,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find hire_date and the sum of employee_id bin hire_date by time, and visualize them by a bar chart, rank total number from low to high order. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
CO... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(EMPLOYEE_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
... |
Name the mountain peak with location of 46.7000°n 60.5992°w | CREATE TABLE table_name_17 (mountain_peak VARCHAR, location VARCHAR) | SELECT mountain_peak FROM table_name_17 WHERE location = "46.7000°n 60.5992°w" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
11231,
9,
77,
834,
14661,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4180,
6734,
28,
1128,
13,
9668,
5,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4180,
834,
14661,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
1128,
3274,
96,
4448,
5,
27133,
1956,
29,
1640,
5,
3390,
4508,
1956,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many broadband subscribers are there where the population is ~3,644,070? | CREATE TABLE table_15633 (
"Year" real,
"Number of Users" text,
"Penetration" text,
"Number of Broadband Subscribers" text,
"Broadband Penetration" text,
"Population" text,
"Data provided by" text
) | SELECT "Number of Broadband Subscribers" FROM table_15633 WHERE "Population" = '~3,644,070' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
4201,
41,
96,
476,
2741,
121,
490,
6,
96,
567,
5937,
49,
13,
13504,
121,
1499,
6,
96,
345,
15,
1582,
2661,
121,
1499,
6,
96,
567,
5937,
49,
13,
13017,
3348,
23942,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13,
13017,
3348,
23942,
52,
7,
121,
21680,
953,
834,
25463,
4201,
549,
17444,
427,
96,
27773,
7830,
121,
3274,
3,
31,
2,
6355,
4389,
8525,
632,
2518,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What date was the Silverstone circuit driven? | CREATE TABLE table_1140119_5 (
date VARCHAR,
circuit VARCHAR
) | SELECT date FROM table_1140119_5 WHERE circuit = "Silverstone" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
20016,
2294,
834,
755,
41,
833,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
5642,
3009,
4558,
6737,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2596,
20016,
2294,
834,
755,
549,
17444,
427,
4558,
3274,
96,
134,
173,
624,
3009,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest number of wins associated with under 0 poles? | CREATE TABLE table_name_36 (wins INTEGER, poles INTEGER) | SELECT MAX(wins) FROM table_name_36 WHERE poles < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
3757,
7,
3,
21342,
17966,
6,
11148,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
13,
9204,
1968,
28,
365,
3,
632,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
11148,
7,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Points have a Time/Retired of +49.222 secs? | CREATE TABLE table_name_5 (
points INTEGER,
time_retired VARCHAR
) | SELECT MAX(points) FROM table_name_5 WHERE time_retired = "+49.222 secs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
979,
3,
21342,
17966,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4564,
7,
43,
3,
9,
2900,
87,
1649,
11809,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
1220,
3647,
5,
26144,
4220,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which New/Returning/Same Network has a Previous Network of nbc, and a Show of blockbusters? | CREATE TABLE table_name_12 (new_returning_same_network VARCHAR, previous_network VARCHAR, show VARCHAR) | SELECT new_returning_same_network FROM table_name_12 WHERE previous_network = "nbc" AND show = "blockbusters" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
5534,
834,
60,
7535,
53,
834,
7,
265,
15,
834,
1582,
1981,
584,
4280,
28027,
6,
1767,
834,
1582,
1981,
584,
4280,
28027,
6,
504,
584,
4280,
28027,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
126,
834,
60,
7535,
53,
834,
7,
265,
15,
834,
1582,
1981,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
1767,
834,
1582,
1981,
3274,
96,
29,
115,
75,
121,
3430,
504,
3274,
96,
10734,
3465,
4849,
121,
1,
-100,... |
What College team has 8 rounds? | CREATE TABLE table_name_31 (
college_junior_club_team__league_ VARCHAR,
round VARCHAR
) | SELECT college_junior_club_team__league_ FROM table_name_31 WHERE round = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1751,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the % asian american for 23526 | CREATE TABLE table_18963843_1 (
_percentage_asian_american VARCHAR,
indian_american_population__2010_ VARCHAR
) | SELECT _percentage_asian_american FROM table_18963843_1 WHERE indian_american_population__2010_ = 23526 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4314,
3747,
4906,
834,
536,
41,
3,
834,
883,
3728,
545,
834,
9,
10488,
834,
23064,
29,
584,
4280,
28027,
6,
16,
8603,
834,
23064,
29,
834,
9791,
7830,
834,
834,
14926... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
834,
883,
3728,
545,
834,
9,
10488,
834,
23064,
29,
21680,
953,
834,
2606,
4314,
3747,
4906,
834,
536,
549,
17444,
427,
16,
8603,
834,
23064,
29,
834,
9791,
7830,
834,
834,
14926,
834,
3274,
3,
25174,
2688,
1,
... |
What is the name of the Event with a venue that was in toronto, canada? | CREATE TABLE table_name_62 (event VARCHAR, venue VARCHAR) | SELECT event FROM table_name_62 WHERE venue = "toronto, canada" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
15,
2169,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
8042,
28,
3,
9,
5669,
24,
47,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
5669,
3274,
96,
235,
4438,
32,
6,
19343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many were first elected when the incumbent was Morgan M. Moulder? | CREATE TABLE table_754 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT COUNT("First elected") FROM table_754 WHERE "Incumbent" = 'Morgan M. Moulder' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
591,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
25171,
8160,
8512,
21680,
953,
834,
3072,
591,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
329,
11127,
283,
5,
1290,
83,
588,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of the pick in round 17? | CREATE TABLE table_name_10 (
pick INTEGER,
round VARCHAR
) | SELECT SUM(pick) FROM table_name_10 WHERE round = 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
1432,
3,
21342,
17966,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
1432,
16,
1751,
1003,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
17967,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
1751,
3274,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most points for champion, won in the final against amélie mauresmo | CREATE TABLE table_1973321_5 (points INTEGER, status VARCHAR) | SELECT MAX(points) FROM table_1973321_5 WHERE status = "Champion, won in the final against Amélie Mauresmo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
4201,
2658,
834,
755,
41,
2700,
7,
3,
21342,
17966,
6,
2637,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
979,
21,
6336,
6,
751,
16,
8,
804,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
27181,
4201,
2658,
834,
755,
549,
17444,
427,
2637,
3274,
96,
254,
1483,
12364,
6,
751,
16,
8,
804,
581,
736,
154,
1896,
1534,
7665,
51,
32,
121,
1,
-100,
-100,
-100,
... |
What year was clair engle first elected? | CREATE TABLE table_1342218_6 (
first_elected VARCHAR,
incumbent VARCHAR
) | SELECT first_elected FROM table_1342218_6 WHERE incumbent = "Clair Engle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2884,
2606,
834,
948,
41,
166,
834,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
3,
7997,
3,
35,
3537,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
23747,
2884,
2606,
834,
948,
549,
17444,
427,
28406,
3274,
96,
254,
40,
2256,
19650,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients are born before 2087 and tested with joint fluid in lab? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2087" AND lab.fluid = "Joint Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Visualize a bar chart for what are the average ages for male and female students?, and order y axis in desc order. | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
... | SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY AVG(Age) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
301,
23954,
584,
4280,
28027,
599,
2122,
201,
377,
4350,
584,
4280,
28027,
599,
2122,
201,
7526,
3,
21342,
17966,
6,
679,
226,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
226,
6,
71,
17217,
599,
188,
397,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
71,
17217,
599,
188,
397,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country is Scott Hoch from? | CREATE TABLE table_name_65 (
country VARCHAR,
player VARCHAR
) | SELECT country FROM table_name_65 WHERE player = "scott hoch" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
19,
4972,
7341,
45,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1959,
3274,
96,
7,
10405,
6012,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the companion for the author Dave Stone? | CREATE TABLE table_name_7 (companion_s_ VARCHAR, author VARCHAR) | SELECT companion_s_ FROM table_name_7 WHERE author = "dave stone" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
7699,
2738,
106,
834,
7,
834,
584,
4280,
28027,
6,
2291,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9663,
21,
8,
2291,
8545,
5614,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9663,
834,
7,
834,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
2291,
3274,
96,
26,
9,
162,
3372,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is every Swedish name for residence city is Loviisa? | CREATE TABLE table_198175_2 (swedish_name VARCHAR, residence_city VARCHAR) | SELECT swedish_name FROM table_198175_2 WHERE residence_city = "Loviisa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4959,
3072,
834,
357,
41,
7,
1123,
26,
1273,
834,
4350,
584,
4280,
28027,
6,
6198,
834,
6726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
16531,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
7,
1123,
26,
1273,
834,
4350,
21680,
953,
834,
2294,
4959,
3072,
834,
357,
549,
17444,
427,
6198,
834,
6726,
3274,
96,
434,
9881,
159,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the line 1 of addresses shared by some students and some teachers? | CREATE TABLE Teachers (
address_id VARCHAR
)
CREATE TABLE Students (
address_id VARCHAR
)
CREATE TABLE Addresses (
line_1 VARCHAR,
address_id VARCHAR
) | SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18991,
41,
1115,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4375,
41,
1115,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
747,
834,
536,
21680,
13246,
15,
7,
6157,
332,
536,
3,
15355,
3162,
4375,
6157,
332,
357,
9191,
332,
5411,
9,
26,
12039,
834,
23,
26,
3274,
332,
4416,
9,
26,
12039,
834,
23,
26,
3,
21342,
5249,
14196,
... |
If the Non- stop is (ㆁ), what is the Articulatory Class? | CREATE TABLE table_name_27 (articulatory_class VARCHAR, non__stop VARCHAR) | SELECT articulatory_class FROM table_name_27 WHERE non__stop = "(ㆁ)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
12277,
6546,
834,
4057,
584,
4280,
28027,
6,
529,
834,
834,
7618,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
5388,
18,
1190,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
12277,
6546,
834,
4057,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
529,
834,
834,
7618,
3274,
96,
599,
2,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the injunctive for the Simple Past of gar l 'I will (probably) do'? | CREATE TABLE table_48153 (
"!Simple Present/Future" text,
"Probable Future" text,
"Simple Past" text,
"Past Habitual" text,
"Injunctive" text,
"Imperative" text
) | SELECT "Injunctive" FROM table_48153 WHERE "Simple Past" = 'गरुँला garũlā ''i will (probably) do' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
27025,
41,
96,
55,
134,
10296,
15,
18795,
87,
371,
76,
2693,
121,
1499,
6,
96,
3174,
115,
179,
9130,
121,
1499,
6,
96,
134,
10296,
15,
10180,
121,
1499,
6,
96,
345,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1570,
6959,
75,
3268,
121,
21680,
953,
834,
3707,
27025,
549,
17444,
427,
96,
134,
10296,
15,
10180,
121,
3274,
3,
31,
2,
5260,
2,
40,
2,
3,
31,
31,
23,
56,
41,
31106,
61,
103,
31,
1,
-100,
-100,
-100,
-10... |
What is the name of the airport located in Russia with an IATA of KRR? | CREATE TABLE table_name_30 (
airport VARCHAR,
country VARCHAR,
iata VARCHAR
) | SELECT airport FROM table_name_30 WHERE country = "russia" AND iata = "krr" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
3761,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
3,
17221,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
3761,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3761,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
684,
3274,
96,
26165,
121,
3430,
3,
17221,
3274,
96,
157,
52,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the duration of the Archers with Norman Painting as an actor? | CREATE TABLE table_name_98 (
duration VARCHAR,
soap_opera VARCHAR,
actor VARCHAR
) | SELECT duration FROM table_name_98 WHERE soap_opera = "the archers" AND actor = "norman painting" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
8659,
584,
4280,
28027,
6,
10758,
834,
18140,
584,
4280,
28027,
6,
7556,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
8659,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8659,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
10758,
834,
18140,
3274,
96,
532,
11508,
277,
121,
3430,
7556,
3274,
96,
29,
127,
348,
3924,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the number of patients whose marital status is divorced and ethnicity is unknown/not specified? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.ethnicity = "UNKNOWN/NOT SPECIFIED" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
308,
7589,
2990,
254,
2326,
121,
3430,
14798,
5,
15,
189,
... |
What was the record at the game that had a loss of Spillner (1-8)? | CREATE TABLE table_name_13 (record VARCHAR, loss VARCHAR) | SELECT record FROM table_name_13 WHERE loss = "spillner (1-8)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
60,
7621,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
44,
8,
467,
24,
141,
3,
9,
1453,
13,
2526... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1453,
3274,
96,
7675,
195,
687,
4077,
18,
13520,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the aggregate for the match with a team 2 of Kenya? | CREATE TABLE table_name_60 (
agg VARCHAR,
team_2 VARCHAR
) | SELECT agg FROM table_name_60 WHERE team_2 = "kenya" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
3,
9,
4102,
584,
4280,
28027,
6,
372,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
12955,
21,
8,
1588,
28,
3,
9,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9,
4102,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
372,
834,
357,
3274,
96,
2217,
63,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name when born is december 30, 1957 detroit, mi? | CREATE TABLE table_1198175_1 (name VARCHAR, born VARCHAR) | SELECT name FROM table_1198175_1 WHERE born = "December 30, 1957 Detroit, MI" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
4959,
3072,
834,
536,
41,
4350,
584,
4280,
28027,
6,
2170,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
116,
2170,
19,
20,
75,
18247,
11558,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
19993,
4959,
3072,
834,
536,
549,
17444,
427,
2170,
3274,
96,
29835,
11558,
24011,
11901,
6,
8161,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the spike for the Army Club in 2008? | CREATE TABLE table_66569 (
"Name" text,
"Height" text,
"Weight" text,
"Spike" text,
"2008 club" text
) | SELECT "Spike" FROM table_66569 WHERE "2008 club" = 'army' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
755,
3951,
41,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
1499,
6,
96,
134,
102,
5208,
121,
1499,
6,
96,
16128,
1886,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
134,
102,
5208,
121,
21680,
953,
834,
3539,
755,
3951,
549,
17444,
427,
96,
16128,
1886,
121,
3274,
3,
31,
6768,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the losing bonus that had 53 points? | CREATE TABLE table_22023 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Losing bonus" FROM table_22023 WHERE "Points" = '53' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1755,
2773,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
7,
53,
4023,
121,
21680,
953,
834,
357,
1755,
2773,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
4867,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest Extras with an E.R. of 4.59, and more than 101 Runs Conceded? | CREATE TABLE table_name_9 (
extras INTEGER,
er VARCHAR,
runs_conceded VARCHAR
) | SELECT MAX(extras) FROM table_name_9 WHERE er = 4.59 AND runs_conceded > 101 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
996,
7,
3,
21342,
17966,
6,
3,
49,
584,
4280,
28027,
6,
3154,
834,
11620,
221,
26,
584,
4280,
28027,
3,
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,
4800,
4,
599,
25666,
7,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
3,
49,
3274,
2853,
3390,
3430,
3154,
834,
11620,
221,
26,
2490,
13736,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Playing in the Bundesliga league, what was the Away record for the team with an At Home record of 1-2? | CREATE TABLE table_58960 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
) | SELECT "Away" FROM table_58960 WHERE "Home" = '1-2' AND "League" = 'bundesliga' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
27699,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
18699,
7,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
121,
21680,
953,
834,
3449,
27699,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
9596,
31,
3430,
96,
2796,
9,
5398,
121,
3274,
3,
31,
9617,
1395,
17140,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who drove during the race with less than 19 laps and a time listed as ignition? | CREATE TABLE table_51950 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Driver" FROM table_51950 WHERE "Laps" < '19' AND "Time/Retired" = 'ignition' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
25188,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20982,
52,
121,
21680,
953,
834,
5553,
25188,
549,
17444,
427,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
2294,
31,
3430,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
3191,
4749,
31,
1,
-100,
-100,
-100,
-100,... |
What is the score on 23 November 1983 with exeter city as the away team? | CREATE TABLE table_name_31 (score VARCHAR, date VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_31 WHERE date = "23 november 1983" AND away_team = "exeter city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
30,
190... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
833,
3274,
96,
2773,
3,
5326,
18247,
15041,
121,
3430,
550,
834,
11650,
3274,
96,
6667,
449,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a bar chart about the distribution of password and author_tutor_ATB . | CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_n... | SELECT password, author_tutor_ATB FROM Course_Authors_and_Tutors ORDER BY personal_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
834,
382,
222,
7,
834,
29468,
29,
41,
3816,
834,
23,
26,
3,
21342,
17966,
6,
833,
834,
4377,
834,
4914,
29,
309,
6048,
382,
15382,
6,
794,
834,
60,
7,
83,
17,
584,
4280,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4735,
6,
2291,
834,
17,
76,
17,
127,
834,
5767,
279,
21680,
8670,
834,
23602,
127,
7,
834,
232,
834,
28676,
7,
4674,
11300,
272,
476,
525,
834,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Round has a School/Club Team of arizona, and a Pick smaller than 298? | CREATE TABLE table_name_68 (round INTEGER, school_club_team VARCHAR, pick VARCHAR) | SELECT MAX(round) FROM table_name_68 WHERE school_club_team = "arizona" AND pick < 298 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
7775,
3,
21342,
17966,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9609,
65,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
7775,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
1665,
8892,
9,
121,
3430,
1432,
3,
2,
204,
3916,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date for mark cavendish | CREATE TABLE table_name_10 (
date VARCHAR,
winner VARCHAR
) | SELECT date FROM table_name_10 WHERE winner = "mark cavendish" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
833,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
21,
3946,
9634,
727,
1273,
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,
833,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
4668,
3274,
96,
3920,
9634,
727,
1273,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many different positions are there? | CREATE TABLE player (POSITION VARCHAR) | SELECT COUNT(DISTINCT POSITION) FROM player | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
16034,
196,
9562,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
315,
4655,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
3,
16034,
196,
9562,
61,
21680,
1959,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of female patients who have lab test item id 50824? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.itemid = "50824" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Return a bar chart to show how many documents for different budget type code. | CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARC... | SELECT T1.Budget_Type_Code, COUNT(T1.Budget_Type_Code) FROM Documents_with_Expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_Code = T2.Budget_Type_Code GROUP BY T1.Budget_Type_Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6288,
7,
41,
6288,
834,
4309,
3,
21342,
17966,
6,
16836,
834,
4309,
3,
21342,
17966,
6,
6288,
834,
2962,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
279,
13164,
17,
834,
25160,
834,
22737,
6,
2847,
17161,
599,
382,
5411,
279,
13164,
17,
834,
25160,
834,
22737,
61,
21680,
11167,
7,
834,
4065,
834,
12882,
5167,
7,
6157,
332,
536,
3,
15355,
3162,
419,
89... |
what is the marital stauts and primary disease for the patient name hector blair? | 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 demographic.marital_status, demographic.diagnosis FROM demographic WHERE demographic.name = "Hector Blair" | [
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,
14798,
5,
1635,
9538,
834,
8547,
302,
6,
14798,
5,
25930,
4844,
159,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
3845,
5317,
25594,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the away team at Arden Street Oval? | CREATE TABLE table_name_24 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team FROM table_name_24 WHERE venue = "arden street oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
550,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
550,
372,
44,
22635,
35,
1887,
411,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
5669,
3274,
96,
986,
35,
2815,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who are all the candidates who ran in the district where Ralph Regula is the incumbent? | CREATE TABLE table_18229 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Candidates" FROM table_18229 WHERE "Incumbent" = 'Ralph Regula' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
357,
3166,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14050,
12416,
6203,
121,
21680,
953,
834,
2606,
357,
3166,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
448,
138,
102,
107,
7777,
83,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the total number for reason for change is district michigan 3rd? | CREATE TABLE table_20877 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) | SELECT COUNT("Reason for change") FROM table_20877 WHERE "District" = 'Michigan 3rd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
27697,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
25203,
1016,
121,
1499,
6,
96,
1649,
9,
739,
21,
483,
121,
1499,
6,
96,
134,
17431,
24901,
121,
1499,
6,
96,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1649,
9,
739,
21,
483,
8512,
21680,
953,
834,
1755,
27697,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
329,
362,
12588,
220,
52,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the streak for game 16 when the Dolphins had 21 points? | CREATE TABLE table_77448 (
"Game" text,
"Date" text,
"Opponent" text,
"Result" text,
"Dolphins' points" text,
"Opponents' Points" text,
"Record" text,
"Streak" text,
"Attendance" text
) | SELECT "Streak" FROM table_77448 WHERE "Dolphins' points" = '21' AND "Game" = '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
591,
3707,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
308,
23589,
77,
7,
31,
979,
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,
11500,
15,
1639,
121,
21680,
953,
834,
4013,
591,
3707,
549,
17444,
427,
96,
308,
23589,
77,
7,
31,
979,
121,
3274,
3,
31,
2658,
31,
3430,
96,
23055,
121,
3274,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What's the Proto-Germanic when the German is /t/? | CREATE TABLE table_66291 (
"Proto-Germanic" text,
"West Germanic" text,
"Old English" text,
"German" text,
"Dutch" text
) | SELECT "Proto-Germanic" FROM table_66291 WHERE "German" = '/t/' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
357,
4729,
41,
96,
3174,
235,
18,
24518,
447,
121,
1499,
6,
96,
19069,
2968,
447,
121,
1499,
6,
96,
667,
40,
26,
1566,
121,
1499,
6,
96,
24518,
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,
235,
18,
24518,
447,
121,
21680,
953,
834,
3539,
357,
4729,
549,
17444,
427,
96,
24518,
121,
3274,
3,
31,
87,
17,
87,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which city has the ICAO of LIRF? | CREATE TABLE table_name_84 (
city VARCHAR,
icao VARCHAR
) | SELECT city FROM table_name_84 WHERE icao = "lirf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
690,
584,
4280,
28027,
6,
3,
2617,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
690,
65,
8,
3,
15038,
667,
13,
8729,
8556,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
3,
2617,
32,
3274,
96,
40,
23,
52,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When is cyrillic name other names and village is the type and orthodox Christianity is the dominant religion of 2002 what is the settlement? | CREATE TABLE table_27855 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
) | SELECT "Settlement" FROM table_27855 WHERE "Dominant religion (2002)" = 'Orthodox Christianity' AND "Type" = 'village' AND "Cyrillic Name Other Names" = 'Ратково' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3940,
3769,
41,
96,
17175,
17,
3335,
121,
1499,
6,
96,
254,
63,
52,
173,
2176,
5570,
2502,
5570,
7,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
27773,
7830,
25163,
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,
17175,
17,
3335,
121,
21680,
953,
834,
357,
3940,
3769,
549,
17444,
427,
96,
4135,
1109,
288,
5562,
3,
31444,
121,
3274,
3,
31,
7395,
189,
32,
11990,
19013,
31,
3430,
96,
25160,
121,
3274,
3,
31,
208,
17614,
3... |
give me the number of patients with celo-vessicle fistula primary disease who had other and unspecified coronary arteriography. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "CELO-VESSICLE FISTULA" AND procedures.short_title = "Coronary arteriogram NEC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which Tries for has Points against larger than 87, and Tries against smaller than 28, and Points diff of +63? | CREATE TABLE table_name_69 (
tries_for INTEGER,
points_diff VARCHAR,
points_against VARCHAR,
tries_against VARCHAR
) | SELECT AVG(tries_for) FROM table_name_69 WHERE points_against > 87 AND tries_against < 28 AND points_diff = "+63" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
3,
9000,
834,
1161,
3,
21342,
17966,
6,
979,
834,
26,
5982,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
3,
9000,
834,
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,
1... | [
3,
23143,
14196,
71,
17217,
599,
9000,
834,
1161,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
2490,
3,
4225,
3430,
3,
9000,
834,
9,
16720,
7,
17,
3,
2,
2059,
3430,
979,
834,
26,
5982,
3274,
... |
Who went on a rampage in Baghdad? | CREATE TABLE table_name_85 (
perpetrator VARCHAR,
location VARCHAR
) | SELECT perpetrator FROM table_name_85 WHERE location = "baghdad" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
28998,
127,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
877,
30,
3,
9,
10785,
545,
16,
8055,
107,
14677,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
28998,
127,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1128,
3274,
96,
7893,
107,
14677,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Height for Years of Rockets of 2005-06? | CREATE TABLE table_54249 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
) | SELECT "Height in Ft." FROM table_54249 WHERE "Years for Rockets" = '2005-06' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
357,
3647,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
5,
599,
7,
61,
121,
1499,
6,
96,
3845,
2632,
16,
377,
17,
535,
1499,
6,
96,
345,
32,
7,
4749,
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,
3845,
2632,
16,
377,
17,
535,
21680,
953,
834,
5062,
357,
3647,
549,
17444,
427,
96,
476,
2741,
7,
21,
22176,
7,
121,
3274,
3,
31,
22594,
18,
5176,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Color has a Transcription of wan suk? | CREATE TABLE table_name_16 (color VARCHAR, transcription VARCHAR) | SELECT color FROM table_name_16 WHERE transcription = "wan suk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
9910,
584,
4280,
28027,
6,
20267,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
6088,
65,
3,
9,
3083,
29,
11830,
13,
3,
3877,
3,
7,
1598,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
945,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
20267,
3274,
96,
3877,
3,
7,
1598,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score in the game where Carolina was the home team and Niittymaki received the decision? | CREATE TABLE table_name_90 (score VARCHAR, decision VARCHAR, home VARCHAR) | SELECT score FROM table_name_90 WHERE decision = "niittymaki" AND home = "carolina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
7,
9022,
584,
4280,
28027,
6,
1357,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
16,
8,
467,
213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1357,
3274,
96,
29,
23,
17132,
51,
11259,
121,
3430,
234,
3274,
96,
1720,
12057,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is admission type and lab test name of subject id 2560? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT demographic.admission_type, lab.label FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
6137,
6,
7690,
5,
40,
10333,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
14798,
5,
7... |
Who directed the show that had a TV broadcast of S07E04? | CREATE TABLE table_16090262_1 (directed_by VARCHAR, tv_broadcast VARCHAR) | SELECT directed_by FROM table_16090262_1 WHERE tv_broadcast = "S07E04" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
2394,
2688,
357,
834,
536,
41,
22955,
834,
969,
584,
4280,
28027,
6,
3,
17,
208,
834,
115,
8635,
5254,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
6640,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6640,
834,
969,
21680,
953,
834,
19129,
2394,
2688,
357,
834,
536,
549,
17444,
427,
3,
17,
208,
834,
115,
8635,
5254,
3274,
96,
134,
4560,
427,
6348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what's the cost of a procedure called non-cardiac angiography - venogram? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'treatment' AND cost.eventid IN (SELECT treatment.treatmentid FROM treatment WHERE treatment.treatmentname = 'non-cardiac angiography - venogram') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
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,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
26889,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
1058,
5,
26889,
23,
26,
21680,
1058,
549,
... |
How much Quantity has a Type of 1′c1′ h2t? | CREATE TABLE table_name_11 (quantity VARCHAR, type VARCHAR) | SELECT COUNT(quantity) FROM table_name_11 WHERE type = "1′c1′ h2t" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
13158,
485,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
12716,
485,
65,
3,
9,
6632,
13,
209,
17774,
75,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
13158,
485,
61,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
686,
3274,
96,
536,
17774,
75,
536,
17774,
3,
107,
357,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35? | CREATE TABLE table_61274 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT AVG("Played") FROM table_61274 WHERE "Position" < '4' AND "Wins" > '16' AND "Points" = '38' AND "Goals against" > '35' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
2555,
591,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
15800,
15,
26,
8512,
21680,
953,
834,
4241,
2555,
591,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3,
2,
3,
31,
591,
31,
3430,
96,
18455,
7,
121,
2490,
3,
31,
2938,
31,
3430,
96,
22512,
7,... |
What was the Result in Year 1973? | CREATE TABLE table_name_97 (result VARCHAR, year VARCHAR) | SELECT result FROM table_name_97 WHERE year = 1973 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
20119,
16,
2929,
17107,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
215,
3274,
17107,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many nationalities does Alex Nikolic come from? | CREATE TABLE table_2897457_7 (
nationality VARCHAR,
player VARCHAR
) | SELECT COUNT(nationality) FROM table_2897457_7 WHERE player = "Alex Nikolic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3914,
4581,
3436,
834,
940,
41,
1157,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1157,
2197,
405,
5104,
445,
12027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
16557,
485,
61,
21680,
953,
834,
357,
3914,
4581,
3436,
834,
940,
549,
17444,
427,
1959,
3274,
96,
27280,
445,
12027,
2176,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of patients whose primary disease is pneumonia and procedure short title is intraop cardiac pacemaker. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "PNEUMONIA" AND procedures.short_title = "Intraop cardiac pacemak" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What instruments did the musician with the last name 'Heilo' play in the song 'Le Pop'? | CREATE TABLE tracklists (
albumid number,
position number,
songid number
)
CREATE TABLE vocals (
songid number,
bandmate number,
type text
)
CREATE TABLE songs (
songid number,
title text
)
CREATE TABLE albums (
aid number,
title text,
year number,
label text,
type... | SELECT T4.instrument FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid JOIN instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Le Pop" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1463,
3350,
7,
41,
2306,
23,
26,
381,
6,
1102,
381,
6,
2324,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6721,
7,
41,
2324,
23,
26,
381,
6,
1928,
505... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7984,
25232,
21680,
821,
6157,
332,
536,
3,
15355,
3162,
1928,
6157,
332,
357,
9191,
332,
5411,
3348,
5058,
3274,
332,
4416,
23,
26,
3,
15355,
3162,
3605,
6157,
332,
519,
9191,
332,
5787,
7,
2444,
23,
26,
3274,... |
What is the tie no for the home team swansea city? | CREATE TABLE table_79356 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Tie no" FROM table_79356 WHERE "Home team" = 'swansea city' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
2469,
948,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
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,
382,
23,
15,
150,
121,
21680,
953,
834,
4440,
2469,
948,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
7,
3877,
7,
15,
9,
690,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Tell me the hanja of eum | CREATE TABLE table_31731 (
"Hangul" text,
"Hanja" text,
"Revised" text,
"McCune-Reischauer" text,
"Estimated distribution (2000)*" real
) | SELECT "Hanja" FROM table_31731 WHERE "Revised" = 'eum' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2517,
3341,
41,
96,
566,
1468,
83,
121,
1499,
6,
96,
566,
152,
1191,
121,
1499,
6,
96,
1649,
208,
3375,
121,
1499,
6,
96,
329,
75,
254,
444,
18,
1649,
2499,
12668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
566,
152,
1191,
121,
21680,
953,
834,
519,
2517,
3341,
549,
17444,
427,
96,
1649,
208,
3375,
121,
3274,
3,
31,
15,
440,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Equestrian Time (pts) has an Athlete of omnia fakhry ( egy )? | CREATE TABLE table_65455 (
"Athlete" text,
"Shooting Score (pts)" text,
"Fencing Victories (pts)" text,
"Swimming Time (pts)" text,
"Equestrian Time (pts)" text,
"Running Time (pts)" text,
"Total" real
) | SELECT "Equestrian Time (pts)" FROM table_65455 WHERE "Athlete" = 'omnia fakhry ( egy )' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
2128,
755,
41,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
10499,
32,
32,
1222,
17763,
41,
102,
17,
7,
61,
121,
1499,
6,
96,
371,
15,
4733,
8884,
725,
41,
102,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
10952,
5288,
2900,
41,
102,
17,
7,
61,
121,
21680,
953,
834,
4122,
2128,
755,
549,
17444,
427,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
16378,
9,
3,
89,
18965,
651,
41,
3,
15,
122,
63,
3,
61,
31,
1... |
What is the result of Samantha Morton being up for best supporting actress in a year later than 1989? | CREATE TABLE table_name_78 (result VARCHAR, actor VARCHAR, year VARCHAR, category VARCHAR) | SELECT result FROM table_name_78 WHERE year > 1989 AND category = "best supporting actress" AND actor = "samantha morton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
7556,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
3295,
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,
741,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
215,
2490,
9975,
3430,
3295,
3274,
96,
9606,
3956,
15676,
121,
3430,
7556,
3274,
96,
7,
9,
348,
189,
9,
7971,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many iops can the ocz vertex 3 handle at most ? | CREATE TABLE table_204_152 (
id number,
"device" text,
"type" text,
"iops" text,
"interface" text,
"notes" text
) | SELECT "iops" FROM table_204_152 WHERE "device" = 'ocz vertex 3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
26320,
41,
3,
23,
26,
381,
6,
96,
9776,
867,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
23,
9280,
121,
1499,
6,
96,
3870,
4861,
121,
1499,
6,
96,
7977,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23,
9280,
121,
21680,
953,
834,
26363,
834,
26320,
549,
17444,
427,
96,
9776,
867,
121,
3274,
3,
31,
32,
75,
172,
548,
10354,
220,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Total has a Bronze larger than 1, and a Gold larger than 0? | CREATE TABLE table_name_57 (total INTEGER, bronze VARCHAR, gold VARCHAR) | SELECT MAX(total) FROM table_name_57 WHERE bronze > 1 AND gold > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
235,
1947,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9273,
65,
3,
9,
20841,
2186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
13467,
2490,
209,
3430,
2045,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the end date for robert goebbels | CREATE TABLE table_name_50 (
end_date VARCHAR,
minister VARCHAR
) | SELECT end_date FROM table_name_50 WHERE minister = "robert goebbels" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
414,
834,
5522,
584,
4280,
28027,
6,
6323,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
414,
833,
21,
3,
5840,
49,
17,
281,
15,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
414,
834,
5522,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
6323,
3274,
96,
5840,
49,
17,
281,
15,
115,
2370,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
In what year was anna university - panruti campus established? | CREATE TABLE table_12463 (
"College or Campus Name" text,
"Location" text,
"District" text,
"Affiliation" text,
"Estd" real,
"Weblink" text
) | SELECT SUM("Estd") FROM table_12463 WHERE "College or Campus Name" = 'anna university - panruti campus' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22504,
3891,
41,
96,
9939,
7883,
42,
15201,
5570,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
308,
23,
20066,
121,
1499,
6,
96,
188,
89,
8027,
23,
257,
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,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
14997,
26,
8512,
21680,
953,
834,
22504,
3891,
549,
17444,
427,
96,
9939,
7883,
42,
15201,
5570,
121,
3274,
3,
31,
10878,
3819,
3,
18,
2131,
6830,
23,
4730,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the week 2 with daniella mugnolo in week 1? | CREATE TABLE table_name_83 (
week_2 VARCHAR,
week_1 VARCHAR
) | SELECT week_2 FROM table_name_83 WHERE week_1 = "daniella mugnolo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
471,
834,
357,
584,
4280,
28027,
6,
471,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
471,
204,
28,
3,
26,
2738,
530... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
471,
834,
357,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
471,
834,
536,
3274,
96,
26,
2738,
5303,
4035,
6715,
40,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
provide the number of patients whose marital status is divorced and admission year is less than 2115? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.admityear < "2115" | [
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,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
308,
7589,
2990,
254,
2326,
121,
3430,
14798,
5,
20466,
17,
... |
What was the score for the Perth Wildcats as away team? | CREATE TABLE table_9338 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
) | SELECT "Score" FROM table_9338 WHERE "Away team" = 'perth wildcats' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4271,
3747,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4271,
3747,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
883,
189,
3645,
2138,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which competition did the toronto city saints win? | CREATE TABLE table_25735_1 (competition VARCHAR, winner VARCHAR) | SELECT competition FROM table_25735_1 WHERE winner = "Toronto City Saints" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3436,
2469,
834,
536,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2259,
410,
8,
12,
4438,
32,
690,
15528,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2259,
21680,
953,
834,
357,
3436,
2469,
834,
536,
549,
17444,
427,
4668,
3274,
96,
3696,
4438,
32,
896,
2788,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the game played against a visiting team from Philadelphia? | CREATE TABLE table_name_65 (
date VARCHAR,
visitor VARCHAR
) | SELECT date FROM table_name_65 WHERE visitor = "philadelphia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
833,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
467,
1944,
581,
3,
9,
3644,
372,
45,
9511,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
7019,
3274,
96,
18118,
15311,
11692,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the away team at the game with an Attendance of 1,730? | CREATE TABLE table_name_73 (away_team VARCHAR, attendance VARCHAR) | SELECT away_team FROM table_name_73 WHERE attendance = "1,730" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
550,
372,
44,
8,
467,
28,
46,
22497,
663... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
11364,
3274,
96,
4347,
940,
1458,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart for what are the hometowns of gymnasts and the corresponding number of gymnasts?, and could you sort by the Y-axis from high to low? | CREATE TABLE gymnast (
Gymnast_ID int,
Floor_Exercise_Points real,
Pommel_Horse_Points real,
Rings_Points real,
Vault_Points real,
Parallel_Bars_Points real,
Horizontal_Bar_Points real,
Total_Points real
)
CREATE TABLE people (
People_ID int,
Name text,
Age real,
Height ... | SELECT Hometown, COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23379,
17,
41,
31560,
17,
834,
4309,
16,
17,
6,
12324,
834,
5420,
15,
21645,
15,
834,
22512,
7,
490,
6,
276,
7649,
40,
834,
566,
127,
7,
15,
834,
22512,
7,
490,
6,
7888,
7,
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,
1210,
3540,
6,
2847,
17161,
599,
1935,
61,
21680,
23379,
17,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
517,
63,
51,
29,
9,
7,
17,
834,
4309,
3274,
332,
4416,
24337,
834,
4309,
350,
4630... |
major depression, alcohol or drug dependence or suicidality | CREATE TABLE table_train_121 (
"id" int,
"depression" bool,
"suicidality" bool,
"neurodegenerative_disease" bool,
"unstable_asthmatic_condition" bool,
"vitamin_k_deficiency" bool,
"renal_disease" bool,
"cerebrovascular_disease" bool,
"hepatic_disease" bool,
"liver_disease" bool,
... | SELECT * FROM table_train_121 WHERE depression = 1 OR alcohol_abuse = 1 OR drug_abuse = 1 OR suicidality = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
22011,
41,
96,
23,
26,
121,
16,
17,
6,
96,
221,
8243,
121,
3,
12840,
40,
6,
96,
7,
76,
1294,
26,
10355,
121,
3,
12840,
40,
6,
96,
8992,
9488,
15,
25181,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22011,
549,
17444,
427,
7562,
3274,
209,
4674,
4798,
834,
9,
3465,
15,
3274,
209,
4674,
2672,
834,
9,
3465,
15,
3274,
209,
4674,
2629,
1294,
26,
10355,
3274,
209,
1,
-100,
-100,
-10... |
What is the average drawn of the team with a difference of 4 and more than 13 losses? | CREATE TABLE table_name_30 (drawn INTEGER, difference VARCHAR, lost VARCHAR) | SELECT AVG(drawn) FROM table_name_30 WHERE difference = "4" AND lost > 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
19489,
29,
3,
21342,
17966,
6,
1750,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
6796,
13,
8,
372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
19489,
29,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1750,
3274,
96,
20364,
3430,
1513,
2490,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
does olivier jacque have the same time as tetsuya harada ? | CREATE TABLE table_203_35 (
id number,
"pos" text,
"rider" text,
"manufacturer" text,
"time/retired" text,
"points" number
) | SELECT (SELECT "time/retired" FROM table_203_35 WHERE "rider" = 'olivier jacque') = (SELECT "time/retired" FROM table_203_35 WHERE "rider" = 'tetsuya harada') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2469,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
1499,
6,
96,
4055,
49,
121,
1499,
6,
96,
348,
76,
8717,
450,
49,
121,
1499,
6,
96,
715,
87,
10682,
1271,
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,
41,
23143,
14196,
96,
715,
87,
10682,
1271,
121,
21680,
953,
834,
23330,
834,
2469,
549,
17444,
427,
96,
4055,
49,
121,
3274,
3,
31,
4172,
5144,
2662,
75,
835,
31,
61,
3274,
41,
23143,
14196,
96,
715,
87,
10682,
1... |
How many draws with 1 loss? | CREATE TABLE table_name_55 (
draws INTEGER,
losses VARCHAR
) | SELECT SUM(draws) FROM table_name_55 WHERE losses = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
14924,
3,
21342,
17966,
6,
8467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14924,
28,
209,
1453,
58,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
19489,
7,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
8467,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which award was nominated for in 2000? | CREATE TABLE table_name_37 (
award VARCHAR,
year VARCHAR,
result VARCHAR
) | SELECT award FROM table_name_37 WHERE year = 2000 AND result = "nominated" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
2760,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2760,
47,
150,
1109,
920,
21,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2760,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
215,
3274,
2766,
3430,
741,
3274,
96,
3114,
77,
920,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which route was eliminated first ? | CREATE TABLE table_204_178 (
id number,
"number" text,
"south/west end" text,
"north/east end" text,
"formed" text,
"eliminated" text
) | SELECT "number" FROM table_204_178 ORDER BY "eliminated" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
27640,
41,
3,
23,
26,
381,
6,
96,
5525,
1152,
121,
1499,
6,
96,
7,
670,
107,
87,
12425,
414,
121,
1499,
6,
96,
29,
127,
189,
87,
11535,
414,
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,
5525,
1152,
121,
21680,
953,
834,
26363,
834,
27640,
4674,
11300,
272,
476,
96,
15,
4941,
77,
920,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-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, give me the comparison about salary over the first_name by a bar chart, I want to list Y from high to low order. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 regions (
REGION_ID decimal(5,0),
... | SELECT FIRST_NAME, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SALARY DESC | [
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,
30085,
834,
567,
17683,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
15610,
17966,
834,... |
Name the league finish for w being 11 | CREATE TABLE table_2748 (
"Season" real,
"Winner" text,
"Captain" text,
"Coach" text,
"League finish" text,
"Mat" real,
"W" real,
"L" real,
"Win %" text,
"Runner-up" text
) | SELECT "League finish" FROM table_2748 WHERE "W" = '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3707,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
19566,
17,
9,
77,
121,
1499,
6,
96,
3881,
1836,
121,
1499,
6,
96,
2796,
9,
5398,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5398,
1992,
121,
21680,
953,
834,
2555,
3707,
549,
17444,
427,
96,
518,
121,
3274,
3,
31,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How tall was Player #10? | CREATE TABLE table_580 (
"No" real,
"Player" text,
"Height" text,
"Position" text,
"Year born" real,
"Current Club" text
) | SELECT "Height" FROM table_580 WHERE "No" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2079,
41,
96,
4168,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
2170,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
2632,
121,
21680,
953,
834,
755,
2079,
549,
17444,
427,
96,
4168,
121,
3274,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the municipality that has an area of exactly 199.35 sq. km? | CREATE TABLE table_255885_1 (
municipality VARCHAR,
area__km²_ VARCHAR
) | SELECT municipality FROM table_255885_1 WHERE area__km²_ = "199.35" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3449,
4433,
834,
536,
41,
27597,
584,
4280,
28027,
6,
616,
834,
834,
5848,
357,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
27597,
24,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27597,
21680,
953,
834,
1828,
3449,
4433,
834,
536,
549,
17444,
427,
616,
834,
834,
5848,
357,
834,
3274,
96,
19479,
5,
2469,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest amount of points for a Ford Cosworth DFR (Mader) 3.5 V8 engine? | CREATE TABLE table_68626 (
"Year" real,
"Team" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT MIN("Points") FROM table_68626 WHERE "Engine" = 'ford cosworth dfr (mader) 3.5 v8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
948,
2688,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22512,
7,
8512,
21680,
953,
834,
3651,
948,
2688,
549,
17444,
427,
96,
31477,
121,
3274,
3,
31,
2590,
576,
7,
7048,
3,
26,
89,
52,
41,
4725,
52,
61,
3,
9285,
3,
208,
927,
31,
1,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.