NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the lowest amount of losses when the goldne rivers is quambatook, wins are smaller than 15 and draws larger than 0? | CREATE TABLE table_60462 (
"Golden Rivers" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT MIN("Losses") FROM table_60462 WHERE "Wins" < '15' AND "Golden Rivers" = 'quambatook' AND "Draws" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
4448,
357,
41,
96,
23576,
35,
2473,
7,
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,
434,
13526,
7,
8512,
21680,
953,
834,
3328,
4448,
357,
549,
17444,
427,
96,
18455,
7,
121,
3,
2,
3,
31,
1808,
31,
3430,
96,
23576,
35,
2473,
7,
121,
3274,
3,
31,
2436,
14303,
235,
1825,
31,
... |
what couple had a vote percentage of 5.8%? | CREATE TABLE table_28637 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
) | SELECT "Couple" FROM table_28637 WHERE "Vote percentage" = '5.8%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3840,
4118,
41,
96,
22557,
121,
490,
6,
96,
3881,
413,
109,
121,
1499,
6,
96,
683,
13164,
7,
121,
490,
6,
96,
30931,
121,
490,
6,
96,
3696,
1947,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3881,
413,
109,
121,
21680,
953,
834,
357,
3840,
4118,
549,
17444,
427,
96,
553,
32,
17,
15,
5294,
121,
3274,
3,
31,
9125,
5953,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What country has grandstand stadium as the stadium? | CREATE TABLE table_name_71 (
country VARCHAR,
stadium VARCHAR
) | SELECT country FROM table_name_71 WHERE stadium = "grandstand stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
684,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
65,
1907,
2976,
14939,
38,
8,
14939,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
14939,
3274,
96,
15448,
2976,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When was the game at Moorabbin Oval? | CREATE TABLE table_12038 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_12038 WHERE "Venue" = 'moorabbin oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
3747,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
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,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
15518,
3747,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
21477,
12982,
77,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Overall pick 240 was a pick in which round? | CREATE TABLE table_10360823_1 (round VARCHAR, overall VARCHAR) | SELECT round FROM table_10360823_1 WHERE overall = 240 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3420,
4018,
2773,
834,
536,
41,
7775,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
9126,
1432,
3,
11944,
47,
3,
9,
1432,
16,
84,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1751,
21680,
953,
834,
1714,
3420,
4018,
2773,
834,
536,
549,
17444,
427,
1879,
3274,
3,
11944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many points for the driver who raced in seasons 2006 2007 , 2009? | CREATE TABLE table_24735155_1 (
points VARCHAR,
seasons VARCHAR
) | SELECT points FROM table_24735155_1 WHERE seasons = "2006 – 2007 , 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4177,
2469,
20896,
834,
536,
41,
979,
584,
4280,
28027,
6,
9385,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
21,
8,
2535,
113,
1964,
26,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
357,
4177,
2469,
20896,
834,
536,
549,
17444,
427,
9385,
3274,
96,
21196,
3,
104,
4101,
3,
6,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the result for friendly competition on 9 october 2010 | CREATE TABLE table_53754 (
"Goal" real,
"Date" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_53754 WHERE "Competition" = 'friendly' AND "Date" = '9 october 2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
3072,
591,
41,
96,
6221,
138,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
3,
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,
20119,
121,
21680,
953,
834,
4867,
3072,
591,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
4905,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
1298,
3,
32,
75,
235,
1152,
2735,
31,
1,
-100,
-100,
-10... |
what was the name of the output which patient 017-49538 had first had? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... | SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-49538')) AND intakeoutput.cellpath LIKE '%output%' ORDER... | [
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,
11963,
670,
2562,
5,
8725,
40,
10333,
21680,
11963,
670,
2562,
549,
17444,
427,
11963,
670,
2562,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
... |
what is the lowest points when name is ehc m nchen ii and position is less than 7? | CREATE TABLE table_name_24 (
points INTEGER,
name VARCHAR,
position VARCHAR
) | SELECT MIN(points) FROM table_name_24 WHERE name = "ehc münchen ii" AND position < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
979,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
7402,
979,
116,
564,
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,
1,
1,
0... | [
3,
23143,
14196,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
564,
3274,
96,
15,
107,
75,
3,
9017,
29,
1559,
3,
23,
23,
121,
3430,
1102,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the runner up when the score was 3 6, 6 3, [10 4]? | CREATE TABLE table_name_50 (
runner_up VARCHAR,
score VARCHAR
) | SELECT runner_up FROM table_name_50 WHERE score = "3–6, 6–3, [10–4]" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
3,
10806,
834,
413,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
3,
10806,
95,
116,
8,
2604,
47,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10806,
834,
413,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
2604,
3274,
96,
519,
104,
11071,
431,
104,
6355,
784,
1714,
104,
591,
908,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the year when West Manila has a tariff increase of 6.5? | CREATE TABLE table_21480 (
"Year" real,
"West Manila" text,
"East Manila" text,
"Consumer Price Index (2005=100)" text,
"West Manila as a share of 1996 real tariff" text,
"East Manila as a share of 1996 real tariff" text
) | SELECT "Year" FROM table_21480 WHERE "West Manila" = '6.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
20579,
41,
96,
476,
2741,
121,
490,
6,
96,
19069,
25432,
121,
1499,
6,
96,
25235,
25432,
121,
1499,
6,
96,
4302,
4078,
49,
5312,
11507,
41,
22594,
2423,
2915,
61,
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,
476,
2741,
121,
21680,
953,
834,
2658,
20579,
549,
17444,
427,
96,
19069,
25432,
121,
3274,
3,
31,
17255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
List all the Italian restaurant in ' Los Angeles | CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address varchar,
city varchar,
latitude varchar,
longitude varchar,
review_count bigint,
is_open tinyint,
rating float,
state varchar
)
CREATE TABLE tip (
tip_id int,
business_id varchar,
te... | SELECT business.name FROM business, category AS CATEGORY_0, category AS CATEGORY_1 WHERE business.city = 'Los Angeles' AND CATEGORY_0.business_id = business.business_id AND CATEGORY_0.category_name = 'Italian' AND CATEGORY_1.business_id = business.business_id AND CATEGORY_1.category_name = 'restaurant' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
268,
41,
6894,
16,
17,
6,
268,
834,
23,
26,
3,
4331,
4059,
6,
564,
3,
4331,
4059,
6,
423,
834,
9,
26,
12039,
3,
4331,
4059,
6,
690,
3,
4331,
4059,
6,
50,
6592,
3,
4331,
4059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
268,
5,
4350,
21680,
268,
6,
3295,
6157,
205,
6048,
5577,
11824,
834,
632,
6,
3295,
6157,
205,
6048,
5577,
11824,
834,
536,
549,
17444,
427,
268,
5,
6726,
3274,
3,
31,
434,
32,
7,
4975,
31,
3430,
205,
6048,
5577,
... |
What is the home team of the game with a 2-0 record? | CREATE TABLE table_name_89 (home VARCHAR, record VARCHAR) | SELECT home FROM table_name_89 WHERE record = "2-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
5515,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
13,
8,
467,
28,
3,
9,
3,
19423,
1368,
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... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
1368,
3274,
96,
19423,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the winning team of the South Pacific Trophy? | CREATE TABLE table_name_22 (
winning_team VARCHAR,
name VARCHAR
) | SELECT winning_team FROM table_name_22 WHERE name = "south pacific trophy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
3447,
834,
11650,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
3447,
372,
13,
8,
1013,
5824,
26912,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
11650,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
564,
3274,
96,
7,
670,
107,
3,
5379,
3286,
23921,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date was the record 19-11? | CREATE TABLE table_68606 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Date" FROM table_68606 WHERE "Record" = '19-11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3328,
948,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3651,
3328,
948,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2294,
9169,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the oder part number for the model with 10x mult. 1? | CREATE TABLE table_27277284_28 (
order_part_number VARCHAR,
mult_1 VARCHAR
) | SELECT order_part_number FROM table_27277284_28 WHERE mult_1 = "10x" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2555,
5865,
4608,
834,
2577,
41,
455,
834,
2274,
834,
5525,
1152,
584,
4280,
28027,
6,
980,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
455,
834,
2274,
834,
5525,
1152,
21680,
953,
834,
2555,
2555,
5865,
4608,
834,
2577,
549,
17444,
427,
980,
834,
536,
3274,
96,
1714,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients are diagnosed with encephalopathy unspecified and tested in lab and the results shows abnormal status? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Encephalopathy, unspecified" AND lab.flag = "abnormal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Which surface was played during Curitiba tournament? | CREATE TABLE table_name_46 (surface VARCHAR, tournament VARCHAR) | SELECT surface FROM table_name_46 WHERE tournament = "curitiba" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
26899,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1774,
47,
1944,
383,
1839,
13224,
115,
9,
5892,
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,
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,
1774,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
5892,
3274,
96,
1071,
13224,
115,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total population from the 2000 census for the municipality that has a 464.5 square km area and a population density in 2010 larger than 1840? | CREATE TABLE table_34283 (
"Administrative division" text,
"Area (km\u00b2)" real,
"Population 2000 Census" real,
"Population (2010 Census)" real,
"Population density 2010 (/km\u00b2)" real
) | SELECT COUNT("Population 2000 Census") FROM table_34283 WHERE "Area (km\u00b2)" = '464.5' AND "Population density 2010 (/km\u00b2)" > '1840' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
2577,
519,
41,
96,
16313,
343,
52,
1528,
4889,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
490,
6,
96,
27773,
7830,
2766,
23086,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
27773,
7830,
2766,
23086,
8512,
21680,
953,
834,
3710,
2577,
519,
549,
17444,
427,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
3274,
3,
31,
4448,
12451,
31,
3430,
96,
27773,
7830,
110... |
What was the total for radio luxembourg? | CREATE TABLE table_19439864_2 (total VARCHAR, song VARCHAR) | SELECT total FROM table_19439864_2 WHERE song = "Radio Luxembourg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4906,
3916,
4389,
834,
357,
41,
235,
1947,
584,
4280,
28027,
6,
2324,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
792,
21,
2252,
21558,
51,
21054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
792,
21680,
953,
834,
2294,
4906,
3916,
4389,
834,
357,
549,
17444,
427,
2324,
3274,
96,
31313,
23888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Specify the route of adminsitration and code for the drug Gastroview (Diatrizoate Meglumine & Sodium) | 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 prescriptions (
subject_id text,
hadm_id... | SELECT prescriptions.formulary_drug_cd, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Gastroview (Diatrizoate Meglumine & Sodium)" | [
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,
7744,
7,
5,
20128,
63,
834,
26,
13534,
834,
75,
26,
6,
7744,
7,
5,
20300,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
517,
9,
6626,
4576,
41,
23770,
17,
13266,
32,
342,
1212,
13492,
8695,
... |
What was the attendance for the game against the Houston Oilers? | CREATE TABLE table_name_9 (attendance VARCHAR, opponent VARCHAR) | SELECT attendance FROM table_name_9 WHERE opponent = "houston oilers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
15116,
663,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
21,
8,
467,
581,
8,
8018,
6067,
277,
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,
11364,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
15264,
3274,
96,
9492,
4411,
1043,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which defending forces have the name Danna? | CREATE TABLE table_name_77 (defending_forces VARCHAR, name VARCHAR) | SELECT defending_forces FROM table_name_77 WHERE name = "danna" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
20309,
834,
10880,
7,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
20309,
3859,
43,
8,
564,
7680,
9,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
20309,
834,
10880,
7,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
564,
3274,
96,
26,
10878,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many sources are there for south africa? | CREATE TABLE table_29487895_2 (source_s_ VARCHAR, country___region VARCHAR) | SELECT COUNT(source_s_) FROM table_29487895_2 WHERE country___region = "South Africa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3707,
3940,
3301,
834,
357,
41,
7928,
834,
7,
834,
584,
4280,
28027,
6,
684,
834,
834,
834,
18145,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2836,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7928,
834,
7,
834,
61,
21680,
953,
834,
3166,
3707,
3940,
3301,
834,
357,
549,
17444,
427,
684,
834,
834,
834,
18145,
3274,
96,
22081,
2648,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total pick number from round 2? | CREATE TABLE table_78296 (
"Pick" real,
"Round" text,
"Player" text,
"Position" text,
"School" text
) | SELECT COUNT("Pick") FROM table_78296 WHERE "Round" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
357,
4314,
41,
96,
345,
3142,
121,
490,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
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,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
345,
3142,
8512,
21680,
953,
834,
3940,
357,
4314,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the earliest year that kim hyun-soo won the gold? | CREATE TABLE table_name_51 (
year INTEGER,
gold VARCHAR
) | SELECT MIN(year) FROM table_name_51 WHERE gold = "kim hyun-soo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
215,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
215,
24,
3,
19754,
3,
107,
63,
202,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
2045,
3274,
96,
19754,
3,
107,
63,
202,
18,
7,
32,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who were the cover model(s) on the 4-05 issue? | CREATE TABLE table_1566852_6 (
cover_model VARCHAR,
date VARCHAR
) | SELECT cover_model FROM table_1566852_6 WHERE date = "4-05" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
3651,
5373,
834,
948,
41,
1189,
834,
21770,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
1189,
825,
599,
7,
61,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1189,
834,
21770,
21680,
953,
834,
25463,
3651,
5373,
834,
948,
549,
17444,
427,
833,
3274,
96,
26814,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the surface played on for the match than began before 1897? | CREATE TABLE table_name_93 (
court_surface VARCHAR,
began INTEGER
) | SELECT court_surface FROM table_name_93 WHERE began < 1897 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
1614,
834,
26899,
584,
4280,
28027,
6,
1553,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1774,
1944,
30,
21,
8,
1588,
145,
1553,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1614,
834,
26899,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
1553,
3,
2,
507,
4327,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are all the role codes, role names, and role descriptions? | 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 document_locations (
document_id number,
location_code text,
date_in_location_from time,
date_in_locaton_t... | SELECT role_code, role_name, role_description FROM roles | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
66,
834,
28244,
7,
41,
1708,
834,
23,
26,
381,
6,
833,
834,
7154,
26,
97,
6,
1708,
834,
6137,
834,
4978,
1499,
6,
1708,
834,
4350,
1499,
6,
1708,
834,
221,
11830,
1499,
6,
119,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1075,
834,
4978,
6,
1075,
834,
4350,
6,
1075,
834,
221,
11830,
21680,
6270,
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 are the details of the cmi masters that have the cross reference code 'Tax', and count them by a bar chart | CREATE TABLE Rent_Arrears (
council_tax_id INTEGER,
cmi_cross_ref_id INTEGER
)
CREATE TABLE Electoral_Register (
electoral_register_id INTEGER,
cmi_cross_ref_id INTEGER
)
CREATE TABLE Business_Rates (
business_rates_id INTEGER,
cmi_cross_ref_id INTEGER
)
CREATE TABLE Council_Tax (
council... | SELECT cmi_details, COUNT(cmi_details) FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T2.source_system_code = 'Tax' GROUP BY cmi_details | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9405,
834,
28150,
2741,
7,
41,
6098,
834,
14727,
834,
23,
26,
3,
21342,
17966,
6,
2446,
23,
834,
11465,
834,
60,
89,
834,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2446,
23,
834,
221,
5756,
7,
6,
2847,
17161,
599,
75,
51,
23,
834,
221,
5756,
7,
61,
21680,
7327,
834,
20608,
834,
26267,
226,
6157,
332,
536,
3,
15355,
3162,
205,
7075,
834,
254,
1859,
7,
834,
1649,
11788,
7,
6... |
What is every party A with a constituency of Tiruchendur? | CREATE TABLE table_25283 (
"Constituency" text,
"Winner" text,
"Party" text,
"Margin" real,
"Runner-up a" text,
"Party a" text
) | SELECT "Party a" FROM table_25283 WHERE "Constituency" = 'Tiruchendur' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2577,
519,
41,
96,
4302,
2248,
17,
76,
4392,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
7286,
122,
77,
121,
490,
6,
96,
23572,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
63,
3,
9,
121,
21680,
953,
834,
1828,
2577,
519,
549,
17444,
427,
96,
4302,
2248,
17,
76,
4392,
121,
3274,
3,
31,
382,
23,
11783,
3225,
13629,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the time/retired for Laps larger than 63 and has a grid of 20 | CREATE TABLE table_name_97 (
time_retired VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT time_retired FROM table_name_97 WHERE laps > 63 AND grid = 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
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,
0,
0... | [
3,
23143,
14196,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
14941,
7,
2490,
3,
3891,
3430,
8634,
3274,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the low win count with more than 72 goals? | CREATE TABLE table_11157 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT MIN("Wins") FROM table_11157 WHERE "Goals for" > '72' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
3436,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
18455,
7,
8512,
21680,
953,
834,
15866,
3436,
549,
17444,
427,
96,
6221,
5405,
21,
121,
2490,
3,
31,
5865,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
tell me the primary disease and health insurance of patient with patient id 8990. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT demographic.insurance, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "8990" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
29441,
6,
14798,
5,
25930,
4844,
159,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
3914,
2394,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which manufacturer has a grid of 6? | CREATE TABLE table_44663 (
"Rider" text,
"Manufacturer" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
) | SELECT "Manufacturer" FROM table_44663 WHERE "Grid" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
3539,
519,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
1499,
6,
96,
13368,
87,
1649,
11809,
26,
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,
7296,
76,
8717,
450,
49,
121,
21680,
953,
834,
3628,
3539,
519,
549,
17444,
427,
96,
13313,
26,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the original air date for bryan moore & chris peterson | CREATE TABLE table_27988408_1 (original_air_date VARCHAR, written_by VARCHAR) | SELECT original_air_date FROM table_27988408_1 WHERE written_by = "Bryan Moore & Chris Peterson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3916,
4608,
4018,
834,
536,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
926,
799... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
834,
5522,
21680,
953,
834,
2555,
3916,
4608,
4018,
834,
536,
549,
17444,
427,
1545,
834,
969,
3274,
96,
279,
651,
152,
11103,
3,
184,
4409,
2737,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which player has a total bigger than 285 and a to par of +14? | CREATE TABLE table_name_10 (player VARCHAR, total VARCHAR, to_par VARCHAR) | SELECT player FROM table_name_10 WHERE total > 285 AND to_par = "+14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
20846,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
65,
3,
9,
792,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
792,
2490,
204,
4433,
3430,
12,
834,
1893,
3274,
96,
18446,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Can you tell me the High rebounds that has the Date of november 5? | CREATE TABLE table_name_16 (
high_rebounds VARCHAR,
date VARCHAR
) | SELECT high_rebounds FROM table_name_16 WHERE date = "november 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
306,
834,
23768,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
1592,
3,
23768,
24,
65,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
23768,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result for the Outstanding director of a musical category? | CREATE TABLE table_41381 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
) | SELECT "Result" FROM table_41381 WHERE "Category" = 'outstanding director of a musical' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2368,
4959,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
4168,
8695,
15,
121,
1499,
6,
96,
20119,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
591,
2368,
4959,
549,
17444,
427,
96,
18610,
6066,
651,
121,
3274,
3,
31,
670,
11018,
2090,
13,
3,
9,
4183,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the host city during the 2012 season? | CREATE TABLE table_37209 (
"Season" real,
"Winner" text,
"Finalist" text,
"Score" text,
"Host City" text
) | SELECT "Host City" FROM table_37209 WHERE "Season" = '2012' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
357,
4198,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
371,
10270,
343,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
566,
3481,
896,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
566,
3481,
896,
121,
21680,
953,
834,
4118,
357,
4198,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
12172,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the number of athletes for the 7th edition? | CREATE TABLE table_26669939_1 (no_of_athletes VARCHAR, edition VARCHAR) | SELECT no_of_athletes FROM table_26669939_1 WHERE edition = "7th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3539,
3264,
3288,
834,
536,
41,
29,
32,
834,
858,
834,
26170,
15,
7,
584,
4280,
28027,
6,
4182,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
150,
834,
858,
834,
26170,
15,
7,
21680,
953,
834,
2688,
3539,
3264,
3288,
834,
536,
549,
17444,
427,
4182,
3274,
96,
940,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When was the game before week 15 with the result of bye? | CREATE TABLE table_name_26 (date VARCHAR, week VARCHAR, result VARCHAR) | SELECT date FROM table_name_26 WHERE week < 15 AND result = "bye" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
5522,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
467,
274,
471,
627,
28,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
471,
3,
2,
627,
3430,
741,
3274,
96,
969,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many production codes does 'number one' have? | CREATE TABLE table_28448 (
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" real
) | SELECT MAX("Prod. code") FROM table_28448 WHERE "Title" = 'Number One' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
3707,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
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,
4800,
4,
599,
121,
3174,
26,
5,
1081,
8512,
21680,
953,
834,
357,
4608,
3707,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
567,
5937,
49,
555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who in series 5 corresponds to Deborah Meaden in series 3? | CREATE TABLE table_name_57 (series_5 VARCHAR, series_3 VARCHAR) | SELECT series_5 FROM table_name_57 WHERE series_3 = "deborah meaden" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
10833,
7,
834,
755,
584,
4280,
28027,
6,
939,
834,
519,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
16,
939,
305,
10423,
7,
12,
30226,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
939,
834,
755,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
939,
834,
519,
3274,
96,
221,
6693,
9,
107,
140,
9,
537,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose age is less than 68 and procedure short title is arterial catheterization? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "68" AND procedures.short_title = "Arterial catheterization" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many delegates in each committee? Return a bar chart, and display by the y-axis in descending. | CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE party (
Party_ID int,
... | SELECT Committee, COUNT(Committee) FROM election GROUP BY Committee ORDER BY COUNT(Committee) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
19488,
834,
4309,
16,
17,
6,
3,
10628,
725,
834,
1649,
12640,
15,
26,
1499,
6,
3570,
16,
17,
6,
374,
8791,
1499,
6,
3450,
16,
17,
6,
1485,
834,
21543,
15,
26,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3201,
6,
2847,
17161,
599,
10205,
155,
17,
15,
15,
61,
21680,
4356,
350,
4630,
6880,
272,
476,
3201,
4674,
11300,
272,
476,
2847,
17161,
599,
10205,
155,
17,
15,
15,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
... |
What are all the CFL teams where the pick number is 36? | CREATE TABLE table_15817998_5 (cfl_team VARCHAR, pick__number VARCHAR) | SELECT cfl_team FROM table_15817998_5 WHERE pick__number = 36 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26556,
26593,
3916,
834,
755,
41,
75,
89,
40,
834,
11650,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
75,
89,
40,
834,
11650,
21680,
953,
834,
26556,
26593,
3916,
834,
755,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
4475,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the maximum total amount paid by a customer? List the customer id and amount. | CREATE TABLE discount_coupons (
coupon_id number,
date_issued time,
coupon_amount number
)
CREATE TABLE products_booked (
booking_id number,
product_id number,
returned_yn text,
returned_late_yn text,
booked_count number,
booked_amount number
)
CREATE TABLE view_product_availabilit... | SELECT customer_id, SUM(amount_paid) FROM payments GROUP BY customer_id ORDER BY SUM(amount_paid) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3898,
834,
15976,
106,
7,
41,
8133,
834,
23,
26,
381,
6,
833,
834,
13159,
26,
97,
6,
8133,
834,
9,
11231,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
884,
834,
23,
26,
6,
180,
6122,
599,
9,
11231,
834,
12760,
61,
21680,
4364,
350,
4630,
6880,
272,
476,
884,
834,
23,
26,
4674,
11300,
272,
476,
180,
6122,
599,
9,
11231,
834,
12760,
61,
309,
25067,
8729,
12604,
20... |
Name the finished for exited day 13 | CREATE TABLE table_14345690_4 (finished VARCHAR, exited VARCHAR) | SELECT finished FROM table_14345690_4 WHERE exited = "Day 13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3710,
4834,
2394,
834,
591,
41,
19420,
584,
4280,
28027,
6,
7189,
15,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2369,
21,
7189,
15,
26,
239,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2369,
21680,
953,
834,
2534,
3710,
4834,
2394,
834,
591,
549,
17444,
427,
7189,
15,
26,
3274,
96,
16803,
1179,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Gold has a Rank of 7, a Nation of italy, and a Silver smaller than 0? | CREATE TABLE table_name_40 (
gold VARCHAR,
silver VARCHAR,
rank VARCHAR,
nation VARCHAR
) | SELECT COUNT(gold) FROM table_name_40 WHERE rank = "7" AND nation = "italy" AND silver < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
254... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14910,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
11003,
3274,
96,
940,
121,
3430,
2982,
3274,
96,
9538,
63,
121,
3430,
4294,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What types of ships were made at the Froemming Brothers ship yard? | CREATE TABLE table_name_32 (
ship_types_delivered VARCHAR,
yard_name VARCHAR
) | SELECT ship_types_delivered FROM table_name_32 WHERE yard_name = "froemming brothers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
4383,
834,
6137,
7,
834,
221,
7591,
1271,
584,
4280,
28027,
6,
6178,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1308,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4383,
834,
6137,
7,
834,
221,
7591,
1271,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
6178,
834,
4350,
3274,
96,
6155,
15,
635,
53,
10740,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the lowes population of 2002 when the 2011 population was 30076? | CREATE TABLE table_2562572_8 (population__2002_ INTEGER, population__2011_ VARCHAR) | SELECT MIN(population__2002_) FROM table_2562572_8 WHERE population__2011_ = 30076 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
927,
41,
9791,
7830,
834,
834,
24898,
834,
3,
21342,
17966,
6,
2074,
834,
834,
13907,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
9791,
7830,
834,
834,
24898,
834,
61,
21680,
953,
834,
19337,
1828,
5865,
834,
927,
549,
17444,
427,
2074,
834,
834,
13907,
834,
3274,
3147,
3959,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What official or native languages are spoken in the country whose capital city is Canberra? | CREATE TABLE table_72081 (
"Country ( exonym )" text,
"Capital ( exonym )" text,
"Country ( endonym )" text,
"Capital ( endonym )" text,
"Official or native language(s) (alphabet/script)" text
) | SELECT "Official or native language(s) (alphabet/script)" FROM table_72081 WHERE "Capital ( exonym )" = 'Canberra' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18517,
4959,
41,
96,
10628,
651,
41,
1215,
19140,
3,
61,
121,
1499,
6,
96,
19566,
9538,
41,
1215,
19140,
3,
61,
121,
1499,
6,
96,
10628,
651,
41,
414,
19140,
3,
61,
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,
667,
89,
22816,
42,
4262,
1612,
599,
7,
61,
41,
138,
6977,
346,
17,
87,
11815,
61,
121,
21680,
953,
834,
18517,
4959,
549,
17444,
427,
96,
19566,
9538,
41,
1215,
19140,
3,
61,
121,
3274,
3,
31,
14050,
115,
1... |
What's the name that has the characters ? | CREATE TABLE table_name_87 (
name__wade_giles_ VARCHAR,
characters VARCHAR
) | SELECT name__wade_giles_ FROM table_name_87 WHERE characters = "廣亨" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
564,
834,
834,
210,
9,
221,
834,
122,
699,
7,
834,
584,
4280,
28027,
6,
2850,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
834,
834,
210,
9,
221,
834,
122,
699,
7,
834,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
2850,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the lowest laps of grid 17? | CREATE TABLE table_name_69 (
laps INTEGER,
grid VARCHAR
) | SELECT MIN(laps) FROM table_name_69 WHERE grid = 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
14941,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
7402,
14941,
7,
13,
8634,
1003,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
8634,
3274,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the name of the report that lists the race name as long beach grand prix? | CREATE TABLE table_10707142_2 (report VARCHAR, race_name VARCHAR) | SELECT report FROM table_10707142_2 WHERE race_name = "Long Beach Grand Prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
4560,
24978,
834,
357,
41,
60,
1493,
584,
4280,
28027,
6,
1964,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
564,
13,
8,
934,
24,
7809... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
934,
21680,
953,
834,
18057,
4560,
24978,
834,
357,
549,
17444,
427,
1964,
834,
4350,
3274,
96,
434,
2444,
2979,
2698,
12942,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of times patient 021-148847 until 11/2105 has been prescribed with lorazepam. | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-148847')) AND medication.drugname = 'lorazepam' AND STRFTIME('%y-%m', medi... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
7757,
549,
17444,
427,
7757,
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,
... |
Who the Owner that has a Lengths Behind of 5 ? | CREATE TABLE table_name_87 (
owner VARCHAR,
lengths_behind VARCHAR
) | SELECT owner FROM table_name_87 WHERE lengths_behind = "5½" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
2527,
584,
4280,
28027,
6,
2475,
7,
834,
346,
2907,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
8,
13307,
24,
65,
3,
9,
312,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2527,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
2475,
7,
834,
346,
2907,
26,
3274,
96,
5553,
2,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Drobo (2nd) has a Drobo S (2nd) of 5? | CREATE TABLE table_name_1 (
drobo__2nd_ VARCHAR
) | SELECT drobo__2nd_ FROM table_name_1 WHERE DROBO_S(2 AS nd) = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
3,
26,
23801,
834,
834,
357,
727,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
309,
23801,
4743,
727,
61,
65,
3,
9,
309,
23801,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
26,
23801,
834,
834,
357,
727,
834,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
309,
4630,
8471,
834,
134,
599,
357,
6157,
3,
727,
61,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Tell me the lowest kazakhstan for kyrghizstan of 4.62 and belarus less than 2.46 | CREATE TABLE table_name_20 (kazakhstan INTEGER, kyrghizstan VARCHAR, belarus VARCHAR) | SELECT MIN(kazakhstan) FROM table_name_20 WHERE kyrghizstan = 4.62 AND belarus < 2.46 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
1258,
172,
18965,
5627,
3,
21342,
17966,
6,
3,
3781,
52,
5649,
172,
5627,
584,
4280,
28027,
6,
36,
521,
4502,
584,
4280,
28027,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1258,
172,
18965,
5627,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
3,
3781,
52,
5649,
172,
5627,
3274,
2853,
4056,
3430,
36,
521,
4502,
3,
2,
1682,
4448,
1,
-100,
-100,
-100,
-100,
-100,
... |
In the 2010 season what club has 0 goals and more than 0 Apps? | CREATE TABLE table_54476 (
"National team" text,
"Club" text,
"Season" text,
"Apps" real,
"Goals" real
) | SELECT "Club" FROM table_54476 WHERE "Goals" = '0' AND "Apps" > '0' AND "Season" = '2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3628,
3959,
41,
96,
24732,
372,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
9648,
7,
121,
490,
6,
96,
6221,
5405,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
11158,
121,
21680,
953,
834,
755,
3628,
3959,
549,
17444,
427,
96,
6221,
5405,
121,
3274,
3,
31,
632,
31,
3430,
96,
9648,
7,
121,
2490,
3,
31,
632,
31,
3430,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
149... |
What is the unemployment rate in those places where the market income per capita is $16,981? | CREATE TABLE table_22815568_7 (unemployment_rate VARCHAR, market_income_per_capita VARCHAR) | SELECT COUNT(unemployment_rate) FROM table_22815568_7 WHERE market_income_per_capita = "$16,981" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
20896,
3651,
834,
940,
41,
202,
29056,
834,
2206,
584,
4280,
28027,
6,
512,
834,
15759,
834,
883,
834,
4010,
155,
9,
584,
4280,
28027,
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,
2847,
17161,
599,
202,
29056,
834,
2206,
61,
21680,
953,
834,
357,
2577,
20896,
3651,
834,
940,
549,
17444,
427,
512,
834,
15759,
834,
883,
834,
4010,
155,
9,
3274,
96,
3229,
2938,
6,
3916,
536,
121,
1,
-100,
-100,
... |
Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed? | CREATE TABLE table_71894 (
"Episode" text,
"First aired" text,
"Entrepreneur(s)" text,
"Company or product name" text,
"Money requested (\u00a3)" text,
"Investing Dragon(s)" text
) | SELECT "Investing Dragon(s)" FROM table_71894 WHERE "Episode" = 'episode 9' AND "Entrepreneur(s)" = 'ashley sayed' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
3914,
591,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
25171,
3,
2378,
26,
121,
1499,
6,
96,
16924,
60,
2026,
29,
1238,
599,
7,
61,
121,
1499,
6,
96,
5890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13898,
53,
10282,
599,
7,
61,
121,
21680,
953,
834,
4450,
3914,
591,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
121,
3274,
3,
31,
15,
102,
159,
32,
221,
668,
31,
3430,
96,
16924,
60,
2026,
29,
1238,
599,
... |
For which tournaments was the score 135 (-7)? | CREATE TABLE table_11622829_1 (tournament VARCHAR, score VARCHAR) | SELECT tournament FROM table_11622829_1 WHERE score = "135 (-7)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
357,
2577,
3166,
834,
536,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
84,
5892,
7,
47,
8,
2604,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
20159,
357,
2577,
3166,
834,
536,
549,
17444,
427,
2604,
3274,
96,
536,
2469,
41,
18,
12703,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the smallest apps in Honduras with less than 2 goals for Club Deportivo Victoria in a division over 1? | CREATE TABLE table_name_79 (apps INTEGER, division VARCHAR, team VARCHAR, country VARCHAR, goals VARCHAR) | SELECT MIN(apps) FROM table_name_79 WHERE country = "honduras" AND goals < 2 AND team = "club deportivo victoria" AND division > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
3096,
7,
3,
21342,
17966,
6,
4889,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
3096,
7,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
684,
3274,
96,
107,
106,
26,
2414,
7,
121,
3430,
1766,
3,
2,
204,
3430,
372,
3274,
96,
13442,
20,
1493,
23,
1621,
3,
7287,
3600,
9,
... |
who did lukas podolski 's team face after thailand in december 21 , 2004 ? | CREATE TABLE table_203_138 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) | SELECT "opponent" FROM table_203_138 WHERE id = (SELECT id FROM table_203_138 WHERE "date" = '21 december 2004' AND "opponent" = 'thailand' ORDER BY id DESC LIMIT 1) + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
22744,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
32,
102,
9977,
121,
21680,
953,
834,
23330,
834,
22744,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
22744,
549,
17444,
427,
96,
5522,
121,
3274,
3,
31,
2658,
20,... |
what is the location attendance when the score is w 86 77 (ot)? | CREATE TABLE table_name_42 (
location_attendance VARCHAR,
score VARCHAR
) | SELECT location_attendance FROM table_name_42 WHERE score = "w 86–77 (ot)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1128,
11364,
116,
8,
2604,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
2604,
3274,
96,
210,
3,
3840,
104,
4013,
41,
32,
17,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the main contestant eliminated with a score of 1 + 7 + 5 = 13? | CREATE TABLE table_name_11 (
main_contestant VARCHAR,
status VARCHAR,
scores_by_each_individual_judge VARCHAR
) | SELECT main_contestant FROM table_name_11 WHERE status = "eliminated" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
711,
834,
1018,
4377,
288,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
7586,
834,
969,
834,
15,
1836,
834,
17027,
138,
834,
354,
13164,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
711,
834,
1018,
4377,
288,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
2637,
3274,
96,
15,
4941,
77,
920,
121,
3430,
7586,
834,
969,
834,
15,
1836,
834,
17027,
138,
834,
354,
13164,
3274,
209,
1768,
489,
1768... |
What is the Song by Artist Robert Cogoi? | CREATE TABLE table_name_69 (
song VARCHAR,
artist VARCHAR
) | SELECT song FROM table_name_69 WHERE artist = "robert cogoi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
2324,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11263,
57,
9152,
2715,
638,
839,
23,
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,
2324,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
2377,
3274,
96,
5840,
49,
17,
576,
839,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When 5 is the game who has the highest amount of points? | CREATE TABLE table_73462 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) | SELECT "High points" FROM table_73462 WHERE "Game" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
4448,
357,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
121,
21680,
953,
834,
4552,
4448,
357,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the event of the match with a round larger than 2 and ended with a method of ko (kick)? | CREATE TABLE table_71629 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Event" FROM table_71629 WHERE "Round" > '2' AND "Method" = 'ko (kick)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2938,
3166,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
2169,
121,
21680,
953,
834,
940,
2938,
3166,
549,
17444,
427,
96,
448,
32,
1106,
121,
2490,
3,
31,
357,
31,
3430,
96,
23351,
107,
32,
26,
121,
3274,
3,
31,
157,
32,
41,
157,
3142,
61,
31,
1,
-100,
-10... |
What are the notes of the patience theme? | CREATE TABLE table_62227 (
"Battle No." real,
"Broadcast Date" text,
"Name of Battle" text,
"Theme" text,
"Celebrities Taking Part" text,
"Winner" text,
"Runner-up" text,
"Notes" text
) | SELECT "Notes" FROM table_62227 WHERE "Theme" = 'patience' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
357,
2555,
41,
96,
279,
9,
8692,
465,
535,
490,
6,
96,
279,
8635,
5254,
7678,
121,
1499,
6,
96,
23954,
13,
10141,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10358,
15,
7,
121,
21680,
953,
834,
4056,
357,
2555,
549,
17444,
427,
96,
634,
526,
121,
3274,
3,
31,
7768,
1433,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the running of marlene sanchez? | CREATE TABLE table_17647 (
"#" real,
"Athlete" text,
"Shooting" text,
"Fencing" text,
"Swimming" text,
"Riding" text,
"Running" text,
"Total" real
) | SELECT "Running" FROM table_17647 WHERE "Athlete" = 'Marlene Sanchez' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26782,
4177,
41,
96,
4663,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
10499,
32,
32,
1222,
121,
1499,
6,
96,
371,
15,
4733,
121,
1499,
6,
96,
134,
210,
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,
96,
17137,
9416,
121,
21680,
953,
834,
26782,
4177,
549,
17444,
427,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
7286,
14205,
28736,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the percentage of the trance- n himalaya zone that corresponds with the high hill zone is 25%? | CREATE TABLE table_10638523_1 (
trance__n_himalaya_zone VARCHAR,
high_hill_zone VARCHAR
) | SELECT trance__n_himalaya_zone FROM table_10638523_1 WHERE high_hill_zone = "25%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3891,
4433,
2773,
834,
536,
41,
3,
17,
5219,
834,
834,
29,
834,
10813,
22858,
834,
9431,
584,
4280,
28027,
6,
306,
834,
6321,
834,
9431,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5219,
834,
834,
29,
834,
10813,
22858,
834,
9431,
21680,
953,
834,
1714,
3891,
4433,
2773,
834,
536,
549,
17444,
427,
306,
834,
6321,
834,
9431,
3274,
96,
357,
2712,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
How many players played over 125 games and were named david gonzalvez? | CREATE TABLE table_32541 (
"Rank" real,
"Player" text,
"Years" text,
"Games" real,
"PPG Avg." real,
"Total Points" real
) | SELECT COUNT("Rank") FROM table_32541 WHERE "Games" > '125' AND "Player" = 'david gonzalvez' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
1828,
4853,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
345,
7861,
71,
208,
122,
535,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
8512,
21680,
953,
834,
519,
1828,
4853,
549,
17444,
427,
96,
23055,
7,
121,
2490,
3,
31,
10124,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
26,
9,
6961,
3,
5307,
172,
138,
6071,
31,
... |
When j.r. smith (26) has the highest amount of points what is the score? | CREATE TABLE table_25869 (
"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_25869 WHERE "High points" = 'J.R. Smith (26)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3449,
3951,
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,
134,
9022,
121,
21680,
953,
834,
357,
3449,
3951,
549,
17444,
427,
96,
21417,
979,
121,
3274,
3,
31,
683,
5,
448,
5,
3931,
4743,
10938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Date, when Runner(s)-Up is Jonathan Kaye? | CREATE TABLE table_name_18 (
date VARCHAR,
runner_s__up VARCHAR
) | SELECT date FROM table_name_18 WHERE runner_s__up = "jonathan kaye" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
833,
584,
4280,
28027,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
3,
23572,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
15429,
9,
6736,
3,
18075,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the D 45 O with D 44 O majority → | CREATE TABLE table_name_5 (d_45_o VARCHAR, d_44_o VARCHAR) | SELECT d_45_o FROM table_name_5 WHERE d_44_o = "majority →" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
26,
834,
2128,
834,
32,
584,
4280,
28027,
6,
3,
26,
834,
3628,
834,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
309,
3479,
411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
26,
834,
2128,
834,
32,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
3,
26,
834,
3628,
834,
32,
3274,
96,
16547,
127,
485,
3,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Average Attendance during the Year in which there were 9 Home Games? | CREATE TABLE table_7175 (
"Year" real,
"League" text,
"Average Attendance" real,
"# of Home Games" real,
"League Rank" text,
"Canada - USA Rank" text
) | SELECT MAX("Average Attendance") FROM table_7175 WHERE "# of Home Games" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
3072,
41,
96,
476,
2741,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
188,
624,
545,
22497,
663,
121,
490,
6,
96,
4663,
13,
1210,
5880,
121,
490,
6,
96,
2796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
188,
624,
545,
22497,
663,
8512,
21680,
953,
834,
4450,
3072,
549,
17444,
427,
96,
4663,
13,
1210,
5880,
121,
3274,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose age is less than 74 and procedure icd9 code is 14? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "74" AND procedures.icd9_code = "14" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which event has 12-1 as a record? | CREATE TABLE table_name_43 (event VARCHAR, record VARCHAR) | SELECT event FROM table_name_43 WHERE record = "12-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
15,
2169,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
605,
65,
586,
2292,
38,
3,
9,
1368,
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,
605,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1368,
3274,
96,
2122,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title of episode 2? | CREATE TABLE table_2430014_8 (title VARCHAR, episode_no VARCHAR) | SELECT title FROM table_2430014_8 WHERE episode_no = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
5426,
2534,
834,
927,
41,
21869,
584,
4280,
28027,
6,
5640,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2233,
13,
5640,
204,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2266,
5426,
2534,
834,
927,
549,
17444,
427,
5640,
834,
29,
32,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a great than 2 Pts? | CREATE TABLE table_name_12 (entrant VARCHAR, pts VARCHAR, year VARCHAR, engine VARCHAR) | SELECT entrant FROM table_name_12 WHERE year < 1987 AND engine = "bmw straight-4 (t/c)" AND pts > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
295,
3569,
584,
4280,
28027,
6,
3,
102,
17,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1948,
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,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
295,
3569,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
215,
3,
2,
12701,
3430,
1948,
3274,
96,
29471,
2541,
4278,
41,
17,
87,
75,
61,
121,
3430,
3,
102,
17,
7,
2490,
204,
1,
-100,
-100,
-100,
-100,
-10... |
what is marital status and age of subject name stephanie suchan? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT demographic.marital_status, demographic.age FROM demographic WHERE demographic.name = "Stephanie Suchan" | [
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,
1635,
9538,
834,
8547,
302,
6,
14798,
5,
545,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
14337,
8237,
23,
15,
3900,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When 12 is the rank who is the most recent cyclist? | CREATE TABLE table_18676973_3 (most_recent_cyclist VARCHAR, rank VARCHAR) | SELECT most_recent_cyclist FROM table_18676973_3 WHERE rank = "12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
3708,
3951,
4552,
834,
519,
41,
5463,
834,
60,
3728,
834,
7132,
343,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
586,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
167,
834,
60,
3728,
834,
7132,
343,
21680,
953,
834,
2606,
3708,
3951,
4552,
834,
519,
549,
17444,
427,
11003,
3274,
96,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the qual 1 for rusport and had a best of 58.665? | CREATE TABLE table_32366 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
) | SELECT "Qual 1" FROM table_32366 WHERE "Team" = 'rusport' AND "Best" = '58.665' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
519,
3539,
41,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
5991,
138,
209,
121,
1499,
6,
96,
5991,
138,
204,
121,
1499,
6,
96,
17278,
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,
1... | [
3,
23143,
14196,
96,
5991,
138,
209,
121,
21680,
953,
834,
2668,
519,
3539,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
4502,
1493,
31,
3430,
96,
17278,
121,
3274,
3,
31,
3449,
5,
3539,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What average gold has China (chn) as the nation with a bronze greater than 1? | CREATE TABLE table_name_63 (gold INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT AVG(gold) FROM table_name_63 WHERE nation = "china (chn)" AND bronze > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
14910,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1348,
2045,
65,
1473,
41,
524,
29,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14910,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
2982,
3274,
96,
5675,
9,
41,
524,
29,
61,
121,
3430,
13467,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
On which date is high assists Dupree (6)? | CREATE TABLE table_17118657_10 (
date VARCHAR,
high_assists VARCHAR
) | SELECT date FROM table_17118657_10 WHERE high_assists = "Dupree (6)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2596,
3840,
3436,
834,
1714,
41,
833,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
84,
833,
19,
306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2517,
2596,
3840,
3436,
834,
1714,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
12998,
2026,
15,
3,
18669,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many cases of multivitamins prescriptions have occurred until 2 years ago? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeou... | SELECT COUNT(*) FROM medication WHERE medication.drugname = 'multivitamins' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-2 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
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,
2847,
17161,
599,
1935,
61,
21680,
7757,
549,
17444,
427,
7757,
5,
26,
13534,
4350,
3274,
3,
31,
23829,
12411,
1109,
7,
31,
3430,
309,
6048,
382,
15382,
599,
526,
17530,
5,
26,
13534,
10208,
715,
61,
3,
2,
2423,
3... |
What is the average last cf of the st. louis blues, who has less than 4 cf appearances and less than 1 cf wins? | CREATE TABLE table_60294 (
"Team" text,
"CF appearances" real,
"CF wins" real,
"Cup wins" real,
"Last CF" real
) | SELECT AVG("Last CF") FROM table_60294 WHERE "CF appearances" < '4' AND "CF wins" < '1' AND "Team" = 'st. louis blues' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
357,
4240,
41,
96,
18699,
121,
1499,
6,
96,
7380,
3179,
7,
121,
490,
6,
96,
7380,
9204,
121,
490,
6,
96,
254,
413,
9204,
121,
490,
6,
96,
3612,
7,
17,
3,
7380,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3612,
7,
17,
3,
7380,
8512,
21680,
953,
834,
3328,
357,
4240,
549,
17444,
427,
96,
7380,
3179,
7,
121,
3,
2,
3,
31,
591,
31,
3430,
96,
7380,
9204,
121,
3,
2,
3,
31,
536,
31,
3430,
96,
18... |
Name the Player which has a To par of –6? | CREATE TABLE table_name_99 (player VARCHAR, to_par VARCHAR) | SELECT player FROM table_name_99 WHERE to_par = "–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
20846,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
12387,
84,
65,
3,
9,
304,
260,
13,
3,
104,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
12,
834,
1893,
3274,
96,
104,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest rank a country with less than 3 gold, more than 2 silver, and less than 5 total medals has? | CREATE TABLE table_name_98 (rank INTEGER, total VARCHAR, gold VARCHAR, silver VARCHAR) | SELECT MAX(rank) FROM table_name_98 WHERE gold < 3 AND silver > 2 AND total < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
6254,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
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,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
2045,
3,
2,
220,
3430,
4294,
2490,
204,
3430,
792,
3,
2,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What timeslot received 0.673 viewers? | CREATE TABLE table_26019 (
"#" real,
"Title" text,
"Original airdate" text,
"Timeslot" text,
"Viewers (millions)" text,
"Nightly rank" real,
"Weekly rank" real
) | SELECT "Timeslot" FROM table_26019 WHERE "Viewers (millions)" = '0.673' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
2294,
41,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
667,
3380,
10270,
799,
5522,
121,
1499,
6,
96,
13368,
7,
3171,
121,
1499,
6,
96,
15270,
277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
3171,
121,
21680,
953,
834,
18365,
2294,
549,
17444,
427,
96,
15270,
277,
41,
17030,
7,
61,
121,
3274,
3,
31,
22787,
4552,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is No. 5, when No. 9 is Michael, and when Region (Year) is New Hampshire (2010)? | CREATE TABLE table_name_16 (no_5 VARCHAR, no_9 VARCHAR, region__year_ VARCHAR) | SELECT no_5 FROM table_name_16 WHERE no_9 = "michael" AND region__year_ = "new hampshire (2010)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
29,
32,
834,
755,
584,
4280,
28027,
6,
150,
834,
1298,
584,
4280,
28027,
6,
1719,
834,
834,
1201,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
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,
150,
834,
755,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
150,
834,
1298,
3274,
96,
51,
362,
9,
15,
40,
121,
3430,
1719,
834,
834,
1201,
834,
3274,
96,
5534,
3,
1483,
102,
5718,
26118,
121,
1,
-100,
-100,
... |
What is the lowest number of caps of the fullback player born on 13 April 1983? | CREATE TABLE table_name_56 (caps INTEGER, position VARCHAR, date_of_birth__age_ VARCHAR) | SELECT MIN(caps) FROM table_name_56 WHERE position = "fullback" AND date_of_birth__age_ = "13 april 1983" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
4010,
7,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
833,
834,
858,
834,
20663,
834,
834,
545,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
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,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
4010,
7,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
1102,
3274,
96,
1329,
40,
1549,
121,
3430,
833,
834,
858,
834,
20663,
834,
834,
545,
834,
3274,
96,
2368,
3,
9,
2246,
40,
15041,
121,
... |
Name the attendance with angels opponent for july 9 | CREATE TABLE table_name_32 (
attendance VARCHAR,
opponent VARCHAR,
date VARCHAR
) | SELECT attendance FROM table_name_32 WHERE opponent = "angels" AND date = "july 9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
11364,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
11364,
28,
11831,
7,
15264,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11364,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
15264,
3274,
96,
1468,
3573,
121,
3430,
833,
3274,
96,
2047,
120,
668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many races did the German racer that won less than 10 races ride? | CREATE TABLE table_name_94 (
races_ridden VARCHAR,
nationality VARCHAR,
races_won VARCHAR
) | SELECT COUNT(races_ridden) FROM table_name_94 WHERE nationality = "german" AND races_won < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
10879,
834,
28629,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
10879,
834,
210,
106,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
12614,
7,
834,
28629,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1157,
485,
3274,
96,
1304,
348,
121,
3430,
10879,
834,
210,
106,
3,
2,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Pinyin for the simplified 虞城县? | CREATE TABLE table_2135222_2 (pinyin VARCHAR, simplified VARCHAR) | SELECT pinyin FROM table_2135222_2 WHERE simplified = "虞城县" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2469,
26144,
834,
357,
41,
3180,
63,
77,
584,
4280,
28027,
6,
24687,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8050,
63,
77,
21,
8,
24687,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4522,
63,
77,
21680,
953,
834,
2658,
2469,
26144,
834,
357,
549,
17444,
427,
24687,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the score of the team that plays in lake oval? | CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_85 WHERE venue = "lake oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
372,
24,
4805,
16,
6957,
179... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
5669,
3274,
96,
16948,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who played defensive when the rookie Craig Point was playing during week 6? | CREATE TABLE table_name_97 (defensive VARCHAR, rookie VARCHAR, week VARCHAR) | SELECT defensive FROM table_name_97 WHERE rookie = "craig point" AND week = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
221,
23039,
15,
584,
4280,
28027,
6,
24188,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
1944,
11976,
116,
8,
241... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11976,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
24188,
3274,
96,
2935,
23,
122,
500,
121,
3430,
471,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.