NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Stacked bar chart of the number of left office for with each Minister in each left office, list the number of left office in desc order. | CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text,
Region_ID int,
Party_name text
)
CREATE TABLE party_events (
Event_ID in... | SELECT Left_office, COUNT(Left_office) FROM party GROUP BY Minister ORDER BY COUNT(Left_office) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1719,
41,
6163,
834,
4309,
16,
17,
6,
6163,
834,
4350,
1499,
6,
7678,
1499,
6,
16229,
1499,
6,
12439,
1499,
6,
22424,
76,
15,
1499,
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,
14298,
834,
19632,
6,
2847,
17161,
599,
2796,
89,
17,
834,
19632,
61,
21680,
1088,
350,
4630,
6880,
272,
476,
3271,
4674,
11300,
272,
476,
2847,
17161,
599,
2796,
89,
17,
834,
19632,
61,
309,
25067,
1,
-100,
-100,
-... |
Name the championship with reign of 8 | CREATE TABLE table_15273 (
"Championship" text,
"Current champion(s)" text,
"Reign" text,
"Date won" text,
"Days held" real,
"Location" text
) | SELECT "Championship" FROM table_15273 WHERE "Reign" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26320,
4552,
41,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
254,
450,
5320,
6336,
599,
7,
61,
121,
1499,
6,
96,
1649,
3191,
121,
1499,
6,
96,
308,
342,
751,
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,
254,
1483,
12364,
2009,
121,
21680,
953,
834,
26320,
4552,
549,
17444,
427,
96,
1649,
3191,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-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, show me about the distribution of job_id and the sum of salary , and group by attribute job_id in a bar chart, I want to display by the X in desc please. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varc... | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
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,
446,
10539,
834,
4309,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
3,
2... |
What location did the event kotc: mortal sins take place? | CREATE TABLE table_77287 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Location" FROM table_77287 WHERE "Event" = 'kotc: mortal sins' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
357,
4225,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
4013,
357,
4225,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
15414,
75,
10,
24301,
3731,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the iata when the city is tripoli? | CREATE TABLE table_49758 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | SELECT "IATA" FROM table_49758 WHERE "City" = 'tripoli' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4327,
3449,
41,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,
667,
121,
1499,
6,
96,
20162,
1493,
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,
0... | [
3,
23143,
14196,
96,
196,
19282,
121,
21680,
953,
834,
591,
4327,
3449,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
1788,
3003,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What date did South Melbourne play as the Away team? | CREATE TABLE table_name_79 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_79 WHERE away_team = "south melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
410,
1013,
9396,
577,
38,
8,
71,
1343,
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,
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,
4440,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
670,
107,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose discharge location is rehab/distinct part hosp were diagnosed with myalgia and myositis nos? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND diagnoses.short_title = "Myalgia and myositis NOS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
How many customers are there? | CREATE TABLE staff (
staff_id number,
staff_address_id number,
nickname text,
first_name text,
middle_name text,
last_name text,
date_of_birth time,
date_joined_staff time,
date_left_staff time
)
CREATE TABLE customer_payments (
customer_id number,
datetime_payment time,
... | SELECT COUNT(*) FROM customers | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
871,
41,
871,
834,
23,
26,
381,
6,
871,
834,
9,
26,
12039,
834,
23,
26,
381,
6,
24649,
1499,
6,
166,
834,
4350,
1499,
6,
2214,
834,
4350,
1499,
6,
336,
834,
4350,
1499,
6,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
722,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who had a score of 70-73-69=212? | CREATE TABLE table_name_91 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_91 WHERE score = 70 - 73 - 69 = 212 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
20846,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
3,
9,
2604,
13,
2861,
18,
4552,
18,
3951,
2423,
24837,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
2604,
3274,
2861,
3,
18,
3,
4552,
3,
18,
3,
3951,
3274,
3,
24837,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the runner up when the won by 4 strokes? | CREATE TABLE table_21649285_2 (runner_s__up VARCHAR, margin_of_victory VARCHAR) | SELECT runner_s__up FROM table_21649285_2 WHERE margin_of_victory = "4 strokes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4389,
4508,
4433,
834,
357,
41,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
6,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10806,
834,
7,
834,
834,
413,
21680,
953,
834,
2658,
4389,
4508,
4433,
834,
357,
549,
17444,
427,
6346,
834,
858,
834,
7287,
10972,
3274,
96,
591,
9529,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many runs allowed did the team ranked 2 with more than 2 losses have? | CREATE TABLE table_67841 (
"Rank" real,
"Team" text,
"Wins" real,
"Losses" real,
"Runs Allowed" real,
"Run Ratio" real
) | SELECT AVG("Runs Allowed") FROM table_67841 WHERE "Rank" = '2' AND "Losses" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4608,
536,
41,
96,
22557,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
448,
202,
7,
432,
9200,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
448,
202,
7,
432,
9200,
8512,
21680,
953,
834,
3708,
4608,
536,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
357,
31,
3430,
96,
434,
13526,
7,
121,
2490,
3,
31,
357,
31,
1,
-100,
-100,
-100... |
how many buildings are from the year 1863 ? | CREATE TABLE table_204_498 (
id number,
"location" text,
"building" text,
"year" number,
"km" number,
"monument" number
) | SELECT COUNT("building") FROM table_204_498 WHERE "year" = 1863 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
3916,
41,
3,
23,
26,
381,
6,
96,
14836,
121,
1499,
6,
96,
10905,
121,
1499,
6,
96,
1201,
121,
381,
6,
96,
5848,
121,
381,
6,
96,
2157,
76,
297,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
10905,
8512,
21680,
953,
834,
26363,
834,
591,
3916,
549,
17444,
427,
96,
1201,
121,
3274,
507,
3891,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose diagnoses short title is peritonitis nos and lab test category is blood gas? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Peritonitis NOS" AND lab."CATEGORY" = "Blood Gas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Which team drafted Esa Tikkanen? | CREATE TABLE table_29021 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "NHL team" FROM table_29021 WHERE "Player" = 'Esa Tikkanen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23838,
2658,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15743,
434,
372,
121,
21680,
953,
834,
23838,
2658,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
427,
7,
9,
2262,
157,
3304,
35,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What title was watched by 3.8 million US viewers? | CREATE TABLE table_26448179_3 (title VARCHAR, us_viewers__millions_ VARCHAR) | SELECT title FROM table_26448179_3 WHERE us_viewers__millions_ = "3.8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26755,
3707,
26593,
834,
519,
41,
21869,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2233,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
26755,
3707,
26593,
834,
519,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
3274,
96,
26195,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the number of patients whose admission type is emergency and drug name is 0.9% sodium chloride (mini bag plus)? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.drug = "0.9% Sodium Chloride (Mini Bag Plus)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
List all different genre types. | CREATE TABLE genres (
id number,
name text
)
CREATE TABLE playlists (
id number,
name text
)
CREATE TABLE employees (
id number,
last_name text,
first_name text,
title text,
reports_to number,
birth_date time,
hire_date time,
address text,
city text,
state text,... | SELECT DISTINCT name FROM genres | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5349,
7,
41,
3,
23,
26,
381,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
23424,
7,
41,
3,
23,
26,
381,
6,
564,
1499,
3,
61,
3,
32102,
32103,
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,
3,
15438,
25424,
6227,
564,
21680,
5349,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the venue on October 13, 2007? | CREATE TABLE table_46196 (
"Date" text,
"Venue" text,
"Score" text,
"Competition" text,
"Report" text
) | SELECT "Venue" FROM table_46196 WHERE "Date" = 'october 13, 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
26937,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
1649,
1493,
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,
0,
0... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
4448,
26937,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
32,
75,
235,
1152,
10670,
4101,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the date for the race that has a circuit of Milwaukee Mile and the sanctioning of cart? | CREATE TABLE table_name_10 (
date VARCHAR,
circuit VARCHAR,
sanctioning VARCHAR
) | SELECT date FROM table_name_10 WHERE circuit = "milwaukee mile" AND sanctioning = "cart" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
833,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
6,
26419,
53,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
21,
8,
1964,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
4558,
3274,
96,
51,
173,
210,
402,
1050,
15,
7728,
121,
3430,
26419,
53,
3274,
96,
1720,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who directed the episode that has 3x6752 listed as the production code? | CREATE TABLE table_22347090_4 (
directed_by VARCHAR,
production_code VARCHAR
) | SELECT directed_by FROM table_22347090_4 WHERE production_code = "3X6752" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3710,
2518,
2394,
834,
591,
41,
6640,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
6640,
8,
5640,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6640,
834,
969,
21680,
953,
834,
2884,
3710,
2518,
2394,
834,
591,
549,
17444,
427,
999,
834,
4978,
3274,
96,
519,
4,
3708,
5373,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHich Category in White has a Amerindian of 4,87%? | CREATE TABLE table_name_96 (
white VARCHAR,
amerindian VARCHAR
) | SELECT white FROM table_name_96 WHERE amerindian = "4,87%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
872,
584,
4280,
28027,
6,
183,
6655,
8603,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3,
15313,
362,
17459,
16,
1945,
65,
3,
9,
736,
6655,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
872,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
183,
6655,
8603,
3274,
96,
8525,
927,
6170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of job_id and the amount of job_id , and group by attribute job_id, and I want to sort by the how many job id from high to low. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(2... | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY COUNT(JOB_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
446,
10539,
834,
4309,
6,
2847,
17161,
599,
15355,
279,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
6... |
When was the date of appointment by Hugo Broos? | CREATE TABLE table_27374004_4 (date_of_appointment VARCHAR, replaced_by VARCHAR) | SELECT date_of_appointment FROM table_27374004_4 WHERE replaced_by = "Hugo Broos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4118,
5548,
591,
834,
591,
41,
5522,
834,
858,
834,
9,
102,
2700,
297,
584,
4280,
28027,
6,
5821,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
834,
858,
834,
9,
102,
2700,
297,
21680,
953,
834,
2555,
4118,
5548,
591,
834,
591,
549,
17444,
427,
5821,
834,
969,
3274,
96,
13284,
839,
4027,
32,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which institution was located in bakersfield, california? | CREATE TABLE table_30010 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Current Conference" text,
"Pac-12 Sports" text
) | SELECT "Institution" FROM table_30010 WHERE "Location" = 'Bakersfield, California' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
1714,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1570,
17448,
121,
21680,
953,
834,
5426,
1714,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
279,
9,
11758,
1846,
6,
1826,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
critical ( >= 95 % ) left main stem coronary artery stenosis | CREATE TABLE table_test_27 (
"id" int,
"anemia" bool,
"bleeding" int,
"left_ventricular_ejection_fraction_lvef" int,
"intra_aortic_balloon_pump_iabp" bool,
"systolic_blood_pressure_sbp" int,
"left_main_stem_coronary_artery_stenosis" int,
"haemoglobin" float,
"renal_disease" bool,
... | SELECT * FROM table_test_27 WHERE left_main_stem_coronary_artery_stenosis >= 95 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
2555,
41,
96,
23,
26,
121,
16,
17,
6,
96,
152,
11658,
121,
3,
12840,
40,
6,
96,
27779,
53,
121,
16,
17,
6,
96,
17068,
834,
31695,
834,
15,
21440,
834,
22513,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4377,
834,
2555,
549,
17444,
427,
646,
834,
7484,
834,
7,
3524,
834,
5715,
106,
1208,
834,
27845,
834,
1913,
32,
7,
159,
2490,
2423,
11923,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the total number of rider ? | CREATE TABLE table_204_352 (
id number,
"pos" text,
"no" number,
"rider" text,
"manufacturer" text,
"laps" number,
"time" text,
"grid" number,
"points" number
) | SELECT COUNT("rider") FROM table_204_352 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2469,
357,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
1499,
6,
96,
29,
32,
121,
381,
6,
96,
4055,
49,
121,
1499,
6,
96,
348,
76,
8717,
450,
49,
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,
2847,
17161,
599,
121,
4055,
49,
8512,
21680,
953,
834,
26363,
834,
2469,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the name of the specimen test that patient 031-23605 first got? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospit... | SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-23605')) ORDER BY microlab.culturetakentime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2179,
9339,
5,
10547,
3585,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
1... |
For those records from the products and each product's manufacturer, find name and the sum of price , and group by attribute name, and visualize them by a bar chart, and rank in desc by the bars. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
441... |
For those records from the products and each product's manufacturer, show me about the distribution of name and the sum of code , and group by attribute name in a bar chart, order x axis from high to low order. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5411,
2... |
For all employees who have the letters D or S in their first name, draw a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by time, show y-axis from high to low order. | 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),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
... |
What is the record when Clippers have the high points? | CREATE TABLE table_55965 (
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Record" FROM table_55965 WHERE "High points" = 'clippers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3390,
4122,
41,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23768,
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,
1649,
7621,
121,
21680,
953,
834,
755,
3390,
4122,
549,
17444,
427,
96,
21417,
979,
121,
3274,
3,
31,
16744,
4660,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What percent of respondents had no opinion on George H.W. Bush? | CREATE TABLE table_name_84 (
george_h_w_bush VARCHAR,
result VARCHAR
) | SELECT george_h_w_bush FROM table_name_84 WHERE result = "no opinion" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
873,
1677,
15,
834,
107,
834,
210,
834,
3465,
107,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1093,
13,
164... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
873,
1677,
15,
834,
107,
834,
210,
834,
3465,
107,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
741,
3274,
96,
29,
32,
3474,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What year did team Yamaha have 0 wins, a rank of 8th, and more than 22 points? | CREATE TABLE table_39321 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
) | SELECT COUNT("Year") FROM table_39321 WHERE "Team" = 'yamaha' AND "Wins" = '0' AND "Rank" = '8th' AND "Points" > '22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
519,
2658,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
22557,
121,
1499,
6,
96,
18455,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
476,
2741,
8512,
21680,
953,
834,
3288,
519,
2658,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
22990,
1024,
31,
3430,
96,
18455,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
22557,
121,
3274,
3... |
WHO WAS THE SEMIFINALISTS FOR THE HAMBURG TOURNAMENT? | CREATE TABLE table_49698 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner" text,
"Finalist" text,
"Semifinalists" text
) | SELECT "Semifinalists" FROM table_49698 WHERE "Tournament" = 'hamburg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4314,
3916,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
518,
10266,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
371,
10270,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
51,
23,
28077,
121,
21680,
953,
834,
591,
4314,
3916,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
1483,
4824,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the airport with IATA of cxb | CREATE TABLE table_name_64 (
airport VARCHAR,
iata VARCHAR
) | SELECT airport FROM table_name_64 WHERE iata = "cxb" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
3761,
584,
4280,
28027,
6,
3,
17221,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3761,
28,
27,
19282,
13,
3,
75,
226,
115,
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,
3761,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
3,
17221,
3274,
96,
75,
226,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000. | CREATE TABLE ship (
ship_id number,
name text,
type text,
nationality text,
tonnage number
)
CREATE TABLE mission (
mission_id number,
ship_id number,
code text,
launched_year number,
location text,
speed_knots number,
fate text
) | SELECT type FROM ship WHERE tonnage > 6000 INTERSECT SELECT type FROM ship WHERE tonnage < 4000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
4383,
834,
23,
26,
381,
6,
564,
1499,
6,
686,
1499,
6,
1157,
485,
1499,
6,
12,
29,
9761,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2253,
41,
2253,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
686,
21680,
4383,
549,
17444,
427,
12,
29,
9761,
2490,
3,
21987,
3,
21342,
5249,
14196,
3,
23143,
14196,
686,
21680,
4383,
549,
17444,
427,
12,
29,
9761,
3,
2,
314,
2313,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what song is listed in the table right before layla layla ? | CREATE TABLE table_203_862 (
id number,
"draw" number,
"artist" text,
"song" text,
"points" number,
"place" text
) | SELECT "song" FROM table_203_862 WHERE id = (SELECT id FROM table_203_862 WHERE "song" = '"layla layla"') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3840,
357,
41,
3,
23,
26,
381,
6,
96,
19489,
121,
381,
6,
96,
1408,
343,
121,
1499,
6,
96,
7,
2444,
121,
1499,
6,
96,
2700,
7,
121,
381,
6,
96,
4687,
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,
7,
2444,
121,
21680,
953,
834,
23330,
834,
3840,
357,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
3840,
357,
549,
17444,
427,
96,
7,
2444,
121,
3274,
3,
31,
12... |
What is Points Against, when Try Bonus is 'Try bonus'? | CREATE TABLE table_61871 (
"Club" text,
"Played" 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 "Points against" FROM table_61871 WHERE "Try bonus" = 'try bonus' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
4225,
536,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
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,
22512,
7,
581,
121,
21680,
953,
834,
4241,
4225,
536,
549,
17444,
427,
96,
382,
651,
4023,
121,
3274,
3,
31,
8224,
4023,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give the primary disease and procedure icd9 code for subject id 18077. | 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 lab (
subject_id text,
hadm_id text,
... | SELECT demographic.diagnosis, procedures.icd9_code FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "18077" | [
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,
25930,
4844,
159,
6,
4293,
5,
447,
26,
1298,
834,
4978,
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,
427,
1479... |
Who was the incoming manager for the date of appointment of 15 january 2011? | CREATE TABLE table_29168 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text
) | SELECT "Incoming manager" FROM table_29168 WHERE "Date of appointment" = '15 January 2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
24274,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
1570,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10622,
2743,
121,
21680,
953,
834,
3166,
24274,
549,
17444,
427,
96,
308,
342,
13,
4141,
121,
3274,
3,
31,
1808,
1762,
2722,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the ids and names of the architects who built at least 3 bridges , and I want to show by the total number in asc. | CREATE TABLE architect (
id text,
name text,
nationality text,
gender text
)
CREATE TABLE mill (
architect_id int,
id int,
location text,
name text,
type text,
built_year int,
notes text
)
CREATE TABLE bridge (
architect_id int,
id int,
name text,
location t... | SELECT T1.name, T1.id FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id ORDER BY T1.id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
13188,
41,
3,
23,
26,
1499,
6,
564,
1499,
6,
1157,
485,
1499,
6,
7285,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3293,
41,
13188,
834,
23,
26,
16,
17,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
6,
332,
5411,
23,
26,
21680,
13188,
6157,
332,
536,
3,
15355,
3162,
4716,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
7064,
23,
5822,
17,
834,
23,
26,
4674,
11300,
272,
476,
332,
541... |
On November 14, 2007, what are the Democrat: Vivian Davis Figures percentages? | CREATE TABLE table_16751596_12 (
democrat VARCHAR,
dates_administered VARCHAR
) | SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE dates_administered = "November 14, 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3072,
1808,
4314,
834,
2122,
41,
3,
23319,
584,
4280,
28027,
6,
5128,
834,
9,
26,
17791,
15,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
1671,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
23319,
6157,
3,
10,
834,
7003,
23,
152,
834,
26,
2960,
7,
834,
9178,
15,
7,
21680,
953,
834,
2938,
3072,
1808,
4314,
834,
2122,
549,
17444,
427,
5128,
834,
9,
26,
17791,
15,
26,
3274,
96,
28635,
11363,
4101,
... |
What was the end result for 28 February 2001? | CREATE TABLE table_name_52 (
result VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_52 WHERE date = "28 february 2001" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
414,
741,
21,
2059,
2083,
4402,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
833,
3274,
96,
2577,
29976,
76,
1208,
4402,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Owner Delivered the T415? | CREATE TABLE table_6592 (
"Locomotive" text,
"Delivered as" text,
"Entered service" text,
"Owner" text,
"Status" text
) | SELECT "Owner" FROM table_6592 WHERE "Delivered as" = 't415' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
4508,
41,
96,
434,
32,
287,
32,
3268,
121,
1499,
6,
96,
2962,
7591,
1271,
38,
121,
1499,
6,
96,
16924,
3737,
313,
121,
1499,
6,
96,
667,
210,
687,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
210,
687,
121,
21680,
953,
834,
4122,
4508,
549,
17444,
427,
96,
2962,
7591,
1271,
38,
121,
3274,
3,
31,
17,
591,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return the ids and details corresponding to projects for which there are more than two documents. Plot them as pie chart. | CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
Other_Details VARCHAR(255)... | SELECT T1.Project_Details, T1.Project_ID FROM Projects AS T1 JOIN Documents AS T2 ON T1.Project_ID = T2.Project_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2786,
7,
41,
2786,
834,
4309,
3,
21342,
17966,
6,
2786,
834,
2962,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
3174,
11827,
834,
2962,
5756,
7,
6,
332,
5411,
3174,
11827,
834,
4309,
21680,
2786,
7,
6157,
332,
536,
3,
15355,
3162,
11167,
7,
6157,
332,
357,
9191,
332,
5411,
3174,
11827,
834,
4309,
3274,
332,
4416,
3... |
Show the id, name of each editor and the number of journal committees they are on. | CREATE TABLE journal (
journal_id number,
date text,
theme text,
sales number
)
CREATE TABLE editor (
editor_id number,
name text,
age number
)
CREATE TABLE journal_committee (
editor_id number,
journal_id number,
work_type text
) | SELECT T1.editor_id, T1.name, COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.editor_id = T2.editor_id GROUP BY T1.editor_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
6378,
834,
23,
26,
381,
6,
833,
1499,
6,
3800,
1499,
6,
1085,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6005,
41,
6005,
834,
23,
26,
381,
6,
564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
11272,
127,
834,
23,
26,
6,
332,
5411,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
6005,
6157,
332,
536,
3,
15355,
3162,
6378,
834,
287,
1538,
17,
15,
15,
6157,
332,
357,
9191,
332,
5411,
11272,
127,
83... |
What is the largest number of stories in Recife completed later than 2007 with a height less than 135 meters? | CREATE TABLE table_45206 (
"Name" text,
"Location" text,
"Height (m)" real,
"Stories" real,
"Year of completion" real
) | SELECT MAX("Stories") FROM table_45206 WHERE "Location" = 'recife' AND "Year of completion" > '2007' AND "Height (m)" < '135' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
24643,
41,
96,
23954,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
3845,
2632,
41,
51,
61,
121,
490,
6,
96,
134,
235,
2593,
121,
490,
6,
96,
476,
2741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
134,
235,
2593,
8512,
21680,
953,
834,
2128,
24643,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
7886,
89,
15,
31,
3430,
96,
476,
2741,
13,
6929,
121,
2490,
3,
31,
20615,
31,
3430,... |
What year was the rider with a final position-tour of 88 and less than 11 final position-giros? | CREATE TABLE table_69461 (
"Rider" text,
"Year" real,
"Final Position - Giro" real,
"Final Position - Tour" real,
"Final Position - Vuelta" real
) | SELECT SUM("Year") FROM table_69461 WHERE "Final Position - Tour" = '88' AND "Final Position - Giro" < '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
4448,
536,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
371,
10270,
14258,
3,
18,
3,
30428,
121,
490,
6,
96,
371,
10270,
14258,
3,
18,
3351... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
8512,
21680,
953,
834,
3951,
4448,
536,
549,
17444,
427,
96,
371,
10270,
14258,
3,
18,
3351,
121,
3274,
3,
31,
4060,
31,
3430,
96,
371,
10270,
14258,
3,
18,
3,
30428,
121,
3,
2,
3... |
What is the Rank of the Officer with Badge/Serial Number 11755 who died in Gunfire? | CREATE TABLE table_name_17 (rank VARCHAR, cause_of_death VARCHAR, badge_serial_number VARCHAR) | SELECT rank FROM table_name_17 WHERE cause_of_death = "gunfire" AND badge_serial_number = "11755" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
6254,
584,
4280,
28027,
6,
1137,
834,
858,
834,
221,
9,
189,
584,
4280,
28027,
6,
13402,
834,
7,
15,
12042,
834,
5525,
1152,
584,
4280,
28027,
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,
11003,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
1137,
834,
858,
834,
221,
9,
189,
3274,
96,
8765,
6608,
121,
3430,
13402,
834,
7,
15,
12042,
834,
5525,
1152,
3274,
96,
20275,
3769,
121,
1,
-100,
-100,
-100... |
Where does the team play May 3? | CREATE TABLE table_22879262_13 (
team VARCHAR,
date VARCHAR
) | SELECT team FROM table_22879262_13 WHERE date = "May 3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4225,
4508,
4056,
834,
2368,
41,
372,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
405,
8,
372,
577,
932,
220,
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,
372,
21680,
953,
834,
2884,
4225,
4508,
4056,
834,
2368,
549,
17444,
427,
833,
3274,
96,
15881,
220,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the average attendance on October 30, 1938? | CREATE TABLE table_name_33 (
attendance INTEGER,
date VARCHAR
) | SELECT AVG(attendance) FROM table_name_33 WHERE date = "october 30, 1938" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
11364,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
11364,
30,
1797,
11558,
25745,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
11558,
25745,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Season 7 has a Seat larger than 1, and a Season 3 of w. brett wilson? | CREATE TABLE table_61834 (
"Seat" real,
"Season 1" text,
"Season 2" text,
"Season 3" text,
"Season 6" text,
"Season 7" text
) | SELECT "Season 7" FROM table_61834 WHERE "Seat" > '1' AND "Season 3" = 'w. brett wilson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2606,
3710,
41,
96,
134,
1544,
121,
490,
6,
96,
134,
15,
9,
739,
209,
121,
1499,
6,
96,
134,
15,
9,
739,
204,
121,
1499,
6,
96,
134,
15,
9,
739,
220,
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,
15,
9,
739,
489,
121,
21680,
953,
834,
948,
2606,
3710,
549,
17444,
427,
96,
134,
1544,
121,
2490,
3,
31,
536,
31,
3430,
96,
134,
15,
9,
739,
220,
121,
3274,
3,
31,
210,
5,
3,
1999,
17,
17,
3,
210,
... |
How many million viewers watched the episode that runs 25:55 minutes? | CREATE TABLE table_1785117_1 (
viewers__in_millions_ VARCHAR,
run_time VARCHAR
) | SELECT viewers__in_millions_ FROM table_1785117_1 WHERE run_time = "25:55" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4433,
20275,
834,
536,
41,
13569,
834,
834,
77,
834,
17030,
7,
834,
584,
4280,
28027,
6,
661,
834,
715,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13569,
834,
834,
77,
834,
17030,
7,
834,
21680,
953,
834,
2517,
4433,
20275,
834,
536,
549,
17444,
427,
661,
834,
715,
3274,
96,
1828,
10,
3769,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who had the most high assists from Milwaukee? | CREATE TABLE table_name_73 (high_assists VARCHAR, team VARCHAR) | SELECT high_assists FROM table_name_73 WHERE team = "milwaukee" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
167,
306,
13041,
45,
21140,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
372,
3274,
96,
51,
173,
210,
402,
1050,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country has a Euro that equals larger than 1.46611, and an usd equal to 1.76650? | CREATE TABLE table_70191 (
"Country" text,
"Currency" text,
"1 Euro =" real,
"1 USD =" text,
"Central bank" text
) | SELECT "Country" FROM table_70191 WHERE "1 Euro =" > '1.46611' AND "1 USD =" = '1.76650' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
2294,
536,
41,
96,
10628,
651,
121,
1499,
6,
96,
254,
450,
52,
4392,
121,
1499,
6,
96,
536,
2430,
3,
17592,
490,
6,
96,
536,
9513,
3,
17592,
1499,
6,
96,
30497,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
2518,
2294,
536,
549,
17444,
427,
96,
536,
2430,
3,
17592,
2490,
3,
31,
14912,
3539,
2596,
31,
3430,
96,
536,
9513,
3,
17592,
3274,
3,
31,
18596,
3539,
1752,
31,
1,
-100,
-100... |
who is the incumbent where the district is florida 9? | CREATE TABLE table_724 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Incumbent" FROM table_724 WHERE "District" = 'Florida 9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2266,
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,
96,
1570,
75,
5937,
295,
121,
21680,
953,
834,
940,
2266,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
11251,
4055,
9,
668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the relationship between author_id and author_tutor_ATB ? | 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_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE TABLE Subject... | SELECT author_id, author_tutor_ATB FROM Course_Authors_and_Tutors ORDER BY personal_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
834,
23602,
127,
7,
834,
232,
834,
28676,
7,
41,
2291,
834,
23,
26,
3,
21342,
17966,
6,
2291,
834,
17,
76,
17,
127,
834,
5767,
279,
584,
4280,
28027,
17867,
6,
11255,
834,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2291,
834,
23,
26,
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,... |
When 4 mb is the sonnet what is the apple? | CREATE TABLE table_3002894_4 (apple VARCHAR, sonnet VARCHAR) | SELECT apple FROM table_3002894_4 WHERE sonnet = "4 MB" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
2577,
4240,
834,
591,
41,
3096,
109,
584,
4280,
28027,
6,
520,
1582,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
314,
3,
51,
115,
19,
8,
520,
1582,
125,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8947,
21680,
953,
834,
5426,
2577,
4240,
834,
591,
549,
17444,
427,
520,
1582,
3274,
96,
591,
3,
4633,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Chinese title with a premiere rating of 31? | CREATE TABLE table_name_91 (chinese_title VARCHAR, premiere VARCHAR) | SELECT chinese_title FROM table_name_91 WHERE premiere = 31 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
1436,
1496,
15,
834,
21869,
584,
4280,
28027,
6,
13539,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2830,
2233,
28,
3,
9,
13539,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
1436,
1496,
15,
834,
21869,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
13539,
3274,
2664,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date for adelaide for westpac stadium | CREATE TABLE table_16388439_3 (date VARCHAR, home_team VARCHAR, ground VARCHAR) | SELECT date FROM table_16388439_3 WHERE home_team = "Adelaide" AND ground = "Westpac Stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3747,
4608,
3288,
834,
519,
41,
5522,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
6,
1591,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
2938,
3747,
4608,
3288,
834,
519,
549,
17444,
427,
234,
834,
11650,
3274,
96,
188,
221,
40,
5385,
121,
3430,
1591,
3274,
96,
19069,
5379,
12750,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the resultado when E.E.U.U was the country? | CREATE TABLE table_27501971_2 (resultado VARCHAR, country VARCHAR) | SELECT resultado FROM table_27501971_2 WHERE country = "E.E.U.U" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
9979,
2294,
4450,
834,
357,
41,
60,
7,
83,
17,
9,
26,
32,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
9,
26,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
9,
26,
32,
21680,
953,
834,
357,
9979,
2294,
4450,
834,
357,
549,
17444,
427,
684,
3274,
96,
427,
5,
427,
5,
1265,
5,
1265,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
tell me the number of private insurance patients who self discharged against medical advice. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
7855,
208,
342,
121,
3430,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
3765,
... |
How many models do not have the wifi function? | CREATE TABLE chip_model (
model_name text,
launch_year number,
ram_mib number,
rom_mib number,
slots text,
wifi text,
bluetooth text
)
CREATE TABLE phone (
company_name text,
hardware_model_name text,
accreditation_type text,
accreditation_level text,
date text,
chip... | SELECT COUNT(*) FROM chip_model WHERE wifi = 'No' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6591,
834,
21770,
41,
825,
834,
4350,
1499,
6,
3289,
834,
1201,
381,
6,
3,
2375,
834,
51,
23,
115,
381,
6,
3,
3522,
834,
51,
23,
115,
381,
6,
9653,
1499,
6,
24019,
1499,
6,
31327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
6591,
834,
21770,
549,
17444,
427,
24019,
3274,
3,
31,
4168,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Compare the frequency of each payment method code using a bar chart, rank by the how many payment method code from high to low. | CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATE,
End_Date DAT... | SELECT Payment_Method_Code, COUNT(Payment_Method_Code) FROM Payments GROUP BY Payment_Method_Code ORDER BY COUNT(Payment_Method_Code) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12248,
7,
41,
12248,
834,
4309,
3,
21342,
17966,
6,
31044,
834,
4309,
3,
21342,
17966,
6,
12248,
834,
23351,
107,
32,
26,
834,
22737,
584,
4280,
28027,
599,
25502,
201,
7678,
834,
1970... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12248,
834,
23351,
107,
32,
26,
834,
22737,
6,
2847,
17161,
599,
19702,
297,
834,
23351,
107,
32,
26,
834,
22737,
61,
21680,
12248,
7,
350,
4630,
6880,
272,
476,
12248,
834,
23351,
107,
32,
26,
834,
22737,
4674,
113... |
What is the average for the top five having a number of 42 cuts made. | CREATE TABLE table_name_79 (
top_5 INTEGER,
cuts_made VARCHAR
) | SELECT AVG(top_5) FROM table_name_79 WHERE cuts_made = 42 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
420,
834,
755,
3,
21342,
17966,
6,
8620,
834,
4725,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
21,
8,
420,
874,
578,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2916,
834,
9120,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
8620,
834,
4725,
3274,
6426,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date did the event at Zaltbommel begin? | CREATE TABLE table_name_66 (date__from_ VARCHAR, location VARCHAR) | SELECT date__from_ FROM table_name_66 WHERE location = "zaltbommel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
5522,
834,
834,
7152,
834,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
410,
8,
605,
44,
1027,
2920,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
834,
7152,
834,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1128,
3274,
96,
172,
2920,
115,
7649,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For patient id 2110, specify name and lab test category | 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 demographic.name, lab."CATEGORY" FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = "2110" | [
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,
14798,
5,
4350,
6,
7690,
535,
254,
6048,
5577,
11824,
121,
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... |
What is the Set 1 with a Set 2 of 15–5, and a Set 3 with 15–3? | CREATE TABLE table_name_6 (set_1 VARCHAR, set_2 VARCHAR, set_3 VARCHAR) | SELECT set_1 FROM table_name_6 WHERE set_2 = "15–5" AND set_3 = "15–3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
2244,
834,
536,
584,
4280,
28027,
6,
356,
834,
357,
584,
4280,
28027,
6,
356,
834,
519,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
356,
834,
536,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
356,
834,
357,
3274,
96,
1808,
104,
17395,
3430,
356,
834,
519,
3274,
96,
1808,
104,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is admission time and procedure icd9 code of subject name chandra schulman? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT demographic.admittime, procedures.icd9_code FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.name = "Chandra Schulman" | [
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,
14798,
5,
20466,
17,
715,
6,
4293,
5,
447,
26,
1298,
834,
4978,
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,
427,
14798,... |
Who had a ballet style with original cast? | CREATE TABLE table_name_80 (
name VARCHAR,
style VARCHAR,
status VARCHAR
) | SELECT name FROM table_name_80 WHERE style = "ballet" AND status = "original cast" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
564,
584,
4280,
28027,
6,
869,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
3,
9,
22201,
869,
28,
926,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
869,
3274,
96,
3184,
15,
17,
121,
3430,
2637,
3274,
96,
21878,
4061,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose admission year is less than 2124 and diagnoses icd9 code is 042? | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2124" AND diagnoses.icd9_code = "042" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
How many points did he win in the race with more than 1.0 poles? | CREATE TABLE table_20500097_1 (
points VARCHAR,
poles INTEGER
) | SELECT points FROM table_20500097_1 WHERE poles > 1.0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
12814,
4327,
834,
536,
41,
979,
584,
4280,
28027,
6,
11148,
7,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
410,
3,
88,
1369,
16,
8,
1964,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
21680,
953,
834,
1755,
12814,
4327,
834,
536,
549,
17444,
427,
11148,
7,
2490,
3,
12734,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose admission year is less than 2195 and lab test name is free calcium? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2195" AND lab.label = "Free Calcium" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which Match has Runs of 100, and a Year larger than 1994? | CREATE TABLE table_name_14 (match INTEGER, runs VARCHAR, year VARCHAR) | SELECT SUM(match) FROM table_name_14 WHERE runs = 100 AND year > 1994 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
19515,
3,
21342,
17966,
6,
3154,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
12296,
65,
7113,
7,
13,
910,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
19515,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
3154,
3274,
910,
3430,
215,
2490,
7520,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is teh ihsaa class/football/soccer when the location is alexandria? | CREATE TABLE table_name_43 (ihsaa_class___football___soccer VARCHAR, location VARCHAR) | SELECT ihsaa_class___football___soccer FROM table_name_43 WHERE location = "alexandria" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
23,
107,
7,
9,
9,
834,
4057,
834,
834,
834,
6259,
3184,
834,
834,
834,
7,
13377,
49,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
23,
107,
7,
9,
9,
834,
4057,
834,
834,
834,
6259,
3184,
834,
834,
834,
7,
13377,
49,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1128,
3274,
96,
138,
994,
232,
52,
23,
9,
121,
1,
-100,
-100,
-100,
-1... |
What is the best time for a rusport driver with a qual 2 time of 1:10.166? | CREATE TABLE table_name_58 (best INTEGER, team VARCHAR, qual_2 VARCHAR) | SELECT MAX(best) FROM table_name_58 WHERE team = "rusport" AND qual_2 = "1:10.166" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
9606,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
3,
11433,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
200,
97,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9606,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
372,
3274,
96,
4502,
1493,
121,
3430,
3,
11433,
834,
357,
3274,
96,
536,
10,
22567,
3539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the time for the hospital admission of patient 031-17834 during this year? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diag... | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '031-17834' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
3341,
18,
27640,
3710,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
20466,
17,
715,
6,
3,
31,
10... |
What was the position of the Racing Organisation Course team? | CREATE TABLE table_name_79 (
pos VARCHAR,
team VARCHAR
) | SELECT pos FROM table_name_79 WHERE team = "racing organisation course" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
3,
2748,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1102,
13,
8,
16046,
11033,
8670,
372,
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,
3,
2748,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
372,
3274,
96,
3738,
53,
5102,
503,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the result of the game with an attendance greater than 67,702? | CREATE TABLE table_name_71 (result VARCHAR, attendance INTEGER) | SELECT result FROM table_name_71 WHERE attendance > 67 OFFSET 702 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
11364,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
13,
8,
467,
28,
46,
11364,
2123,
145,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
11364,
2490,
3,
3708,
3,
15316,
20788,
2861,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What pick # did Western Illinois have? | CREATE TABLE table_16575609_3 (pick__number VARCHAR, college VARCHAR) | SELECT pick__number FROM table_16575609_3 WHERE college = "Western Illinois" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3436,
4834,
4198,
834,
519,
41,
17967,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1432,
1713,
410,
3782,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1432,
834,
834,
5525,
1152,
21680,
953,
834,
2938,
3436,
4834,
4198,
834,
519,
549,
17444,
427,
1900,
3274,
96,
1326,
13072,
7659,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Runner(s)-up, when Tournament is MCI Classic? | CREATE TABLE table_40706 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Runner(s)-up" FROM table_40706 WHERE "Tournament" = 'mci classic' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
2518,
948,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
13,
6224,
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,
23572,
599,
7,
61,
18,
413,
121,
21680,
953,
834,
2445,
2518,
948,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
51,
75,
23,
2431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, visualize the relationship between code and revenue , and group by attribute headquarter. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Code, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
22737,
6,
332,
4416,
1649,
15098,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3642,
... |
What was the largest ethnic group in 2002 of the settlement with the cyrillic name of ватин? | CREATE TABLE table_2562572_46 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name_other_names VARCHAR) | SELECT largest_ethnic_group__2002_ FROM table_2562572_46 WHERE cyrillic_name_other_names = "Ватин" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
4448,
41,
15599,
7,
17,
834,
15,
189,
2532,
834,
10739,
834,
834,
24898,
834,
584,
4280,
28027,
6,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2015,
834,
15,
189,
2532,
834,
10739,
834,
834,
24898,
834,
21680,
953,
834,
19337,
1828,
5865,
834,
4448,
549,
17444,
427,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
3274,
96,
2,
22581,
22420,
... |
Name the number of international frieghts for domestic mail of 260 | CREATE TABLE table_1754531_4 (international_freight VARCHAR, domestic_mail VARCHAR) | SELECT COUNT(international_freight) FROM table_1754531_4 WHERE domestic_mail = 260 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
3072,
2128,
3341,
834,
591,
41,
27817,
834,
89,
60,
2632,
584,
4280,
28027,
6,
4422,
834,
1963,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
27817,
834,
89,
60,
2632,
61,
21680,
953,
834,
536,
3072,
2128,
3341,
834,
591,
549,
17444,
427,
4422,
834,
1963,
3274,
3,
18365,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the id for the employee called Ebba? | CREATE TABLE Employees (employee_ID VARCHAR, employee_name VARCHAR) | SELECT employee_ID FROM Employees WHERE employee_name = "Ebba" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15871,
7,
41,
15,
51,
7379,
63,
15,
15,
834,
4309,
584,
4280,
28027,
6,
3490,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
23,
26,
21,
8,
3490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3490,
834,
4309,
21680,
15871,
7,
549,
17444,
427,
3490,
834,
4350,
3274,
96,
427,
115,
115,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is average life expectancy in the countries where English is not the official language? | CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (LifeExpectancy INTEGER, Name VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR) | SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND T2.IsOfficial = "T") | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
684,
24925,
41,
10628,
651,
22737,
584,
4280,
28027,
6,
10509,
584,
4280,
28027,
6,
27,
7,
667,
89,
22816,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
16427,
12882,
15,
75,
17,
6833,
61,
21680,
684,
549,
17444,
427,
4486,
5570,
3388,
41,
23143,
14196,
332,
5411,
23954,
21680,
684,
6157,
332,
536,
3,
15355,
3162,
684,
24925,
6157,
332,
357,
9191,
332,... |
What is the portfolio attachment of the Undersecretary appointed at age 48 with a Chinese name of 梁鳳儀? | CREATE TABLE table_name_47 (portfolio_attachment VARCHAR, age_at_appointment VARCHAR, chinese_name VARCHAR) | SELECT portfolio_attachment FROM table_name_47 WHERE age_at_appointment = 48 AND chinese_name = "梁鳳儀" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
1493,
8047,
32,
834,
21148,
297,
584,
4280,
28027,
6,
1246,
834,
144,
834,
9,
102,
2700,
297,
584,
4280,
28027,
6,
3,
1436,
1496,
15,
834,
4350,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4833,
834,
21148,
297,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1246,
834,
144,
834,
9,
102,
2700,
297,
3274,
4678,
3430,
3,
1436,
1496,
15,
834,
4350,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Who was the player associated with Ole Miss in years after 2008 with a Mississippi St. name of Eric Moulds? | CREATE TABLE table_name_90 (ole_miss VARCHAR, year VARCHAR, mississippi_st VARCHAR) | SELECT ole_miss FROM table_name_90 WHERE year > 2008 AND mississippi_st = "eric moulds" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
32,
109,
834,
11502,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
3041,
159,
7,
23,
1572,
23,
834,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
32,
109,
834,
11502,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
215,
2490,
2628,
3430,
3041,
159,
7,
23,
1572,
23,
834,
7,
17,
3274,
96,
15,
2234,
19094,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Team, when Replaced By is 'Omar Arellano'? | CREATE TABLE table_77045 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Team" FROM table_77045 WHERE "Replaced by" = 'omar arellano' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26920,
2128,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
1649,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18699,
121,
21680,
953,
834,
26920,
2128,
549,
17444,
427,
96,
1649,
4687,
26,
57,
121,
3274,
3,
31,
32,
1635,
33,
195,
152,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the name of the player that is pick #69? | CREATE TABLE table_70180 (
"Pick #" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Player" FROM table_70180 WHERE "Pick #" = '69' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
20829,
41,
96,
345,
3142,
1713,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
2518,
20829,
549,
17444,
427,
96,
345,
3142,
1713,
121,
3274,
3,
31,
3951,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What years had players who scored 36 goals? | CREATE TABLE table_name_51 (
years VARCHAR,
goals VARCHAR
) | SELECT years FROM table_name_51 WHERE goals = "36" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
203,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
203,
141,
1508,
113,
5799,
4475,
1766,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
203,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1766,
3274,
96,
3420,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the round when the opponent is Andre Roberts? | CREATE TABLE table_name_42 (round VARCHAR, opponent VARCHAR) | SELECT round FROM table_name_42 WHERE opponent = "andre roberts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
7775,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1751,
116,
8,
15264,
19,
275,
60,
2715,
7,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1751,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
15264,
3274,
96,
232,
60,
3,
5840,
49,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the number of companies whose industry is 'Banking' or 'Conglomerate', | CREATE TABLE Companies (
Industry VARCHAR
) | SELECT COUNT(*) FROM Companies WHERE Industry = "Banking" OR Industry = "Conglomerate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11239,
41,
9036,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
381,
13,
688,
3,
2544,
681,
19,
3,
31,
21347,
53,
31,
42,
3,
31,
4302,
24422,
342,
31,
6,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
11239,
549,
17444,
427,
9036,
3274,
96,
21347,
53,
121,
4674,
9036,
3274,
96,
4302,
24422,
342,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Jeff Sluman's To par when his total was smaller than 284? | CREATE TABLE table_59666 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "To par" FROM table_59666 WHERE "Total" < '284' AND "Player" = 'jeff sluman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
948,
3539,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
3390,
948,
3539,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
357,
4608,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
1924,
89,
89,
3,
7,
5171,
152,
31,
1,
-100,
-100,
... |
What are the dimensions of the coin worth 200? | CREATE TABLE table_298883_5 (
dimensions VARCHAR,
value VARCHAR
) | SELECT dimensions FROM table_298883_5 WHERE value = "₩200" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
10927,
519,
834,
755,
41,
8393,
584,
4280,
28027,
6,
701,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
8393,
13,
8,
7485,
1494,
2382,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8393,
21680,
953,
834,
3166,
10927,
519,
834,
755,
549,
17444,
427,
701,
3274,
96,
2,
3632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which image frame has the largest crop factor ? | CREATE TABLE table_203_356 (
id number,
"type" text,
"diagonal (mm)" text,
"width (mm)" text,
"height (mm)" text,
"area (mm2)" text,
"stops (area)" number,
"crop factor" text
) | SELECT "type" FROM table_203_356 ORDER BY "crop factor" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2469,
948,
41,
3,
23,
26,
381,
6,
96,
6137,
121,
1499,
6,
96,
25930,
9533,
41,
635,
61,
121,
1499,
6,
96,
12018,
189,
41,
635,
61,
121,
1499,
6,
96,
88,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6137,
121,
21680,
953,
834,
23330,
834,
2469,
948,
4674,
11300,
272,
476,
96,
2771,
102,
2945,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is points diff when points against is 123? | CREATE TABLE table_name_73 (points_diff VARCHAR, points_against VARCHAR) | SELECT points_diff FROM table_name_73 WHERE points_against = "123" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2700,
7,
834,
26,
5982,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
979,
20624,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
834,
26,
5982,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
96,
14574,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who directed 'report 2493:kidnap whose pretty girl are you'? | CREATE TABLE table_23177 (
"Episode #" real,
"Prod #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Originalairdate" text,
"Filmed" text
) | SELECT "Directed by" FROM table_23177 WHERE "Title" = 'REPORT 2493:KIDNAP Whose Pretty Girl Are You' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
26793,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
3174,
26,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
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,
23620,
15,
26,
57,
121,
21680,
953,
834,
2773,
26793,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
4386,
14536,
997,
4271,
10,
14108,
25824,
345,
2645,
7,
15,
18268,
11874,
1521,
148,
31,
1,
-100,
-10... |
For those employees who was hired before 2002-06-21, for commission_pct, hire_date, visualize the trend, and order from low to high by the X-axis. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS va... | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
454,
14132,
834,
... |
When did sla ana peji , who was evicted on day 29, enter the house? | CREATE TABLE table_6826 (
"Name" text,
"Profession" text,
"City" text,
"Entered the house" text,
"Evicted" text
) | SELECT "Entered the house" FROM table_6826 WHERE "Evicted" = 'day 29' AND "Name" = 'slađana pejić' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
2688,
41,
96,
23954,
121,
1499,
6,
96,
3174,
17585,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
16924,
3737,
8,
629,
121,
1499,
6,
96,
427,
7287,
1054,
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,
16924,
3737,
8,
629,
121,
21680,
953,
834,
3651,
2688,
549,
17444,
427,
96,
427,
7287,
1054,
121,
3274,
3,
31,
1135,
2838,
31,
3430,
96,
23954,
121,
3274,
3,
31,
7,
521,
2,
152,
9,
158,
354,
23,
2,
31,
1,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.