NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What date was Colorado the home team? | CREATE TABLE table_56844 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Date" FROM table_56844 WHERE "Home" = 'colorado' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3651,
3628,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
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,
308,
342,
121,
21680,
953,
834,
755,
3651,
3628,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
8135,
19042,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What season had less than 301 points and 17 races? | CREATE TABLE table_6455 (
"Driver" text,
"Points" real,
"Season" text,
"Races" real,
"Percentage of possible points" real
) | SELECT "Season" FROM table_6455 WHERE "Points" < '301' AND "Races" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
3769,
41,
96,
20982,
52,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
12988,
3728,
545,
13,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
4389,
3769,
549,
17444,
427,
96,
22512,
7,
121,
3,
2,
3,
31,
25626,
31,
3430,
96,
448,
9,
2319,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest Money ($), when Top Par is E, and when Player is Ernie Els? | CREATE TABLE table_name_35 (
money___ INTEGER,
to_par VARCHAR,
player VARCHAR
) | SELECT MAX(money___) AS $__ FROM table_name_35 WHERE to_par = "e" AND player = "ernie els" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
540,
834,
834,
834,
3,
21342,
17966,
6,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
4800,
4,
599,
28442,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
12,
834,
1893,
3274,
96,
15,
121,
3430,
1959,
3274,
96,
15,
23752,
3,
3573,
121,
1,
-100,
-100,
-100... |
What was the surface when the result was 6 7 (6 7) , 7 6 (9 7) , 6 7 (4 7) , 7 5, 3 6? | CREATE TABLE table_name_82 (
surface VARCHAR,
result VARCHAR
) | SELECT surface FROM table_name_82 WHERE result = "6β7 (6β7) , 7β6 (9β7) , 6β7 (4β7) , 7β5, 3β6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
1774,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1774,
116,
8,
741,
47,
431,
489,
11372,
3,
12703,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
741,
3274,
96,
948,
104,
940,
11372,
104,
12703,
3,
6,
489,
104,
948,
14156,
104,
12703,
3,
6,
431,
104,
940,
8457,
104,
12703,
3,
6,
489,
104,
11116,
220,
... |
have any microbiological tests been done on patient 031-3355's blood, venipuncture in the first hospital visit? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE medication (
medicationid number,
... | SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitala... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
1... |
when did patient 031-3507 receive the first microbiology test during their first hospital visit? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospita... | SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3507' AND NOT patient.hospitaldischargetime IS NULL ORDER BY ... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2179,
9339,
5,
10547,
4914,
29,
715,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,... |
Find the salaries of all distinct instructors that are less than the largest salary. | CREATE TABLE time_slot (
time_slot_id text,
day text,
start_hr number,
start_min number,
end_hr number,
end_min number
)
CREATE TABLE section (
course_id text,
sec_id text,
semester text,
year number,
building text,
room_number text,
time_slot_id text
)
CREATE TABLE... | SELECT DISTINCT salary FROM instructor WHERE salary < (SELECT MAX(salary) FROM instructor) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
97,
834,
7,
3171,
41,
97,
834,
7,
3171,
834,
23,
26,
1499,
6,
239,
1499,
6,
456,
834,
107,
52,
381,
6,
456,
834,
1109,
381,
6,
414,
834,
107,
52,
381,
6,
414,
834,
1109,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
9090,
21680,
10617,
549,
17444,
427,
9090,
3,
2,
41,
23143,
14196,
4800,
4,
599,
7,
138,
1208,
61,
21680,
10617,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How is the crowd of the team Geelong? | CREATE TABLE table_53964 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT AVG("Crowd") FROM table_53964 WHERE "Away team" = 'geelong' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3288,
4389,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
254,
3623,
26,
8512,
21680,
953,
834,
755,
3288,
4389,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
397,
15,
2961,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the away team's score at Princes Park? | CREATE TABLE table_name_3 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_3 WHERE venue = "princes park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
550,
372,
31,
7,
2604,
44,
9027,
7,
1061,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
5669,
3274,
96,
12298,
2319,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play? | CREATE TABLE table_64803 (
"Year" real,
"Award Ceremony" text,
"Category" text,
"Nominee" text,
"Result" text
) | SELECT MIN("Year") FROM table_64803 WHERE "Category" = 'best performance by a leading actor in a play' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
2079,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
31188,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
4168,
8695,
15,
121,
1499,
6,
96,
20119,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
4389,
2079,
519,
549,
17444,
427,
96,
18610,
6066,
651,
121,
3274,
3,
31,
9606,
821,
57,
3,
9,
1374,
7556,
16,
3,
9,
577,
31,
1,
-100,
-100,
-100,
-100,
-100... |
Name the maximum founded for blue hose | CREATE TABLE table_16168849_1 (
founded INTEGER,
nickname VARCHAR
) | SELECT MAX(founded) FROM table_16168849_1 WHERE nickname = "Blue Hose" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2938,
4060,
3647,
834,
536,
41,
5710,
3,
21342,
17966,
6,
24649,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2411,
5710,
21,
1692,
3,
9672,
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,
4800,
4,
599,
23329,
61,
21680,
953,
834,
2938,
2938,
4060,
3647,
834,
536,
549,
17444,
427,
24649,
3274,
96,
22530,
25462,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Purse on January 3, 2010? | CREATE TABLE table_name_33 (purse VARCHAR, date VARCHAR) | SELECT purse FROM table_name_33 WHERE date = "january 3, 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
3791,
7,
15,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7333,
7,
15,
30,
1762,
6180,
2735,
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,
20717,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
6180,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return the names of all regions other than Denmark. | CREATE TABLE affected_region (
region_id number,
storm_id number,
number_city_affected number
)
CREATE TABLE region (
region_id number,
region_code text,
region_name text
)
CREATE TABLE storm (
storm_id number,
name text,
dates_active text,
max_speed number,
damage_millions... | SELECT region_name FROM region WHERE region_name <> 'Denmark' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4161,
834,
18145,
41,
1719,
834,
23,
26,
381,
6,
5536,
834,
23,
26,
381,
6,
381,
834,
6726,
834,
9,
27488,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1719,
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,
1719,
834,
4350,
21680,
1719,
549,
17444,
427,
1719,
834,
4350,
3,
2,
3155,
3,
31,
308,
35,
3920,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Score, when Record is "4-1"? | CREATE TABLE table_name_79 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_79 WHERE record = "4-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
7,
9022,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17763,
6,
116,
11392,
19,
96,
591,
2292,
121,
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,
2604,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1368,
3274,
96,
591,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of area km2 with a 4.2 population in millions and is a member state of the Czech Republic? | CREATE TABLE table_42008 (
"Member State" text,
"Population in millions" real,
"Population % of EU" text,
"Area km 2" real,
"Area % of EU" text,
"Pop. density People/km 2" real
) | SELECT COUNT("Area km 2") FROM table_42008 WHERE "Population in millions" > '4.2' AND "Member State" = 'czech republic' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
16128,
41,
96,
329,
18247,
1015,
121,
1499,
6,
96,
27773,
7830,
16,
4040,
121,
490,
6,
96,
27773,
7830,
3,
1454,
13,
3371,
121,
1499,
6,
96,
188,
864,
2280,
204,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
864,
2280,
204,
8512,
21680,
953,
834,
591,
16128,
549,
17444,
427,
96,
27773,
7830,
16,
4040,
121,
2490,
3,
31,
19765,
31,
3430,
96,
329,
18247,
1015,
121,
3274,
3,
31,
75,
776,
524,
2... |
Bar graph to show the total number from different nationality, and show in desc by the X. | CREATE TABLE pilot_record (
Record_ID int,
Pilot_ID int,
Aircraft_ID int,
Date text
)
CREATE TABLE pilot (
Pilot_ID int,
Pilot_name text,
Rank int,
Age int,
Nationality text,
Position text,
Join_Year int,
Team text
)
CREATE TABLE aircraft (
Aircraft_ID int,
Orde... | SELECT Nationality, COUNT(*) FROM pilot GROUP BY Nationality ORDER BY Nationality DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4487,
834,
60,
7621,
41,
11392,
834,
4309,
16,
17,
6,
17777,
834,
4309,
16,
17,
6,
1761,
6696,
834,
4309,
16,
17,
6,
7678,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
868,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
4487,
350,
4630,
6880,
272,
476,
868,
485,
4674,
11300,
272,
476,
868,
485,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the game in which Carl Landry (25) did the most high points played? | CREATE TABLE table_23281862_6 (location_attendance VARCHAR, high_points VARCHAR) | SELECT location_attendance FROM table_23281862_6 WHERE high_points = "Carl Landry (25)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
2606,
4056,
834,
948,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
2773,
2577,
2606,
4056,
834,
948,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
6936,
40,
2216,
651,
4743,
9120,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose admission type is elective and drug code is abac300? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND prescriptions.formulary_drug_cd = "ABAC300" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Find the forename and surname of drivers whose nationality is German? | CREATE TABLE drivers (
driverid number,
driverref text,
number number,
code text,
forename text,
surname text,
dob text,
nationality text,
url text
)
CREATE TABLE qualifying (
qualifyid number,
raceid number,
driverid number,
constructorid number,
number number,
... | SELECT forename, surname FROM drivers WHERE nationality = "German" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3863,
41,
1262,
4055,
381,
6,
2535,
60,
89,
1499,
6,
381,
381,
6,
1081,
1499,
6,
21,
15,
4350,
1499,
6,
244,
4350,
1499,
6,
103,
115,
1499,
6,
1157,
485,
1499,
6,
3,
16137,
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,
21,
15,
4350,
6,
244,
4350,
21680,
3863,
549,
17444,
427,
1157,
485,
3274,
96,
24518,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the United States rank? | CREATE TABLE table_150343_3 (rank VARCHAR, country_territory VARCHAR) | SELECT COUNT(rank) FROM table_150343_3 WHERE country_territory = "United States" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
3710,
519,
834,
519,
41,
6254,
584,
4280,
28027,
6,
684,
834,
17,
21301,
10972,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
907,
1323,
11003,
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,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
12278,
3710,
519,
834,
519,
549,
17444,
427,
684,
834,
17,
21301,
10972,
3274,
96,
5110,
23,
1054,
1323,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For each bed type, find the average room price Show bar chart, could you list by the Y-axis from low to high? | CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType ORDER BY AVG(basePrice) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27659,
7,
41,
3636,
3,
21342,
17966,
6,
4181,
3,
3463,
4,
382,
6,
1972,
1570,
3,
3463,
4,
382,
6,
1972,
15767,
3,
3463,
4,
382,
6,
13002,
17833,
6,
2506,
23954,
3,
3463,
4,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1953,
25160,
6,
71,
17217,
599,
10925,
345,
4920,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
1953,
25160,
4674,
11300,
272,
476,
71,
17217,
599,
10925,
345,
4920,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the duration for vladimir vasyutin , alexander volkov | CREATE TABLE table_245801_1 (
duration__days_ VARCHAR,
crew VARCHAR
) | SELECT COUNT(duration__days_) FROM table_245801_1 WHERE crew = "Vladimir Vasyutin , Alexander Volkov" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3449,
4542,
834,
536,
41,
8659,
834,
834,
1135,
7,
834,
584,
4280,
28027,
6,
4627,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
8659,
21,
3,
208,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1259,
2661,
834,
834,
1135,
7,
834,
61,
21680,
953,
834,
2266,
3449,
4542,
834,
536,
549,
17444,
427,
4627,
3274,
96,
553,
521,
26,
23,
5884,
12379,
63,
76,
17,
77,
3,
6,
10135,
4969,
9789,
121,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find job_id and the average of employee_id , and group by attribute job_id, and visualize them by a bar chart. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID ... | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
... |
who was the successor for district ohio 15th? | CREATE TABLE table_1652224_5 (
successor VARCHAR,
district VARCHAR
) | SELECT successor FROM table_1652224_5 WHERE district = "Ohio 15th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
2884,
2266,
834,
755,
41,
22261,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
47,
8,
22261,
21,
3939,
3,
32,
107,
23,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22261,
21680,
953,
834,
22823,
2884,
2266,
834,
755,
549,
17444,
427,
3939,
3274,
96,
15046,
23,
32,
627,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
List the names of counties that do not have any cities. | CREATE TABLE city (
city_id number,
county_id number,
name text,
white number,
black number,
amerindian number,
asian number,
multiracial number,
hispanic number
)
CREATE TABLE county_public_safety (
county_id number,
name text,
population number,
police_officers num... | SELECT name FROM county_public_safety WHERE NOT county_id IN (SELECT county_id FROM city) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
690,
834,
23,
26,
381,
6,
5435,
834,
23,
26,
381,
6,
564,
1499,
6,
872,
381,
6,
1001,
381,
6,
183,
6655,
8603,
381,
6,
3,
9,
10488,
381,
6,
1249,
52,
9,
4703,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
5435,
834,
15727,
834,
15233,
17,
63,
549,
17444,
427,
4486,
5435,
834,
23,
26,
3388,
41,
23143,
14196,
5435,
834,
23,
26,
21680,
690,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the new membership total if the members lost is bigger than 1.0? | CREATE TABLE table_27671835_3 (
new_membership_total INTEGER,
members_lost INTEGER
) | SELECT MAX(new_membership_total) FROM table_27671835_3 WHERE members_lost > 1.0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3708,
2606,
2469,
834,
519,
41,
126,
834,
12066,
2009,
834,
235,
1947,
3,
21342,
17966,
6,
724,
834,
2298,
17,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
5534,
834,
12066,
2009,
834,
235,
1947,
61,
21680,
953,
834,
2555,
3708,
2606,
2469,
834,
519,
549,
17444,
427,
724,
834,
2298,
17,
2490,
3,
12734,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the date of the game that had a loss of Politte (0-2)? | CREATE TABLE table_name_25 (date VARCHAR, loss VARCHAR) | SELECT date FROM table_name_25 WHERE loss = "politte (0-2)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
5522,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
24,
141,
3,
9,
1453,
13,
17708,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
1453,
3274,
96,
3003,
17,
17,
15,
17482,
18,
7318,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the home team score at windy hill? | CREATE TABLE table_name_16 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team AS score FROM table_name_16 WHERE venue = "windy hill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
2604,
44,
2943,
63,
9956,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
5669,
3274,
96,
5165,
63,
9956,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Home Captain, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912? | CREATE TABLE table_42769 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) | SELECT "Home captain" FROM table_42769 WHERE "Date" = '23,24,26,27,28,29 feb, 1 mar 1912' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2555,
3951,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
14268,
121,
1499,
6,
96,
188,
1343,
14268,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
14268,
121,
21680,
953,
834,
591,
2555,
3951,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2773,
6,
2266,
6,
2688,
6,
2555,
6,
2577,
6,
3166,
3,
89,
15,
115,
6,
209,
3157,
957,
2122,
31,
1,
-100... |
In what year did Stephan Wojcikiewicz play men's single and Anna Rice play women's single? | CREATE TABLE table_31784 (
"Year" text,
"Men's Singles" text,
"Women's Singles" text,
"Men's Doubles" text,
"Women's Doubles" text,
"Mixed Doubles" text
) | SELECT "Year" FROM table_31784 WHERE "Men's Singles" = 'stephan wojcikiewicz' AND "Women's Singles" = 'anna rice' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2517,
4608,
41,
96,
476,
2741,
121,
1499,
6,
96,
329,
35,
31,
7,
7871,
7,
121,
1499,
6,
96,
518,
32,
904,
31,
7,
7871,
7,
121,
1499,
6,
96,
329,
35,
31,
7,
840... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
519,
2517,
4608,
549,
17444,
427,
96,
329,
35,
31,
7,
7871,
7,
121,
3274,
3,
31,
849,
8237,
2275,
354,
75,
9069,
15,
210,
447,
172,
31,
3430,
96,
518,
32,
904,
31,
7,
7871,... |
How many totals had more than 4 bronze? | CREATE TABLE table_name_93 (total INTEGER, bronze INTEGER) | SELECT SUM(total) FROM table_name_93 WHERE bronze > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
235,
1947,
3,
21342,
17966,
6,
13467,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
7,
141,
72,
145,
314,
13467,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
13467,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the character with fate being deceased: knife wound | CREATE TABLE table_72161 (
"Character" text,
"Fate" text,
"Actor" text,
"First Episode" text,
"Final Episode" text,
"Duration" text,
"Final Episode Count" real
) | SELECT "Character" FROM table_72161 WHERE "Fate" = 'Deceased: Knife Wound' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
2938,
536,
41,
96,
18947,
2708,
49,
121,
1499,
6,
96,
371,
342,
121,
1499,
6,
96,
188,
5317,
121,
1499,
6,
96,
25171,
16112,
121,
1499,
6,
96,
371,
10270,
16112,
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,
18947,
2708,
49,
121,
21680,
953,
834,
5865,
2938,
536,
549,
17444,
427,
96,
371,
342,
121,
3274,
3,
31,
2962,
29220,
10,
16141,
89,
15,
3488,
1106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show all sport name and the number of students. | CREATE TABLE Sportsinfo (sportname VARCHAR) | SELECT sportname, COUNT(*) FROM Sportsinfo GROUP BY sportname | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5716,
9583,
41,
6661,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
2600,
564,
11,
8,
381,
13,
481,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2600,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
5716,
9583,
350,
4630,
6880,
272,
476,
2600,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the longitude is 158.091 e, what is the depth? | CREATE TABLE table_3372 (
"Date (YYYY-MM-DD)" text,
"Time (UTC)" text,
"Latitude" text,
"Longitude" text,
"Depth" text,
"Magnitude" text
) | SELECT "Depth" FROM table_3372 WHERE "Longitude" = '158.091Β° E' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
5865,
41,
96,
308,
342,
41,
476,
476,
476,
476,
18,
8257,
18,
11253,
61,
121,
1499,
6,
96,
13368,
41,
6675,
254,
61,
121,
1499,
6,
96,
3612,
6592,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2962,
102,
189,
121,
21680,
953,
834,
4201,
5865,
549,
17444,
427,
96,
434,
2444,
20341,
121,
3274,
3,
31,
1808,
27376,
4729,
1956,
262,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the IHSAA class for Muncie Cowan? | CREATE TABLE table_13619 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"# / County" text
) | SELECT "IHSAA Class" FROM table_13619 WHERE "School" = 'muncie cowan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
2294,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
5498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
196,
4950,
5498,
4501,
121,
21680,
953,
834,
23459,
2294,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
51,
15254,
15,
9321,
152,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Established has a League of ontario australian football league? | CREATE TABLE table_name_62 (
established VARCHAR,
league VARCHAR
) | SELECT established FROM table_name_62 WHERE league = "ontario australian football league" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
2127,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
25275,
65,
3,
9,
3815,
13,
30,
5310,
32,
23407,
29,
3370... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2127,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
5533,
3274,
96,
1770,
14414,
23407,
29,
3370,
5533,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score for Hawthorn as an away team? | CREATE TABLE table_32732 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_32732 WHERE "Away team" = 'hawthorn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2555,
2668,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
2604,
121,
21680,
953,
834,
519,
2555,
2668,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
1024,
210,
17,
6293,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What college did Byron Williams attend? | CREATE TABLE table_1084 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "College" FROM table_1084 WHERE "Player" = 'Byron Williams' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
4608,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
12619,
434,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
9939,
7883,
121,
21680,
953,
834,
1714,
4608,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
30507,
6060,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
where college is st. francis xavier what are all the pick # | CREATE TABLE table_29219 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Pick #" FROM table_29219 WHERE "College" = 'St. Francis Xavier' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
357,
2294,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3142,
1713,
121,
21680,
953,
834,
3166,
357,
2294,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
134,
17,
5,
11065,
3,
4,
9,
5144,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the smallest season number? | CREATE TABLE table_28561455_1 (no_in_season INTEGER) | SELECT MIN(no_in_season) FROM table_28561455_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4834,
2534,
3769,
834,
536,
41,
29,
32,
834,
77,
834,
9476,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3,
17924,
774,
381,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
29,
32,
834,
77,
834,
9476,
61,
21680,
953,
834,
2577,
4834,
2534,
3769,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which entrant, with an Offenhauser L4 engine and a Kurtis Kraft KK500A chassis, scored 9 points before 1955? | CREATE TABLE table_70594 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Entrant" FROM table_70594 WHERE "Engine" = 'offenhauser l4' AND "Year" < '1955' AND "Chassis" = 'kurtis kraft kk500a' AND "Points" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
3390,
591,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
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,
16924,
3569,
121,
21680,
953,
834,
2518,
3390,
591,
549,
17444,
427,
96,
31477,
121,
3274,
3,
31,
1647,
35,
2989,
49,
3,
40,
591,
31,
3430,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
3769,
31,
3430,
96,
3541,
... |
What's the title of the episode with production code 10018? | CREATE TABLE table_19401346_1 (title VARCHAR, production_code VARCHAR) | SELECT title FROM table_19401346_1 WHERE production_code = 10018 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2445,
2368,
4448,
834,
536,
41,
21869,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2233,
13,
8,
5640,
28,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2294,
2445,
2368,
4448,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
910,
2606,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Location Attendance when the Date was February 27? | CREATE TABLE table_name_83 (
location_attendance VARCHAR,
date VARCHAR
) | SELECT location_attendance FROM table_name_83 WHERE date = "february 27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10450,
22497,
663,
116,
8,
7678,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
2307,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many episodes with the production code CA106 are there? | CREATE TABLE table_25740548_2 (
written_by VARCHAR,
production_code VARCHAR
) | SELECT COUNT(written_by) FROM table_25740548_2 WHERE production_code = "CA106" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4581,
3076,
3707,
834,
357,
41,
1545,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13562,
28,
8,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14973,
834,
969,
61,
21680,
953,
834,
1828,
4581,
3076,
3707,
834,
357,
549,
17444,
427,
999,
834,
4978,
3274,
96,
4490,
16431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the result of the game after week 5 against the st. louis rams? | CREATE TABLE table_name_52 (
result VARCHAR,
week VARCHAR,
opponent VARCHAR
) | SELECT result FROM table_name_52 WHERE week > 5 AND opponent = "st. louis rams" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
741,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
13,
8,
467,
227,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
471,
2490,
305,
3430,
15264,
3274,
96,
7,
17,
5,
16585,
159,
3,
2375,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Plot a scatter chart, avg(age) by maximal age. | CREATE TABLE Plays_Games (
StuID INTEGER,
GameID INTEGER,
Hours_Played INTEGER
)
CREATE TABLE Video_Games (
GameID INTEGER,
GName VARCHAR(40),
GType VARCHAR(40)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Ma... | SELECT AVG(Age), MAX(Age) FROM Student GROUP BY Major | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2911,
7,
834,
23055,
7,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
4435,
4309,
3,
21342,
17966,
6,
10768,
7,
834,
15800,
15,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
188,
397,
201,
4800,
4,
599,
188,
397,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
9236,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Player, when Country is "United States", and when To Par is "WD"? | CREATE TABLE table_name_79 (player VARCHAR, country VARCHAR, to_par VARCHAR) | SELECT player FROM table_name_79 WHERE country = "united states" AND to_par = "wd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
20846,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
12387,
6,
116,
6993,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
12,
834,
1893,
3274,
96,
210,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who wrote the episode with 7.52 million US viewers? | CREATE TABLE table_74305 (
"#" real,
"Episode" text,
"Directed by" text,
"Written by" text,
"U.S. Viewers (in millions)" text,
"Original airdate" text
) | SELECT "Written by" FROM table_74305 WHERE "U.S. Viewers (in millions)" = '7.52' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
26724,
41,
96,
4663,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
1265,
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,
96,
24965,
324,
57,
121,
21680,
953,
834,
4581,
26724,
549,
17444,
427,
96,
1265,
5,
134,
5,
4197,
277,
41,
77,
4040,
61,
121,
3274,
3,
31,
15731,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order. | CREATE TABLE guests (
guest_id number,
gender_code text,
guest_first_name text,
guest_last_name text,
date_of_birth time
)
CREATE TABLE apartment_bookings (
apt_booking_id number,
apt_id number,
guest_id number,
booking_status_code text,
booking_start_date time,
booking_end_... | SELECT apt_type_code, COUNT(*) FROM apartments GROUP BY apt_type_code ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2554,
41,
3886,
834,
23,
26,
381,
6,
7285,
834,
4978,
1499,
6,
3886,
834,
14672,
834,
4350,
1499,
6,
3886,
834,
5064,
834,
4350,
1499,
6,
833,
834,
858,
834,
20663,
97,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
6789,
834,
6137,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
10424,
350,
4630,
6880,
272,
476,
3,
6789,
834,
6137,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-10... |
Which Round is the highest one that has a Position of running back? | CREATE TABLE table_name_14 (
round INTEGER,
position VARCHAR
) | SELECT MAX(round) FROM table_name_14 WHERE position = "running back" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
1751,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
9609,
19,
8,
2030,
80,
24,
65,
3,
9,
14258,
13,
1180,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7775,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
1102,
3274,
96,
24549,
223,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Date, when Venue is 'Taunton', and when Name is 'SC Ganguly'? | CREATE TABLE table_name_78 (
date VARCHAR,
venue VARCHAR,
name VARCHAR
) | SELECT date FROM table_name_78 WHERE venue = "taunton" AND name = "sc ganguly" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
833,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
29940,
19,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
5669,
3274,
96,
17,
402,
6992,
121,
3430,
564,
3274,
96,
7,
75,
3,
3810,
83,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How much money does the player with a 68-71-68-72=279 score have? | CREATE TABLE table_60216 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" text
) | SELECT "Money ( \u00a3 )" FROM table_60216 WHERE "Score" = '68-71-68-72=279' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
27184,
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,
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,
9168,
15,
63,
41,
3,
2,
76,
1206,
9,
519,
3,
61,
121,
21680,
953,
834,
3328,
27184,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3651,
18,
4450,
18,
3651,
18,
5865,
2423,
357,
4440,
31,
1,
-100,
-100,... |
Find the names of all English songs. | CREATE TABLE song (
song_name VARCHAR,
languages VARCHAR
) | SELECT song_name FROM song WHERE languages = "english" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2324,
41,
2324,
834,
4350,
584,
4280,
28027,
6,
8024,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
3056,
13,
66,
1566,
3605,
5,
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,
2324,
834,
4350,
21680,
2324,
549,
17444,
427,
8024,
3274,
96,
4606,
40,
1273,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the status when points is 4595? | CREATE TABLE table_31231 (
"Seed" real,
"Rank" real,
"Player" text,
"Points" real,
"Points defending" real,
"Points won" real,
"New points" real,
"Status" text
) | SELECT "Status" FROM table_31231 WHERE "Points" = '4595' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2122,
3341,
41,
96,
18648,
26,
121,
490,
6,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
22512,
7,
3,
20309,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
144,
302,
121,
21680,
953,
834,
519,
2122,
3341,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
2128,
3301,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country scored 71-66-66-71=274? | CREATE TABLE table_name_32 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_32 WHERE score = 71 - 66 - 66 - 71 = 274 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
17529,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
5799,
3,
4450,
18,
3539,
18,
3539,
18,
4450,
2423,
2555,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
2604,
3274,
3,
4450,
3,
18,
3,
3539,
3,
18,
3,
3539,
3,
18,
3,
4450,
3274,
204,
4581,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Silver has the Location of Guangzhou? | CREATE TABLE table_name_17 (silver VARCHAR, location VARCHAR) | SELECT silver FROM table_name_17 WHERE location = "guangzhou" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
7,
173,
624,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5642,
65,
8,
10450,
13,
2846,
1468,
25303,
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,
4294,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
1128,
3274,
96,
1744,
1468,
25303,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
estimated glomerular filtration rate < 45 ml / min / 1.73 m2 | CREATE TABLE table_test_10 (
"id" int,
"left_ventricular_ejection_fraction_lvef" int,
"systolic_blood_pressure_sbp" int,
"immunosuppressive_disease" bool,
"systolic_arterial_pressure_sap" int,
"lymphomas" bool,
"left_ventricular_dysfunction" bool,
"tissue_hypoperfusion" bool,
"heart_... | SELECT * FROM table_test_10 WHERE estimated_glomerular_filtration_rate_egfr < 45 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
1714,
41,
96,
23,
26,
121,
16,
17,
6,
96,
17068,
834,
31695,
834,
15,
21440,
834,
22513,
834,
40,
162,
89,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
4377,
834,
1714,
549,
17444,
427,
5861,
834,
24422,
4885,
834,
18974,
834,
2206,
834,
15,
122,
89,
52,
3,
2,
3479,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the total for radio luxembourg? | CREATE TABLE table_73113 (
"Song" text,
"Porsgrunn" real,
"Bergen" real,
"Bod\u00f8" real,
"Stavanger" real,
"\u00c5lesund" real,
"Elverum" real,
"Troms\u00f8" real,
"Fredrikstad" real,
"Trondheim" real,
"Oslo" real,
"Total" real
) | SELECT "Total" FROM table_73113 WHERE "Song" = 'Radio Luxembourg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
20522,
41,
96,
134,
2444,
121,
1499,
6,
96,
345,
127,
7,
9667,
29,
29,
121,
490,
6,
96,
279,
49,
729,
121,
490,
6,
96,
279,
32,
26,
2,
76,
1206,
89,
927,
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,
3696,
1947,
121,
21680,
953,
834,
4552,
20522,
549,
17444,
427,
96,
134,
2444,
121,
3274,
3,
31,
31313,
23888,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the date of the tournament in michalovce | CREATE TABLE table_name_74 (
date VARCHAR,
tournament VARCHAR
) | SELECT date FROM table_name_74 WHERE tournament = "michalovce" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
833,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
833,
13,
8,
5892,
16,
2278,
9,
5850,
565,
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,
833,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
5892,
3274,
96,
51,
362,
9,
5850,
565,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was tyre that was made by cooper - bristol that was driven by bob gerard? | CREATE TABLE table_53659 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Tyre" text,
"Driver" text,
"Rounds" text
) | SELECT "Tyre" FROM table_53659 WHERE "Constructor" = 'cooper - bristol' AND "Driver" = 'bob gerard' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3420,
3390,
41,
96,
16924,
3569,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
382,
63,
60,
121,
1499,
6,
96,
20982,
52,
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,
382,
63,
60,
121,
21680,
953,
834,
755,
3420,
3390,
549,
17444,
427,
96,
4302,
7593,
127,
121,
3274,
3,
31,
25911,
49,
3,
18,
3,
115,
17149,
40,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
17396,
3,
1304,
9... |
What is the highest game number? | CREATE TABLE table_13619027_10 (
game INTEGER
) | SELECT MAX(game) FROM table_13619027_10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
11776,
2555,
834,
1714,
41,
467,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
467,
381,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
61,
21680,
953,
834,
23459,
11776,
2555,
834,
1714,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the smallest production number for the LT series with the Dumb Patrol title? | CREATE TABLE table_65238 (
"Title" text,
"Series" text,
"Characters" text,
"Production Num." real,
"Release date" text
) | SELECT MIN("Production Num.") FROM table_65238 WHERE "Series" = 'lt' AND "Title" = 'dumb patrol' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
357,
3747,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
18947,
2708,
277,
121,
1499,
6,
96,
3174,
8291,
1174,
51,
535,
490,
6,
96,
1649,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3174,
8291,
1174,
51,
5,
8512,
21680,
953,
834,
4122,
357,
3747,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
40,
17,
31,
3430,
96,
382,
155,
109,
121,
3274,
3,
31,
26,
5937,
20404,
31,
... |
What is the total number of Year, when Bronze is "Jamie Stevenson"? | CREATE TABLE table_name_90 (year VARCHAR, bronze VARCHAR) | SELECT COUNT(year) FROM table_name_90 WHERE bronze = "jamie stevenson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
1201,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
2929,
6,
116,
20841,
19,
96,
683,
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,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
13467,
3274,
96,
1191,
2720,
3,
849,
1926,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the round for jake gardiner? | CREATE TABLE table_name_3 (
round INTEGER,
player VARCHAR
) | SELECT AVG(round) FROM table_name_3 WHERE player = "jake gardiner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
1751,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1751,
21,
2662,
1050,
3,
6390,
4899,
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,
71,
17217,
599,
7775,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
1959,
3274,
96,
1191,
1050,
3,
6390,
4899,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Dates have an Opponent of romford raiders, and a Result of won 7-3, and an Attendance larger than 1,769? | CREATE TABLE table_name_24 (date VARCHAR, attendance VARCHAR, opponent VARCHAR, result VARCHAR) | SELECT COUNT(date) FROM table_name_24 WHERE opponent = "romford raiders" AND result = "won 7-3" AND attendance > 1 OFFSET 769 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
5522,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
5522,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
15264,
3274,
96,
3522,
2590,
15941,
277,
121,
3430,
741,
3274,
96,
210,
106,
489,
3486,
121,
3430,
11364,
2490,
209,
3,
15316,
20788,
489,... |
How many dvd titled 'series 5' were released having a release date or a non available date in region 2? | CREATE TABLE table_1754 (
"DVD Title" text,
"No. of Discs" real,
"Year" text,
"No. of Episodes" real,
"Region 1" text,
"Region 2" text,
"Region 4" text
) | SELECT COUNT("Region 2") FROM table_1754 WHERE "DVD Title" = 'Series 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
5062,
41,
96,
13529,
308,
11029,
121,
1499,
6,
96,
4168,
5,
13,
3,
15683,
7,
121,
490,
6,
96,
476,
2741,
121,
1499,
6,
96,
4168,
5,
13,
16112,
7,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
17748,
23,
106,
204,
8512,
21680,
953,
834,
2517,
5062,
549,
17444,
427,
96,
13529,
308,
11029,
121,
3274,
3,
31,
12106,
7,
305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Return a bar chart about the distribution of ACC_Road and the amount of ACC_Road , and group by attribute ACC_Road. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT ACC_Road, COUNT(ACC_Road) FROM basketball_match GROUP BY ACC_Road | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
448,
32,
9,
26,
6,
2847,
17161,
599,
14775,
834,
448,
32,
9,
26,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What branch was involved when the term began in January 3, 1985? | CREATE TABLE table_197446_1 (
branch VARCHAR,
term_began VARCHAR
) | SELECT branch FROM table_197446_1 WHERE term_began = "January 3, 1985" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4581,
4448,
834,
536,
41,
6421,
584,
4280,
28027,
6,
1657,
834,
346,
2565,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
6421,
47,
1381,
116,
8,
1657,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6421,
21680,
953,
834,
2294,
4581,
4448,
834,
536,
549,
17444,
427,
1657,
834,
346,
2565,
3274,
96,
30404,
6180,
13200,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What director directed the role of shelby barret wyatt in 1935? | CREATE TABLE table_name_14 (director VARCHAR, year VARCHAR, role VARCHAR) | SELECT director FROM table_name_14 WHERE year = 1935 AND role = "shelby barret wyatt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
25982,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1075,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2090,
6640,
8,
1075,
13,
255,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
215,
3274,
27710,
3430,
1075,
3274,
96,
7,
88,
40,
969,
18595,
17,
3,
210,
63,
144,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of patients whose gender is male and discharge location is disc-tran cancer/chldm h. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
15438,
254,
... |
Who is the Pick 7 player? | CREATE TABLE table_name_59 (player VARCHAR, pick VARCHAR) | SELECT player FROM table_name_59 WHERE pick = "7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
20846,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
8356,
489,
1959,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1432,
3274,
96,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the driver of the chassis that is tg183b tg184? | CREATE TABLE table_55777 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Driver" text,
"Rounds" text
) | SELECT "Driver" FROM table_55777 WHERE "Chassis" = 'tg183b tg184' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
26225,
41,
96,
16924,
3569,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
63,
60,
7,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20982,
52,
121,
21680,
953,
834,
3769,
26225,
549,
17444,
427,
96,
3541,
6500,
7,
121,
3274,
3,
31,
17,
122,
24361,
115,
3,
17,
122,
25987,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What place is United States player Corey Pavin in? | CREATE TABLE table_name_25 (
place VARCHAR,
country VARCHAR,
player VARCHAR
) | SELECT place FROM table_name_25 WHERE country = "united states" AND player = "corey pavin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
286,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
286,
19,
907,
1323,
1959,
3,
313... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
9022,
63,
2576,
2494,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many students are enrolled in the team nicknamed Comets? | CREATE TABLE table_30439 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
) | SELECT "Enrollment" FROM table_30439 WHERE "Team Nickname" = 'Comets' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23702,
3288,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
188,
89,
8027,
23,
257,
121,
1499,
6,
96,
8532,
4046,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8532,
4046,
297,
121,
21680,
953,
834,
23702,
3288,
549,
17444,
427,
96,
18699,
7486,
4350,
121,
3274,
3,
31,
5890,
15,
17,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What Canadian Championship had CONCACAF Champions League of semifinals? | CREATE TABLE table_name_6 (
canadian_championship VARCHAR,
concacaf_champions_league VARCHAR
) | SELECT canadian_championship FROM table_name_6 WHERE concacaf_champions_league = "semifinals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
54,
9,
8603,
834,
17788,
12364,
2009,
584,
4280,
28027,
6,
975,
658,
658,
89,
834,
17788,
12364,
7,
834,
29512,
584,
4280,
28027,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
54,
9,
8603,
834,
17788,
12364,
2009,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
975,
658,
658,
89,
834,
17788,
12364,
7,
834,
29512,
3274,
96,
7,
15,
51,
23,
12406,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
What is the catalog with an LP Format and under the Simply Vinyl label? | CREATE TABLE table_name_62 (
catalog VARCHAR,
format VARCHAR,
label VARCHAR
) | SELECT catalog FROM table_name_62 WHERE format = "lp" AND label = "simply vinyl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
10173,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10173,
28,
46,
3,
6892... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10173,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1910,
3274,
96,
40,
102,
121,
3430,
3783,
3274,
96,
7,
18531,
9335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which System's Name is Gemulator? | CREATE TABLE table_53113 (
"Name" text,
"Actual version" text,
"System" text,
"Platform" text,
"License" text
) | SELECT "System" FROM table_53113 WHERE "Name" = 'gemulator' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
20522,
41,
96,
23954,
121,
1499,
6,
96,
23312,
3471,
988,
121,
1499,
6,
96,
14342,
121,
1499,
6,
96,
10146,
2032,
121,
1499,
6,
96,
434,
447,
5167,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
14342,
121,
21680,
953,
834,
4867,
20522,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
397,
4115,
1016,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show all allergy type with number of students affected. | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
) | SELECT T2.allergytype, COUNT(*) FROM has_allergy AS T1 JOIN allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
1246,
381,
6,
3,
7,
994,
1499,
6,
779,
381,
6,
8815,
381,
6,
690,
834,
4978,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
11211,
122,
63,
6137,
6,
2847,
17161,
599,
1935,
61,
21680,
65,
834,
11211,
122,
63,
6157,
332,
536,
3,
15355,
3162,
23886,
834,
6137,
6157,
332,
357,
9191,
332,
5411,
11211,
122,
63,
3274,
332,
4416,
112... |
How many people tuned in to the finale on May 16, 2007? | CREATE TABLE table_46305 (
"Season" text,
"Timeslot" text,
"Premiere" text,
"Finale" text,
"TV season" text,
"Ranking" text,
"Viewers (in millions)" real
) | SELECT COUNT("Viewers (in millions)") FROM table_46305 WHERE "Finale" = 'may 16, 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
26724,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
13368,
7,
3171,
121,
1499,
6,
96,
10572,
2720,
60,
121,
1499,
6,
96,
371,
10270,
15,
121,
1499,
6,
96,
4562,
774... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15270,
277,
41,
77,
4040,
61,
8512,
21680,
953,
834,
4448,
26724,
549,
17444,
427,
96,
371,
10270,
15,
121,
3274,
3,
31,
13726,
11940,
4101,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How would an Italian say the Andalusian word coche? | CREATE TABLE table_name_78 (italian VARCHAR, andalusian VARCHAR) | SELECT italian FROM table_name_78 WHERE andalusian = "coche" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
155,
9,
9928,
584,
4280,
28027,
6,
11,
138,
76,
10488,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
133,
46,
4338,
497,
8,
275,
138,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
24168,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
11,
138,
76,
10488,
3274,
96,
509,
1033,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Name of a state Authority that has a Roll of 72? | CREATE TABLE table_name_13 (
name VARCHAR,
authority VARCHAR,
roll VARCHAR
) | SELECT name FROM table_name_13 WHERE authority = "state" AND roll = "72" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
564,
584,
4280,
28027,
6,
5015,
584,
4280,
28027,
6,
3812,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5570,
13,
3,
9,
538,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
5015,
3274,
96,
5540,
121,
3430,
3812,
3274,
96,
5865,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
A bar chart shows the distribution of All_Games and All_Games_Percent , and order in asc by the X-axis. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT All_Games, All_Games_Percent FROM basketball_match ORDER BY All_Games | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
23055,
7,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
432,
834,
23055,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the team classification was quick step, what was the total number of general classifications? | CREATE TABLE table_15294880_2 (general_classification VARCHAR, team_classification VARCHAR) | SELECT COUNT(general_classification) FROM table_15294880_2 WHERE team_classification = "Quick Step" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3166,
3707,
2079,
834,
357,
41,
27369,
834,
4057,
2420,
584,
4280,
28027,
6,
372,
834,
4057,
2420,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
372,
137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
27369,
834,
4057,
2420,
61,
21680,
953,
834,
1808,
3166,
3707,
2079,
834,
357,
549,
17444,
427,
372,
834,
4057,
2420,
3274,
96,
5991,
3142,
5021,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the score of game 77? | CREATE TABLE table_63257 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
) | SELECT "Score" FROM table_63257 WHERE "Game" = '77' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
357,
3436,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
87,
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,
134,
9022,
121,
21680,
953,
834,
3891,
357,
3436,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
4013,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date did the Boston Celtics play at Richfield Coliseum? | CREATE TABLE table_name_99 (
date VARCHAR,
location VARCHAR
) | SELECT date FROM table_name_99 WHERE location = "richfield coliseum" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
833,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
410,
8,
5053,
21748,
7,
577,
44,
10825,
1846,
3043,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1128,
3274,
96,
3723,
1846,
3,
9044,
7,
15,
440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the maximum in 2004 when 2009 is higher than 26.1? | CREATE TABLE table_name_86 (
Id VARCHAR
) | SELECT MAX(2004) FROM table_name_86 WHERE 2009 > 26.1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
16,
4406,
116,
2464,
19,
1146,
145,
204,
23769,
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,
4800,
4,
599,
21653,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
2464,
2490,
204,
23769,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the venue when the away team was richmond | CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_6 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
15098,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5669,
116,
8,
550,
372,
47,
2354,
6764,
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,
5669,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the first names and last names of the employees who live in Calgary city. | CREATE TABLE genre (
genreid number,
name text
)
CREATE TABLE invoiceline (
invoicelineid number,
invoiceid number,
trackid number,
unitprice number,
quantity number
)
CREATE TABLE employee (
employeeid number,
lastname text,
firstname text,
title text,
reportsto number... | SELECT firstname, lastname FROM employee WHERE city = "Calgary" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5349,
41,
5349,
23,
26,
381,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10921,
747,
41,
10921,
747,
23,
26,
381,
6,
10921,
23,
26,
381,
6,
1463,
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,
166,
4350,
6,
336,
4350,
21680,
3490,
549,
17444,
427,
690,
3274,
96,
14318,
1478,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which constituency had the conservative party win in 2003? | CREATE TABLE table_53452 (
"Rank" real,
"Constituency" text,
"Winning party 2003" text,
"Swing to gain" real,
"SNP's place 2003" text,
"Result" text
) | SELECT "Constituency" FROM table_53452 WHERE "Winning party 2003" = 'conservative' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
2128,
357,
41,
96,
22557,
121,
490,
6,
96,
4302,
2248,
17,
76,
4392,
121,
1499,
6,
96,
518,
10503,
1088,
3888,
121,
1499,
6,
96,
134,
3108,
12,
2485,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4302,
2248,
17,
76,
4392,
121,
21680,
953,
834,
4867,
2128,
357,
549,
17444,
427,
96,
518,
10503,
1088,
3888,
121,
3274,
3,
31,
1018,
3473,
1528,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
If the peak reached is 6 cannot handle non-empty timestamp argument! 1992, what is the entered? | CREATE TABLE table_73955 (
"Entered [A ]" text,
"Weeks in top 10" real,
"Single" text,
"Artist" text,
"Peak" real,
"Peak reached [A ]" text,
"Weeks at peak" real
) | SELECT "Entered [A ]" FROM table_73955 WHERE "Peak reached [A ]" = '6 Cannot handle non-empty timestamp argument! 1992' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
3301,
755,
41,
96,
16924,
3737,
784,
188,
3,
908,
121,
1499,
6,
96,
1326,
16789,
16,
420,
335,
121,
490,
6,
96,
134,
53,
109,
121,
1499,
6,
96,
7754,
343,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16924,
3737,
784,
188,
3,
908,
121,
21680,
953,
834,
4552,
3301,
755,
549,
17444,
427,
96,
345,
15,
1639,
3495,
784,
188,
3,
908,
121,
3274,
3,
31,
948,
1072,
2264,
2174,
529,
18,
9045,
63,
648,
17,
4624,
54... |
What's the mutated having a patent number of US plant patent 9645? | CREATE TABLE table_name_39 (mutated_from VARCHAR, plant_patent_number VARCHAR) | SELECT mutated_from FROM table_name_39 WHERE plant_patent_number = "us plant patent 9645" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
4246,
920,
834,
7152,
584,
4280,
28027,
6,
1475,
834,
4665,
295,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
4246,
920,
834,
7152,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1475,
834,
4665,
295,
834,
5525,
1152,
3274,
96,
302,
1475,
7432,
3,
4314,
2128,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What party was represented by incumbent Richard Coulter ? | CREATE TABLE table_3596 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | SELECT "Party" FROM table_3596 WHERE "Incumbent" = 'Richard Coulter' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
4314,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
1499,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
63,
121,
21680,
953,
834,
2469,
4314,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
448,
362,
986,
638,
83,
449,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
who played the most amount of matches ? | CREATE TABLE table_203_221 (
id number,
"name" text,
"nationality" text,
"matches played" number,
"goals scored" number,
"notes" text
) | SELECT "name" FROM table_203_221 ORDER BY "matches played" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
2658,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
19515,
15,
7,
1944,
121,
381,
6,
96,
839,
5405,
5799,
121,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
23330,
834,
357,
2658,
4674,
11300,
272,
476,
96,
19515,
15,
7,
1944,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On what date was the record 4 0 0? | CREATE TABLE table_name_81 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_81 WHERE record = "4β0β0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
1368,
314,
3,
632,
3,
632,
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,
833,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
1368,
3274,
96,
591,
104,
632,
104,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
List the cities which have more than one airport and number of airports. | CREATE TABLE airports (
apid number,
name text,
city text,
country text,
x number,
y number,
elevation number,
iata text,
icao text
)
CREATE TABLE airlines (
alid number,
name text,
iata text,
icao text,
callsign text,
country text,
active text
)
CREATE ... | SELECT city, COUNT(*) FROM airports GROUP BY city HAVING COUNT(*) > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
7,
41,
3,
9,
12417,
381,
6,
564,
1499,
6,
690,
1499,
6,
684,
1499,
6,
3,
226,
381,
6,
3,
63,
381,
6,
16417,
381,
6,
3,
17221,
1499,
6,
3,
2617,
32,
1499,
3,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
690,
6,
2847,
17161,
599,
1935,
61,
21680,
3761,
7,
350,
4630,
6880,
272,
476,
690,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Among patients treated with csa50i, how many of them were born before 2098? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2098" AND prescriptions.formulary_drug_cd = "CSA50I" | [
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... |
Who were the Opponents in the final in the match with a Score in the final of 1 6, 6 3, 2 6? | CREATE TABLE table_name_22 (
opponents_in_the_final VARCHAR,
score_in_the_final VARCHAR
) | SELECT opponents_in_the_final FROM table_name_22 WHERE score_in_the_final = "1β6, 6β3, 2β6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
16383,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
2604,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16383,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
2604,
834,
77,
834,
532,
834,
12406,
3274,
96,
536,
104,
11071,
431,
104,
6355,
204,
104,
948,
121,
1,
-100,
-100,
-100,
-100,... |
Show all the locations where no cinema has capacity over 800. | CREATE TABLE cinema (
cinema_id number,
name text,
openning_year number,
capacity number,
location text
)
CREATE TABLE schedule (
cinema_id number,
film_id number,
date text,
show_times_per_day number,
price number
)
CREATE TABLE film (
film_id number,
rank_in_series nu... | SELECT location FROM cinema EXCEPT SELECT location FROM cinema WHERE capacity > 800 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10276,
41,
10276,
834,
23,
26,
381,
6,
564,
1499,
6,
539,
29,
53,
834,
1201,
381,
6,
2614,
381,
6,
1128,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2023,
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,
1128,
21680,
10276,
262,
4,
30416,
3,
23143,
14196,
1128,
21680,
10276,
549,
17444,
427,
2614,
2490,
8640,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What point had team Lotus whit the lotus 33 chassis in 1964? | CREATE TABLE table_name_66 (
points VARCHAR,
year VARCHAR,
chassis VARCHAR,
entrant VARCHAR
) | SELECT points FROM table_name_66 WHERE chassis = "lotus 33" AND entrant = "team lotus" AND year = 1964 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
979,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
22836,
3274,
96,
3171,
302,
5400,
121,
3430,
3,
295,
3569,
3274,
96,
11650,
418,
302,
121,
3430,
215,
3274,
18969,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose age is less than 45 and procedure long title is allogeneic hematopoietic stem cell transpant without purging? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "45" AND procedures.long_title = "Allogeneic hematopoietic stem cell transpant without purging" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.