NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many architects are female? | CREATE TABLE mill (
architect_id number,
id number,
location text,
name text,
type text,
built_year number,
notes text
)
CREATE TABLE architect (
id text,
name text,
nationality text,
gender text
)
CREATE TABLE bridge (
architect_id number,
id number,
name text,... | SELECT COUNT(*) FROM architect WHERE gender = 'female' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3293,
41,
13188,
834,
23,
26,
381,
6,
3,
23,
26,
381,
6,
1128,
1499,
6,
564,
1499,
6,
686,
1499,
6,
1192,
834,
1201,
381,
6,
3358,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
13188,
549,
17444,
427,
7285,
3274,
3,
31,
89,
15,
13513,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which BR number has an LMS number over 14768? | CREATE TABLE table_name_5 (br_number VARCHAR, lms_number INTEGER) | SELECT br_number FROM table_name_5 WHERE lms_number > 14768 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
115,
52,
834,
5525,
1152,
584,
4280,
28027,
6,
3,
40,
51,
7,
834,
5525,
1152,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
6934,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6397,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
3,
40,
51,
7,
834,
5525,
1152,
2490,
3,
24719,
3651,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Can you tell me the Miss Pilipinas that has the Second runner-up of maria penson? | CREATE TABLE table_name_55 (miss_maja_pilipinas VARCHAR, second_runner_up VARCHAR) | SELECT miss_maja_pilipinas FROM table_name_55 WHERE second_runner_up = "maria penson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
11502,
834,
16547,
9,
834,
102,
173,
23,
3180,
9,
7,
584,
4280,
28027,
6,
511,
834,
10806,
834,
413,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
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,
3041,
834,
16547,
9,
834,
102,
173,
23,
3180,
9,
7,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
511,
834,
10806,
834,
413,
3274,
96,
17289,
9,
3,
3801,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which engine did Korten Motorsport use? | CREATE TABLE table_51572 (
"Season" text,
"Champion" text,
"Team" text,
"Chassis" text,
"Engine" text
) | SELECT "Engine" FROM table_51572 WHERE "Team" = 'korten motorsport' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
3436,
357,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
31477,
121,
21680,
953,
834,
5553,
3436,
357,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
5543,
324,
2340,
6661,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the opponent on 31 jul? | CREATE TABLE table_13296 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Scorers" text
) | SELECT "Opponent" FROM table_13296 WHERE "Date" = '31 jul' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23757,
4314,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
5715,
277,
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,
96,
667,
102,
9977,
121,
21680,
953,
834,
23757,
4314,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
3341,
3,
354,
83,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the sport for men's light flyweight with medal of gold | CREATE TABLE table_37796 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
) | SELECT "Sport" FROM table_37796 WHERE "Medal" = 'gold' AND "Event" = 'men''s light flyweight' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4013,
4314,
41,
96,
20123,
138,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
23055,
7,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
427,
2169,
121,
1499,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
17682,
121,
21680,
953,
834,
519,
4013,
4314,
549,
17444,
427,
96,
20123,
138,
121,
3274,
3,
31,
14910,
31,
3430,
96,
427,
2169,
121,
3274,
3,
31,
904,
31,
31,
7,
659,
3971,
9378,
31,
1,
-100,
-100,
-100,
-1... |
What is the record for the away leg in round 1 and aggregate 2-0? | CREATE TABLE table_24797 (
"Season" text,
"Round" real,
"Opponents" text,
"Home Leg" text,
"Away Leg" text,
"Aggregate" text
) | SELECT "Away Leg" FROM table_24797 WHERE "Round" = '1' AND "Aggregate" = '2-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4177,
4327,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
19040,
18978,
121,
1499,
6,
96,
188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
18978,
121,
21680,
953,
834,
357,
4177,
4327,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
536,
31,
3430,
96,
188,
122,
18301,
342,
121,
3274,
3,
31,
19423,
31,
1,
-100,
-100,
-100,
-100,
... |
What are all sail numbers for the yacht Yendys? | CREATE TABLE table_72589 (
"Position" real,
"Sail number" text,
"Yacht" text,
"State/country" text,
"Yacht type" text,
"LOA (Metres)" text,
"Skipper" text,
"Corrected time d:hh:mm:ss" text
) | SELECT "Sail number" FROM table_72589 WHERE "Yacht" = 'Yendys' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1828,
3914,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
134,
9,
173,
381,
121,
1499,
6,
96,
476,
9,
3997,
121,
1499,
6,
96,
134,
4748,
87,
17529,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9,
173,
381,
121,
21680,
953,
834,
940,
1828,
3914,
549,
17444,
427,
96,
476,
9,
3997,
121,
3274,
3,
31,
476,
989,
63,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Give me a pie to show the total number from different directed by. | CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE cine... | SELECT Directed_by, COUNT(*) FROM film GROUP BY Directed_by | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
814,
41,
3417,
834,
4309,
16,
17,
6,
3,
22557,
834,
77,
834,
10833,
7,
16,
17,
6,
7720,
834,
77,
834,
9476,
16,
17,
6,
11029,
1499,
6,
7143,
15,
26,
834,
969,
1499,
6,
8465,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7143,
15,
26,
834,
969,
6,
2847,
17161,
599,
1935,
61,
21680,
814,
350,
4630,
6880,
272,
476,
7143,
15,
26,
834,
969,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Born-Died date for the Representative of Italy? | CREATE TABLE table_name_16 (born_died VARCHAR, country VARCHAR) | SELECT born_died FROM table_name_16 WHERE country = "italy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
7473,
834,
2498,
26,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12896,
18,
8639,
26,
833,
21,
8,
13517,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2170,
834,
2498,
26,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
684,
3274,
96,
9538,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
On October 24, who played at home when there was a decision of Ward? | CREATE TABLE table_name_95 (home VARCHAR, decision VARCHAR, date VARCHAR) | SELECT home FROM table_name_95 WHERE decision = "ward" AND date = "october 24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
5515,
584,
4280,
28027,
6,
1357,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
1797,
14320,
113,
1944,
44,
234,
116... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1357,
3274,
96,
2239,
121,
3430,
833,
3274,
96,
32,
75,
235,
1152,
997,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
whats patient 016-12011 last ward id in 2104? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
... | SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-12011') AND STRFTIME('%y', patient.unitadmittime) = '2104' ORDER BY patient.unitadmittime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
2239,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
... |
What is the rank of player Jason Dunstall? | CREATE TABLE table_name_55 (rank VARCHAR, player VARCHAR) | SELECT rank FROM table_name_55 WHERE player = "jason dunstall" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
6254,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
1959,
9637,
6393,
9176,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1959,
3274,
96,
1191,
739,
146,
29,
9176,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many goals have a Lokomotiv Plovdiv club and goals against larger than 58? | CREATE TABLE table_name_80 (
goals_for VARCHAR,
club VARCHAR,
goals_against VARCHAR
) | SELECT COUNT(goals_for) FROM table_name_80 WHERE club = "lokomotiv plovdiv" AND goals_against > 58 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
1766,
834,
1161,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
839,
5405,
834,
1161,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1886,
3274,
96,
40,
12948,
17732,
3,
102,
5850,
8481,
121,
3430,
1766,
834,
9,
16720,
7,
17,
2490,
3,
3449,
1,
-100,
-... |
What is the maximum money list rank for Matt Hansen? | CREATE TABLE table_73693 (
"Player" text,
"Starts" real,
"Cuts made" real,
"Best finish" text,
"Money list rank" real,
"Earnings ($)" real
) | SELECT MAX("Money list rank") FROM table_73693 WHERE "Player" = 'Matt Hansen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
3951,
519,
41,
96,
15800,
49,
121,
1499,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
15784,
17,
7,
263,
121,
490,
6,
96,
17278,
1992,
121,
1499,
6,
96,
9168,
15,
63,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
9168,
15,
63,
570,
11003,
8512,
21680,
953,
834,
4552,
3951,
519,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
329,
144,
17,
10001,
35,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
If the gun used is the qf 12 pdr 12 cwt, what is the shell weight? | CREATE TABLE table_16439764_1 (shell__lb_ VARCHAR, gun VARCHAR) | SELECT shell__lb_ FROM table_16439764_1 WHERE gun = "QF 12 pdr 12 cwt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4906,
4327,
4389,
834,
536,
41,
17346,
834,
834,
40,
115,
834,
584,
4280,
28027,
6,
4740,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
4740,
261,
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,
1... | [
3,
23143,
14196,
7300,
834,
834,
40,
115,
834,
21680,
953,
834,
2938,
4906,
4327,
4389,
834,
536,
549,
17444,
427,
4740,
3274,
96,
2247,
371,
586,
3,
102,
26,
52,
586,
3,
75,
210,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Display a bar chart for which catalog contents has price above 700 dollars? Show their catalog entry names and capacities, I want to show in desc by the y axis. | CREATE TABLE Attribute_Definitions (
attribute_id INTEGER,
attribute_name VARCHAR(30),
attribute_data_type VARCHAR(10)
)
CREATE TABLE Catalog_Contents (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
parent_entry_id INTEGER,
previous_entry_id INTEGER,
next_entry_id INTEGER,
... | SELECT catalog_entry_name, capacity FROM Catalog_Contents WHERE price_in_dollars > 700 ORDER BY capacity DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
486,
5135,
17,
15,
834,
2962,
5582,
10872,
41,
15816,
834,
23,
26,
3,
21342,
17966,
6,
15816,
834,
4350,
584,
4280,
28027,
599,
1458,
201,
15816,
834,
6757,
834,
6137,
584,
4280,
28027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10173,
834,
295,
651,
834,
4350,
6,
2614,
21680,
22424,
834,
4302,
4669,
7,
549,
17444,
427,
594,
834,
77,
834,
26748,
7,
2490,
12283,
4674,
11300,
272,
476,
2614,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the studio for catalog number 81063 | CREATE TABLE table_27303975_2 (
studio VARCHAR,
catalog_number VARCHAR
) | SELECT studio FROM table_27303975_2 WHERE catalog_number = "81063" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
1458,
3288,
3072,
834,
357,
41,
3100,
584,
4280,
28027,
6,
10173,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3100,
21,
10173,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3100,
21680,
953,
834,
2555,
1458,
3288,
3072,
834,
357,
549,
17444,
427,
10173,
834,
5525,
1152,
3274,
96,
927,
1714,
3891,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date for the game 35? | CREATE TABLE table_27756314_8 (date VARCHAR, game VARCHAR) | SELECT date FROM table_27756314_8 WHERE game = 35 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3072,
3891,
2534,
834,
927,
41,
5522,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
21,
8,
467,
3097,
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,
833,
21680,
953,
834,
2555,
3072,
3891,
2534,
834,
927,
549,
17444,
427,
467,
3274,
3097,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many enrollments have a location of Guelph and a 1-year ranking of 727 larger than 717? | CREATE TABLE table_61296 (
"Name" text,
"Location" text,
"Enrollment" real,
"1-year ranking of 727" real,
"5-year ranking of 693" real
) | SELECT COUNT("Enrollment") FROM table_61296 WHERE "Location" = 'guelph' AND "1-year ranking of 727" > '717' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
357,
4314,
41,
96,
23954,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
536,
18,
1201,
11592,
13,
489,
2555,
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,
8532,
4046,
297,
8512,
21680,
953,
834,
4241,
357,
4314,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
5398,
40,
102,
107,
31,
3430,
96,
536,
18,
1201,
11592,
13,
489,
2555,
121,
... |
How many clubs are there in the Korea Republic? | CREATE TABLE table_19412902_2 (
clubs VARCHAR,
member_association VARCHAR
) | SELECT clubs FROM table_19412902_2 WHERE member_association = "Korea Republic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4853,
23838,
357,
834,
357,
41,
8122,
584,
4280,
28027,
6,
1144,
834,
13443,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8122,
33,
132,
16,
8,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8122,
21680,
953,
834,
2294,
4853,
23838,
357,
834,
357,
549,
17444,
427,
1144,
834,
13443,
3274,
96,
439,
32,
864,
5750,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What grid has an average time of +22.505 and laps larger than 23? | CREATE TABLE table_5279 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT AVG("Grid") FROM table_5279 WHERE "Time" = '+22.505' AND "Laps" > '23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
4440,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
279,
5208,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
121,
490,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
13313,
26,
8512,
21680,
953,
834,
5373,
4440,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
1220,
357,
15967,
3076,
31,
3430,
96,
3612,
102,
7,
121,
2490,
3,
31,
2773,
31,
1,
-100,
-100,
-100,... |
What is the names of movies whose created year is after all movies directed by Steven Spielberg? | CREATE TABLE Movie (title VARCHAR, YEAR INTEGER, director VARCHAR) | SELECT title FROM Movie WHERE YEAR > (SELECT MAX(YEAR) FROM Movie WHERE director = "Steven Spielberg") | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
21869,
584,
4280,
28027,
6,
30431,
3,
21342,
17966,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3056,
13,
4876,
3,
2544,
990,
215,
19,
227,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
10743,
549,
17444,
427,
30431,
2490,
41,
23143,
14196,
4800,
4,
599,
476,
19356,
61,
21680,
10743,
549,
17444,
427,
2090,
3274,
96,
14337,
1926,
3012,
2235,
8512,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Plot openning year by how many openning year as a trend line, and show x-axis from low to high order. | CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE schedule... | SELECT Openning_year, COUNT(Openning_year) FROM cinema ORDER BY Openning_year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10276,
41,
17544,
834,
4309,
16,
17,
6,
5570,
1499,
6,
2384,
29,
53,
834,
1201,
16,
17,
6,
4000,
9,
6726,
16,
17,
6,
10450,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2384,
29,
53,
834,
1201,
6,
2847,
17161,
599,
22696,
29,
53,
834,
1201,
61,
21680,
10276,
4674,
11300,
272,
476,
2384,
29,
53,
834,
1201,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many years have runner-up as the outcome, and indian wells as the championship? | CREATE TABLE table_61029 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT SUM("Year") FROM table_61029 WHERE "Outcome" = 'runner-up' AND "Championship" = 'indian wells' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27097,
3166,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
476,
2741,
8512,
21680,
953,
834,
27097,
3166,
549,
17444,
427,
96,
15767,
287,
15,
121,
3274,
3,
31,
10806,
18,
413,
31,
3430,
96,
254,
1483,
12364,
2009,
121,
3274,
3,
31,
77,
8603,
168,
7,
... |
Who won on 2007-04-14 | CREATE TABLE table_11819 (
"Date" text,
"Location" text,
"Lineup" text,
"Assist/pass" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_11819 WHERE "Date" = '2007-04-14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
2294,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
21022,
413,
121,
1499,
6,
96,
188,
7,
7,
343,
87,
3968,
121,
1499,
6,
96,
134,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20056,
2294,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
20615,
18083,
11590,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the position played by the man born on 1976-09-20? | CREATE TABLE table_name_52 (pos VARCHAR, date_of_birth VARCHAR) | SELECT pos FROM table_name_52 WHERE date_of_birth = "1976-09-20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
2748,
584,
4280,
28027,
6,
833,
834,
858,
834,
20663,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1102,
1944,
57,
8,
388,
2170,
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,
3,
2748,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
833,
834,
858,
834,
20663,
3274,
96,
27181,
28625,
1298,
7988,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
A bar chart for what are the number of the dates when customers with ids between 10 and 20 became customers?, list the number of date became customer in descending order. | CREATE TABLE Customer_Contact_Channels (
customer_id INTEGER,
channel_code VARCHAR(15),
active_from_date DATETIME,
active_to_date DATETIME,
contact_number VARCHAR(50)
)
CREATE TABLE Addresses (
address_id INTEGER,
address_content VARCHAR(80),
city VARCHAR(50),
zip_postcode VARCHAR(2... | SELECT date_became_customer, COUNT(date_became_customer) FROM Customers WHERE customer_id BETWEEN 10 AND 20 ORDER BY COUNT(date_became_customer) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7327,
834,
31691,
834,
3541,
4515,
40,
7,
41,
884,
834,
23,
26,
3,
21342,
17966,
6,
4245,
834,
4978,
584,
4280,
28027,
599,
1808,
201,
1676,
834,
7152,
834,
5522,
309,
6048,
382,
153... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
346,
6527,
15,
834,
25697,
49,
6,
2847,
17161,
599,
5522,
834,
346,
6527,
15,
834,
25697,
49,
61,
21680,
16423,
549,
17444,
427,
884,
834,
23,
26,
272,
7969,
518,
23394,
335,
3430,
460,
4674,
11300,
272,
... |
I want to see trend the number of season over season by Away_team, order in descending by the X. | CREATE TABLE injury_accident (
game_id int,
id int,
Player text,
Injury text,
Number_of_matches text,
Source text
)
CREATE TABLE game (
stadium_id int,
id int,
Season int,
Date text,
Home_team text,
Away_team text,
Score text,
Competition text
)
CREATE TABLE sta... | SELECT Season, COUNT(Season) FROM game GROUP BY Away_team ORDER BY Season DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2871,
834,
6004,
4215,
41,
467,
834,
23,
26,
16,
17,
6,
3,
23,
26,
16,
17,
6,
12387,
1499,
6,
28905,
1499,
6,
7720,
834,
858,
834,
19515,
15,
7,
1499,
6,
9149,
1499,
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,
7960,
6,
2847,
17161,
599,
134,
15,
9,
739,
61,
21680,
467,
350,
4630,
6880,
272,
476,
71,
1343,
834,
11650,
4674,
11300,
272,
476,
7960,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Position has a Player of tyronn lue, and a Years in Orlando of 2003 2004? | CREATE TABLE table_42994 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) | SELECT "Position" FROM table_42994 WHERE "Player" = 'tyronn lue' AND "Years in Orlando" = '2003–2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3166,
4240,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
16,
14374,
121,
1499,
6,
96,
29364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
591,
3166,
4240,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
17,
63,
52,
106,
29,
3,
40,
76,
15,
31,
3430,
96,
476,
2741,
7,
16,
14374,
121,
3274,
3,
31,
239... |
What league does Delaware Military Academy belong to | CREATE TABLE table_15475116_1 (
league VARCHAR,
school VARCHAR
) | SELECT league FROM table_15475116_1 WHERE school = "Delaware Military Academy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
3072,
20159,
834,
536,
41,
5533,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5533,
405,
19722,
17190,
4702,
13000,
12,
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,
5533,
21680,
953,
834,
27308,
3072,
20159,
834,
536,
549,
17444,
427,
496,
3274,
96,
2962,
4207,
355,
17190,
4702,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the proportion of carriers of phones? | CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Rankin... | SELECT Carrier, COUNT(Carrier) FROM phone GROUP BY Carrier | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
834,
8809,
41,
3611,
834,
4309,
16,
17,
6,
8924,
834,
4309,
1499,
6,
1174,
51,
834,
858,
834,
7149,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1184,
6711,
6,
2847,
17161,
599,
6936,
6711,
61,
21680,
951,
350,
4630,
6880,
272,
476,
1184,
6711,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the transit connections from Pioneer Square U? | CREATE TABLE table_22771048_2 (
transit_connections VARCHAR,
station VARCHAR
) | SELECT transit_connections FROM table_22771048_2 WHERE station = "Pioneer Square U" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4013,
1714,
3707,
834,
357,
41,
11811,
834,
28102,
7,
584,
4280,
28027,
6,
2478,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
11811,
5992,
45,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11811,
834,
28102,
7,
21680,
953,
834,
2884,
4013,
1714,
3707,
834,
357,
549,
17444,
427,
2478,
3274,
96,
345,
23,
782,
49,
7120,
412,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Focal plane in ft (m) is 43ft (13.1m) is the first date lit. | CREATE TABLE table_27824 (
"Lighthouse" text,
"Location" text,
"Province/City" text,
"Date First Lit" text,
"Tower height in ft (m)" text,
"Focal plane in ft (m)" text,
"Current Status" text,
"Current Condition/ Description" text
) | SELECT "Date First Lit" FROM table_27824 WHERE "Focal plane in ft (m)" = '43ft (13.1m)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3940,
2266,
41,
96,
434,
2632,
1840,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
3174,
2494,
565,
87,
254,
485,
121,
1499,
6,
96,
308,
342,
1485,
15507,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1485,
15507,
121,
21680,
953,
834,
357,
3940,
2266,
549,
17444,
427,
96,
371,
32,
1489,
6112,
16,
3,
89,
17,
41,
51,
61,
121,
3274,
3,
31,
4906,
89,
17,
4077,
18495,
51,
61,
31,
1,
-100,
-100,
-1... |
Create a bar chart showing how many allergytype across allergytype, and show Y from low to high order. | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
... | SELECT AllergyType, COUNT(AllergyType) FROM Allergy_Type GROUP BY AllergyType ORDER BY COUNT(AllergyType) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
301,
23954,
584,
4280,
28027,
599,
2122,
201,
377,
4350,
584,
4280,
28027,
599,
2122,
201,
7526,
3,
21342,
17966,
6,
679,
226,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
49,
122,
63,
25160,
6,
2847,
17161,
599,
6838,
49,
122,
63,
25160,
61,
21680,
432,
49,
122,
63,
834,
25160,
350,
4630,
6880,
272,
476,
432,
49,
122,
63,
25160,
4674,
11300,
272,
476,
2847,
17161,
599,
6838,
4... |
What is the name of the circuit where the race xi Syracuse grand prix was held? | CREATE TABLE table_1140105_6 (
circuit VARCHAR,
race_name VARCHAR
) | SELECT circuit FROM table_1140105_6 WHERE race_name = "XI Syracuse Grand Prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2445,
12869,
834,
948,
41,
4558,
584,
4280,
28027,
6,
1964,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
4558,
213,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4558,
21680,
953,
834,
2596,
2445,
12869,
834,
948,
549,
17444,
427,
1964,
834,
4350,
3274,
96,
4,
196,
30482,
2698,
12942,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest revenue for the rank of 14? | CREATE TABLE table_name_95 (revenue__ INTEGER, rank VARCHAR) | SELECT MIN(revenue__) AS $m_ FROM table_name_95 WHERE rank = 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
60,
15098,
834,
834,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
3751,
21,
8,
11003,
13,
968,
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,
3,
17684,
599,
60,
15098,
834,
834,
61,
6157,
1514,
51,
834,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
11003,
3274,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find meter_200 and the average of ID , and group by attribute meter_200, and visualize them by a bar chart, display from low to high by the X-axis. | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_40... | SELECT meter_200, AVG(ID) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
1499,
6,
27813,
935,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4401,
834,
3632,
6,
71,
17217,
599,
4309,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
3,
4401,
834,
3632,
4674,
11300,
272,
476,
3,
4401,
834,
3632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the team for 5 september 2008 for date of vacancy for 30 august 2008 | CREATE TABLE table_18522916_5 (
team VARCHAR,
date_of_appointment VARCHAR,
date_of_vacancy VARCHAR
) | SELECT team FROM table_18522916_5 WHERE date_of_appointment = "5 September 2008" AND date_of_vacancy = "30 August 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
357,
3166,
2938,
834,
755,
41,
372,
584,
4280,
28027,
6,
833,
834,
858,
834,
9,
102,
2700,
297,
584,
4280,
28027,
6,
833,
834,
858,
834,
29685,
584,
4280,
28027,
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,
372,
21680,
953,
834,
21594,
357,
3166,
2938,
834,
755,
549,
17444,
427,
833,
834,
858,
834,
9,
102,
2700,
297,
3274,
96,
755,
1600,
2628,
121,
3430,
833,
834,
858,
834,
29685,
3274,
96,
1458,
1660,
2628,
121,
1,
... |
What are the least amount of points that have points for greater than 438, and points against greater than 943? | CREATE TABLE table_name_6 (
points INTEGER,
points_for VARCHAR,
points_against VARCHAR
) | SELECT MIN(points) FROM table_name_6 WHERE points_for > 438 AND points_against > 943 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
979,
3,
21342,
17966,
6,
979,
834,
1161,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
979,
834,
1161,
2490,
314,
3747,
3430,
979,
834,
9,
16720,
7,
17,
2490,
668,
4906,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When was the finale played when the show premiered on September 24, 2002? | CREATE TABLE table_name_62 (finale VARCHAR, premiere VARCHAR) | SELECT finale FROM table_name_62 WHERE premiere = "september 24, 2002" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
12406,
15,
584,
4280,
28027,
6,
13539,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
13604,
1944,
116,
8,
504,
13539,
26,
30,
1600,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13604,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
13539,
3274,
96,
7,
6707,
18247,
14320,
4407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What race did the team Mi-Jack Conquest racing win with a pole position of andreas wirth? | CREATE TABLE table_45445 (
"Round" real,
"Race Name" text,
"Pole position" text,
"Winning driver" text,
"Winning Team" text
) | SELECT "Race Name" FROM table_45445 WHERE "Winning Team" = 'mi-jack conquest racing' AND "Pole position" = 'andreas wirth' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
591,
2128,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
448,
3302,
5570,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
518,
10503,
2535,
121,
1499,
6,
96,
518,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
3302,
5570,
121,
21680,
953,
834,
2128,
591,
2128,
549,
17444,
427,
96,
518,
10503,
2271,
121,
3274,
3,
31,
51,
23,
18,
9325,
975,
10952,
8191,
31,
3430,
96,
8931,
15,
1102,
121,
3274,
3,
31,
232,
864,
... |
Draw a bar chart about the distribution of Date_of_Birth and Height , I want to rank y axis from high to low order. | CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate re... | SELECT Date_of_Birth, Height FROM people ORDER BY Height DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
679,
226,
1499,
6,
5570,
1499,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
6,
24231,
490,
6,
14230,
490,
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,
7678,
834,
858,
834,
279,
23,
52,
189,
6,
24231,
21680,
151,
4674,
11300,
272,
476,
24231,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose admission type is elective and lab test fluid is other body fluid? | 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 demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab.fluid = "Other Body Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was Yugoslavia's fate? | CREATE TABLE table_name_56 (
fate VARCHAR,
nationality VARCHAR
) | SELECT fate FROM table_name_56 WHERE nationality = "yugoslavia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
15126,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
6214,
839,
17457,
23,
9,
31,
7,
15126,
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,
15126,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
1157,
485,
3274,
96,
63,
76,
839,
17457,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What successful defenses has 126 days held and a Reigns of 3? | CREATE TABLE table_name_89 (
successful_defenses VARCHAR,
days_held VARCHAR,
reigns VARCHAR
) | SELECT successful_defenses FROM table_name_89 WHERE days_held = 126 AND reigns = "3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
1574,
834,
31749,
7,
584,
4280,
28027,
6,
477,
834,
14796,
584,
4280,
28027,
6,
17367,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
1574,
834,
31749,
7,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
477,
834,
14796,
3274,
3,
21976,
3430,
17367,
7,
3274,
96,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT IS THE LOWEST GRID FOR RETIREMENT, AND LAPS LARGER THAN 17? | CREATE TABLE table_name_72 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT MIN(grid) FROM table_name_72 WHERE time_retired = "retirement" AND laps > 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
3496,
26,
3,
21342,
17966,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3496,
26,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
10682,
60,
297,
121,
3430,
14941,
7,
2490,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Give me the comparison about meter_100 over the Time by a bar chart, and could you rank from high to low by the total number? | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Coun... | SELECT Time, meter_100 FROM swimmer ORDER BY meter_100 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2900,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
2915,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which country scored 69-67-69-70=275? | CREATE TABLE table_46922 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Country" FROM table_46922 WHERE "Score" = '69-67-69-70=275' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
4508,
357,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
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,
10628,
651,
121,
21680,
953,
834,
4448,
4508,
357,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3951,
18,
3708,
18,
3951,
18,
2518,
2423,
25988,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return complaint status codes have more than 3 corresponding complaints? | CREATE TABLE customers (
customer_id number,
customer_type_code text,
address_line_1 text,
address_line_2 text,
town_city text,
state text,
email_address text,
phone_number text
)
CREATE TABLE staff (
staff_id number,
gender text,
first_name text,
last_name text,
ema... | SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING COUNT(*) > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
884,
834,
23,
26,
381,
6,
884,
834,
6137,
834,
4978,
1499,
6,
1115,
834,
747,
834,
536,
1499,
6,
1115,
834,
747,
834,
357,
1499,
6,
1511,
834,
6726,
1499,
6,
538,
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,
10394,
834,
8547,
302,
834,
4978,
21680,
11244,
350,
4630,
6880,
272,
476,
10394,
834,
8547,
302,
834,
4978,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the overall number of chosen ideas where the person is scott parker | CREATE TABLE table_2840500_3 (pick VARCHAR, player VARCHAR) | SELECT COUNT(pick) FROM table_2840500_3 WHERE player = "Scott Parker" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2445,
2560,
834,
519,
41,
17967,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1879,
381,
13,
3934,
912,
213,
8,
568,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
17967,
61,
21680,
953,
834,
2577,
2445,
2560,
834,
519,
549,
17444,
427,
1959,
3274,
96,
134,
10405,
13156,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the national final main host at BBC Television Centre, and the selection show was Eurovision: Your Country Needs You? | CREATE TABLE table_13917 (
"Year(s)" text,
"Selection show" text,
"Venue" text,
"National final main host" text,
"National final co host" text,
"Semi final/heat host" text
) | SELECT "National final main host" FROM table_13917 WHERE "Venue" = 'bbc television centre' AND "Selection show" = 'eurovision: your country needs you' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24090,
2517,
41,
96,
476,
2741,
599,
7,
61,
121,
1499,
6,
96,
134,
15,
12252,
504,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
24732,
804,
711,
2290,
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,
24732,
804,
711,
2290,
121,
21680,
953,
834,
24090,
2517,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
115,
115,
75,
4390,
2050,
31,
3430,
96,
134,
15,
12252,
504,
121,
3274,
3,
31,
1238,
32,
6610... |
what is the only song q tip performs ? | CREATE TABLE table_204_238 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"performer (s)" text,
"time" text
) | SELECT "title" FROM table_204_238 WHERE "producer(s)" = 'q-tip' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
3747,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
1409,
4817,
49,
599,
7,
61,
121,
1499,
6,
96,
883,
2032,
49,
41,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21869,
121,
21680,
953,
834,
26363,
834,
357,
3747,
549,
17444,
427,
96,
1409,
4817,
49,
599,
7,
61,
121,
3274,
3,
31,
1824,
18,
11537,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average Start term with a 1912 end term? | CREATE TABLE table_name_58 (
start_term INTEGER,
end_term VARCHAR
) | SELECT AVG(start_term) FROM table_name_58 WHERE end_term = 1912 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
456,
834,
1987,
3,
21342,
17966,
6,
414,
834,
1987,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
3273,
1657,
28,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
10208,
834,
1987,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
414,
834,
1987,
3274,
957,
2122,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find names of all students who took some course and the course description. | CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_num VARCHAR) | SELECT T1.stu_fname, T1.stu_lname, T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17990,
41,
7,
17,
76,
834,
5525,
584,
4280,
28027,
6,
853,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
75,
52,
7,
834,
221,
11830,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
7,
17,
76,
834,
89,
4350,
6,
332,
5411,
7,
17,
76,
834,
40,
4350,
6,
332,
7984,
75,
52,
7,
834,
221,
11830,
21680,
1236,
6157,
332,
536,
3,
15355,
3162,
17990,
6157,
332,
357,
9191,
332,
5411,
7,
17... |
What is Label, when Date is 1987? | CREATE TABLE table_name_57 (label VARCHAR, date VARCHAR) | SELECT label FROM table_name_57 WHERE date = "1987" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
40,
10333,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
16229,
6,
116,
7678,
19,
12701,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
833,
3274,
96,
2294,
4225,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times was the participation at omni coliseum 7,194? | CREATE TABLE table_13464416_6 (
game VARCHAR,
location_attendance VARCHAR
) | SELECT game FROM table_13464416_6 WHERE location_attendance = "Omni Coliseum 7,194" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4448,
3628,
2938,
834,
948,
41,
467,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
648,
47,
8,
5178,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
21680,
953,
834,
2368,
4448,
3628,
2938,
834,
948,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
667,
51,
29,
23,
3043,
159,
15,
440,
7973,
2294,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If the net worth of fixed assets is 621, what is the current ratio? | CREATE TABLE table_19166421_1 (current_ratio VARCHAR, net_worth_to_fixed_assets VARCHAR) | SELECT current_ratio FROM table_19166421_1 WHERE net_worth_to_fixed_assets = 621 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2938,
4389,
2658,
834,
536,
41,
14907,
834,
6850,
32,
584,
4280,
28027,
6,
3134,
834,
7048,
834,
235,
834,
28568,
834,
3974,
17,
7,
584,
4280,
28027,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
750,
834,
6850,
32,
21680,
953,
834,
2294,
2938,
4389,
2658,
834,
536,
549,
17444,
427,
3134,
834,
7048,
834,
235,
834,
28568,
834,
3974,
17,
7,
3274,
431,
2658,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
After 2008, which Group has the Result, nominated, and the Award, Best Lead Actor in a Television Drama? | CREATE TABLE table_name_54 (
group VARCHAR,
award VARCHAR,
result VARCHAR,
year VARCHAR
) | SELECT group FROM table_name_54 WHERE result = "nominated" AND year > 2008 AND award = "best lead actor in a television drama" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
563,
584,
4280,
28027,
6,
2760,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
621,
2628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
563,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
741,
3274,
96,
3114,
77,
920,
121,
3430,
215,
2490,
2628,
3430,
2760,
3274,
96,
9606,
991,
7556,
16,
3,
9,
4390,
6616,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
With the pick of 1 Cecil Martin has what number as the overall? | CREATE TABLE table_46339 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT COUNT("Overall") FROM table_46339 WHERE "Pick" = '1' AND "Name" = 'cecil martin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
519,
3288,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
4448,
519,
3288,
549,
17444,
427,
96,
345,
3142,
121,
3274,
3,
31,
536,
31,
3430,
96,
23954,
121,
3274,
3,
31,
565,
75,
173,
3157,
17,
77,
31,
1,
-100,
... |
What year had 48 assists? | CREATE TABLE table_40520 (
"Year" text,
"Team" text,
"GP/GS" text,
"Goals" text,
"Assists" text,
"Total Points" text
) | SELECT "Year" FROM table_40520 WHERE "Assists" = '48' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
25356,
41,
96,
476,
2741,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
8049,
87,
8256,
121,
1499,
6,
96,
6221,
5405,
121,
1499,
6,
96,
188,
7,
7,
343,
7,
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,
476,
2741,
121,
21680,
953,
834,
2445,
25356,
549,
17444,
427,
96,
188,
7,
7,
343,
7,
121,
3274,
3,
31,
3707,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many match points rotherham lose | CREATE TABLE table_27987767_2 (
match_points VARCHAR,
losers VARCHAR
) | SELECT match_points FROM table_27987767_2 WHERE losers = "Rotherham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3916,
4013,
3708,
834,
357,
41,
1588,
834,
2700,
7,
584,
4280,
28027,
6,
10381,
277,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
1588,
979,
3,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1588,
834,
2700,
7,
21680,
953,
834,
2555,
3916,
4013,
3708,
834,
357,
549,
17444,
427,
10381,
277,
3274,
96,
448,
9269,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what product was introduced in the same month as crest whitestrips 3d advanced vivid ? | CREATE TABLE table_204_625 (
id number,
"model" text,
"availability" text,
"introduced" text,
"length of use" text,
"last of whiteness" text
) | SELECT "model" FROM table_204_625 WHERE "model" <> 'crest whitestrips 3d advanced vivid' AND "introduced" = (SELECT "introduced" FROM table_204_625 WHERE "model" = 'crest whitestrips 3d advanced vivid') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
1828,
41,
3,
23,
26,
381,
6,
96,
21770,
121,
1499,
6,
96,
8644,
173,
2020,
121,
1499,
6,
96,
20322,
32,
12160,
26,
121,
1499,
6,
96,
19457,
13,
169,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21770,
121,
21680,
953,
834,
26363,
834,
948,
1828,
549,
17444,
427,
96,
21770,
121,
3,
2,
3155,
3,
31,
21443,
872,
7,
14192,
7,
220,
26,
2496,
18744,
31,
3430,
96,
20322,
32,
12160,
26,
121,
3274,
41,
23143,
... |
Which lowest year has a Position of rb, and a College of louisiana state? | CREATE TABLE table_name_27 (
year INTEGER,
position VARCHAR,
college VARCHAR
) | SELECT MIN(year) FROM table_name_27 WHERE position = "rb" AND college = "louisiana state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
215,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7402,
215,
65,
3,
9,
14258,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1102,
3274,
96,
52,
115,
121,
3430,
1900,
3274,
96,
40,
1063,
159,
13662,
538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find all airlines that have flights from both airports 'APG' and 'CVO'. | CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, SourceAirport VARCHAR) | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
18375,
20006,
134,
41,
20162,
747,
584,
4280,
28027,
6,
3,
76,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7212,
19114,
134,
41,
20162,
747,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
20162,
747,
21680,
3,
18375,
20006,
134,
6157,
332,
536,
3,
15355,
3162,
7212,
19114,
134,
6157,
332,
357,
9191,
332,
5411,
76,
23,
26,
3274,
332,
4416,
20162,
747,
549,
17444,
427,
332,
4416,
23799,
20162,... |
what is the average points when played is less than 16? | CREATE TABLE table_name_55 (points INTEGER, played INTEGER) | SELECT AVG(points) FROM table_name_55 WHERE played < 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
2700,
7,
3,
21342,
17966,
6,
1944,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1348,
979,
116,
1944,
19,
705,
145,
898,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1944,
3,
2,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category? | CREATE TABLE table_name_80 (
year VARCHAR,
actor VARCHAR,
film VARCHAR,
category VARCHAR
) | SELECT year FROM table_name_80 WHERE film = "bullets over broadway" AND category = "best supporting actress" AND actor = "jennifer tilly" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
215,
584,
4280,
28027,
6,
7556,
584,
4280,
28027,
6,
814,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
814,
3274,
96,
6724,
7677,
147,
4358,
1343,
121,
3430,
3295,
3274,
96,
9606,
3956,
15676,
121,
3430,
7556,
3274,
96,
354,
35,
29,
99,
49,
6501,
63,
121,
1,
-... |
What is the entrant earlier than 1956 with a Vanwall Special chassis? | CREATE TABLE table_name_19 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) | SELECT entrant FROM table_name_19 WHERE year < 1956 AND chassis = "vanwall special" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
295,
3569,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
295,
3569,
2283,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
295,
3569,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
215,
3,
2,
22951,
3430,
22836,
3274,
96,
2132,
10279,
534,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the destination when the train number is 16526? | CREATE TABLE table_29202276_2 (destination VARCHAR, train_number VARCHAR) | SELECT destination FROM table_29202276_2 WHERE train_number = 16526 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
1755,
2884,
3959,
834,
357,
41,
13557,
257,
584,
4280,
28027,
6,
2412,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3954,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3954,
21680,
953,
834,
3166,
1755,
2884,
3959,
834,
357,
549,
17444,
427,
2412,
834,
5525,
1152,
3274,
3,
22823,
2688,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 1913 Class of the d32 LNER Class? | CREATE TABLE table_7491 (
"1st built" real,
"1913 Class" text,
"W.A." text,
"No. Built" real,
"Builder" text,
"Date" text,
"LNER Class" text
) | SELECT "1913 Class" FROM table_7491 WHERE "LNER Class" = 'd32' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4729,
41,
96,
536,
7,
17,
1192,
121,
490,
6,
96,
2294,
2368,
4501,
121,
1499,
6,
96,
518,
5,
188,
535,
1499,
6,
96,
4168,
5,
14862,
121,
490,
6,
96,
24752,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2294,
2368,
4501,
121,
21680,
953,
834,
4581,
4729,
549,
17444,
427,
96,
434,
18206,
4501,
121,
3274,
3,
31,
26,
2668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest number of wins a tournament with 1 cuts made, a top-25 less than 1, and less than 2 events has? | CREATE TABLE table_name_82 (
wins INTEGER,
events VARCHAR,
cuts_made VARCHAR,
top_25 VARCHAR
) | SELECT MAX(wins) FROM table_name_82 WHERE cuts_made = 1 AND top_25 < 1 AND events < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
9204,
3,
21342,
17966,
6,
984,
584,
4280,
28027,
6,
8620,
834,
4725,
584,
4280,
28027,
6,
420,
834,
1828,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
8620,
834,
4725,
3274,
209,
3430,
420,
834,
1828,
3,
2,
209,
3430,
984,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the time of the game on April 5? | CREATE TABLE table_name_87 (time VARCHAR, date VARCHAR) | SELECT time FROM table_name_87 WHERE date = "april 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
715,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
97,
13,
8,
467,
30,
1186,
305,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many in lost renomination results were elected first? | CREATE TABLE table_1342338_3 (first_elected VARCHAR, result VARCHAR) | SELECT first_elected FROM table_1342338_3 WHERE result = "Lost renomination" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
3747,
834,
519,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
16,
1513,
3,
1536,
32,
14484,
772... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
23747,
2773,
3747,
834,
519,
549,
17444,
427,
741,
3274,
96,
434,
3481,
3,
1536,
32,
14484,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the runner-up on September 11? | CREATE TABLE table_24625 (
"Round" real,
"Date" text,
"City and venue" text,
"Winner" text,
"Runner-up" text,
"3rd placed" text,
"4th placed" text,
"Results" text
) | SELECT "Runner-up" FROM table_24625 WHERE "Date" = 'September 11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4448,
1828,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
254,
485,
11,
5669,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
18,
413,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23572,
18,
413,
121,
21680,
953,
834,
357,
4448,
1828,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
27652,
850,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which language does patient with patient id 8323 speak? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT demographic.language FROM demographic WHERE demographic.subject_id = "8323" | [
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,
24925,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4591,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the court surface when the score was 6–4, 6–1? | CREATE TABLE table_name_90 (surface VARCHAR, score VARCHAR) | SELECT surface FROM table_name_90 WHERE score = "6–4, 6–1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
26899,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1614,
1774,
116,
8,
2604,
47,
431,
104,
8525,
431,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1774,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
2604,
3274,
96,
948,
104,
8525,
431,
104,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many episodes were series episode 214? | CREATE TABLE table_2862 (
"No." real,
"#" real,
"Original airdate" text,
"Performer 1" text,
"Performer 2" text,
"Performer 3" text,
"Performer 4" text
) | SELECT COUNT("#") FROM table_2862 WHERE "No." = '214' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4056,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
667,
3380,
10270,
799,
5522,
121,
1499,
6,
96,
12988,
2032,
49,
209,
121,
1499,
6,
96,
12988,
2032,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4663,
8512,
21680,
953,
834,
2577,
4056,
549,
17444,
427,
96,
4168,
535,
3274,
3,
31,
27357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the age of the contestant from Reno, NV? | CREATE TABLE table_name_55 (age_1 VARCHAR, hometown VARCHAR) | SELECT age_1 FROM table_name_55 WHERE hometown = "reno, nv" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
545,
834,
536,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1246,
13,
8,
4233,
288,
45,
4965,
32,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1246,
834,
536,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
22295,
3274,
96,
1536,
32,
6,
3,
29,
208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What were the results for round of 32 for Nicole Vaidi ov ? | CREATE TABLE table_21465 (
"Athlete" text,
"Event" text,
"Round of 64" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinals" text
) | SELECT "Round of 32" FROM table_21465 WHERE "Athlete" = 'Nicole Vaidišová' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27357,
4122,
41,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
448,
32,
1106,
13,
6687,
121,
1499,
6,
96,
448,
32,
1106,
13,
3538,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
1106,
13,
3538,
121,
21680,
953,
834,
27357,
4122,
549,
17444,
427,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
21926,
15,
584,
6146,
23,
2,
32,
208,
2975,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest total that has 1977 as the year (s) won? | CREATE TABLE table_name_32 (total INTEGER, year_s__won VARCHAR) | SELECT MIN(total) FROM table_name_32 WHERE year_s__won = "1977" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
235,
1947,
3,
21342,
17966,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
792,
24,
65,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
4013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What teams played in the Capital One bowl game on January 1, 2009? | CREATE TABLE table_20503 (
"Bowl Game" text,
"Date" text,
"Stadium" text,
"City" text,
"Television" text,
"Conference Matchups" text,
"Payout ( US$ )" text
) | SELECT "Conference Matchups" FROM table_20503 WHERE "Date" = 'January 1, 2009' AND "Bowl Game" = 'Capital One' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
4928,
41,
96,
279,
2381,
40,
4435,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
382,
400,
6610,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4302,
11788,
12296,
413,
7,
121,
21680,
953,
834,
23201,
4928,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
30404,
1914,
2464,
31,
3430,
96,
279,
2381,
40,
4435,
121,
3274,
3,
31,
19566,
9538,
555,
31,
1,
... |
What is the high assists score of Nick Collison (11)? | CREATE TABLE table_name_85 (
high_assists VARCHAR,
high_rebounds VARCHAR
) | SELECT high_assists FROM table_name_85 WHERE high_rebounds = "nick collison (11)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
306,
13041,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
306,
834,
23768,
3274,
96,
11191,
8029,
23,
739,
4077,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of job_id and the amount of job_id , and group by attribute job_id, I want to show y-axis in descending order please. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(... | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY COUNT(JOB_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
2847,
17161,
599,
15355,
279,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,... |
What is Place, when Player is 'Tony Lema'? | CREATE TABLE table_51134 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_51134 WHERE "Player" = 'tony lema' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
23747,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
5553,
23747,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
17,
106,
63,
90,
51,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
give me the number of patients whose discharge location is rehab/distinct part hosp and procedure short title is closed biopsy of tongue? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND procedures.short_title = "Closed biopsy of tongue" | [
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,... |
Which loss has a Record of 54-39? | CREATE TABLE table_name_68 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_68 WHERE record = "54-39" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
2298,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1453,
65,
3,
9,
11392,
13,
10630,
18,
3288,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1453,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
1368,
3274,
96,
5062,
18,
3288,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many copies were sold when the 1st week sales were 4,590+? | CREATE TABLE table_35902 (
"Year" real,
"Album" text,
"Oricon position" real,
"1st week sales" text,
"Copies sold" text
) | SELECT "Copies sold" FROM table_35902 WHERE "1st week sales" = '4,590+' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
2394,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
25691,
440,
121,
1499,
6,
96,
7395,
23,
1018,
1102,
121,
490,
6,
96,
536,
7,
17,
471,
1085,
121,
1499,
6,
96,
3881,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8497,
1916,
121,
21680,
953,
834,
2469,
2394,
357,
549,
17444,
427,
96,
536,
7,
17,
471,
1085,
121,
3274,
3,
31,
26392,
2394,
1220,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the performance order of the velasco brothers | CREATE TABLE table_26267849_11 (
performance_order VARCHAR,
artist VARCHAR
) | SELECT performance_order FROM table_26267849_11 WHERE artist = "Velasco Brothers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2688,
3940,
3647,
834,
2596,
41,
821,
834,
9397,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
821,
455,
13,
8,
3,
4911,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
821,
834,
9397,
21680,
953,
834,
2688,
2688,
3940,
3647,
834,
2596,
549,
17444,
427,
2377,
3274,
96,
553,
15,
521,
3523,
17491,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Events smaller than 1 had what highest cuts made? | CREATE TABLE table_name_65 (cuts_made INTEGER, events INTEGER) | SELECT MAX(cuts_made) FROM table_name_65 WHERE events < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
3044,
7,
834,
4725,
3,
21342,
17966,
6,
984,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
11137,
2755,
145,
209,
141,
125,
2030,
8620,
263,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3044,
7,
834,
4725,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
984,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the name of the player who played in 2009 only? | CREATE TABLE table_12321870_32 (player_name VARCHAR, period VARCHAR) | SELECT player_name FROM table_12321870_32 WHERE period = "2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
14574,
357,
2606,
2518,
834,
2668,
41,
20846,
834,
4350,
584,
4280,
28027,
6,
1059,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
1959,
113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
834,
4350,
21680,
953,
834,
14574,
357,
2606,
2518,
834,
2668,
549,
17444,
427,
1059,
3274,
96,
16660,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the earliest February date with a record of 37-13-4 in a game earlier than 54? | CREATE TABLE table_name_52 (february INTEGER, record VARCHAR, game VARCHAR) | SELECT MIN(february) FROM table_name_52 WHERE record = "37-13-4" AND game < 54 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
89,
15,
9052,
1208,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
2083... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
89,
15,
9052,
1208,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
1368,
3274,
96,
4118,
13056,
18,
20364,
3430,
467,
3,
2,
10630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which date has a Result of won, and a Score of 1-0? | CREATE TABLE table_name_23 (date VARCHAR, result VARCHAR, score VARCHAR) | SELECT date FROM table_name_23 WHERE result = "won" AND score = "1-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
5522,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
65,
3,
9,
3,
20119,
13,
751,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
741,
3274,
96,
210,
106,
121,
3430,
2604,
3274,
96,
18930,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the 2004 value with 2r in 1994? | CREATE TABLE table_name_60 (
Id VARCHAR
) | SELECT 2004 FROM table_name_60 WHERE 1994 = "2r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4406,
701,
28,
204,
52,
16,
7520,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4406,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
7520,
3274,
96,
357,
52,
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 name of the 375 crest length? | CREATE TABLE table_15895 (
"Name" text,
"Canton" text,
"Height (meters)" real,
"Crest length (meters)" real,
"Type" text,
"Year of construction" real,
"Name of the Lake" text
) | SELECT "Name" FROM table_15895 WHERE "Crest length (meters)" = '375' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26556,
3301,
41,
96,
23954,
121,
1499,
6,
96,
254,
9,
6992,
121,
1499,
6,
96,
3845,
2632,
41,
4401,
7,
61,
121,
490,
6,
96,
254,
6216,
2475,
41,
4401,
7,
61,
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,
23954,
121,
21680,
953,
834,
26556,
3301,
549,
17444,
427,
96,
254,
6216,
2475,
41,
4401,
7,
61,
121,
3274,
3,
31,
22954,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score at the end of the match number 4? | CREATE TABLE table_19072602_1 (score VARCHAR, match_no VARCHAR) | SELECT score FROM table_19072602_1 WHERE match_no = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4560,
18365,
357,
834,
536,
41,
7,
9022,
584,
4280,
28027,
6,
1588,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
44,
8,
414,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
2294,
4560,
18365,
357,
834,
536,
549,
17444,
427,
1588,
834,
29,
32,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which series with 62 points? | CREATE TABLE table_16253 (
"Season" text,
"Series" text,
"Team Name" text,
"Races" real,
"Poles" real,
"Wins" real,
"Points" real,
"Position" text
) | SELECT "Series" FROM table_16253 WHERE "Points" = '62' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
1828,
519,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
5570,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
8931,
15,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
12106,
7,
121,
21680,
953,
834,
2938,
1828,
519,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
4056,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the rank of Israel? | CREATE TABLE table_name_97 (rank INTEGER, country VARCHAR) | SELECT MAX(rank) FROM table_name_97 WHERE country = "israel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
6254,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
3352,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
684,
3274,
96,
30178,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
provide the number of patients whose drug name is medium chain triglycerides? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Medium Chain Triglycerides" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Name the team of darren manning | CREATE TABLE table_17271495_1 (
team VARCHAR,
driver VARCHAR
) | SELECT team FROM table_17271495_1 WHERE driver = "Darren Manning" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2555,
2534,
3301,
834,
536,
41,
372,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
372,
13,
649,
1536,
3,
2434,
53,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2517,
2555,
2534,
3301,
834,
536,
549,
17444,
427,
2535,
3274,
96,
29367,
6362,
53,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For every medicine id, what are the names of the medicines that can interact with more than one enzyme? | CREATE TABLE medicine (
id number,
name text,
trade_name text,
fda_approved text
)
CREATE TABLE enzyme (
id number,
name text,
location text,
product text,
chromosome text,
omim number,
porphyria text
)
CREATE TABLE medicine_enzyme_interaction (
enzyme_id number,
me... | SELECT T1.id, T1.name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4404,
41,
3,
23,
26,
381,
6,
564,
1499,
6,
1668,
834,
4350,
1499,
6,
3,
89,
26,
9,
834,
24496,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
15735,
41,
3,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23,
26,
6,
332,
5411,
4350,
21680,
4404,
6157,
332,
536,
3,
15355,
3162,
4404,
834,
35,
4164,
526,
834,
3870,
4787,
6157,
332,
357,
9191,
332,
4416,
29368,
834,
23,
26,
3274,
332,
5411,
23,
26,
350,
463... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.