NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What Catalog released on June 29, 1999 has a Digipak Album Format? | CREATE TABLE table_40376 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Catalog" FROM table_40376 WHERE "Format" = 'digipak album' AND "Date" = 'june 29, 1999' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
519,
3959,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
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,
18610,
9,
2152,
121,
21680,
953,
834,
2445,
519,
3959,
549,
17444,
427,
96,
3809,
3357,
121,
3274,
3,
31,
5572,
23,
16864,
2306,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
6959,
15,
14405,
5247,
31,
1,
-100,
... |
Who was the winning driver at Okayama International Circuit? | CREATE TABLE table_16670746_2 (winning_driver VARCHAR, circuit VARCHAR) | SELECT winning_driver FROM table_16670746_2 WHERE circuit = "Okayama International circuit" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3708,
4560,
4448,
834,
357,
41,
8163,
834,
13739,
52,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3447,
2535,
44,
16036... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
834,
13739,
52,
21680,
953,
834,
2938,
3708,
4560,
4448,
834,
357,
549,
17444,
427,
4558,
3274,
96,
667,
1258,
22990,
1331,
4558,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the name of the ships that are steered by both a captain with Midshipman rank and a captain with Lieutenant rank. | CREATE TABLE ship (
name VARCHAR,
ship_id VARCHAR
)
CREATE TABLE captain (
ship_id VARCHAR,
rank VARCHAR
) | SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
564,
584,
4280,
28027,
6,
4383,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14268,
41,
4383,
834,
23,
26,
584,
4280,
28027,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
4350,
21680,
4383,
6157,
3,
17,
536,
3,
15355,
3162,
14268,
6157,
3,
17,
357,
9191,
3,
17,
5411,
2009,
834,
23,
26,
3274,
3,
17,
4416,
2009,
834,
23,
26,
549,
17444,
427,
3,
17,
4416,
6254,
3274,
... |
On what date is Footscray the away team? | CREATE TABLE table_name_59 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_59 WHERE away_team = "footscray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
5522,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
19,
15213,
7,
2935,
63,
8,
550,
372,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
550,
834,
11650,
3274,
96,
6259,
7,
2935,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients died in or before 2174 and were diagnosed for icd9 code 7935? | 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.dod_year <= "2174.0" AND diagnoses.icd9_code = "2300" | [
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... |
papers by stefan savage | CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperdataset (
paperid int,
datase... | SELECT DISTINCT writes.paperid FROM author, writes WHERE author.authorname = 'stefan savage' AND writes.authorid = author.authorid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8464,
41,
3,
17994,
19587,
23,
26,
16,
17,
6,
3,
11675,
19587,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
6378,
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,
3,
15438,
25424,
6227,
11858,
5,
19587,
23,
26,
21680,
2291,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
7,
24018,
3,
7,
9,
11515,
31,
3430,
11858,
5,
17415,
23,
26,
3274,
2291,
5,
17415,
23,
2... |
What tournament is in katowice? | CREATE TABLE table_73145 (
"Tournament" text,
"Also currently known as" text,
"City" text,
"Country" text,
"Court surface" text,
"Defending champion" text
) | SELECT "Tournament" FROM table_73145 WHERE "City" = 'Katowice' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
20987,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
188,
40,
7,
32,
1083,
801,
38,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
4552,
20987,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
439,
144,
2381,
867,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Opponent in the final has a Score in the final of 6 2, 6 3, 2 6, 7 5? | CREATE TABLE table_49409 (
"Outcome" text,
"Date" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Opponent in the final" FROM table_49409 WHERE "Score in the final" = '6–2, 6–3, 2–6, 7–5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
591,
4198,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
102,
9977,
16,
8,
804,
121,
21680,
953,
834,
3647,
591,
4198,
549,
17444,
427,
96,
134,
9022,
16,
8,
804,
121,
3274,
3,
31,
948,
104,
4482,
431,
104,
6355,
204,
104,
11071,
489,
104,
755,
31,
1,
-100,
... |
how many divisions had a population of at least 15,000 ? | CREATE TABLE table_204_891 (
id number,
"name" text,
"hanzi" text,
"population (2005)" number,
"area (km2)" number
) | SELECT COUNT("name") FROM table_204_891 WHERE "population (2005)" >= 15000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3914,
536,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
2618,
702,
121,
1499,
6,
96,
9791,
7830,
3,
29495,
121,
381,
6,
96,
498,
41,
5848,
7318,
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,
4350,
8512,
21680,
953,
834,
26363,
834,
3914,
536,
549,
17444,
427,
96,
9791,
7830,
3,
29495,
121,
2490,
2423,
627,
2313,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the highest number of points when flaps were 0? | CREATE TABLE table_24405773_1 (points INTEGER, flaps VARCHAR) | SELECT MAX(points) FROM table_24405773_1 WHERE flaps = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2445,
3436,
4552,
834,
536,
41,
2700,
7,
3,
21342,
17966,
6,
23050,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
381,
13,
979,
116,
23050... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
2266,
2445,
3436,
4552,
834,
536,
549,
17444,
427,
23050,
7,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many goals Olimpia recorded for 32 matches? | CREATE TABLE table_13688489_1 (goals_olimpia VARCHAR, matches VARCHAR) | SELECT COUNT(goals_olimpia) FROM table_13688489_1 WHERE matches = 32 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3651,
4608,
3914,
834,
536,
41,
839,
5405,
834,
4172,
1167,
23,
9,
584,
4280,
28027,
6,
6407,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1766,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
839,
5405,
834,
4172,
1167,
23,
9,
61,
21680,
953,
834,
2368,
3651,
4608,
3914,
834,
536,
549,
17444,
427,
6407,
3274,
3538,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
tell me the first procedure patient 029-16737 had in 2102? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
d... | SELECT treatment.treatmentname FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-16737')) AND STRFTIME('%y', treatment.treatmenttime) = '2102'... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1058,
5,
26889,
4350,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
... |
With a Suited Match of 13:1, what is the Double Non-Suited Match? | CREATE TABLE table_34652 (
"Number of Decks" real,
"Non-Suited Match" text,
"Double Non-Suited Match" text,
"Suited Match" text,
"Suited + Non-Suited Match" text,
"Double Suited Match" text,
"House Edge" text
) | SELECT "Double Non-Suited Match" FROM table_34652 WHERE "Suited Match" = '13:1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
4122,
357,
41,
96,
567,
5937,
49,
13,
10809,
7,
121,
490,
6,
96,
567,
106,
18,
134,
8431,
26,
12296,
121,
1499,
6,
96,
4135,
76,
2296,
5388,
18,
134,
8431,
26,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4135,
76,
2296,
5388,
18,
134,
8431,
26,
12296,
121,
21680,
953,
834,
3710,
4122,
357,
549,
17444,
427,
96,
134,
8431,
26,
12296,
121,
3274,
3,
31,
2368,
10,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the record for December 5, 1948? | CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_41 WHERE date = "december 5, 1948" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
21,
1882,
7836,
21474,
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,
1368,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
7836,
21474,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the score in february 12 of the boston celtics team | CREATE TABLE table_21664 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Score" FROM table_21664 WHERE "Team" = 'Boston Celtics' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27184,
4389,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
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,
134,
9022,
121,
21680,
953,
834,
27184,
4389,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
279,
32,
4411,
21748,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was placed fourth when third was Beijing Guoan and the winner was Dalian Wanda and wins total was 4? | CREATE TABLE table_17632217_2 (fourth_placed VARCHAR, total_wins VARCHAR, third_place VARCHAR, winners VARCHAR) | SELECT fourth_placed FROM table_17632217_2 WHERE third_place = "Beijing Guoan" AND winners = "Dalian Wanda" AND total_wins = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3891,
2884,
2517,
834,
357,
41,
12521,
189,
834,
4687,
26,
584,
4280,
28027,
6,
792,
834,
3757,
7,
584,
4280,
28027,
6,
1025,
834,
4687,
584,
4280,
28027,
6,
8969,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4509,
834,
4687,
26,
21680,
953,
834,
2517,
3891,
2884,
2517,
834,
357,
549,
17444,
427,
1025,
834,
4687,
3274,
96,
2703,
23,
354,
53,
2846,
32,
152,
121,
3430,
8969,
3274,
96,
308,
9,
9928,
13185,
9,
121,
3430,
7... |
What is every original air date for series# of 26? | CREATE TABLE table_29092 (
"Series #" real,
"Episode #" real,
"Title" text,
"Director" text,
"Writer" text,
"Original Airdate" text
) | SELECT "Original Airdate" FROM table_29092 WHERE "Series #" = '26' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23838,
4508,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
2496... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
1761,
5522,
121,
21680,
953,
834,
23838,
4508,
549,
17444,
427,
96,
12106,
7,
1713,
121,
3274,
3,
31,
2688,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What were the lowest points of game 60? | CREATE TABLE table_name_99 (points INTEGER, game VARCHAR) | SELECT MIN(points) FROM table_name_99 WHERE game = 60 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
2700,
7,
3,
21342,
17966,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
7402,
979,
13,
467,
1640,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
467,
3274,
1640,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the patent number when it was mutated from Yakata 7001 and a standard habit? | CREATE TABLE table_61045 (
"Date" text,
"\"Inventor\"" text,
"Marketed as" text,
"Mutated From" text,
"Assignee" text,
"Habit" text,
"Pattern" text,
"Earlier" text,
"Color" text,
"Plant Patent Number" text
) | SELECT "Plant Patent Number" FROM table_61045 WHERE "Habit" = 'standard' AND "Mutated From" = 'yakata 7001' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27097,
2128,
41,
96,
308,
342,
121,
1499,
6,
96,
2,
121,
29861,
127,
2,
121,
121,
1499,
6,
96,
22572,
15,
26,
38,
121,
1499,
6,
96,
329,
76,
17,
920,
1029,
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,
17373,
17,
20565,
7720,
121,
21680,
953,
834,
27097,
2128,
549,
17444,
427,
96,
566,
9,
2360,
121,
3274,
3,
31,
16020,
31,
3430,
96,
329,
76,
17,
920,
1029,
121,
3274,
3,
31,
20856,
144,
9,
12283,
536,
31,
1... |
What is Scotland's winner? | CREATE TABLE table_39973 (
"Year" real,
"Venue" text,
"Winner" text,
"Country" text,
"Score" text
) | SELECT "Winner" FROM table_39973 WHERE "Country" = 'scotland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
4327,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
18455,
687,
121,
21680,
953,
834,
3288,
4327,
519,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
7,
4310,
40,
232,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many geo id with 48.578664 are | CREATE TABLE table_1914 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
) | SELECT COUNT("GEO ID") FROM table_1914 WHERE "Latitude" = '48.578664' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2534,
41,
96,
382,
9197,
2009,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
27773,
5,
26118,
121,
490,
6,
96,
434,
232,
41,
11820,
51,
23,
3,
61,
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,
5042,
667,
4699,
8512,
21680,
953,
834,
2294,
2534,
549,
17444,
427,
96,
3612,
6592,
121,
3274,
3,
31,
3707,
5,
3436,
3840,
4389,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the final score for the match played in Venue H and the opponent was Newcastle United? | CREATE TABLE table_53030 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
) | SELECT "Result" FROM table_53030 WHERE "Venue" = 'h' AND "Opponent" = 'newcastle united' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26918,
1458,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
26918,
1458,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
107,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
5534,
5254,
109,
18279,
31,
1,
-100,
-100,
-100,
-100,
-... |
Which season has a Result of 6–9? | CREATE TABLE table_name_71 (season VARCHAR, result VARCHAR) | SELECT season FROM table_name_71 WHERE result = "6–9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
9476,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
774,
65,
3,
9,
3,
20119,
13,
431,
104,
1298,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
741,
3274,
96,
948,
104,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the call sign for the 17 physical | CREATE TABLE table_19450 (
"Virtual" real,
"Physical" real,
"Call sign" text,
"Branding" text,
"Network" text,
"Owner" text
) | SELECT "Call sign" FROM table_19450 WHERE "Physical" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
10593,
41,
96,
21031,
17,
3471,
121,
490,
6,
96,
16977,
7,
1950,
121,
490,
6,
96,
254,
1748,
1320,
121,
1499,
6,
96,
18304,
727,
53,
121,
1499,
6,
96,
9688,
1981,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1748,
1320,
121,
21680,
953,
834,
2294,
10593,
549,
17444,
427,
96,
16977,
7,
1950,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the name for 30 september 1943? | CREATE TABLE table_465 (
"Name" text,
"Pennant" text,
"Builder" text,
"Laid Down" text,
"Launched" text,
"Commissioned" text,
"Fate" text
) | SELECT "Name" FROM table_465 WHERE "Launched" = '30 September 1943' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4122,
41,
96,
23954,
121,
1499,
6,
96,
345,
35,
29,
288,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
434,
6146,
7309,
121,
1499,
6,
96,
3612,
202,
4513,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
591,
4122,
549,
17444,
427,
96,
3612,
202,
4513,
121,
3274,
3,
31,
1458,
1600,
26436,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country scored 67? | CREATE TABLE table_name_76 (
country VARCHAR,
score VARCHAR
) | SELECT country FROM table_name_76 WHERE score = 67 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
684,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
5799,
3,
3708,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
2604,
3274,
3,
3708,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the high rebounds when the record was 14 7? | CREATE TABLE table_29843 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High rebounds" FROM table_29843 WHERE "Record" = '14–7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3916,
4906,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21417,
3,
23768,
121,
21680,
953,
834,
357,
3916,
4906,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2534,
104,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Silver is the lowest one that has a Gold larger than 0, and a Rank of total, and a Bronze smaller than 32? | CREATE TABLE table_name_70 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR) | SELECT MIN(silver) FROM table_name_70 WHERE gold > 0 AND rank = "total" AND bronze < 32 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
7,
173,
624,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
2045,
2490,
3,
632,
3430,
11003,
3274,
96,
235,
1947,
121,
3430,
13467,
3,
2,
3538,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the sum of people in attendance on September 8? | CREATE TABLE table_name_49 (
attendance INTEGER,
date VARCHAR
) | SELECT SUM(attendance) FROM table_name_49 WHERE date = "september 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
11364,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
151,
16,
11364,
30,
1600,
505,
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,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What NFL Teams have the player Aaron Williams? | CREATE TABLE table_2508633_11 (nfl_team VARCHAR, player VARCHAR) | SELECT nfl_team FROM table_2508633_11 WHERE player = "Aaron Williams" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
3840,
4201,
834,
2596,
41,
29,
89,
40,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
10439,
16651,
43,
8,
1959,
1441... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
29,
89,
40,
834,
11650,
21680,
953,
834,
11434,
3840,
4201,
834,
2596,
549,
17444,
427,
1959,
3274,
96,
188,
291,
106,
6060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score of the tournament in Wellington? | CREATE TABLE table_name_5 (score VARCHAR, tournament VARCHAR) | SELECT score FROM table_name_5 WHERE tournament = "wellington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
7,
9022,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
5892,
16,
25176,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
5892,
3274,
96,
2091,
6029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the little league team from Ohio when the little league team from Kentucky was Warren County South LL Bowling Green? | CREATE TABLE table_18461045_1 (ohio VARCHAR, kentucky VARCHAR) | SELECT ohio FROM table_18461045_1 WHERE kentucky = "Warren County South LL Bowling Green" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25987,
27097,
2128,
834,
536,
41,
32,
107,
23,
32,
584,
4280,
28027,
6,
3,
2217,
17,
4636,
63,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
385,
5533,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
107,
23,
32,
21680,
953,
834,
25987,
27097,
2128,
834,
536,
549,
17444,
427,
3,
2217,
17,
4636,
63,
3274,
96,
21032,
1536,
1334,
1013,
3,
10376,
9713,
53,
1862,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest number played with more than 30 points? | CREATE TABLE table_name_21 (played INTEGER, points INTEGER) | SELECT MIN(played) FROM table_name_21 WHERE points > 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
4895,
15,
26,
3,
21342,
17966,
6,
979,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
1944,
28,
72,
145,
604,
979,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
979,
2490,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the monday time with tuesday being 9:00-6:00 | CREATE TABLE table_11019212_1 (monday VARCHAR, tuesday VARCHAR) | SELECT monday FROM table_11019212_1 WHERE tuesday = "9:00-6:00" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
19978,
2122,
834,
536,
41,
2157,
1135,
584,
4280,
28027,
6,
3,
17,
76,
15,
7,
1135,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
1911,
1135,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1911,
1135,
21680,
953,
834,
19277,
19978,
2122,
834,
536,
549,
17444,
427,
3,
17,
76,
15,
7,
1135,
3274,
96,
1298,
10,
1206,
18,
18828,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's time is Best Mix Overnight? | CREATE TABLE table_13894 (
"Time" text,
"Show Name" text,
"DJ's" text,
"Local/Networked" text,
"Ad Freq" text,
"News Freq" text
) | SELECT "Time" FROM table_13894 WHERE "Show Name" = 'best mix overnight' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
4240,
41,
96,
13368,
121,
1499,
6,
96,
134,
4067,
5570,
121,
1499,
6,
96,
308,
683,
31,
7,
121,
1499,
6,
96,
434,
32,
1489,
87,
9688,
1981,
15,
26,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
22744,
4240,
549,
17444,
427,
96,
134,
4067,
5570,
121,
3274,
3,
31,
9606,
2153,
8521,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average prices of wines for each each Visualize by line chart, rank by the X in ascending. | CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases IN... | SELECT Year, AVG(Price) FROM wine GROUP BY Year ORDER BY Year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8319,
6105,
7,
41,
465,
3,
21342,
17966,
6,
3,
27794,
257,
3,
3463,
4,
382,
6,
1334,
3,
3463,
4,
382,
6,
1015,
3,
3463,
4,
382,
6,
5690,
3,
3463,
4,
382,
6,
19,
6968,
188,
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,
2929,
6,
71,
17217,
599,
345,
4920,
61,
21680,
2013,
350,
4630,
6880,
272,
476,
2929,
4674,
11300,
272,
476,
2929,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What Adminstration has a Season of 2000? | CREATE TABLE table_name_56 (administration VARCHAR, season VARCHAR) | SELECT administration FROM table_name_56 WHERE season = 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
20039,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
16313,
7,
17,
2661,
65,
3,
9,
7960,
13,
2766,
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,
3602,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
774,
3274,
2766,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who are the advisors for students that live in a city with city code 'BAL'? | CREATE TABLE STUDENT (
Advisor VARCHAR,
city_code VARCHAR
) | SELECT Advisor FROM STUDENT WHERE city_code = "BAL" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5097,
10161,
6431,
41,
17228,
584,
4280,
28027,
6,
690,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
8,
8815,
7,
21,
481,
24,
619,
16,
3,
9,
690,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
17228,
21680,
5097,
10161,
6431,
549,
17444,
427,
690,
834,
4978,
3274,
96,
279,
4090,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the venue on 14 november 1998? | CREATE TABLE table_name_82 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_82 WHERE date = "14 november 1998" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
15098,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5669,
30,
968,
3,
5326,
18247,
6260,
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,
5669,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
833,
3274,
96,
2534,
3,
5326,
18247,
6260,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the attendance on november 2, 2003? | CREATE TABLE table_name_84 (
attendance VARCHAR,
date VARCHAR
) | SELECT attendance FROM table_name_84 WHERE date = "november 2, 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
11364,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
30,
3,
5326,
18247,
3547,
3888,
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,
11364,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
3547,
3888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the smallest 08-09 GP/JGP 2nd value when WS points equals 3197? | CREATE TABLE table_23938357_7 (ws_points VARCHAR) | SELECT MIN(08 AS _09_gp_jgp_2nd) FROM table_23938357_7 WHERE ws_points = 3197 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4271,
4591,
3436,
834,
940,
41,
210,
7,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
12046,
18,
4198,
3,
8049,
87,
683,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17684,
599,
4018,
6157,
3,
834,
4198,
834,
122,
102,
834,
354,
122,
102,
834,
357,
727,
61,
21680,
953,
834,
2773,
4271,
4591,
3436,
834,
940,
549,
17444,
427,
3,
210,
7,
834,
2700,
7,
3274,
220,
27181,
1,
-1... |
Which date was the Memorial Tournament held on, when Payne Stewart was runner-up? | CREATE TABLE table_41243 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Date" FROM table_41243 WHERE "Tournament" = 'memorial tournament' AND "Runner(s)-up" = 'payne stewart' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
27730,
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,
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,
308,
342,
121,
21680,
953,
834,
4853,
27730,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
526,
51,
11929,
5892,
31,
3430,
96,
23572,
599,
7,
61,
18,
413,
121,
3274,
3,
31,
102,
21993,
21786,
... |
How many gains were there for the player who had a loss greater than 57 and a long less than 55? | CREATE TABLE table_name_45 (
gain VARCHAR,
loss VARCHAR,
long VARCHAR
) | SELECT COUNT(gain) FROM table_name_45 WHERE loss > 57 AND long < 55 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
2485,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
6,
307,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
11391,
130,
132,
21,
8,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
16720,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1453,
2490,
3,
3436,
3430,
307,
3,
2,
6897,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the laps are 31 and the constructor was honda, what's the sum of all grid values? | CREATE TABLE table_name_58 (
grid INTEGER,
constructor VARCHAR,
laps VARCHAR
) | SELECT SUM(grid) FROM table_name_58 WHERE constructor = "honda" AND laps = 31 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
8634,
3,
21342,
17966,
6,
6774,
127,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
14941,
7,
33,
2664,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
6774,
127,
3274,
96,
31782,
121,
3430,
14941,
7,
3274,
2664,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is player raymond floyd's country? | CREATE TABLE table_77214 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_77214 WHERE "Player" = 'raymond floyd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
27357,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
4013,
27357,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
2866,
6764,
8882,
63,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which type of admission did patient evelyn lawrence have? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT demographic.admission_type FROM demographic WHERE demographic.name = "Evelyn Lawrence" | [
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,
9,
26,
5451,
834,
6137,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
427,
162,
120,
29,
16617,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Wins is the lowest one that has Home Losses larger than 3, and Neutral Losses smaller than 0? | CREATE TABLE table_46382 (
"Institution" text,
"Wins" real,
"Loss" real,
"Home Wins" real,
"Home Losses" real,
"Away Wins" real,
"Away Losses" real,
"Neutral Wins" real,
"Neutral Losses" real
) | SELECT MIN("Wins") FROM table_46382 WHERE "Home Losses" > '3' AND "Neutral Losses" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3747,
357,
41,
96,
1570,
17448,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
32,
7,
7,
121,
490,
6,
96,
19040,
4871,
7,
121,
490,
6,
96,
19040,
3144,
2260,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
18455,
7,
8512,
21680,
953,
834,
4448,
3747,
357,
549,
17444,
427,
96,
19040,
3144,
2260,
121,
2490,
3,
31,
519,
31,
3430,
96,
26288,
8792,
3144,
2260,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-10... |
find the number of patients who have procedure icd9 code 5114. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "5114" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the total number of flags of ships that do not have a captain with the rank of Midshipman? Show the result using a bar chart, I want to rank the number of flag from high to low order please. | CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
) | SELECT Flag, COUNT(Flag) FROM Ship WHERE NOT Ship_ID IN (SELECT Ship_ID FROM captain WHERE Rank = 'Midshipman') GROUP BY Flag ORDER BY COUNT(Flag) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15508,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
14862,
834,
476,
2741,
490,
6,
4501,
1499,
6,
17016,
1499,
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,
17016,
6,
2847,
17161,
599,
371,
5430,
61,
21680,
15508,
549,
17444,
427,
4486,
15508,
834,
4309,
3388,
41,
23143,
14196,
15508,
834,
4309,
21680,
14268,
549,
17444,
427,
3,
22557,
3274,
3,
31,
329,
23,
26,
2009,
348,... |
What is the year when Conrad H ckst dt won Men's Single? | CREATE TABLE table_80133 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) | SELECT "Year" FROM table_80133 WHERE "Men's singles" = 'conrad hückstädt' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
22974,
41,
96,
476,
2741,
121,
1499,
6,
96,
329,
35,
31,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
31,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
31,
7,
1486,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
2079,
22974,
549,
17444,
427,
96,
329,
35,
31,
7,
712,
7,
121,
3274,
3,
31,
1018,
5672,
3,
107,
19100,
23508,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the malayalam name of sanskrit uttar ha | CREATE TABLE table_201400_2 (
malayalam_name_മലയാളം VARCHAR,
sanskrit VARCHAR
) | SELECT malayalam_name_മലയാളം FROM table_201400_2 WHERE sanskrit = "Uttarāṣāḍha उत्तराषाढा" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10218,
1206,
834,
357,
41,
3,
51,
22858,
40,
265,
834,
4350,
834,
2,
584,
4280,
28027,
6,
1532,
10648,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
51,
22858,
40,
265,
834,
4350,
834,
2,
21680,
953,
834,
10218,
1206,
834,
357,
549,
17444,
427,
1532,
10648,
17,
3274,
96,
1265,
17,
2046,
2,
1024,
3,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what year did the teams leave the conference? | CREATE TABLE table_2419754_1 (left INTEGER) | SELECT MAX(left) FROM table_2419754_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
27181,
5062,
834,
536,
41,
17068,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
215,
410,
8,
2323,
1175,
8,
2542,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17068,
61,
21680,
953,
834,
2266,
27181,
5062,
834,
536,
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,
... |
Name the number of party with the incubent james william trimble | CREATE TABLE table_1341930_5 (party VARCHAR, incumbent VARCHAR) | SELECT COUNT(party) FROM table_1341930_5 WHERE incumbent = "James William Trimble" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2294,
1458,
834,
755,
41,
8071,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
1088,
28,
8,
16,
75,
15804,
17,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
8071,
61,
21680,
953,
834,
23747,
2294,
1458,
834,
755,
549,
17444,
427,
28406,
3274,
96,
683,
9,
2687,
4599,
21917,
2296,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give me the number of patients whose diagnoses icd9 code is 431 and lab test category is chemistry? | 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 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.icd9_code = "431" AND lab."CATEGORY" = "Chemistry" | [
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... |
What position and school/club team of Oklahoma state has an overall less than 410 and a round smaller than 5? | CREATE TABLE table_name_17 (position VARCHAR, school_club_team VARCHAR, overall VARCHAR, round VARCHAR) | SELECT position FROM table_name_17 WHERE overall < 410 AND round < 5 AND school_club_team = "oklahoma state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
4718,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
1879,
3,
2,
3,
24175,
3430,
1751,
3,
2,
305,
3430,
496,
834,
13442,
834,
11650,
3274,
96,
32,
8142,
10207,
9,
538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
Stacked bar of class and the number of class colored by Rank, and display in asc by the x axis please. | CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
) | SELECT Class, COUNT(Class) FROM captain GROUP BY Rank, Class ORDER BY Class | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15508,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
14862,
834,
476,
2741,
490,
6,
4501,
1499,
6,
17016,
1499,
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,
4501,
6,
2847,
17161,
599,
21486,
61,
21680,
14268,
350,
4630,
6880,
272,
476,
3,
22557,
6,
4501,
4674,
11300,
272,
476,
4501,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Draw a bar chart for what are the names and average prices of products for manufacturers whose products cost on average 150 or more?, and rank y axis from low to high order. | 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, AVG(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY AVG(T1.Price) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
71,
17217,
599,
382,
5411,
345,
4920,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880... |
What is the name of the person with a courtesy title of sanuki-no-kami/jiju? | CREATE TABLE table_name_32 (name VARCHAR, courtesy_title VARCHAR) | SELECT name FROM table_name_32 WHERE courtesy_title = "sanuki-no-kami/jiju" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
4350,
584,
4280,
28027,
6,
3,
14726,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
568,
28,
3,
9,
3,
14726... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
3,
14726,
834,
21869,
3274,
96,
7,
152,
1598,
23,
18,
29,
32,
18,
157,
3690,
87,
354,
23,
2047,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who's the shooter with 13 score points and 10 rank points? | CREATE TABLE table_name_32 (shooter VARCHAR, score_points VARCHAR, rank_points VARCHAR) | SELECT shooter FROM table_name_32 WHERE score_points = "13" AND rank_points = "10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
5630,
32,
449,
584,
4280,
28027,
6,
2604,
834,
2700,
7,
584,
4280,
28027,
6,
11003,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4279,
49,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
2604,
834,
2700,
7,
3274,
96,
2368,
121,
3430,
11003,
834,
2700,
7,
3274,
96,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which team was the visitor with a record of 5-2-0? | CREATE TABLE table_name_41 (visitor VARCHAR, record VARCHAR) | SELECT visitor FROM table_name_41 WHERE record = "5-2-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
3466,
155,
127,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
47,
8,
7019,
28,
3,
9,
1368,
13,
7670,
19423... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7019,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
1368,
3274,
96,
755,
18,
19423,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients guillain barre syndrome primary disease and have undergone the procedure with short title adm inhal nitric oxide? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "GUILLAIN BARRE SYNDROME" AND procedures.short_title = "Adm inhal nitric oxide" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
For those products with a price between 60 and 120, find name and code , and visualize them by a bar chart, sort by the X from low to high. | 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 Name, Code FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
3636,
21680,
7554,
549,
17444,
427,
5312,
272,
7969,
518,
23394,
1640,
3430,
5864,
4674,
11300,
272,
476,
5570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average silver medals a team that has 1 gold and more than 5 bronze has? | CREATE TABLE table_name_2 (silver INTEGER, gold VARCHAR, bronze VARCHAR) | SELECT AVG(silver) FROM table_name_2 WHERE gold = 1 AND bronze > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
7,
173,
624,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
4294,
9365,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
2045,
3274,
209,
3430,
13467,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the result with incumbent being bill g. lowrey | CREATE TABLE table_1342379_23 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1342379_23 WHERE incumbent = "Bill G. Lowrey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
4440,
834,
2773,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
741,
28,
28406,
271,
2876,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
23747,
2773,
4440,
834,
2773,
549,
17444,
427,
28406,
3274,
96,
279,
1092,
350,
5,
5586,
60,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who's the First District with a Fifth District of prudy adam? | CREATE TABLE table_name_9 (first_district VARCHAR, fifth_district VARCHAR) | SELECT first_district FROM table_name_9 WHERE fifth_district = "prudy adam" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
14672,
834,
26,
23,
20066,
584,
4280,
28027,
6,
8486,
834,
26,
23,
20066,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
31,
7,
8,
1485,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
26,
23,
20066,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
8486,
834,
26,
23,
20066,
3274,
96,
12129,
26,
63,
3,
9,
7812,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Rank for the Name, 'area of permanent crops', Out of a number smaller than 181? | CREATE TABLE table_40574 (
"Name" text,
"Rank" real,
"Out of" real,
"Source" text,
"Year" text
) | SELECT MIN("Rank") FROM table_40574 WHERE "Name" = 'area of permanent crops' AND "Out of" < '181' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3436,
591,
41,
96,
23954,
121,
1499,
6,
96,
22557,
121,
490,
6,
96,
15767,
13,
121,
490,
6,
96,
23799,
121,
1499,
6,
96,
476,
2741,
121,
1499,
3,
61,
3,
32102,
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,
17684,
599,
121,
22557,
8512,
21680,
953,
834,
2445,
3436,
591,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
498,
13,
3574,
15183,
31,
3430,
96,
15767,
13,
121,
3,
2,
3,
31,
2606,
536,
31,
1,
-100,
-100,
-10... |
What result has 1947 sun bowl as the bowl game? | CREATE TABLE table_39763 (
"Season" real,
"Bowl game" text,
"Result" text,
"Opponent" text,
"Stadium" text,
"Location" text,
"Attendance" text
) | SELECT "Result" FROM table_39763 WHERE "Bowl game" = '1947 sun bowl' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
3959,
519,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
279,
2381,
40,
467,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
17,
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,
20119,
121,
21680,
953,
834,
3288,
3959,
519,
549,
17444,
427,
96,
279,
2381,
40,
467,
121,
3274,
3,
31,
2294,
4177,
1997,
3047,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients stayed in hospital for more than 10 days and tested in lab for ferritin? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "10" AND lab.label = "Ferritin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which County has a Size larger than 258, and a Mascot of commodores? | CREATE TABLE table_name_95 (
county VARCHAR,
size VARCHAR,
mascot VARCHAR
) | SELECT county FROM table_name_95 WHERE size > 258 AND mascot = "commodores" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
5435,
584,
4280,
28027,
6,
812,
584,
4280,
28027,
6,
3,
2754,
4310,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1334,
65,
3,
9,
8941,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5435,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
812,
2490,
204,
3449,
3430,
3,
2754,
4310,
3274,
96,
287,
7360,
14846,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
where committee is environmental matters and district is 36 please specify all the delegate name | CREATE TABLE table_29276 (
"District" text,
"Counties Represented" text,
"Delegate" text,
"Party" text,
"First Elected" real,
"Committee" text
) | SELECT "Delegate" FROM table_29276 WHERE "Committee" = 'Environmental Matters' AND "District" = '36' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
357,
3959,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
10628,
725,
419,
12640,
15,
26,
121,
1499,
6,
96,
2962,
8791,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2962,
8791,
121,
21680,
953,
834,
3166,
357,
3959,
549,
17444,
427,
96,
10205,
155,
17,
15,
15,
121,
3274,
3,
31,
8532,
5771,
106,
13974,
19888,
7,
31,
3430,
96,
308,
23,
20066,
121,
3274,
3,
31,
3420,
31,
1... |
What is the lowest goals against value for a team with 83 points and a difference over 50? | CREATE TABLE table_name_31 (
goals_against INTEGER,
points VARCHAR,
goal_difference VARCHAR
) | SELECT MIN(goals_against) FROM table_name_31 WHERE points = 83 AND goal_difference > 50 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
1766,
834,
9,
16720,
7,
17,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
1288,
834,
26,
99,
11788,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
839,
5405,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
979,
3274,
3,
4591,
3430,
1288,
834,
26,
99,
11788,
2490,
943,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the home team for the away game that Canvey Island played? | CREATE TABLE table_50974 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Home team" FROM table_50974 WHERE "Away team" = 'canvey island' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
4327,
591,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
17,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19040,
372,
121,
21680,
953,
834,
1752,
4327,
591,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
1608,
162,
63,
3368,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When five is the new channel what is the date of original removal? | CREATE TABLE table_22818 (
"Programme" text,
"Date(s) of original removal" text,
"Original channel" text,
"Date of return" text,
"New channel(s)" text
) | SELECT "Date(s) of original removal" FROM table_22818 WHERE "New channel(s)" = 'Five' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
2606,
41,
96,
3174,
16582,
15,
121,
1499,
6,
96,
308,
342,
599,
7,
61,
13,
926,
4614,
121,
1499,
6,
96,
667,
3380,
10270,
4245,
121,
1499,
6,
96,
308,
342,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
599,
7,
61,
13,
926,
4614,
121,
21680,
953,
834,
357,
2577,
2606,
549,
17444,
427,
96,
6861,
4245,
599,
7,
61,
121,
3274,
3,
31,
371,
757,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who is the replacement when the date of vacancy is 1 september 2008? | CREATE TABLE table_name_51 (
replaced_by VARCHAR,
date_of_vacancy VARCHAR
) | SELECT replaced_by FROM table_name_51 WHERE date_of_vacancy = "1 september 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
5821,
834,
969,
584,
4280,
28027,
6,
833,
834,
858,
834,
29685,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
3709,
116,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5821,
834,
969,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
833,
834,
858,
834,
29685,
3274,
96,
536,
16022,
18247,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the names of all the employees whose the role name is 'Editor'. | CREATE TABLE ref_calendar (
calendar_date time,
day_number number
)
CREATE TABLE all_documents (
document_id number,
date_stored time,
document_type_code text,
document_name text,
document_description text,
other_details text
)
CREATE TABLE roles (
role_code text,
role_name tex... | SELECT T1.employee_name FROM employees AS T1 JOIN roles AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Editor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6273,
834,
1489,
35,
3439,
41,
4793,
834,
5522,
97,
6,
239,
834,
5525,
1152,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
66,
834,
28244,
7,
41,
1708,
834,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
15,
51,
7379,
63,
15,
15,
834,
4350,
21680,
1652,
6157,
332,
536,
3,
15355,
3162,
6270,
6157,
332,
357,
9191,
332,
5411,
3491,
15,
834,
4978,
3274,
332,
4416,
3491,
15,
834,
4978,
549,
17444,
427,
332,
... |
How many bank branches are there? | CREATE TABLE bank (Id VARCHAR) | SELECT COUNT(*) FROM bank | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2137,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2137,
9678,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2137,
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,
-... |
Which Services have a Local authority of chiltern, and a Zone 2010 of 9? | CREATE TABLE table_75339 (
"Station" text,
"Services" text,
"Local authority" text,
"Zone 2007" text,
"Zone 2008" text,
"Zone 2010" text,
"Zone 2013" text
) | SELECT "Services" FROM table_75339 WHERE "Local authority" = 'chiltern' AND "Zone 2010" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
519,
3288,
41,
96,
134,
6821,
121,
1499,
6,
96,
15260,
7,
121,
1499,
6,
96,
434,
32,
1489,
5015,
121,
1499,
6,
96,
956,
782,
4101,
121,
1499,
6,
96,
956,
782,
262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15260,
7,
121,
21680,
953,
834,
3072,
519,
3288,
549,
17444,
427,
96,
434,
32,
1489,
5015,
121,
3274,
3,
31,
1436,
40,
2947,
31,
3430,
96,
956,
782,
2735,
121,
3274,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-10... |
What year was the film Milagros submitted? | CREATE TABLE table_17919342_1 (
year__ceremony_ VARCHAR,
original_title VARCHAR
) | SELECT year__ceremony_ FROM table_17919342_1 WHERE original_title = "Milagros" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
2294,
3710,
357,
834,
536,
41,
215,
834,
834,
2110,
15,
21208,
834,
584,
4280,
28027,
6,
926,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
834,
2110,
15,
21208,
834,
21680,
953,
834,
26593,
2294,
3710,
357,
834,
536,
549,
17444,
427,
926,
834,
21869,
3274,
96,
329,
173,
9,
3844,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Title, when Release Date is 2011-12-01 December 2011? | CREATE TABLE table_name_65 (
title VARCHAR,
release_date VARCHAR
) | SELECT title FROM table_name_65 WHERE release_date = "2011-12-01 december 2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
2233,
584,
4280,
28027,
6,
1576,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11029,
6,
116,
13048,
7678,
19,
2722,
5947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1576,
834,
5522,
3274,
96,
13907,
5947,
14772,
20,
75,
18247,
2722,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the school with the largest enrollment founded? | CREATE TABLE university (
school_id number,
school text,
location text,
founded number,
affiliation text,
enrollment number,
nickname text,
primary_conference text
)
CREATE TABLE basketball_match (
team_id number,
school_id number,
team_name text,
acc_regular_season text... | SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
496,
834,
23,
26,
381,
6,
496,
1499,
6,
1128,
1499,
6,
5710,
381,
6,
24405,
1499,
6,
17938,
381,
6,
24649,
1499,
6,
2329,
834,
28496,
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,
5710,
21680,
3819,
4674,
11300,
272,
476,
17938,
309,
25067,
8729,
12604,
209,
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 was the last tournament she won ? | CREATE TABLE table_204_127 (
id number,
"outcome" text,
"no." number,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
) | SELECT "tournament" FROM table_204_127 WHERE "outcome" = 'winner' ORDER BY "date" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
22367,
41,
3,
23,
26,
381,
6,
96,
670,
287,
15,
121,
1499,
6,
96,
29,
32,
535,
381,
6,
96,
5522,
121,
1499,
6,
96,
17,
1211,
20205,
17,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17,
1211,
20205,
17,
121,
21680,
953,
834,
26363,
834,
22367,
549,
17444,
427,
96,
670,
287,
15,
121,
3274,
3,
31,
3757,
687,
31,
4674,
11300,
272,
476,
96,
5522,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-1... |
Which player was picked for the Chicago Sky? | CREATE TABLE table_39652 (
"Pick" real,
"Player" text,
"Nationality" text,
"WNBA Team" text,
"School/Club Team" text
) | SELECT "Player" FROM table_39652 WHERE "WNBA Team" = 'chicago sky' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
4122,
357,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
21170,
4882,
2271,
121,
1499,
6,
96,
29364,
87,
254,
11158... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3288,
4122,
357,
549,
17444,
427,
96,
21170,
4882,
2271,
121,
3274,
3,
31,
1436,
658,
839,
5796,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Week has an Opponent of at seattle seahawks? | CREATE TABLE table_40640 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Week" FROM table_40640 WHERE "Opponent" = 'at seattle seahawks' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
23714,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
10266,
121,
21680,
953,
834,
2445,
23714,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
144,
2805,
8692,
2805,
14400,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What name has pembroke as the built by hm dockyard, and may 1825 as the laid down? | CREATE TABLE table_name_79 (name VARCHAR, built_by_hm_dockyard VARCHAR, laid_down VARCHAR) | SELECT name FROM table_name_79 WHERE built_by_hm_dockyard = "pembroke" AND laid_down = "may 1825" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
4350,
584,
4280,
28027,
6,
1192,
834,
969,
834,
107,
51,
834,
26,
3961,
6636,
584,
4280,
28027,
6,
7245,
834,
3035,
584,
4280,
28027,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1192,
834,
969,
834,
107,
51,
834,
26,
3961,
6636,
3274,
96,
855,
12634,
1825,
15,
121,
3430,
7245,
834,
3035,
3274,
96,
13726,
507,
1828,
121,
1,
-100,
-100,
... |
How many districts represented Edwin E. Willis? | CREATE TABLE table_18423 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT COUNT("District") FROM table_18423 WHERE "Incumbent" = 'Edwin E. Willis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25987,
2773,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
308,
23,
20066,
8512,
21680,
953,
834,
25987,
2773,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
427,
26,
3757,
262,
5,
2003,
159,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which City has a Date of june 9, 1976? | CREATE TABLE table_name_39 (
city VARCHAR,
date VARCHAR
) | SELECT city FROM table_name_39 WHERE date = "june 9, 1976" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
690,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
896,
65,
3,
9,
7678,
13,
3,
6959,
15,
9902,
16164,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
833,
3274,
96,
6959,
15,
9902,
16164,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Tell me the distribution of the number of trains at each arrival time with a bar chart, and show Y in ascending order. | CREATE TABLE railway (
Railway_ID int,
Railway text,
Builder text,
Built text,
Wheels text,
Location text,
ObjectNumber text
)
CREATE TABLE railway_manage (
Railway_ID int,
Manager_ID int,
From_Year text
)
CREATE TABLE train (
Train_ID int,
Train_Num text,
Name text... | SELECT Arrival, COUNT(Arrival) FROM train GROUP BY Arrival ORDER BY COUNT(Arrival) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14421,
41,
18025,
834,
4309,
16,
17,
6,
18025,
1499,
6,
16799,
1499,
6,
14862,
1499,
6,
10707,
7,
1499,
6,
10450,
1499,
6,
3,
17057,
567,
5937,
49,
1499,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20559,
138,
6,
2847,
17161,
599,
188,
52,
25295,
61,
21680,
2412,
350,
4630,
6880,
272,
476,
20559,
138,
4674,
11300,
272,
476,
2847,
17161,
599,
188,
52,
25295,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Rank of the Athletes with a Time of 3:43.491? | CREATE TABLE table_name_21 (
rank VARCHAR,
time VARCHAR
) | SELECT COUNT(rank) FROM table_name_21 WHERE time = "3:43.491" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
11003,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
22557,
13,
8,
71,
189,
109,
1422,
28,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
97,
3274,
96,
519,
10,
591,
23204,
4729,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give the number of patients who were admitted before the year 2154 with the procedure icd9 code 331. | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2154" AND procedures.icd9_code = "331" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the average regular number of attendees that has 79 parishes? | CREATE TABLE table_name_36 (regular_attendees INTEGER, parishes VARCHAR) | SELECT AVG(regular_attendees) FROM table_name_36 WHERE parishes = 79 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
60,
122,
4885,
834,
15116,
15,
15,
7,
3,
21342,
17966,
6,
14961,
15,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1646,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
60,
122,
4885,
834,
15116,
15,
15,
7,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
14961,
15,
7,
3274,
3,
4440,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the minimumfor 5wi? | CREATE TABLE table_28846752_5 (Id VARCHAR) | SELECT MIN(5 AS wi) FROM table_28846752_5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4608,
3708,
5373,
834,
755,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2559,
1161,
305,
210,
23,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
755,
6157,
11064,
61,
21680,
953,
834,
2577,
4608,
3708,
5373,
834,
755,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Can you tell me the lowest Wins that has the Ballarat FL of daylesford, and the Byes smaller than 1? | CREATE TABLE table_7684 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT MIN("Wins") FROM table_7684 WHERE "Ballarat FL" = 'daylesford' AND "Byes" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
4608,
41,
96,
279,
1748,
9,
1795,
7212,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
18455,
7,
8512,
21680,
953,
834,
3959,
4608,
549,
17444,
427,
96,
279,
1748,
9,
1795,
7212,
121,
3274,
3,
31,
1135,
965,
2590,
31,
3430,
96,
279,
10070,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
... |
are more of the amateur draft picks from canada or the united states ? | CREATE TABLE table_204_385 (
id number,
"round" number,
"pick" number,
"player" text,
"nationality" text,
"college/junior/club team" text
) | SELECT "nationality" FROM table_204_385 WHERE "nationality" IN ('canada', 'united states') GROUP BY "nationality" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
4433,
41,
3,
23,
26,
381,
6,
96,
7775,
121,
381,
6,
96,
17967,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
3297,
7883,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16557,
485,
121,
21680,
953,
834,
26363,
834,
519,
4433,
549,
17444,
427,
96,
16557,
485,
121,
3388,
41,
31,
658,
18089,
31,
6,
3,
31,
15129,
15,
26,
2315,
31,
61,
350,
4630,
6880,
272,
476,
96,
16557,
485,
... |
which production has the same number of performances as sleuth ? | CREATE TABLE table_204_592 (
id number,
"#" number,
"title" text,
"type" text,
"opening\ndate" text,
"closing\ndate" text,
"performances" number,
"comment" text
) | SELECT "title" FROM table_204_592 WHERE "title" <> 'sleuth' AND "performances" = (SELECT "performances" FROM table_204_592 WHERE "title" = 'sleuth') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3390,
357,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
8751,
53,
2,
29,
5522,
121,
1499,
6,
96,
390... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21869,
121,
21680,
953,
834,
26363,
834,
3390,
357,
549,
17444,
427,
96,
21869,
121,
3,
2,
3155,
3,
31,
7,
109,
76,
189,
31,
3430,
96,
18558,
7,
121,
3274,
41,
23143,
14196,
96,
18558,
7,
121,
21680,
953,
83... |
What is the Rank of the Athletes from Ukraine? | CREATE TABLE table_name_65 (
rank VARCHAR,
country VARCHAR
) | SELECT COUNT(rank) FROM table_name_65 WHERE country = "ukraine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
11003,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
22557,
13,
8,
71,
189,
109,
1422,
45,
11897,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
684,
3274,
96,
1598,
6559,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Date, when Team is Holden Racing Team, and when Circuit is Eastern Creek Raceway? | CREATE TABLE table_name_40 (date VARCHAR, team VARCHAR, circuit VARCHAR) | SELECT date FROM table_name_40 WHERE team = "holden racing team" AND circuit = "eastern creek raceway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
5522,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
2271,
19,
8470,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
372,
3274,
96,
6134,
35,
8191,
372,
121,
3430,
4558,
3274,
96,
15,
9,
13072,
25153,
1964,
1343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the minimum possible NJCAA championships? | CREATE TABLE table_24921 (
"School" text,
"Location" text,
"Team Name" text,
"Colors" text,
"Varsity Teams" real,
"NJCAA Championships" real
) | SELECT MIN("NJCAA Championships") FROM table_24921 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3647,
2658,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
18699,
5570,
121,
1499,
6,
96,
3881,
322,
7,
121,
1499,
6,
96,
553,
291,
7,
485,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
567,
20599,
5498,
7666,
7,
8512,
21680,
953,
834,
357,
3647,
2658,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many artworks are there? | CREATE TABLE artwork (
Id VARCHAR
) | SELECT COUNT(*) FROM artwork | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7924,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7924,
7,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
7924,
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 positions does the college/junior/club team, molot perm (russia) have? | CREATE TABLE table_15967 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Position" FROM table_15967 WHERE "College/junior/club team" = 'Molot Perm (Russia)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27904,
3708,
41,
96,
345,
3142,
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,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
27904,
3708,
549,
17444,
427,
96,
9939,
7883,
87,
6959,
23,
127,
87,
13442,
372,
121,
3274,
3,
31,
329,
32,
3171,
1915,
51,
41,
29613,
61,
31,
1,
-100,
-100,
-100,
-10... |
were there any rugby union matches between new zealand and wales in which new zealand scored no points ? | CREATE TABLE table_203_634 (
id number,
"date" text,
"venue" text,
"score" text,
"victor" text,
"comments" text,
"match reports" text
) | SELECT (SELECT COUNT(*) FROM table_203_634 WHERE "score" = 0) > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3891,
591,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
2099,
5317,
121,
1499,
6,
96,
287,
4128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
41,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
3891,
591,
549,
17444,
427,
96,
7,
9022,
121,
3274,
3,
632,
61,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.