NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which League Cup has a Total smaller than 1? | CREATE TABLE table_12760 (
"Name" text,
"Championship" real,
"League Cup" real,
"FA Cup" real,
"Total" real
) | SELECT SUM("League Cup") FROM table_12760 WHERE "Total" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22367,
3328,
41,
96,
23954,
121,
1499,
6,
96,
254,
1483,
12364,
2009,
121,
490,
6,
96,
2796,
9,
5398,
3802,
121,
490,
6,
96,
4795,
3802,
121,
490,
6,
96,
3696,
1947,
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,
180,
6122,
599,
121,
2796,
9,
5398,
3802,
8512,
21680,
953,
834,
22367,
3328,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player(s) drafted by the hamilton tiger-cats? | CREATE TABLE table_20170644_5 (player VARCHAR, cfl_team VARCHAR) | SELECT player FROM table_20170644_5 WHERE cfl_team = "Hamilton Tiger-Cats" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9887,
5176,
3628,
834,
755,
41,
20846,
584,
4280,
28027,
6,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
599,
7,
61,
3,
23505,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
9887,
5176,
3628,
834,
755,
549,
17444,
427,
3,
75,
89,
40,
834,
11650,
3274,
96,
566,
3690,
7377,
11804,
18,
18610,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Bar chart of how many openning year from each openning year, and display by the the number of openning year from high to low. | CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE schedule... | SELECT Openning_year, COUNT(Openning_year) FROM cinema GROUP BY Openning_year ORDER BY COUNT(Openning_year) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
814,
41,
3417,
834,
4309,
16,
17,
6,
3,
22557,
834,
77,
834,
10833,
7,
16,
17,
6,
7720,
834,
77,
834,
9476,
16,
17,
6,
11029,
1499,
6,
7143,
15,
26,
834,
969,
1499,
6,
8465,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2384,
29,
53,
834,
1201,
6,
2847,
17161,
599,
22696,
29,
53,
834,
1201,
61,
21680,
10276,
350,
4630,
6880,
272,
476,
2384,
29,
53,
834,
1201,
4674,
11300,
272,
476,
2847,
17161,
599,
22696,
29,
53,
834,
1201,
61,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of phone_number and department_id in a bar chart, and I want to sort from high to low by the Y-axis. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | SELECT PHONE_NUMBER, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY DEPARTMENT_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8023,
7894,
834,
567,
6122,
12920,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
... |
What was the score on a clay surface in a year later than 2006 with David Ferrer as an opponent? | CREATE TABLE table_name_43 (
score VARCHAR,
opponent VARCHAR,
surface VARCHAR,
year VARCHAR
) | SELECT score FROM table_name_43 WHERE surface = "clay" AND year > 2006 AND opponent = "david ferrer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
2604,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
215,
2490,
3581,
3430,
15264,
3274,
96,
26,
9,
6961,
25007,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Name of the power station with a Capacity of 25 MW? | CREATE TABLE table_name_9 (name VARCHAR, capacity__mw_ VARCHAR) | SELECT name FROM table_name_9 WHERE capacity__mw_ = 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
4350,
584,
4280,
28027,
6,
2614,
834,
834,
51,
210,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5570,
13,
8,
579,
2478,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
2614,
834,
834,
51,
210,
834,
3274,
944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many heights are listed for Jesse Holley in the WR position? | CREATE TABLE table_22603701_1 (height VARCHAR, position VARCHAR, name VARCHAR) | SELECT COUNT(height) FROM table_22603701_1 WHERE position = "WR" AND name = "Jesse Holley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
18365,
22520,
536,
834,
536,
41,
88,
2632,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3902,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
88,
2632,
61,
21680,
953,
834,
357,
18365,
22520,
536,
834,
536,
549,
17444,
427,
1102,
3274,
96,
15472,
121,
3430,
564,
3274,
96,
683,
6119,
5838,
1306,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the transfer fee for the country that has the name McCartney listed? | CREATE TABLE table_name_46 (
transfer_fee VARCHAR,
name VARCHAR
) | SELECT transfer_fee FROM table_name_46 WHERE name = "mccartney" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
2025,
834,
89,
15,
15,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2025,
2572,
21,
8,
684,
24,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2025,
834,
89,
15,
15,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
564,
3274,
96,
51,
75,
1720,
17,
3186,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the names and heights of buildings with at least two institutions founded after 1880 Plot them as bar chart, I want to show from high to low by the bar. | CREATE TABLE Institution (
Institution_id text,
Institution text,
Location text,
Founded real,
Type text,
Enrollment int,
Team text,
Primary_Conference text,
building_id text
)
CREATE TABLE building (
building_id text,
Name text,
Street_address text,
Years_as_tallest... | SELECT Name, Height_feet FROM building AS T1 JOIN Institution AS T2 ON T1.building_id = T2.building_id WHERE T2.Founded > 1880 ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14932,
41,
14932,
834,
23,
26,
1499,
6,
14932,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
6632,
1499,
6,
695,
4046,
297,
16,
17,
6,
2271,
1499,
6,
14542,
834,
4302,
11788,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
24231,
834,
89,
15,
15,
17,
21680,
740,
6157,
332,
536,
3,
15355,
3162,
14932,
6157,
332,
357,
9191,
332,
5411,
10905,
834,
23,
26,
3274,
332,
4416,
10905,
834,
23,
26,
549,
17444,
427,
332,
4416,
20100,
... |
What are the names of the songs by the artist whose last name is 'Heilo'? | CREATE TABLE vocals (
songid number,
bandmate number,
type text
)
CREATE TABLE albums (
aid number,
title text,
year number,
label text,
type text
)
CREATE TABLE band (
id number,
firstname text,
lastname text
)
CREATE TABLE instruments (
songid number,
bandmateid ... | SELECT T3.title FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T2.lastname = "Heilo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6721,
7,
41,
2324,
23,
26,
381,
6,
1928,
5058,
381,
6,
686,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14234,
41,
3052,
381,
6,
2233,
1499,
6,
215,
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,
332,
5787,
21869,
21680,
821,
6157,
332,
536,
3,
15355,
3162,
1928,
6157,
332,
357,
9191,
332,
5411,
3348,
5058,
3274,
332,
4416,
23,
26,
3,
15355,
3162,
3605,
6157,
332,
519,
9191,
332,
5787,
7,
2444,
23,
26,
3274,... |
how many episodes originally aired january19,2013 | CREATE TABLE table_30994 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original Air date" text
) | SELECT COUNT("No. in series") FROM table_30994 WHERE "Original Air date" = 'January19,2013' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
3264,
591,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
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,
2847,
17161,
599,
121,
4168,
5,
16,
939,
8512,
21680,
953,
834,
1458,
3264,
591,
549,
17444,
427,
96,
667,
3380,
10270,
1761,
833,
121,
3274,
3,
31,
30404,
2294,
6,
11138,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13? | CREATE TABLE table_name_24 (
title_rank VARCHAR,
series VARCHAR,
character VARCHAR
) | SELECT title_rank FROM table_name_24 WHERE series = "1-8, 13" AND character = "arthur hastings" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
2233,
834,
6254,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
6,
1848,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2233,
11003,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
834,
6254,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
939,
3274,
96,
536,
6039,
6,
1179,
121,
3430,
1848,
3274,
96,
10702,
450,
65,
1222,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the Record at the game that had an attendance of 21,191? | CREATE TABLE table_name_22 (
record VARCHAR,
attendance VARCHAR
) | SELECT record FROM table_name_22 WHERE attendance = "21,191" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
1368,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11392,
44,
8,
467,
24,
141,
46,
11364,
13,
12026,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
11364,
3274,
96,
2658,
6,
2294,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Of the times the Broncos played the Cincinnati Bengals, what was the highest attendance? | CREATE TABLE table_17294353_1 (attendance INTEGER, opponent VARCHAR) | SELECT MAX(attendance) FROM table_17294353_1 WHERE opponent = "Cincinnati Bengals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3166,
4906,
4867,
834,
536,
41,
15116,
663,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1129,
8,
648,
8,
4027,
29,
509,
7,
1944,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
2517,
3166,
4906,
4867,
834,
536,
549,
17444,
427,
15264,
3274,
96,
254,
11542,
29,
18530,
20008,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the international tourist arrivals(2010) where change from 2009 to 2010 is +11.1%? | CREATE TABLE table_14752049_2 (international_tourist_arrivals__2010_ VARCHAR, change__2009_to_2010_ VARCHAR) | SELECT international_tourist_arrivals__2010_ FROM table_14752049_2 WHERE change__2009_to_2010_ = "+11.1%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
25356,
3647,
834,
357,
41,
27817,
834,
17,
1211,
343,
834,
291,
25295,
7,
834,
834,
14926,
834,
584,
4280,
28027,
6,
483,
834,
834,
16660,
834,
235,
834,
14926,
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,
1038,
834,
17,
1211,
343,
834,
291,
25295,
7,
834,
834,
14926,
834,
21680,
953,
834,
24719,
25356,
3647,
834,
357,
549,
17444,
427,
483,
834,
834,
16660,
834,
235,
834,
14926,
834,
3274,
96,
1220,
10032,
4704,
121,
... |
A bar chart shows the distribution of Team_Name and ACC_Percent , and list X in asc order please. | 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 Team_Name, ACC_Percent FROM basketball_match ORDER BY Team_Name | [
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,
2271,
834,
23954,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
2271,
834,
23954,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
who was the umpire when the wc match was 10 | CREATE TABLE table_4281 (
"Umpire" text,
"Country" text,
"Panel" text,
"Matches" real,
"WC Matches" real,
"2011 WC" real
) | SELECT "Umpire" FROM table_4281 WHERE "WC Matches" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
4959,
41,
96,
1265,
1167,
2060,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
345,
152,
15,
40,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
10038,
12296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1265,
1167,
2060,
121,
21680,
953,
834,
4165,
4959,
549,
17444,
427,
96,
10038,
12296,
15,
7,
121,
3274,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What position is the boat with 20.12 LOA (metres)? | CREATE TABLE table_23951 (
"Position" real,
"Race number" text,
"Sail number" text,
"Yacht" text,
"State/country" text,
"Yacht type" text,
"LOA (Metres)" text,
"Skipper" text,
"Elapsed time d:hh:mm:ss" text
) | SELECT MAX("Position") FROM table_23951 WHERE "LOA (Metres)" = '20.12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3301,
536,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
448,
3302,
381,
121,
1499,
6,
96,
134,
9,
173,
381,
121,
1499,
6,
96,
476,
9,
3997,
121,
1499,
6,
96,
134,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
2773,
3301,
536,
549,
17444,
427,
96,
5017,
188,
41,
23351,
60,
7,
61,
121,
3274,
3,
31,
1755,
5,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who built the ship that is 42.8 m long and was delivered in 2007? | CREATE TABLE table_name_83 (builder VARCHAR, length VARCHAR, delivery VARCHAR) | SELECT builder FROM table_name_83 WHERE length = "42.8 m" AND delivery = 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
16422,
49,
584,
4280,
28027,
6,
2475,
584,
4280,
28027,
6,
1929,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
1192,
8,
4383,
24,
19,
314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
49,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
2475,
3274,
96,
591,
19419,
3,
51,
121,
3430,
1929,
3274,
4101,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the final score in Tie #28? | CREATE TABLE table_name_90 (score VARCHAR, tie_no VARCHAR) | SELECT score FROM table_name_90 WHERE tie_no = 28 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
7,
9022,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
804,
2604,
16,
2262,
15,
1713,
2577,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
6177,
834,
29,
32,
3274,
2059,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much is the crowd attending at colonial stadium where Hawthorn plays? | CREATE TABLE table_48035 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_48035 WHERE "Ground" = 'colonial stadium' AND "Home team" = 'hawthorn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20579,
2469,
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,
517,
7775... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
3623,
26,
121,
21680,
953,
834,
20579,
2469,
549,
17444,
427,
96,
517,
7775,
121,
3274,
3,
31,
8135,
7419,
14939,
31,
3430,
96,
19040,
372,
121,
3274,
3,
31,
1024,
210,
17,
6293,
31,
1,
-100,
-100,
-100,
... |
When was the event that had Liberia as an opponent and resulted in a 1-0 score? | CREATE TABLE table_name_75 (date VARCHAR, opponent VARCHAR, score VARCHAR) | SELECT date FROM table_name_75 WHERE opponent = "liberia" AND score = "1-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
605,
24,
141,
12774,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
15264,
3274,
96,
10661,
23,
9,
121,
3430,
2604,
3274,
96,
18930,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
If Adam Voges had less than 28.5 Ovrs, what are his highest Wkts? | CREATE TABLE table_68106 (
"Player" text,
"Wkts" real,
"Runs" real,
"Econ" real,
"Ovrs" real
) | SELECT MAX("Wkts") FROM table_68106 WHERE "Ovrs" < '28.5' AND "Player" = 'adam voges' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
16431,
41,
96,
15800,
49,
121,
1499,
6,
96,
518,
157,
17,
7,
121,
490,
6,
96,
448,
202,
7,
121,
490,
6,
96,
427,
1018,
121,
490,
6,
96,
667,
208,
52,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
518,
157,
17,
7,
8512,
21680,
953,
834,
3651,
16431,
549,
17444,
427,
96,
667,
208,
52,
7,
121,
3,
2,
3,
31,
357,
19253,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
9,
7812,
3,
1621,
2897,
... |
what player is playing on round 1 | CREATE TABLE table_75076 (
"Round" text,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) | SELECT "Player" FROM table_75076 WHERE "Round" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9979,
3959,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
683,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
9979,
3959,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the earliest year that had a Lotus 49B chassis? | CREATE TABLE table_69681 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT MIN("Year") FROM table_69681 WHERE "Chassis" = 'lotus 49b' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3651,
536,
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,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
3951,
3651,
536,
549,
17444,
427,
96,
3541,
6500,
7,
121,
3274,
3,
31,
3171,
302,
9526,
115,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is maximum age of patients whose primary disease is neoplasm of uncertain behavior of other lymphatic and hematopoietic tissues\bone marrow transplant and admission year is greater than or equal to 2146? | 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 MAX(demographic.age) FROM demographic WHERE demographic.diagnosis = "NEOPLASM OF UNCERTAIN BEHAVIOR OF OTHER LYMPHATIC AND HEMATOPOIETIC TISSUES\BONE MARROW TRANSPLANT" AND demographic.admityear >= "2146" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
4171,
4652,
20245,
329,
3347,
4417,
29305,
13570,
6554,
566,
23412,
2990,
3347,
3,
21093,
3,
5121,
5244,
5478... |
What is the episode number of the episode with a production code of 4aky14? | CREATE TABLE table_26825349_1 (no_in_season VARCHAR, production_code VARCHAR) | SELECT no_in_season FROM table_26825349_1 WHERE production_code = "4AKY14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4613,
4867,
3647,
834,
536,
41,
29,
32,
834,
77,
834,
9476,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5640... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
150,
834,
77,
834,
9476,
21680,
953,
834,
2688,
4613,
4867,
3647,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
96,
591,
12396,
476,
2534,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose admission year is less than 2162 and lab test name is mcv? | 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 text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2162" AND lab.label = "MCV" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the record when the method of resolution was KO? | CREATE TABLE table_name_16 (
record VARCHAR,
method VARCHAR
) | SELECT record FROM table_name_16 WHERE method = "ko" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
1368,
584,
4280,
28027,
6,
1573,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
116,
8,
1573,
13,
3161,
47,
3,
12725,
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,
1368,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1573,
3274,
96,
157,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
history of bleeding disorder | CREATE TABLE table_test_27 (
"id" int,
"anemia" bool,
"bleeding" int,
"left_ventricular_ejection_fraction_lvef" int,
"intra_aortic_balloon_pump_iabp" bool,
"systolic_blood_pressure_sbp" int,
"left_main_stem_coronary_artery_stenosis" int,
"haemoglobin" float,
"renal_disease" bool,
... | SELECT * FROM table_test_27 WHERE bleeding = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
2555,
41,
96,
23,
26,
121,
16,
17,
6,
96,
152,
11658,
121,
3,
12840,
40,
6,
96,
27779,
53,
121,
16,
17,
6,
96,
17068,
834,
31695,
834,
15,
21440,
834,
22513,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
4377,
834,
2555,
549,
17444,
427,
19021,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What film did michaylo ilyenko make with best actor in a supporting role? | CREATE TABLE table_10236830_1 (
film_name VARCHAR,
director VARCHAR,
nomination VARCHAR
) | SELECT film_name FROM table_10236830_1 WHERE director = "Michaylo Ilyenko" AND nomination = "Best Actor in a Supporting Role" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2773,
3651,
1458,
834,
536,
41,
814,
834,
4350,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
6,
13588,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
814,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
814,
834,
4350,
21680,
953,
834,
1714,
2773,
3651,
1458,
834,
536,
549,
17444,
427,
2090,
3274,
96,
329,
362,
9,
63,
40,
32,
27,
120,
18994,
121,
3430,
13588,
3274,
96,
17278,
1983,
127,
16,
3,
9,
4224,
53,
2158,
... |
List all headquarters and the number of companies in each headquarter, show in descending by the x axis. | CREATE TABLE gas_station (
Station_ID int,
Open_Year int,
Location text,
Manager_Name text,
Vice_Manager_Name text,
Representative_Name text
)
CREATE TABLE company (
Company_ID int,
Rank int,
Company text,
Headquarters text,
Main_Industry text,
Sales_billion real,
Pr... | SELECT Headquarters, COUNT(*) FROM company GROUP BY Headquarters ORDER BY Headquarters DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1807,
834,
6682,
41,
5939,
834,
4309,
16,
17,
6,
2384,
834,
476,
2741,
16,
17,
6,
10450,
1499,
6,
3440,
834,
23954,
1499,
6,
8236,
834,
27272,
834,
23954,
1499,
6,
13517,
834,
23954,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
31282,
6,
2847,
17161,
599,
1935,
61,
21680,
349,
350,
4630,
6880,
272,
476,
31282,
4674,
11300,
272,
476,
31282,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find All_Neutral and Team_ID , and visualize them by a bar chart, list in ascending by the names. | 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 All_Neutral, Team_ID FROM basketball_match ORDER BY All_Neutral | [
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,
432,
834,
26288,
8792,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
432,
834,
26288,
8792,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the value of D 42 , when the value of D 45 O is d 32 ? | CREATE TABLE table_80438 (
"D 48 +" text,
"D 47 +" text,
"D 46 +" text,
"D 45 O" text,
"D 44 O" text,
"D 43 \u221a" text,
"D 42 \u221a" text,
"D 41 \u221a" text
) | SELECT "D 42 \u221a" FROM table_80438 WHERE "D 45 O" = 'd 32 √' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
591,
3747,
41,
96,
308,
4678,
1768,
121,
1499,
6,
96,
308,
10635,
1768,
121,
1499,
6,
96,
308,
9668,
1768,
121,
1499,
6,
96,
308,
3479,
411,
121,
1499,
6,
96,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6426,
3,
2,
76,
357,
2658,
9,
121,
21680,
953,
834,
2079,
591,
3747,
549,
17444,
427,
96,
308,
3479,
411,
121,
3274,
3,
31,
26,
3538,
3,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many hours have passed since patient 004-79017 stayed in their current hospital encounter in the ward 185 for the last time? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartr... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '004-79017' AND patient.wardid = 185 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
997,
1429,
41,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
3,
5211,
12224,
6431,
834,
382,
15382,
9960,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
20466,
17,
715,
61,
61,
216... |
What was the air date of the episode that has a production code of 5aky13? | CREATE TABLE table_26826304_1 (
original_air_date VARCHAR,
production_code VARCHAR
) | SELECT original_air_date FROM table_26826304_1 WHERE production_code = "5AKY13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3651,
2688,
23702,
834,
536,
41,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
2256,
834,
5522,
21680,
953,
834,
357,
3651,
2688,
23702,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
96,
755,
12396,
476,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the number of patients whose discharge location is long term care hospital and procedure long title is incision of vessel, lower limb arteries? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "LONG TERM CARE HOSPITAL" AND procedures.long_title = "Incision of vessel, lower limb arteries" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What colors does David Langdon use? | CREATE TABLE table_19624708_1 (colours VARCHAR, owner VARCHAR) | SELECT colours FROM table_19624708_1 WHERE owner = "David Langdon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4056,
4177,
4018,
834,
536,
41,
24814,
7,
584,
4280,
28027,
6,
2527,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2602,
405,
1955,
7073,
2029,
169,
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,
0... | [
3,
23143,
14196,
6548,
21680,
953,
834,
2294,
4056,
4177,
4018,
834,
536,
549,
17444,
427,
2527,
3274,
96,
308,
9,
6961,
7073,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
If the college is Trinity, what position is listed? | CREATE TABLE table_name_40 (
position VARCHAR,
college VARCHAR
) | SELECT position FROM table_name_40 WHERE college = "trinity" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1102,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
1900,
19,
20699,
6,
125,
1102,
19,
2616,
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,
1102,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
1900,
3274,
96,
1788,
29,
485,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What party does the incumbent from the Ohio 5 district belong to? | CREATE TABLE table_18553 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Party" FROM table_18553 WHERE "District" = 'Ohio 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
4867,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
63,
121,
21680,
953,
834,
21594,
4867,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
15046,
23,
32,
305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What network hosted Al Michaels, Dan Fouts and Dennis Miller in 2002? | CREATE TABLE table_33469 (
"Year" real,
"Network" text,
"Play-by-play" text,
"Color commentator(s)" text,
"Sideline reporter(s)" text
) | SELECT "Network" FROM table_33469 WHERE "Play-by-play" = 'al michaels' AND "Color commentator(s)" = 'dan fouts and dennis miller' AND "Year" < '2002' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3710,
3951,
41,
96,
476,
2741,
121,
490,
6,
96,
9688,
1981,
121,
1499,
6,
96,
15800,
18,
969,
18,
4895,
121,
1499,
6,
96,
3881,
322,
1670,
1016,
599,
7,
61,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9688,
1981,
121,
21680,
953,
834,
519,
3710,
3951,
549,
17444,
427,
96,
15800,
18,
969,
18,
4895,
121,
3274,
3,
31,
138,
2278,
9,
3573,
31,
3430,
96,
3881,
322,
1670,
1016,
599,
7,
61,
121,
3274,
3,
31,
3768... |
Who did the fastest lap at Watkins glen? | CREATE TABLE table_212 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
) | SELECT "Fastest Lap" FROM table_212 WHERE "Location" = 'Watkins Glen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
41,
96,
448,
727,
121,
490,
6,
96,
448,
3302,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
9,
7,
4377,
325,
102,
121,
21680,
953,
834,
24837,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
518,
144,
7815,
8300,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the least bronze when the nation is soviet union and the total is less than 11? | CREATE TABLE table_63782 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Bronze") FROM table_63782 WHERE "Nation" = 'soviet union' AND "Total" < '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3940,
357,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
3891,
3940,
357,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
7,
9881,
15,
17,
7021,
31,
3430,
96,
3696,
1947,
121,
3,
2,
3,
31,
2596,
31,
1,
-100... |
What is the number of households in the county with median income of $65,240 and population greater than 744,344? | CREATE TABLE table_name_76 (
number_of_households INTEGER,
median_family_income VARCHAR,
population VARCHAR
) | SELECT SUM(number_of_households) FROM table_name_76 WHERE median_family_income = "$65,240" AND population > 744 OFFSET 344 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
381,
834,
858,
834,
1840,
6134,
7,
3,
21342,
17966,
6,
15572,
834,
15474,
834,
15759,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
3,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
5525,
1152,
834,
858,
834,
1840,
6134,
7,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
15572,
834,
15474,
834,
15759,
3274,
96,
3229,
4122,
6,
11944,
121,
3430,
2074,
2490,
489,
3628,
3,
15... |
What year had cargo tonnes of 13 585? | CREATE TABLE table_62559 (
"Year" real,
"Total passengers" text,
"Passenger Change" text,
"Domestic" text,
"International (total)" text,
"International (non-CIS)" text,
"Aircraft Landings" text,
"Cargo (tonnes)" text
) | SELECT AVG("Year") FROM table_62559 WHERE "Cargo (tonnes)" = '13 585' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
1828,
3390,
41,
96,
476,
2741,
121,
490,
6,
96,
3696,
1947,
9234,
121,
1499,
6,
96,
20192,
35,
1304,
5968,
121,
1499,
6,
96,
4135,
2687,
1225,
121,
1499,
6,
96,
2749... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
8512,
21680,
953,
834,
948,
1828,
3390,
549,
17444,
427,
96,
6936,
839,
41,
17,
5993,
7,
61,
121,
3274,
3,
31,
2368,
305,
4433,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total number of interviews where the evening gown number is less than 8.82, the state is Kentucky, and the average is more than 8.85? | CREATE TABLE table_name_64 (
interview INTEGER,
average VARCHAR,
evening_gown VARCHAR,
state VARCHAR
) | SELECT SUM(interview) FROM table_name_64 WHERE evening_gown < 8.82 AND state = "kentucky" AND average > 8.85 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
2772,
3,
21342,
17966,
6,
1348,
584,
4280,
28027,
6,
2272,
834,
122,
9197,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
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,
180,
6122,
599,
3870,
4576,
61,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
2272,
834,
122,
9197,
3,
2,
4848,
4613,
3430,
538,
3274,
96,
2217,
17,
4636,
63,
121,
3430,
1348,
2490,
4848,
4433,
1,
-100,
-100,
... |
What is the sum of the all around with a 37.75 total? | CREATE TABLE table_name_68 (all_around INTEGER, total VARCHAR) | SELECT SUM(all_around) FROM table_name_68 WHERE total = 37.75 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
1748,
834,
15590,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
66,
300,
28,
3,
9,
6862,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1748,
834,
15590,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
792,
3274,
6862,
5,
3072,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the status shared by cities with population bigger than 1500 and smaller than 500. | CREATE TABLE city (
city_id number,
official_name text,
status text,
area_km_2 number,
population number,
census_ranking text
)
CREATE TABLE farm_competition (
competition_id number,
year number,
theme text,
host_city_id number,
hosts text
)
CREATE TABLE competition_record ... | SELECT status FROM city WHERE population > 1500 INTERSECT SELECT status FROM city WHERE population < 500 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
690,
834,
23,
26,
381,
6,
2314,
834,
4350,
1499,
6,
2637,
1499,
6,
616,
834,
5848,
834,
357,
381,
6,
2074,
381,
6,
23087,
834,
6254,
53,
1499,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2637,
21680,
690,
549,
17444,
427,
2074,
2490,
15011,
3,
21342,
5249,
14196,
3,
23143,
14196,
2637,
21680,
690,
549,
17444,
427,
2074,
3,
2,
2899,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where was d: ~50nm, l: ~600nm geometry researched? | CREATE TABLE table_30057479_1 (researched_at VARCHAR, geometry VARCHAR) | SELECT researched_at FROM table_30057479_1 WHERE geometry = "D: ~50nm, L: ~600nm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
3436,
591,
4440,
834,
536,
41,
60,
13173,
15,
26,
834,
144,
584,
4280,
28027,
6,
23898,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
3,
26,
10,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
24172,
834,
144,
21680,
953,
834,
5426,
3436,
591,
4440,
834,
536,
549,
17444,
427,
23898,
3274,
96,
308,
10,
3,
2,
1752,
29,
51,
6,
301,
10,
3,
2,
6007,
29,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Can you tell me the Conference Joined that has the Location of terre haute, and the Mascot of golden bears? | CREATE TABLE table_name_67 (
conference_joined VARCHAR,
location VARCHAR,
mascot VARCHAR
) | SELECT conference_joined FROM table_name_67 WHERE location = "terre haute" AND mascot = "golden bears" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
2542,
834,
1927,
630,
26,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
3,
2754,
4310,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2542,
834,
1927,
630,
26,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1128,
3274,
96,
449,
60,
10797,
121,
3430,
3,
2754,
4310,
3274,
96,
14910,
35,
4595,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me about the distribution of name and meter_100 in a bar chart, show by the X-axis in desc. | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
... | SELECT name, meter_100 FROM swimmer ORDER BY name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
564,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Attendance on November 6, 1960? | CREATE TABLE table_8315 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Attendance" FROM table_8315 WHERE "Date" = 'november 6, 1960' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4591,
1808,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
4591,
1808,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
8580,
8754,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Score that has a Result of 2 1 on 5 july 2007? | CREATE TABLE table_name_47 (
score VARCHAR,
result VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_47 WHERE result = "2–1" AND date = "5 july 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
2604,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
24,
65,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
741,
3274,
96,
357,
104,
536,
121,
3430,
833,
3274,
96,
755,
3,
2047,
120,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which player from the United States is in a place of T2? | CREATE TABLE table_name_49 (player VARCHAR, place VARCHAR, country VARCHAR) | SELECT player FROM table_name_49 WHERE place = "t2" AND country = "united states" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
20846,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
45,
8,
907,
1323,
19,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
286,
3274,
96,
17,
357,
121,
3430,
684,
3274,
96,
15129,
15,
26,
2315,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many extra points catagories are there for the na player? | CREATE TABLE table_25642873_2 (
extra_points VARCHAR,
player VARCHAR
) | SELECT COUNT(extra_points) FROM table_25642873_2 WHERE player = "na" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4389,
2577,
4552,
834,
357,
41,
996,
834,
2700,
7,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
996,
979,
1712,
9,
839... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
25666,
834,
2700,
7,
61,
21680,
953,
834,
1828,
4389,
2577,
4552,
834,
357,
549,
17444,
427,
1959,
3274,
96,
29,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What day did Emerson Fittipaldi win the Spanish Grand Prix? | CREATE TABLE table_name_44 (
date VARCHAR,
winning_driver VARCHAR,
race VARCHAR
) | SELECT date FROM table_name_44 WHERE winning_driver = "emerson fittipaldi" AND race = "spanish grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
833,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
239,
410,
3967,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
15,
5567,
106,
1400,
11537,
138,
26,
23,
121,
3430,
1964,
3274,
96,
7,
2837,
1273,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
... |
How many points have utenis utena as the club, with loses less than 16? | CREATE TABLE table_name_68 (
points INTEGER,
club VARCHAR,
loses VARCHAR
) | SELECT SUM(points) FROM table_name_68 WHERE club = "utenis utena" AND loses > 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
979,
3,
21342,
17966,
6,
1886,
584,
4280,
28027,
6,
2615,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
43,
3,
76,
324,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
1886,
3274,
96,
76,
324,
159,
3,
76,
324,
9,
121,
3430,
2615,
7,
2490,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the average week for attendance of 48,113 | CREATE TABLE table_name_74 (
week INTEGER,
attendance VARCHAR
) | SELECT AVG(week) FROM table_name_74 WHERE attendance = "48,113" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
471,
3,
21342,
17966,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1348,
471,
21,
11364,
13,
4678,
6,
20522,
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,
71,
17217,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
11364,
3274,
96,
3707,
6,
20522,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
find the icu stay id for the patient with patient id 3343. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT prescriptions.icustay_id FROM prescriptions WHERE prescriptions.subject_id = "3343" | [
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,
7744,
7,
5,
23,
1071,
21545,
834,
23,
26,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4201,
4906,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
find the highest support percentage, lowest consider rate and oppose rate of all candidates. | CREATE TABLE candidate (support_rate INTEGER, consider_rate INTEGER, oppose_rate INTEGER) | SELECT MAX(support_rate), MIN(consider_rate), MIN(oppose_rate) FROM candidate | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
20390,
834,
2206,
3,
21342,
17966,
6,
1099,
834,
2206,
3,
21342,
17966,
6,
10720,
15,
834,
2206,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
253,
8,
2030,
380,
5294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
20390,
834,
2206,
201,
3,
17684,
599,
31750,
834,
2206,
201,
3,
17684,
599,
28236,
7,
15,
834,
2206,
61,
21680,
4775,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the name of the episode written by Michael Price? | CREATE TABLE table_2701851_2 (
title VARCHAR,
written_by VARCHAR
) | SELECT title FROM table_2701851_2 WHERE written_by = "Michael Price" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
2606,
5553,
834,
357,
41,
2233,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
5640,
1545,
57,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
17485,
2606,
5553,
834,
357,
549,
17444,
427,
1545,
834,
969,
3274,
96,
329,
362,
9,
15,
40,
5312,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the RAtt in the year 1988? | CREATE TABLE table_name_72 (ratt VARCHAR, year VARCHAR) | SELECT ratt FROM table_name_72 WHERE year = "1988" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
1795,
17,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
4763,
17,
17,
16,
8,
215,
10414,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
1795,
17,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
215,
3274,
96,
2294,
4060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the names and prices of all products in the store? | CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
) | SELECT name, price FROM products | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5360,
41,
1081,
381,
6,
564,
1499,
6,
819,
19973,
1499,
6,
7174,
1499,
6,
3751,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
1081,
381,
6,
564,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
594,
21680,
494,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When 15 is the number overall what is the original air date? | CREATE TABLE table_18335117_3 (original_air_date VARCHAR, no_overall VARCHAR) | SELECT original_air_date FROM table_18335117_3 WHERE no_overall = 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24361,
2469,
20275,
834,
519,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
150,
834,
1890,
1748,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
627,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
834,
5522,
21680,
953,
834,
24361,
2469,
20275,
834,
519,
549,
17444,
427,
150,
834,
1890,
1748,
3274,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
untreated systolic blood pressure > 150 mmhg and diastolic blood pressure > 90 mmhg | CREATE TABLE table_train_158 (
"id" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"moca_score" int,
"diastolic_blood_pressure_dbp" int,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_158 WHERE systolic_blood_pressure_sbp > 150 AND diastolic_blood_pressure_dbp > 90 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
26556,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,
17,
6,
96,
6015,
32,
14063,
77,
834,
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,
1429,
21680,
953,
834,
9719,
834,
26556,
549,
17444,
427,
3,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
2490,
4261,
3430,
1227,
9,
7,
235,
2176,
834,
27798,
834,
26866,
834,
26,
115,
102,
2490,... |
How many goals did the player with 229 club apps have? | CREATE TABLE table_name_69 (goals VARCHAR, club_apps VARCHAR) | SELECT goals FROM table_name_69 WHERE club_apps = "229" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
839,
5405,
584,
4280,
28027,
6,
1886,
834,
3096,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1766,
410,
8,
1959,
28,
204,
3166,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1766,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1886,
834,
3096,
7,
3274,
96,
357,
3166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games? | CREATE TABLE table_name_68 (
year INTEGER,
position VARCHAR,
competition VARCHAR
) | SELECT SUM(year) FROM table_name_68 WHERE position = "6th" AND competition = "commonwealth games" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
215,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
2929,
599,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
1102,
3274,
96,
948,
189,
121,
3430,
2259,
3274,
96,
287,
2157,
1123,
138,
189,
1031,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Fastest Lap, when Winning Team is Team BRM, when Race is 1, when Pole Position is Leanne Tander, and when Circuit is Phillip Island? | CREATE TABLE table_41989 (
"Round" text,
"Race" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text
) | SELECT "Fastest Lap" FROM table_41989 WHERE "Winning team" = 'team brm' AND "Race" = '1' AND "Pole Position" = 'leanne tander' AND "Circuit" = 'phillip island' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2294,
3914,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
448,
3302,
121,
490,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
14258,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
371,
9,
7,
4377,
325,
102,
121,
21680,
953,
834,
591,
2294,
3914,
549,
17444,
427,
96,
518,
10503,
372,
121,
3274,
3,
31,
11650,
6397,
51,
31,
3430,
96,
448,
3302,
121,
3274,
3,
31,
536,
31,
3430,
96,
8931,
... |
Who won at course Forlì to Carpi? | CREATE TABLE table_name_47 (winner VARCHAR, course VARCHAR) | SELECT winner FROM table_name_47 WHERE course = "forlì to carpi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
3757,
687,
584,
4280,
28027,
6,
503,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
44,
503,
242,
40,
2,
12,
1184,
102,
23,
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,
4668,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
503,
3274,
96,
1161,
40,
2,
12,
443,
102,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Time/Retired entry has greater than 51 laps and driver Cristiano da Matta? | CREATE TABLE table_name_79 (
time_retired VARCHAR,
laps VARCHAR,
driver VARCHAR
) | SELECT time_retired FROM table_name_79 WHERE laps > 51 AND driver = "cristiano da matta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2900,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
14941,
7,
2490,
11696,
3430,
2535,
3274,
96,
2685,
7,
17,
20028,
836,
6928,
17,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How tall is the contestant from Honduras? | CREATE TABLE table_20754016_2 (
height__ft_ VARCHAR,
country VARCHAR
) | SELECT height__ft_ FROM table_20754016_2 WHERE country = "Honduras" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
25379,
2938,
834,
357,
41,
3902,
834,
834,
89,
17,
834,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
5065,
19,
8,
4233,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3902,
834,
834,
89,
17,
834,
21680,
953,
834,
26426,
25379,
2938,
834,
357,
549,
17444,
427,
684,
3274,
96,
4489,
727,
2414,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total of tries for a player with conv smaller than 45, 19 starts and pens fewer than 22? | CREATE TABLE table_name_83 (
tries VARCHAR,
pens VARCHAR,
conv VARCHAR,
start VARCHAR
) | SELECT COUNT(tries) FROM table_name_83 WHERE conv < 45 AND start = 19 AND pens < 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
3,
9000,
584,
4280,
28027,
6,
3,
3801,
584,
4280,
28027,
6,
975,
208,
584,
4280,
28027,
6,
456,
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,
2847,
17161,
599,
9000,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
975,
208,
3,
2,
3479,
3430,
456,
3274,
957,
3430,
3,
3801,
3,
2,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the result for arrowhead stadium | CREATE TABLE table_name_45 (result VARCHAR, game_site VARCHAR) | SELECT result FROM table_name_45 WHERE game_site = "arrowhead stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
467,
834,
3585,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
741,
21,
3,
6770,
3313,
14939,
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,
741,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
467,
834,
3585,
3274,
96,
6770,
3313,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
nation to earn the most gold medals after colombia | CREATE TABLE table_204_232 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_232 WHERE "gold" < (SELECT "gold" FROM table_204_232 WHERE "nation" = 'colombia') ORDER BY "gold" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
23188,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
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,
29,
257,
121,
21680,
953,
834,
26363,
834,
23188,
549,
17444,
427,
96,
14910,
121,
3,
2,
41,
23143,
14196,
96,
14910,
121,
21680,
953,
834,
26363,
834,
23188,
549,
17444,
427,
96,
29,
257,
121,
3274,
3,
31,
81... |
What year was the Line of Gardermobanen completed? | CREATE TABLE table_name_20 (year_completed VARCHAR, line VARCHAR) | SELECT year_completed FROM table_name_20 WHERE line = "gardermobanen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
1201,
834,
25288,
26,
584,
4280,
28027,
6,
689,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
8,
4919,
13,
3121,
588,
51,
32,
3478... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
834,
25288,
26,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
689,
3274,
96,
6390,
49,
51,
32,
3478,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Away team has an Away team score of 15.13 (103)? | CREATE TABLE table_51359 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_51359 WHERE "Away team score" = '15.13 (103)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2368,
3390,
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,
121,
21680,
953,
834,
755,
2368,
3390,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
1808,
5,
2368,
11704,
5268,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which location was won by George Heath? | CREATE TABLE table_name_15 (
location VARCHAR,
driver VARCHAR
) | SELECT location FROM table_name_15 WHERE driver = "george heath" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
1128,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1128,
47,
751,
57,
3080,
7862,
107,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
2535,
3274,
96,
397,
1677,
15,
1678,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
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, visualize the relationship between employee_id and commission_pct . | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID ... | SELECT EMPLOYEE_ID, COMMISSION_PCT FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
... |
What was the comment on the Denali area? | CREATE TABLE table_22053 (
"# s Dam and GNIS query Link" real,
"# s Lake and GNIS query Link" real,
"# s Reservoir and GNIS query Link" real,
"Borough or Census area" text,
"Comment" text
) | SELECT "Comment" FROM table_22053 WHERE "Borough or Census area" = 'Denali' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1755,
4867,
41,
96,
4663,
3,
7,
10939,
11,
3,
13738,
4555,
11417,
7505,
121,
490,
6,
96,
4663,
3,
7,
2154,
11,
3,
13738,
4555,
11417,
7505,
121,
490,
6,
96,
4663,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5890,
297,
121,
21680,
953,
834,
357,
1755,
4867,
549,
17444,
427,
96,
279,
32,
13245,
42,
23086,
616,
121,
3274,
3,
31,
308,
35,
4288,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is drug route of drug name voriconazole? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Voriconazole" | [
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,
7744,
7,
5,
20300,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
553,
2057,
1018,
17694,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What pick number was marc deschamps? | CREATE TABLE table_2897457_5 (pick__number VARCHAR, player VARCHAR) | SELECT pick__number FROM table_2897457_5 WHERE player = "Marc Deschamps" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3914,
4581,
3436,
834,
755,
41,
17967,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1432,
381,
47,
14124,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1432,
834,
834,
5525,
1152,
21680,
953,
834,
357,
3914,
4581,
3436,
834,
755,
549,
17444,
427,
1959,
3274,
96,
7286,
75,
374,
860,
4624,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If the security issues is 99-025 and the distribution mechanism is the Microsoft website, what is the release date total number? | CREATE TABLE table_2263152_1 (
release_date VARCHAR,
security_issues VARCHAR,
distribution_mechanism VARCHAR
) | SELECT COUNT(release_date) FROM table_2263152_1 WHERE security_issues = "99-025" AND distribution_mechanism = "Microsoft website" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3891,
26320,
834,
536,
41,
1576,
834,
5522,
584,
4280,
28027,
6,
1034,
834,
13159,
7,
584,
4280,
28027,
6,
3438,
834,
526,
3441,
14378,
584,
4280,
28027,
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,
2847,
17161,
599,
21019,
834,
5522,
61,
21680,
953,
834,
2884,
3891,
26320,
834,
536,
549,
17444,
427,
1034,
834,
13159,
7,
3274,
96,
3264,
18,
4305,
17395,
3430,
3438,
834,
526,
3441,
14378,
3274,
96,
329,
23,
2771,
... |
Name the team for mario somma | CREATE TABLE table_1640 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) | SELECT "Team" FROM table_1640 WHERE "Replaced by" = 'Mario Somma' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2445,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
1649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
2938,
2445,
549,
17444,
427,
96,
1649,
4687,
26,
57,
121,
3274,
3,
31,
329,
14414,
264,
635,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who won the series when the San Francisco Giants lost? | CREATE TABLE table_name_92 (
winning_team VARCHAR,
losing_team VARCHAR
) | SELECT winning_team FROM table_name_92 WHERE losing_team = "san francisco giants" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
3447,
834,
11650,
584,
4280,
28027,
6,
5489,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
8,
939,
116,
8,
1051,
5901,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
834,
11650,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
5489,
834,
11650,
3274,
96,
7,
152,
2515,
11389,
3523,
6079,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For all employees who have the letters D or S in their first name, a line chart shows the change of salary over hire_date, and sort by the x axis in ascending. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
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... | SELECT HIRE_DATE, SALARY FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
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,
454,
14132,
834,
308,
6048,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
134,
1454,
31,
46... |
what is the tournament with the performance in 2010 and 2011 is 1r? | CREATE TABLE table_name_12 (
tournament VARCHAR
) | SELECT tournament FROM table_name_12 WHERE 2010 = "1r" AND 2011 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
5892,
28,
8,
821,
16,
2735,
11,
2722,
19,
209,
52,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
2735,
3274,
96,
536,
52,
121,
3430,
2722,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number of years for talbot-lago t26c and points less than 3 | CREATE TABLE table_name_52 (
year VARCHAR,
chassis VARCHAR,
points VARCHAR
) | SELECT COUNT(year) FROM table_name_52 WHERE chassis = "talbot-lago t26c" AND points < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
215,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
203,
21,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
22836,
3274,
96,
1947,
4045,
18,
5430,
32,
3,
17,
2688,
75,
121,
3430,
979,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What did the home team score at Windy Hill? | CREATE TABLE table_57450 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_57450 WHERE "Venue" = 'windy hill' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
10593,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
3436,
10593,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
5165,
63,
9956,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What instrumental has chven-s as the adverbial? | CREATE TABLE table_50521 (
"Nominative" text,
"Ergative" text,
"Dative" text,
"Genitive" text,
"Instrumental" text,
"Adverbial" text
) | SELECT "Instrumental" FROM table_50521 WHERE "Adverbial" = 'chven-s' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
755,
2658,
41,
96,
4168,
1109,
1528,
121,
1499,
6,
96,
10575,
122,
1528,
121,
1499,
6,
96,
308,
1528,
121,
1499,
6,
96,
13714,
23,
3268,
121,
1499,
6,
96,
1570,
615... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1570,
6159,
13974,
121,
21680,
953,
834,
1752,
755,
2658,
549,
17444,
427,
96,
21021,
49,
15500,
40,
121,
3274,
3,
31,
524,
1926,
18,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Kevin lucas appears in which seasons? | CREATE TABLE table_17675 (
"Character" text,
"Portrayed by" text,
"Main cast seasons" text,
"Recurring cast seasons" text,
"# of episodes" real
) | SELECT "Recurring cast seasons" FROM table_17675 WHERE "Character" = 'Kevin Lucas' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26782,
3072,
41,
96,
18947,
2708,
49,
121,
1499,
6,
96,
14714,
2866,
15,
26,
57,
121,
1499,
6,
96,
21978,
29,
4061,
9385,
121,
1499,
6,
96,
1649,
3663,
1007,
4061,
9385,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
3663,
1007,
4061,
9385,
121,
21680,
953,
834,
26782,
3072,
549,
17444,
427,
96,
18947,
2708,
49,
121,
3274,
3,
31,
439,
15,
2494,
18831,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the Backed after 2008 with a label of Wild World? | CREATE TABLE table_name_24 (backed_with VARCHAR, record_label VARCHAR, date VARCHAR) | SELECT backed_with FROM table_name_24 WHERE record_label = "wild world" AND date > 2008 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
9485,
834,
4065,
584,
4280,
28027,
6,
1368,
834,
40,
10333,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9485,
834,
4065,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
1368,
834,
40,
10333,
3274,
96,
23282,
296,
121,
3430,
833,
2490,
2628,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which institution has an endowment of $25.9m? | CREATE TABLE table_74150 (
"Institution" text,
"Team" text,
"City" text,
"Province" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Endowment" text,
"Football stadium" text,
"Capacity" real
) | SELECT "Institution" FROM table_74150 WHERE "Endowment" = '$25.9M' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
12278,
41,
96,
1570,
17448,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
3174,
2494,
565,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1570,
17448,
121,
21680,
953,
834,
4581,
12278,
549,
17444,
427,
96,
8532,
15198,
297,
121,
3274,
3,
31,
3229,
1828,
5,
1298,
329,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many South Asians on average were in Alberta in 2001 and in 2011 had 159,055? | CREATE TABLE table_name_86 (
south_asians_2001 INTEGER,
province VARCHAR,
south_asians_2011 VARCHAR
) | SELECT AVG(south_asians_2001) FROM table_name_86 WHERE province = "alberta" AND south_asians_2011 > 159 OFFSET 055 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
3414,
834,
9,
7,
7137,
834,
23658,
3,
21342,
17966,
6,
7985,
584,
4280,
28027,
6,
3414,
834,
9,
7,
7137,
834,
13907,
584,
4280,
28027,
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,
71,
17217,
599,
7,
670,
107,
834,
9,
7,
7137,
834,
23658,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
7985,
3274,
96,
138,
7041,
9,
121,
3430,
3414,
834,
9,
7,
7137,
834,
13907,
2490,
3,
27904,
3,
153... |
What is Opponent, when Date is 8 April 1999? | CREATE TABLE table_name_18 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_18 WHERE date = "8 april 1999" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
4495,
9977,
6,
116,
7678,
19,
505,
1186,
5247,
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,
15264,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
833,
3274,
96,
927,
3,
9,
2246,
40,
5247,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name and salary of the instructors who are advisors of any student from History department? | CREATE TABLE student (
id VARCHAR,
dept_name VARCHAR
)
CREATE TABLE advisor (
i_id VARCHAR,
s_id VARCHAR
)
CREATE TABLE instructor (
name VARCHAR,
salary VARCHAR,
id VARCHAR
) | SELECT T2.name, T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
3,
23,
26,
584,
4280,
28027,
6,
20,
102,
17,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8815,
41,
3,
23,
834,
23,
26,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
4350,
6,
332,
4416,
7,
138,
1208,
21680,
8815,
6157,
332,
536,
3,
15355,
3162,
10617,
6157,
332,
357,
9191,
332,
5411,
23,
834,
23,
26,
3274,
332,
4416,
23,
26,
3,
15355,
3162,
1236,
6157,
332,
519,
919... |
What's listed as the Issue Price (BU) [Clarification Needed] with a Mintage (Proof) of 29,586? | CREATE TABLE table_name_57 (
issue_price__bu_ VARCHAR,
_clarification_needed_ VARCHAR,
mintage__proof_ VARCHAR
) | SELECT issue_price__bu_ AS "_clarification_needed_" FROM table_name_57 WHERE mintage__proof_ = "29,586" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
962,
834,
102,
4920,
834,
834,
3007,
834,
584,
4280,
28027,
6,
3,
834,
23982,
2420,
834,
25797,
834,
584,
4280,
28027,
6,
13983,
545,
834,
834,
8592,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
962,
834,
102,
4920,
834,
834,
3007,
834,
6157,
96,
834,
23982,
2420,
834,
25797,
834,
121,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
13983,
545,
834,
834,
8592,
834,
3274,
96,
3166,
6,
755,
3840,
121,
1,
... |
What is the team when the incoming manager is martin allen? | CREATE TABLE table_26914854_3 (
team VARCHAR,
incoming_manager VARCHAR
) | SELECT team FROM table_26914854_3 WHERE incoming_manager = "Martin Allen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4729,
3707,
5062,
834,
519,
41,
372,
584,
4280,
28027,
6,
3,
19583,
834,
24185,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
372,
116,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2688,
4729,
3707,
5062,
834,
519,
549,
17444,
427,
3,
19583,
834,
24185,
3274,
96,
29838,
10618,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose year of death is less than or equal to 2173 and item id is 51082? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2173.0" AND lab.itemid = "51082" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the country of the player moving from belgrano with a summer transfer window? | CREATE TABLE table_50449 (
"Name" text,
"Country" text,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Transfer fee" text
) | SELECT "Country" FROM table_50449 WHERE "Transfer window" = 'summer' AND "Moving from" = 'belgrano' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
591,
3647,
41,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
329,
32,
3745,
45,
121,
1499,
6,
96,
18474,
1010,
2034,
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,
10628,
651,
121,
21680,
953,
834,
1752,
591,
3647,
549,
17444,
427,
96,
18474,
1010,
2034,
121,
3274,
3,
31,
23541,
52,
31,
3430,
96,
329,
32,
3745,
45,
121,
3274,
3,
31,
2370,
7662,
32,
31,
1,
-100,
-100,
-... |
What are the email addresses of teachers whose address has zip code '918'? | CREATE TABLE Addresses (
address_id VARCHAR,
zip_postcode VARCHAR
)
CREATE TABLE Teachers (
email_address VARCHAR,
address_id VARCHAR
) | SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = "918" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
13246,
15,
7,
41,
1115,
834,
23,
26,
584,
4280,
28027,
6,
10658,
834,
5950,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
18991,
41,
791,
834,
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,
332,
4416,
15,
1963,
834,
9,
26,
12039,
21680,
13246,
15,
7,
6157,
332,
536,
3,
15355,
3162,
18991,
6157,
332,
357,
9191,
332,
5411,
9,
26,
12039,
834,
23,
26,
3274,
332,
4416,
9,
26,
12039,
834,
23,
26,
549,
17... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.