NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is TV Time, when Opponent is At Cincinnati Bengals? | CREATE TABLE table_50142 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text,
"Attendance" text
) | SELECT "TV Time" FROM table_50142 WHERE "Opponent" = 'at cincinnati bengals' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
24978,
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,
4562,
2900,
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,
1... | [
3,
23143,
14196,
96,
4562,
2900,
121,
21680,
953,
834,
1752,
24978,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
144,
13935,
29,
18530,
36,
29,
6191,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Fitzroy's score when they were the home team? | CREATE TABLE table_32722 (
"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_32722 WHERE "Home team" = 'fitzroy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2555,
2884,
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,
19040,
372,
2604,
121,
21680,
953,
834,
519,
2555,
2884,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
89,
5615,
8170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Just show the employee's last name and their employee id using a bar chart, list in desc by the Y-axis. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
) | SELECT LAST_NAME, EMPLOYEE_ID FROM employees ORDER BY EMPLOYEE_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
301,
12510,
834,
567,
17683,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
4674,
11300,
272,
476,
262,
5244,
5017,
476,
5080,
834,
4309,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total bronze from Puerto Rico with a total of less than 1? | CREATE TABLE table_name_27 (bronze INTEGER, nation VARCHAR, total VARCHAR) | SELECT SUM(bronze) FROM table_name_27 WHERE nation = "puerto rico" AND total < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
13711,
776,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
13467,
45,
17233,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
2982,
3274,
96,
4987,
49,
235,
3,
2234,
32,
121,
3430,
792,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Drawn, when Lost is 14, and when Bonus Points is 12? | CREATE TABLE table_name_63 (
drawn VARCHAR,
lost VARCHAR,
bonus_points VARCHAR
) | SELECT drawn FROM table_name_63 WHERE lost = "14" AND bonus_points = "12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
6796,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
4023,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
19183,
29,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6796,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
1513,
3274,
96,
2534,
121,
3430,
4023,
834,
2700,
7,
3274,
96,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the number of customers that use email as the contact channel for each weekday Visualize with a bar chart, order from low to high by the Y-axis please. | CREATE TABLE Customer_Addresses (
customer_id INTEGER,
address_id INTEGER,
date_address_from DATETIME,
address_type VARCHAR(15),
date_address_to DATETIME
)
CREATE TABLE Products (
product_id INTEGER,
product_details VARCHAR(255)
)
CREATE TABLE Customers (
customer_id INTEGER,
payment_method VARCHAR(15),
customer_name VARCHAR(80),
date_became_customer DATETIME,
other_customer_details VARCHAR(255)
)
CREATE TABLE Addresses (
address_id INTEGER,
address_content VARCHAR(80),
city VARCHAR(50),
zip_postcode VARCHAR(20),
state_province_county VARCHAR(50),
country VARCHAR(50),
other_address_details VARCHAR(255)
)
CREATE TABLE Customer_Contact_Channels (
customer_id INTEGER,
channel_code VARCHAR(15),
active_from_date DATETIME,
active_to_date DATETIME,
contact_number VARCHAR(50)
)
CREATE TABLE Customer_Orders (
order_id INTEGER,
customer_id INTEGER,
order_status VARCHAR(15),
order_date DATETIME,
order_details VARCHAR(255)
)
CREATE TABLE Order_Items (
order_id INTEGER,
product_id INTEGER,
order_quantity VARCHAR(15)
) | SELECT active_from_date, COUNT(active_from_date) FROM Customers AS t1 JOIN Customer_Contact_Channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email' ORDER BY COUNT(active_from_date) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7327,
834,
20773,
9377,
15,
7,
41,
884,
834,
23,
26,
3,
21342,
17966,
6,
1115,
834,
23,
26,
3,
21342,
17966,
6,
833,
834,
9,
26,
12039,
834,
7152,
309,
6048,
382,
15382,
6,
1115,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1676,
834,
7152,
834,
5522,
6,
2847,
17161,
599,
6645,
834,
7152,
834,
5522,
61,
21680,
16423,
6157,
3,
17,
536,
3,
15355,
3162,
7327,
834,
31691,
834,
3541,
4515,
40,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697... |
What is the value in 2013 when it is 1R in 2007 and 2009? | CREATE TABLE table_name_38 (
Id VARCHAR
) | SELECT 2013 FROM table_name_38 WHERE 2007 = "1r" AND 2009 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
701,
16,
2038,
116,
34,
19,
209,
448,
16,
4101,
11,
2464,
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,
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,
2038,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
4101,
3274,
96,
536,
52,
121,
3430,
2464,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Prize, when Winner is "John Shaw"? | CREATE TABLE table_name_21 (prize VARCHAR, winner VARCHAR) | SELECT prize FROM table_name_21 WHERE winner = "john shaw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
2246,
776,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11329,
6,
116,
18125,
19,
96,
18300,
15333,
121,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6441,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
4668,
3274,
96,
27341,
3,
15622,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show employee_id from each email, display in descending by the names. | 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
) | SELECT EMAIL, EMPLOYEE_ID FROM employees ORDER BY EMAIL 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,
20211,
3502,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
4674,
11300,
272,
476,
3,
20211,
3502,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the intercontinental cup 1999 result of the team who did not qualify for the Copa Libertadores 1999 and made quarterfinals in the Copa Mercosur 1999? | CREATE TABLE table_name_48 (intercontinental_cup_1999 VARCHAR, copa_libertadores_1999 VARCHAR, copa_mercosur_1999 VARCHAR) | SELECT intercontinental_cup_1999 FROM table_name_48 WHERE copa_libertadores_1999 = "did not qualify" AND copa_mercosur_1999 = "quarterfinals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
3870,
27339,
138,
834,
4658,
834,
2294,
3264,
584,
4280,
28027,
6,
7326,
9,
834,
10661,
17,
10097,
7,
834,
2294,
3264,
584,
4280,
28027,
6,
7326,
9,
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,
1413,
27339,
138,
834,
4658,
834,
2294,
3264,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
7326,
9,
834,
10661,
17,
10097,
7,
834,
2294,
3264,
3274,
96,
12416,
59,
9448,
121,
3430,
7326,
9,
834,
935,
509,
3042... |
Who are the foreign players representing Ekaterinburg? | CREATE TABLE table_14015965_1 (foreign_players__max_2_ VARCHAR, town VARCHAR) | SELECT foreign_players__max_2_ FROM table_14015965_1 WHERE town = "Ekaterinburg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
27904,
4122,
834,
536,
41,
1161,
15,
3191,
834,
20846,
7,
834,
834,
9128,
834,
357,
834,
584,
4280,
28027,
6,
1511,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2959,
834,
20846,
7,
834,
834,
9128,
834,
357,
834,
21680,
953,
834,
22012,
27904,
4122,
834,
536,
549,
17444,
427,
1511,
3274,
96,
427,
8682,
6655,
4824,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was Steve Williams in Zurich and his result was 10.07? | CREATE TABLE table_42390 (
"Year" real,
"Result" real,
"World Rank" text,
"Location" text,
"Date" text
) | SELECT "Date" FROM table_42390 WHERE "Location" = 'zurich' AND "Result" = '10.07' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2773,
2394,
41,
96,
476,
2741,
121,
490,
6,
96,
20119,
121,
490,
6,
96,
17954,
3,
22557,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
308,
342,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
591,
2773,
2394,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
1000,
3723,
31,
3430,
96,
20119,
121,
3274,
3,
31,
10415,
4560,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
how many tournaments were attended by the same number of people as uel on the 19th of august ? | CREATE TABLE table_204_971 (
id number,
"m" number,
"date" text,
"tournament" text,
"round" text,
"ground" text,
"opponent" text,
"score" text,
"attendance" number,
"dinamo scorers" text,
"report" text
) | SELECT COUNT("tournament") FROM table_204_971 WHERE "date" <> '19 aug' AND "attendance" = (SELECT "attendance" FROM table_204_971 WHERE "date" = '19 aug') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4327,
536,
41,
3,
23,
26,
381,
6,
96,
51,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
17,
1211,
20205,
17,
121,
1499,
6,
96,
7775,
121,
1499,
6,
96,
9232,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
17,
1211,
20205,
17,
8512,
21680,
953,
834,
26363,
834,
4327,
536,
549,
17444,
427,
96,
5522,
121,
3,
2,
3155,
3,
31,
2294,
185,
122,
31,
3430,
96,
15116,
663,
121,
3274,
41,
23143,
14196,
9... |
what was the number of patients that were discharged from hospital until 2100? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
) | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND STRFTIME('%y', patient.hospitaldischargetime) <= '2100' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
4486,
1868,
5,
31386,
26,
159,
7993,
715,
6827,
13046,
10376,
3430,
3,
13733,
6245,
15382,
599,
31,
1454,
63,
31,
6,
... |
What was the score of the tournament in Wellington? | CREATE TABLE table_name_5 (
score VARCHAR,
tournament VARCHAR
) | SELECT score FROM table_name_5 WHERE tournament = "wellington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
2604,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
5892,
16,
25176,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
5892,
3274,
96,
2091,
6029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who wrote the series number 14? | CREATE TABLE table_22577 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | SELECT "Written by" FROM table_22577 WHERE "No. in series" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
4013,
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,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
324,
57,
121,
21680,
953,
834,
20489,
4013,
549,
17444,
427,
96,
4168,
5,
16,
939,
121,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the name and age for all male people who don't have a wedding. Visualize by pie chart. | CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of text
)
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year int
)
CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Male text,
Age int
) | SELECT Name, Age FROM people WHERE Is_Male = 'T' AND NOT People_ID IN (SELECT Male_ID FROM wedding) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2078,
41,
2345,
834,
4309,
16,
17,
6,
5570,
1499,
6,
18190,
1601,
834,
969,
1499,
6,
2384,
834,
308,
342,
16,
17,
6,
3,
16798,
76,
257,
834,
858,
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,
5570,
6,
7526,
21680,
151,
549,
17444,
427,
27,
7,
834,
329,
9,
109,
3274,
3,
31,
382,
31,
3430,
4486,
2449,
834,
4309,
3388,
41,
23143,
14196,
17830,
834,
4309,
21680,
1683,
61,
1,
-100,
-100,
-100,
-100,
-100,
-... |
On what date did the home team score 22.11 (143)? | CREATE TABLE table_57495 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_57495 WHERE "Home team score" = '22.11 (143)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
591,
3301,
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,
308,
342,
121,
21680,
953,
834,
3436,
591,
3301,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
2884,
5,
2596,
41,
25133,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the date that an away team score 11.22 (88)? | CREATE TABLE table_57405 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_57405 WHERE "Away team score" = '11.22 (88)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
591,
3076,
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,
308,
342,
121,
21680,
953,
834,
3436,
591,
3076,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
10032,
2884,
41,
4060,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the round when they played against Middlesbrough, and the h/a was h? | CREATE TABLE table_44286 (
"Date" text,
"Round" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Attendance" real
) | SELECT "Round" FROM table_44286 WHERE "Opponents" = 'middlesbrough' AND "H / A" = 'h' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
357,
3840,
41,
96,
308,
342,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
566,
3,
87,
71,
121,
1499,
6,
96,
20119,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
1106,
121,
21680,
953,
834,
3628,
357,
3840,
549,
17444,
427,
96,
667,
102,
9977,
7,
121,
3274,
3,
31,
6983,
26,
965,
115,
13245,
31,
3430,
96,
566,
3,
87,
71,
121,
3274,
3,
31,
107,
31,
1,
-100,
... |
What is the maximum and minimum height of all players? | CREATE TABLE Player (
weight INTEGER
) | SELECT MAX(weight), MIN(weight) FROM Player | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12387,
41,
1293,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
11,
2559,
3902,
13,
66,
1508,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9378,
201,
3,
17684,
599,
9378,
61,
21680,
12387,
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,
... |
Which Elevation (m) has a Prominence (m) of 2,876, and a Col (m) larger than 0? | CREATE TABLE table_65639 (
"Peak" text,
"Country" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
) | SELECT SUM("Elevation (m)") FROM table_65639 WHERE "Prominence (m)" = '2,876' AND "Col (m)" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
948,
3288,
41,
96,
345,
15,
1639,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
10912,
257,
41,
51,
61,
121,
490,
6,
96,
3174,
1109,
1433,
41,
51,
61,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
427,
10912,
257,
41,
51,
61,
8512,
21680,
953,
834,
4122,
948,
3288,
549,
17444,
427,
96,
3174,
1109,
1433,
41,
51,
61,
121,
3274,
3,
31,
4482,
927,
3959,
31,
3430,
96,
9939,
41,
51,
61,
121... |
Find the number and time of the train that goes from Chennai to Guruvayur. | CREATE TABLE train (
train_number VARCHAR,
TIME VARCHAR,
origin VARCHAR,
destination VARCHAR
) | SELECT train_number, TIME FROM train WHERE origin = 'Chennai' AND destination = 'Guruvayur' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
41,
2412,
834,
5525,
1152,
584,
4280,
28027,
6,
332,
15382,
584,
4280,
28027,
6,
5233,
584,
4280,
28027,
6,
3954,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2412,
834,
5525,
1152,
6,
332,
15382,
21680,
2412,
549,
17444,
427,
5233,
3274,
3,
31,
3541,
35,
29,
9,
23,
31,
3430,
3954,
3274,
3,
31,
517,
450,
76,
900,
63,
450,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who went to ohio state? | CREATE TABLE table_10730 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "Player" FROM table_10730 WHERE "College" = 'ohio state' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
1458,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
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,
0,
0,
0... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
18057,
1458,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
32,
107,
23,
32,
538,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Tournaments, when Name is "Baruto"? | CREATE TABLE table_name_76 (tournaments INTEGER, name VARCHAR) | SELECT MIN(tournaments) FROM table_name_76 WHERE name = "baruto" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
17,
1211,
29,
9,
4128,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
20502,
7,
6,
116,
5570,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
17,
1211,
29,
9,
4128,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
564,
3274,
96,
1047,
76,
235,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many undergraduates are there in "San Jose State University" in year 2004? | CREATE TABLE discipline_enrollments (undergraduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR) | SELECT SUM(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Jose State University" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7998,
834,
35,
4046,
4128,
41,
7248,
17079,
3,
21342,
17966,
6,
4730,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
25784,
41,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
17,
5411,
7248,
17079,
61,
21680,
7998,
834,
35,
4046,
4128,
6157,
3,
17,
536,
3,
15355,
3162,
25784,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25532,
3274,
3,
17,
4416,
23,
26,
549,
17444,
427,
3,
17... |
How many knots did the Ms Moby Vincent have when passengers was less than 1.6? | CREATE TABLE table_53871 (
"Ship" text,
"Built" real,
"Entered service" real,
"Route" text,
"Gross tonnage" text,
"Length" text,
"Width" text,
"Passengers" real,
"Vessels" real,
"Knots" real
) | SELECT COUNT("Knots") FROM table_53871 WHERE "Ship" = 'ms moby vincent' AND "Passengers" < '1.6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
4225,
536,
41,
96,
134,
10462,
121,
1499,
6,
96,
7793,
173,
17,
121,
490,
6,
96,
16924,
3737,
313,
121,
490,
6,
96,
448,
670,
15,
121,
1499,
6,
96,
517,
1859,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
439,
2264,
7,
8512,
21680,
953,
834,
4867,
4225,
536,
549,
17444,
427,
96,
134,
10462,
121,
3274,
3,
31,
51,
7,
2288,
969,
4671,
3728,
31,
3430,
96,
20192,
4606,
277,
121,
3,
2,
3,
31,
150... |
Tell me the team which has matches of 13 | CREATE TABLE table_name_43 (
team VARCHAR,
matches VARCHAR
) | SELECT team FROM table_name_43 WHERE matches = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
372,
584,
4280,
28027,
6,
6407,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
372,
84,
65,
6407,
13,
1179,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
6407,
3274,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the location/attendance with a 26-11 record? | CREATE TABLE table_name_95 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_name_95 WHERE record = "26-11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
87,
15116,
663,
28,
3,
9,
220... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1368,
3274,
96,
2688,
9169,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients are with self pay insurance and have undergone the procedure open biopsy of soft tissue? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid 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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Self Pay" AND procedures.long_title = "Open biopsy of soft tissue" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Name the kaz hayashi for block A being bushi | CREATE TABLE table_52494 (
"Block A" text,
"BLACK BUSHI" text,
"BUSHI" text,
"Kaz Hayashi" text,
"Kenny Omega" text,
"Minoru" text
) | SELECT "Kaz Hayashi" FROM table_52494 WHERE "Block A" = 'bushi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2266,
4240,
41,
96,
279,
4029,
71,
121,
1499,
6,
96,
8775,
15339,
272,
3063,
7094,
121,
1499,
6,
96,
279,
3063,
7094,
121,
1499,
6,
96,
439,
9,
172,
8567,
17155,
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,
439,
9,
172,
8567,
17155,
121,
21680,
953,
834,
755,
2266,
4240,
549,
17444,
427,
96,
279,
4029,
71,
121,
3274,
3,
31,
3007,
5605,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is NK Rijeka's away score? | CREATE TABLE table_name_75 (
away VARCHAR,
club VARCHAR
) | SELECT away FROM table_name_75 WHERE club = "nk rijeka" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
550,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
17345,
2403,
1924,
1258,
31,
7,
550,
2604,
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,
550,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
1886,
3274,
96,
29,
157,
3,
22276,
15,
1258,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
stated they had visual impairment | CREATE TABLE table_train_257 (
"id" int,
"serum_bicarbonate" int,
"plasma_glucose_concentration" int,
"hemoglobin_a1c_hba1c" float,
"platelets" int,
"visual_impairment" bool,
"NOUSE" float
) | SELECT * FROM table_train_257 WHERE visual_impairment = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
3436,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
49,
440,
834,
115,
23,
17089,
342,
121,
16,
17,
6,
96,
21178,
9,
834,
13492,
509,
7,
15,
834,
11928,
257,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
357,
3436,
549,
17444,
427,
3176,
834,
23,
1167,
2256,
297,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of last_name and department_id , and I want to show in asc by the LAST_NAME. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_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),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
) | SELECT LAST_NAME, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY LAST_NAME | [
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,
301,
12510,
834,
567,
17683,
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,
427,
283,
... |
give me the number of patients whose procedure long title is automatic implantable cardioverter/defibrillator (aicd) check? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Automatic implantable cardioverter/defibrillator (AICD) check" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is orthodoxy when x is wehdat? | CREATE TABLE table_73887 (
"\u00d7" text,
"Faisaly" text,
"Wehdat" text,
"Ramtha" text,
"Ahli" text,
"Jazeera" text,
"Hussein" text,
"Amman" text,
"Orthodoxy" text,
"Jeel" text,
"Ain Karem" text
) | SELECT "Orthodoxy" FROM table_73887 WHERE "\u00d7" = 'Wehdat' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3747,
4225,
41,
96,
2,
76,
1206,
26,
940,
121,
1499,
6,
96,
371,
9,
159,
9,
120,
121,
1499,
6,
96,
1326,
107,
26,
144,
121,
1499,
6,
96,
448,
265,
189,
9,
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,
7395,
189,
32,
26,
9773,
121,
21680,
953,
834,
940,
3747,
4225,
549,
17444,
427,
96,
2,
76,
1206,
26,
940,
121,
3274,
3,
31,
1326,
107,
26,
144,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where is pine valley? | CREATE TABLE table_name_23 (location VARCHAR, name VARCHAR) | SELECT location FROM table_name_23 WHERE name = "pine valley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
14836,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
15178,
10645,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
564,
3274,
96,
3180,
15,
10645,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was Al Michaels' color commentator in 2003? | CREATE TABLE table_name_69 (
color_commentator_s_ VARCHAR,
play_by_play VARCHAR,
year VARCHAR
) | SELECT color_commentator_s_ FROM table_name_69 WHERE play_by_play = "al michaels" AND year > 2003 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
945,
834,
287,
297,
1016,
834,
7,
834,
584,
4280,
28027,
6,
577,
834,
969,
834,
4895,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
945,
834,
287,
297,
1016,
834,
7,
834,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
577,
834,
969,
834,
4895,
3274,
96,
138,
2278,
9,
3573,
121,
3430,
215,
2490,
3888,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of students who participate in the tryout for each college ordered by descending count. Visualize by pie chart. | CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
) | SELECT cName, COUNT(*) FROM Tryout GROUP BY cName ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5263,
670,
41,
3,
102,
4309,
206,
17552,
599,
11116,
632,
201,
3,
75,
23954,
3,
4331,
4059,
599,
1755,
201,
3,
102,
345,
32,
7,
3,
4331,
4059,
28007,
6,
1357,
3,
4331,
4059,
17867,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
75,
23954,
6,
2847,
17161,
599,
1935,
61,
21680,
5263,
670,
350,
4630,
6880,
272,
476,
3,
75,
23954,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the result if Coba is the song choice? | CREATE TABLE table_25262 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Result" FROM table_25262 WHERE "Song choice" = 'Coba' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2688,
357,
41,
96,
518,
10266,
1713,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
7395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
1828,
2688,
357,
549,
17444,
427,
96,
134,
2444,
1160,
121,
3274,
3,
31,
3881,
115,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the least number of goals scored in the play-offs among the players that have scored 2 in the FA Cup? | CREATE TABLE table_name_43 (play_offs INTEGER, fa_cup VARCHAR) | SELECT MIN(play_offs) FROM table_name_43 WHERE fa_cup = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
4895,
834,
1647,
7,
3,
21342,
17966,
6,
3,
89,
9,
834,
4658,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
381,
13,
1766,
579... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
17684,
599,
4895,
834,
1647,
7,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
3,
89,
9,
834,
4658,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the date of vacancy when the date of appointment is 1 january 2009? | CREATE TABLE table_64526 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Date of vacancy" FROM table_64526 WHERE "Date of appointment" = '1 january 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2128,
2688,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
13,
3,
29685,
121,
21680,
953,
834,
948,
2128,
2688,
549,
17444,
427,
96,
308,
342,
13,
4141,
121,
3274,
3,
31,
536,
3,
7066,
76,
1208,
2464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the tournament for patrick rafter winning | CREATE TABLE table_name_3 (tournament VARCHAR, winner VARCHAR) | SELECT tournament FROM table_name_3 WHERE winner = "patrick rafter" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5892,
21,
6234,
5206,
3,
52,
10245,
3447,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
4668,
3274,
96,
4665,
5206,
3,
52,
10245,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the score for the loss of McDowell (12-7)? | CREATE TABLE table_70485 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Score" FROM table_70485 WHERE "Loss" = 'mcdowell (12-7)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
591,
4433,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
2518,
591,
4433,
549,
17444,
427,
96,
434,
32,
7,
7,
121,
3274,
3,
31,
51,
75,
26,
32,
2091,
16465,
18,
12703,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many total points were earned with ferrari 125 Chassis after 1952? | CREATE TABLE table_name_77 (
points INTEGER,
chassis VARCHAR,
year VARCHAR
) | SELECT SUM(points) FROM table_name_77 WHERE chassis = "ferrari 125" AND year > 1952 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
979,
3,
21342,
17966,
6,
22836,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
979,
130,
4964,
28,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
22836,
3274,
96,
1010,
52,
1665,
3,
10124,
121,
3430,
215,
2490,
23744,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the drug type of patient name stephanie suchan? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT prescriptions.drug_type FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Stephanie Suchan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7744,
7,
5,
26,
13534,
834,
6137,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
14... |
What was the date of the game in which the home team was the Grizzlies and the visiting team was the Timberwolves? | CREATE TABLE table_name_7 (date VARCHAR, home VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_7 WHERE home = "grizzlies" AND visitor = "timberwolves" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
5522,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
16,
84,
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,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
234,
3274,
96,
3496,
5271,
4664,
121,
3430,
7019,
3274,
96,
2998,
1152,
29219,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the away team when the score was 3:1? | CREATE TABLE table_name_93 (
away VARCHAR,
score VARCHAR
) | SELECT away FROM table_name_93 WHERE score = "3:1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
550,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
550,
372,
116,
8,
2604,
47,
29760,
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,
550,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
2604,
3274,
96,
519,
10,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many months did operation maritime monitor last ? | CREATE TABLE table_204_313 (
id number,
"date" text,
"operation" text,
"location" text,
"type" text,
"information" text
) | SELECT "date" - "date" FROM table_204_313 WHERE "operation" = 'operation maritime monitor' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
2368,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
22280,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
6391,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
5522,
121,
3,
18,
96,
5522,
121,
21680,
953,
834,
26363,
834,
519,
2368,
549,
17444,
427,
96,
22280,
121,
3274,
3,
31,
22280,
20141,
3393,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the theme for week 3? | CREATE TABLE table_5830 (
"Week" text,
"Song choice" text,
"Theme" text,
"Performance Order" text,
"Result" text
) | SELECT "Theme" FROM table_5830 WHERE "Week" = 'week 3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
1458,
41,
96,
518,
10266,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
12988,
2032,
663,
5197,
121,
1499,
6,
96,
20119,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
634,
526,
121,
21680,
953,
834,
3449,
1458,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
8041,
220,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What opponent had an attendance of 63,659? | CREATE TABLE table_name_78 (
opponent_number VARCHAR,
attendance VARCHAR
) | SELECT opponent_number FROM table_name_78 WHERE attendance = "63,659" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
15264,
834,
5525,
1152,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
15264,
141,
46,
11364,
13,
3,
3891,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
11364,
3274,
96,
3891,
6,
948,
3390,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the hometown of the players from alvin high school? | CREATE TABLE table_22496374_1 (home_town VARCHAR, high_school VARCHAR) | SELECT home_town FROM table_22496374_1 WHERE high_school = "Alvin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3647,
3891,
4581,
834,
536,
41,
5515,
834,
3540,
584,
4280,
28027,
6,
306,
834,
6646,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22295,
13,
8,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
3540,
21680,
953,
834,
2884,
3647,
3891,
4581,
834,
536,
549,
17444,
427,
306,
834,
6646,
3274,
96,
188,
40,
2494,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the surface of the palermo, italy championship? | CREATE TABLE table_name_61 (
surface VARCHAR,
championship VARCHAR
) | SELECT surface FROM table_name_61 WHERE championship = "palermo, italy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
1774,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1774,
13,
8,
7692,
49,
51,
32,
6,
34,
9,
120,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1774,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
10183,
3274,
96,
6459,
49,
51,
32,
6,
34,
9,
120,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the number of coach for full episode deshunae is made into a volleyball player. | CREATE TABLE table_24332 (
"Season" real,
"Episode" real,
"Episode Summary" text,
"Premier date" text,
"External Link" text,
"Coach" text
) | SELECT COUNT("Coach") FROM table_24332 WHERE "External Link" = 'Full Episode' AND "Episode Summary" = 'Deshunae is made into a volleyball player.' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27730,
2668,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
427,
102,
159,
32,
221,
20698,
121,
1499,
6,
96,
10572,
51,
972,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3881,
1836,
8512,
21680,
953,
834,
27730,
2668,
549,
17444,
427,
96,
5420,
2947,
138,
7505,
121,
3274,
3,
31,
371,
83,
40,
16112,
31,
3430,
96,
427,
102,
159,
32,
221,
20698,
121,
3274,
3,
3... |
Find the number of dorms that have some amenity. | CREATE TABLE has_amenity (
dormid VARCHAR
) | SELECT COUNT(DISTINCT dormid) FROM has_amenity | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
65,
834,
9,
904,
485,
41,
103,
52,
6983,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
381,
13,
103,
52,
51,
7,
24,
43,
128,
183,
35,
485,
5,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
103,
52,
6983,
61,
21680,
65,
834,
9,
904,
485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the date that the st. george-illawarra dragons lost? | CREATE TABLE table_11236195_5 (grand_finaldate VARCHAR, losingteam VARCHAR) | SELECT grand_finaldate FROM table_11236195_5 WHERE losingteam = "St. George-Illawarra Dragons" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
357,
3420,
22464,
834,
755,
41,
15448,
834,
12406,
5522,
584,
4280,
28027,
6,
5489,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
24,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1907,
834,
12406,
5522,
21680,
953,
834,
2596,
357,
3420,
22464,
834,
755,
549,
17444,
427,
5489,
11650,
3274,
96,
134,
17,
5,
3080,
18,
196,
40,
4207,
10116,
10282,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many titles have the product number SCUS-97330? | CREATE TABLE table_10875694_11 (title VARCHAR, product_no VARCHAR) | SELECT COUNT(title) FROM table_10875694_11 WHERE product_no = "SCUS-97330" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
3072,
3951,
591,
834,
2596,
41,
21869,
584,
4280,
28027,
6,
556,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8342,
43,
8,
556,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
21869,
61,
21680,
953,
834,
16169,
3072,
3951,
591,
834,
2596,
549,
17444,
427,
556,
834,
29,
32,
3274,
96,
4112,
3063,
18,
4327,
17225,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year did Orlando have a School/Club team in Clemson? | CREATE TABLE table_name_53 (years_in_orlando VARCHAR, school_club_team VARCHAR) | SELECT years_in_orlando FROM table_name_53 WHERE school_club_team = "clemson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
1201,
7,
834,
77,
834,
32,
7721,
32,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
77,
834,
32,
7721,
32,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
2482,
51,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the venue when the year is after 2001 for the summer olympics? | CREATE TABLE table_71336 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | SELECT "Venue" FROM table_71336 WHERE "Year" > '2001' AND "Competition" = 'summer olympics' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
519,
3420,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
10358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
4450,
519,
3420,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
23658,
31,
3430,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
23541,
52,
3,
32,
120,
51,
6174,
7,
31,
1,... |
What is John Flatters' nationality? | CREATE TABLE table_name_10 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_10 WHERE player = "john flatters" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
16557,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1079,
13109,
4849,
31,
1157,
485,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
1959,
3274,
96,
27341,
25888,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What batting partners were the most successful in 2004? | CREATE TABLE table_1670921_2 (batting_partners VARCHAR, season VARCHAR) | SELECT batting_partners FROM table_1670921_2 WHERE season = "2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27650,
4198,
2658,
834,
357,
41,
27759,
834,
12300,
7,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
27759,
3222,
130,
8,
167,
1574,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
27759,
834,
12300,
7,
21680,
953,
834,
27650,
4198,
2658,
834,
357,
549,
17444,
427,
774,
3274,
96,
21653,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many times did incumbent ruben hinojosa get elected? | CREATE TABLE table_72366 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) | SELECT COUNT("Results") FROM table_72366 WHERE "Incumbent" = 'Ruben Hinojosa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2773,
3539,
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,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
20119,
7,
8512,
21680,
953,
834,
940,
2773,
3539,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
448,
15804,
9515,
32,
1927,
7,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what was the only yacht owned by clapp ? | CREATE TABLE table_204_781 (
id number,
"name(s)" text,
"yard no." number,
"type (as built)" text,
"owner" text,
"imo number" number,
"laid down" text,
"launched" text,
"delivered/\ncommissioned" text,
"fate/\ndecommissioned" text,
"notes" text
) | SELECT "name(s)" FROM table_204_781 WHERE "owner" = 'clapp' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3940,
536,
41,
3,
23,
26,
381,
6,
96,
4350,
599,
7,
61,
121,
1499,
6,
96,
6636,
150,
535,
381,
6,
96,
6137,
41,
9,
7,
1192,
61,
121,
1499,
6,
96,
13238,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
599,
7,
61,
121,
21680,
953,
834,
26363,
834,
3940,
536,
549,
17444,
427,
96,
13238,
121,
3274,
3,
31,
4651,
1572,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average capacity for 150 suites? | CREATE TABLE table_70089 (
"Project" text,
"Year" text,
"Location" text,
"Capacity" real,
"Suites" text,
"Architect" text,
"Cost" text
) | SELECT AVG("Capacity") FROM table_70089 WHERE "Suites" = '150' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9295,
3914,
41,
96,
3174,
11827,
121,
1499,
6,
96,
476,
2741,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
19566,
9,
6726,
121,
490,
6,
96,
134,
8431,
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,
71,
17217,
599,
121,
19566,
9,
6726,
8512,
21680,
953,
834,
9295,
3914,
549,
17444,
427,
96,
134,
8431,
7,
121,
3274,
3,
31,
12278,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the away team that played at Princes Park? | CREATE TABLE table_32842 (
"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_32842 WHERE "Venue" = 'princes park' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28070,
4165,
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,
188,
1343,
372,
121,
21680,
953,
834,
28070,
4165,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
12298,
2319,
2447,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the nickerie for marowijne being 4.7% | CREATE TABLE table_21148 (
"Religion" text,
"Suriname" text,
"Paramaribo" text,
"Wanica" text,
"Nickerie" text,
"Coronie" text,
"Saramacca" text,
"Commewijne" text,
"Marowijne" text,
"Para" text,
"Brokopondo" text,
"Sipaliwini" text
) | SELECT COUNT("Nickerie") FROM table_21148 WHERE "Marowijne" = '4.7%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
24748,
41,
96,
1649,
2825,
23,
106,
121,
1499,
6,
96,
134,
459,
4350,
121,
1499,
6,
96,
13212,
265,
9,
6520,
32,
121,
1499,
6,
96,
518,
9,
12878,
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,
567,
3142,
4074,
8512,
21680,
953,
834,
2658,
24748,
549,
17444,
427,
96,
7286,
2381,
28469,
15,
121,
3274,
3,
31,
7984,
6170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A bar chart for what are the number of the names of photos taken with the lens brand 'Sigma' or 'Olympus'?, list in asc by the x-axis. | CREATE TABLE mountain (
id int,
name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE photos (
id int,
camera_lens_id int,
mountain_id int,
color text,
name text
)
CREATE TABLE camera_lens (
id int,
brand text,
name text,
focal_length_mm real,
max_aperture real
) | SELECT T1.name, COUNT(T1.name) FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' OR T1.brand = 'Olympus' GROUP BY T1.name ORDER BY T1.name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4180,
41,
3,
23,
26,
16,
17,
6,
564,
1499,
6,
24231,
490,
6,
749,
1109,
1433,
490,
6,
10971,
1499,
6,
6993,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
6,
2847,
17161,
599,
382,
5411,
4350,
61,
21680,
1861,
834,
40,
35,
7,
6157,
332,
536,
3,
15355,
3162,
1302,
6157,
332,
357,
9191,
332,
4416,
6527,
1498,
834,
40,
35,
7,
834,
23,
26,
3274,
332,
... |
What is the maximum money list rank for Matt Hansen? | CREATE TABLE table_24747844_2 (money_list_rank INTEGER, player VARCHAR) | SELECT MAX(money_list_rank) FROM table_24747844_2 WHERE player = "Matt Hansen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4581,
3940,
3628,
834,
357,
41,
28442,
834,
3350,
834,
6254,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
540,
570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
28442,
834,
3350,
834,
6254,
61,
21680,
953,
834,
2266,
4581,
3940,
3628,
834,
357,
549,
17444,
427,
1959,
3274,
96,
329,
144,
17,
10001,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the distinct last names of the students who have class president votes. | CREATE TABLE VOTING_RECORD (
CLASS_President_VOTE VARCHAR
)
CREATE TABLE STUDENT (
LName VARCHAR,
StuID VARCHAR
) | SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8040,
21089,
834,
20921,
18400,
41,
3,
31598,
834,
345,
15704,
834,
8040,
3463,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5097,
10161,
6431,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
434,
23954,
21680,
5097,
10161,
6431,
6157,
332,
536,
3,
15355,
3162,
3,
8040,
21089,
834,
20921,
18400,
6157,
332,
357,
9191,
332,
5411,
13076,
4309,
3274,
332,
4416,
31598,
834,
345,
... |
What is Hungary's time with a heat higher than 2 and two lanes? | CREATE TABLE table_name_45 (time VARCHAR, lane VARCHAR, heat VARCHAR, nationality VARCHAR) | SELECT time FROM table_name_45 WHERE heat > 2 AND nationality = "hungary" AND lane = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
715,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
6,
1678,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1678,
2490,
204,
3430,
1157,
485,
3274,
96,
6668,
1208,
121,
3430,
3,
8102,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which place has a home team score of 18.19 (127)? | CREATE TABLE table_56265 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_56265 WHERE "Home team score" = '18.19 (127)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
357,
4122,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
4834,
357,
4122,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
2606,
5,
2294,
16465,
12703,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose death status is 0 and diagnoses short title is obesity nos? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "0" AND diagnoses.short_title = "Obesity NOS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which player has 0 goals, 1 tries, 4 points, and plays in the Prop position? | CREATE TABLE table_name_19 (player VARCHAR, position VARCHAR, points VARCHAR, goals VARCHAR, tries VARCHAR) | SELECT player FROM table_name_19 WHERE goals = 0 AND tries = 1 AND points = 4 AND position = "prop" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
20846,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
6,
3,
9000,
584,
4280,
28027,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1766,
3274,
3,
632,
3430,
3,
9000,
3274,
209,
3430,
979,
3274,
314,
3430,
1102,
3274,
96,
10401,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the original title of the Bruno Barreto film in 1989 | CREATE TABLE table_19964 (
"Year (Ceremony)" real,
"Original title" text,
"English title" text,
"Director" text,
"Result" text
) | SELECT "Original title" FROM table_19964 WHERE "Director" = 'Bruno Barreto' AND "Year (Ceremony)" = '1989' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19479,
4389,
41,
96,
476,
2741,
41,
254,
49,
15,
21208,
61,
121,
490,
6,
96,
667,
3380,
10270,
2233,
121,
1499,
6,
96,
26749,
2233,
121,
1499,
6,
96,
23620,
127,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
2233,
121,
21680,
953,
834,
19479,
4389,
549,
17444,
427,
96,
23620,
127,
121,
3274,
3,
31,
9465,
29,
32,
1386,
60,
235,
31,
3430,
96,
476,
2741,
41,
254,
49,
15,
21208,
61,
121,
3274,
3,
3... |
How many people played at the club that had a 'goal difference' of -8 and a position lower than 12? | CREATE TABLE table_name_80 (
played INTEGER,
goal_difference VARCHAR,
position VARCHAR
) | SELECT SUM(played) FROM table_name_80 WHERE goal_difference = -8 AND position < 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
1944,
3,
21342,
17966,
6,
1288,
834,
26,
99,
11788,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1288,
834,
26,
99,
11788,
3274,
3,
6039,
3430,
1102,
3,
2,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Rank has a gold smaller than 1, and a silver larger than 0? | CREATE TABLE table_name_25 (rank VARCHAR, gold VARCHAR, silver VARCHAR) | SELECT rank FROM table_name_25 WHERE gold < 1 AND silver > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
6254,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
22557,
65,
3,
9,
2045,
2755,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11003,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
2045,
3,
2,
209,
3430,
4294,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Where was the tournament won by Hale Irwin (19)? | CREATE TABLE table_name_93 (
location VARCHAR,
winner VARCHAR
) | SELECT location FROM table_name_93 WHERE winner = "hale irwin (19)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
1128,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
5892,
751,
57,
5648,
15,
27,
52,
3757,
2863,
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,
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,
4271,
549,
17444,
427,
4668,
3274,
96,
3828,
15,
3,
23,
52,
3757,
2863,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
I want to know the proportion of the total number for each venue. | CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
) | SELECT Venue, COUNT(Venue) FROM workshop GROUP BY Venue | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4786,
41,
9644,
834,
4309,
16,
17,
6,
7678,
1499,
6,
29940,
1499,
6,
5570,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8121,
41,
29779,
834,
4309,
16,
17,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
29940,
6,
2847,
17161,
599,
553,
35,
76,
15,
61,
21680,
4786,
350,
4630,
6880,
272,
476,
29940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many people attended the harlequins rl vs hull game ? | CREATE TABLE table_203_256 (
id number,
"rd" number,
"home team" text,
"score" text,
"away team" text,
"result (w/d/l)" text,
"attendance" number
) | SELECT "attendance" FROM table_203_256 WHERE "home team" = 'hull' AND "away team" = 'harlequins rl' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
19337,
41,
3,
23,
26,
381,
6,
96,
52,
26,
121,
381,
6,
96,
5515,
372,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
8006,
372,
121,
1499,
6,
96,
60,
7,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15116,
663,
121,
21680,
953,
834,
23330,
834,
19337,
549,
17444,
427,
96,
5515,
372,
121,
3274,
3,
31,
22699,
31,
3430,
96,
8006,
372,
121,
3274,
3,
31,
3272,
109,
1169,
29,
7,
3,
52,
40,
31,
1,
-100,
-100,
... |
Give me the comparison about Team_ID over the ACC_Regular_Season by a bar chart. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT ACC_Regular_Season, Team_ID FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What student won 3rd with Peter Agre as Chief Judge? | CREATE TABLE table_name_78 (
name VARCHAR,
chief_judge VARCHAR,
award VARCHAR
) | SELECT name FROM table_name_78 WHERE chief_judge = "peter agre" AND award = "3rd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
564,
584,
4280,
28027,
6,
5752,
834,
354,
13164,
584,
4280,
28027,
6,
2760,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1236,
751,
220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
5752,
834,
354,
13164,
3274,
96,
4995,
49,
3,
9,
3584,
121,
3430,
2760,
3274,
96,
519,
52,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date for circuit of interlagos | CREATE TABLE table_56890 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) | SELECT "Date" FROM table_56890 WHERE "Circuit" = 'interlagos' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3651,
2394,
41,
96,
448,
3302,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
371,
9,
7,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
755,
3651,
2394,
549,
17444,
427,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
3870,
5430,
32,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the centerfold model when interview subject is steve jobs | CREATE TABLE table_1566848_6 (
centerfold_model VARCHAR,
interview_subject VARCHAR
) | SELECT centerfold_model FROM table_1566848_6 WHERE interview_subject = "Steve Jobs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
3651,
3707,
834,
948,
41,
1530,
10533,
834,
21770,
584,
4280,
28027,
6,
2772,
834,
7304,
11827,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1530,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1530,
10533,
834,
21770,
21680,
953,
834,
25463,
3651,
3707,
834,
948,
549,
17444,
427,
2772,
834,
7304,
11827,
3274,
96,
14337,
162,
15106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and manufacturer , and group by attribute name, rank by the bar from low to high please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
7296,
76,
8717,
450,
49,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,... |
For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of job_id and the amount of job_id , and group by attribute job_id, order by the total number in asc. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
) | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY COUNT(JOB_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
2847,
17161,
599,
15355,
279,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
350,
4630,
6880,
272,
476,
446,
10539,
834,
... |
Who is listed under general classification on stage 4? | CREATE TABLE table_27112708_2 (
general_classification VARCHAR,
stage VARCHAR
) | SELECT general_classification FROM table_27112708_2 WHERE stage = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2596,
2555,
4018,
834,
357,
41,
879,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
2616,
365,
879,
13774... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
879,
834,
4057,
2420,
21680,
953,
834,
2555,
2596,
2555,
4018,
834,
357,
549,
17444,
427,
1726,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the release date record on 10/29/76 and a time on 2:50 | CREATE TABLE table_name_45 (release_date VARCHAR, time VARCHAR, recorded VARCHAR) | SELECT release_date FROM table_name_45 WHERE time = "2:50" AND recorded = "10/29/76" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
21019,
834,
5522,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
6,
4381,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1576,
833,
1368,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
97,
3274,
96,
357,
10,
1752,
121,
3430,
4381,
3274,
96,
1714,
87,
3166,
87,
3959,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the venue for the event on 12 November 2005? | CREATE TABLE table_74633 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Venue" FROM table_74633 WHERE "Date" = '12 november 2005' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
3891,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
4581,
3891,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2122,
3,
5326,
18247,
3105,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many Heats have a Name of miguel molina? | CREATE TABLE table_name_39 (
heat VARCHAR,
name VARCHAR
) | SELECT COUNT(heat) FROM table_name_39 WHERE name = "miguel molina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
1678,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7862,
7,
43,
3,
9,
5570,
13,
3,
51,
15795,
40,
2288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
88,
144,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
564,
3274,
96,
51,
15795,
40,
2288,
8280,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Top that has a 66-71-66=203 score and a place of t1? | CREATE TABLE table_name_23 (to_par VARCHAR, place VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_23 WHERE place = "t1" AND score = 66 - 71 - 66 = 203 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
235,
834,
1893,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2224,
24,
65,
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,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
286,
3274,
96,
17,
536,
121,
3430,
2604,
3274,
3,
3539,
3,
18,
3,
4450,
3,
18,
3,
3539,
3274,
3,
23330,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the record after the game against the St. Louis Cardinals? | CREATE TABLE table_name_15 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_15 WHERE opponent = "st. louis cardinals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
60,
7621,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
227,
8,
467,
581,
8,
472,
5,
5181,
21967,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
15264,
3274,
96,
7,
17,
5,
16585,
159,
895,
10270,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose age is less than 72 and year of death is less than or equal to 2168? | 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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "72" AND demographic.dod_year <= "2168.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
545,
3,
2,
96,
5865,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,
2423,
96,
27184,
27376,... |
What's the GPU frequency that has ultra-low power in cores? | CREATE TABLE table_13572 (
"Model number" text,
"sSpec number" text,
"Cores" text,
"Frequency" text,
"Turbo" text,
"L2 cache" text,
"L3 cache" text,
"GPU model" text,
"GPU frequency" text,
"Socket" text,
"I/O bus" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
) | SELECT "GPU frequency" FROM table_13572 WHERE "Cores" = 'ultra-low power' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3436,
357,
41,
96,
24663,
381,
121,
1499,
6,
96,
7,
7727,
381,
121,
1499,
6,
96,
254,
14846,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
382,
450,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
517,
10744,
7321,
121,
21680,
953,
834,
2368,
3436,
357,
549,
17444,
427,
96,
254,
14846,
121,
3274,
3,
31,
83,
1313,
18,
3216,
579,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which laps has a grid of 8? | CREATE TABLE table_name_25 (
laps VARCHAR,
grid VARCHAR
) | SELECT laps FROM table_name_25 WHERE grid = "8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
14941,
7,
65,
3,
9,
8634,
13,
505,
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,
14941,
7,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
8634,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which letter has an operator of the Defense Information Systems Agency? | CREATE TABLE table_name_32 (
letter VARCHAR,
operator VARCHAR
) | SELECT letter FROM table_name_32 WHERE operator = "defense information systems agency" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
2068,
584,
4280,
28027,
6,
7221,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2068,
65,
46,
7221,
13,
8,
13143,
2784,
5479,
7038,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2068,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
7221,
3274,
96,
31749,
251,
1002,
3193,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the stage with a point classification of Silvio Martinello and Davide Rebellin as the general classification? | CREATE TABLE table_name_56 (stage VARCHAR, points_classification VARCHAR, general_classification VARCHAR) | SELECT stage FROM table_name_56 WHERE points_classification = "silvio martinello" AND general_classification = "davide rebellin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
10705,
584,
4280,
28027,
6,
979,
834,
4057,
2420,
584,
4280,
28027,
6,
879,
834,
4057,
2420,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1726,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
979,
834,
4057,
2420,
3274,
96,
7,
173,
2099,
32,
3157,
17,
77,
7126,
121,
3430,
879,
834,
4057,
2420,
3274,
96,
26,
2960,
221,
16054,
40,
77,
121,
1,
-100,... |
What player scored 73-68-66=207? | CREATE TABLE table_60395 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Player" FROM table_60395 WHERE "Score" = '73-68-66=207' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
519,
3301,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15800,
49,
121,
21680,
953,
834,
3328,
519,
3301,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
4552,
18,
3651,
18,
3539,
2423,
26426,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Score, when Competition is "Euro 2004 Qualifier"? | CREATE TABLE table_name_73 (score VARCHAR, competition VARCHAR) | SELECT score FROM table_name_73 WHERE competition = "euro 2004 qualifier" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
7,
9022,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17763,
6,
116,
15571,
19,
96,
25670,
4406,
2415,
138,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
2259,
3274,
96,
1238,
32,
4406,
10597,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the guest 1 in the episode where guest 4 is Jill Douglas? | CREATE TABLE table_20466963_4 (
guest_1 VARCHAR,
guest_4 VARCHAR
) | SELECT guest_1 FROM table_20466963_4 WHERE guest_4 = "Jill Douglas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4448,
3951,
3891,
834,
591,
41,
3886,
834,
536,
584,
4280,
28027,
6,
3886,
834,
591,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
3886,
209,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3886,
834,
536,
21680,
953,
834,
1755,
4448,
3951,
3891,
834,
591,
549,
17444,
427,
3886,
834,
591,
3274,
96,
683,
1092,
14154,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who owned winner Blueeyesintherein after 2009? | CREATE TABLE table_71918 (
"Year" real,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Time" text
) | SELECT "Owner" FROM table_71918 WHERE "Year" > '2009' AND "Winner" = 'blueeyesintherein' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2294,
2606,
41,
96,
476,
2741,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
9402,
4899,
121,
1499,
6,
96,
667,
210,
687,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
210,
687,
121,
21680,
953,
834,
940,
2294,
2606,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
16660,
31,
3430,
96,
18455,
687,
121,
3274,
3,
31,
7060,
15,
13370,
7,
77,
12137,
77,
31,
1,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.