NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the Career SR of the year that held the masters series Sr tournament | CREATE TABLE table_name_62 (
career_sr VARCHAR,
tournament VARCHAR
) | SELECT career_sr FROM table_name_62 WHERE tournament = "masters series sr" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
1415,
834,
7,
52,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
15151,
3,
6857,
13,
8,
215,
24,
1213... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1415,
834,
7,
52,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
5892,
3274,
96,
7429,
7,
939,
3,
7,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the station name with greatest number of trains. | CREATE TABLE train_station (
train_id number,
station_id number
)
CREATE TABLE station (
station_id number,
name text,
annual_entry_exit number,
annual_interchanges number,
total_passengers number,
location text,
main_services text,
number_of_platforms number
)
CREATE TABLE train (
train_id number,
name text,
time text,
service text
) | SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
834,
6682,
41,
2412,
834,
23,
26,
381,
6,
2478,
834,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
2478,
834,
23,
26,
381,
6,
564,
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,
332,
4416,
4350,
21680,
2412,
834,
6682,
6157,
332,
536,
3,
15355,
3162,
2478,
6157,
332,
357,
9191,
332,
5411,
6682,
834,
23,
26,
3274,
332,
4416,
6682,
834,
23,
26,
350,
4630,
6880,
272,
476,
332,
5411,
6682,
834,... |
What is High Assists, when High Rebounds is 'Dwight Howard , Rashard Lewis (10)'? | CREATE TABLE table_name_80 (
high_assists VARCHAR,
high_rebounds VARCHAR
) | SELECT high_assists FROM table_name_80 WHERE high_rebounds = "dwight howard , rashard lewis (10)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1592,
282,
7,
343,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
306,
834,
23768,
3274,
96,
26,
210,
2632,
149,
986,
3,
6,
3,
12380,
986,
90,
210,
159,
41,
16968,
121,
1,
-100,
-100,
-100,
-100,
-100... |
What are the names of organizations that contain the word 'Party'? | CREATE TABLE party_forms (
party_id number,
form_id number,
date_completion_started time,
form_status_code text,
date_fully_completed time
)
CREATE TABLE party_addresses (
party_id number,
address_id number,
date_address_from time,
address_type_code text,
date_address_to time
)
CREATE TABLE party_services (
booking_id number,
customer_id number,
service_id number,
service_datetime time,
booking_made_date time
)
CREATE TABLE individuals (
individual_id number,
individual_first_name text,
individual_middle_name text,
inidividual_phone text,
individual_email text,
individual_address text,
individual_last_name text
)
CREATE TABLE forms (
form_id number,
form_type_code text,
service_id number,
form_number text,
form_name text,
form_description text
)
CREATE TABLE organization_contact_individuals (
individual_id number,
organization_id number,
date_contact_from time,
date_contact_to time
)
CREATE TABLE services (
service_id number,
service_type_code text,
service_name text,
service_descriptio text
)
CREATE TABLE addresses (
address_id number,
line_1_number_building text,
town_city text,
zip_postcode text,
state_province_county text,
country text
)
CREATE TABLE organizations (
organization_id number,
date_formed time,
organization_name text,
uk_vat_number text
)
CREATE TABLE parties (
party_id number,
payment_method_code text,
party_phone text,
party_email text
) | SELECT organization_name FROM organizations WHERE organization_name LIKE "%Party%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
834,
2032,
7,
41,
1088,
834,
23,
26,
381,
6,
607,
834,
23,
26,
381,
6,
833,
834,
7699,
109,
1575,
834,
3624,
1054,
97,
6,
607,
834,
8547,
302,
834,
4978,
1499,
6,
833,
834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1470,
834,
4350,
21680,
2371,
549,
17444,
427,
1470,
834,
4350,
8729,
9914,
96,
1454,
13725,
63,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For each competition, count the number of matches, and rank in desc by the X-axis. | CREATE TABLE city (
City_ID int,
City text,
Hanzi text,
Hanyu_Pinyin text,
Regional_Population int,
GDP real
)
CREATE TABLE hosting_city (
Year int,
Match_ID int,
Host_City text
)
CREATE TABLE temperature (
City_ID int,
Jan real,
Feb real,
Mar real,
Apr real,
Jun real,
Jul real,
Aug real,
Sep real,
Oct real,
Nov real,
Dec real
)
CREATE TABLE match (
Match_ID int,
Date text,
Venue text,
Score text,
Result text,
Competition text
) | SELECT Competition, COUNT(*) FROM match GROUP BY Competition ORDER BY Competition DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
896,
834,
4309,
16,
17,
6,
896,
1499,
6,
6627,
702,
1499,
6,
6627,
63,
76,
834,
345,
77,
63,
77,
1499,
6,
7676,
834,
27773,
7830,
16,
17,
6,
11284,
490,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15571,
6,
2847,
17161,
599,
1935,
61,
21680,
1588,
350,
4630,
6880,
272,
476,
15571,
4674,
11300,
272,
476,
15571,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many Games for Terence Morris? | CREATE TABLE table_name_57 (games VARCHAR, name VARCHAR) | SELECT games FROM table_name_57 WHERE name = "terence morris" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
7261,
7,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5880,
21,
9934,
1433,
12193,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1031,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
564,
3274,
96,
449,
1433,
8030,
52,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many of the patients aged below 72 received td therapy? | 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 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "72" AND prescriptions.route = "TD" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the home team for victoria park? | CREATE TABLE table_name_93 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team FROM table_name_93 WHERE venue = "victoria park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
21,
3,
7287,
3600,
9,
2447,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
5669,
3274,
96,
7287,
3600,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the time for Aprilia and their driver Casey Stoner, before gird 9, and less than 26 laps? | CREATE TABLE table_name_35 (
time_retired VARCHAR,
rider VARCHAR,
laps VARCHAR,
manufacturer VARCHAR,
grid VARCHAR
) | SELECT time_retired FROM table_name_35 WHERE manufacturer = "aprilia" AND grid < 9 AND laps < 26 AND rider = "casey stoner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
2564,
52,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
4818,
584,
4280,
28027,
6,
8634,
584,
4280,
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,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
4818,
3274,
96,
9,
102,
52,
13565,
121,
3430,
8634,
3,
2,
668,
3430,
14941,
7,
3,
2,
2208,
3430,
2564,
52,
3274,
96,
6701,
63,
3372,
52,
1... |
according to this chart , did the given team win or lose more games when played at notre dame stadium ? | CREATE TABLE table_204_55 (
id number,
"date" text,
"time" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
) | SELECT "result" FROM table_204_55 WHERE "site" = 'notre dame stadium • notre dame' GROUP BY "result" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3769,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
32,
102,
9977,
4663,
121,
1499,
6,
96,
6254,
4663,
121,
1499,
6,
96,
3585,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
60,
7,
83,
17,
121,
21680,
953,
834,
26363,
834,
3769,
549,
17444,
427,
96,
3585,
121,
3274,
3,
31,
2264,
60,
10157,
15,
14939,
1697,
1680,
10157,
15,
31,
350,
4630,
6880,
272,
476,
96,
60,
7,
83,
17,
121,
... |
Show home city where at least two drivers older than 40 are from. | CREATE TABLE driver (
home_city VARCHAR,
age INTEGER
) | SELECT home_city FROM driver WHERE age > 40 GROUP BY home_city HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2535,
41,
234,
834,
6726,
584,
4280,
28027,
6,
1246,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
234,
690,
213,
44,
709,
192,
3863,
2749,
145,
1283,
33,
45,
5,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
6726,
21680,
2535,
549,
17444,
427,
1246,
2490,
1283,
350,
4630,
6880,
272,
476,
234,
834,
6726,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
2423,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the points when the score was 3 1, and record was 25 19 11? | CREATE TABLE table_name_52 (
points VARCHAR,
score VARCHAR,
record VARCHAR
) | SELECT points FROM table_name_52 WHERE score = "3–1" AND record = "25–19–11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
979,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
979,
116,
8,
2604,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
2604,
3274,
96,
519,
104,
536,
121,
3430,
1368,
3274,
96,
1828,
104,
2294,
104,
2596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the opened for spain | CREATE TABLE table_68351 (
"Name" text,
"Park" text,
"Country" text,
"Inversions" real,
"Opened" text,
"Status" text
) | SELECT "Opened" FROM table_68351 WHERE "Country" = 'spain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
2469,
536,
41,
96,
23954,
121,
1499,
6,
96,
26163,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
1570,
8674,
7,
121,
490,
6,
96,
22696,
15,
26,
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,
22696,
15,
26,
121,
21680,
953,
834,
3651,
2469,
536,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
14147,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Give me the number of patients born before 2120 who have st-segment elevation myocardial infarction/cardiac catheterization as their primary disease. | 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 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
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ST-SEGMENT ELEVATION MYOCARDIAL INFARCTION\CARDIAC CATH" AND demographic.dob_year < "2120" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
4209,
18,
134,
8579,
11810,
3,
16479,
553,
8015,
283,
476,
5618,
10327... |
what is the name moving to atl tico minero? | CREATE TABLE table_59442 (
"Nat." text,
"Name" text,
"Moving to" text,
"Type" text,
"Transfer window" text
) | SELECT "Name" FROM table_59442 WHERE "Moving to" = 'atlético minero' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
3628,
357,
41,
96,
567,
144,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
329,
32,
3745,
12,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
18474,
1010,
2034,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
3390,
3628,
357,
549,
17444,
427,
96,
329,
32,
3745,
12,
121,
3274,
3,
31,
144,
40,
17678,
509,
2000,
52,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which episode has a Challenge Winner of berto? | CREATE TABLE table_name_50 (
episode VARCHAR,
challenge_winner VARCHAR
) | SELECT episode FROM table_name_50 WHERE challenge_winner = "berto" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
5640,
584,
4280,
28027,
6,
1921,
834,
3757,
687,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5640,
65,
3,
9,
7729,
18125,
13,
3,
7041... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5640,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1921,
834,
3757,
687,
3274,
96,
7041,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show all allergy types and the number of allergies in each type by a pie chart. | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
) | SELECT AllergyType, COUNT(*) FROM Allergy_Type GROUP BY AllergyType | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
25160,
41,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
201,
432,
49,
122,
63,
25160,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
49,
122,
63,
25160,
6,
2847,
17161,
599,
1935,
61,
21680,
432,
49,
122,
63,
834,
25160,
350,
4630,
6880,
272,
476,
432,
49,
122,
63,
25160,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many incumbent with first elected being 1932 | CREATE TABLE table_1342331_5 (incumbent VARCHAR, first_elected VARCHAR) | SELECT COUNT(incumbent) FROM table_1342331_5 WHERE first_elected = 1932 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
3341,
834,
755,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
28406,
28,
166,
8160,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
77,
75,
5937,
295,
61,
21680,
953,
834,
23747,
2773,
3341,
834,
755,
549,
17444,
427,
166,
834,
19971,
3274,
957,
2668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the fewest number of laps for a Dale Coyne Racing team with a mechanical time/retired and fewer than 5 points? | CREATE TABLE table_67343 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
) | SELECT MIN("Laps") FROM table_67343 WHERE "Team" = 'dale coyne racing' AND "Time/Retired" = 'mechanical' AND "Points" < '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
3710,
519,
41,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
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,
3,
17684,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
3708,
3710,
519,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
5437,
576,
63,
29,
15,
8191,
31,
3430,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
31... |
which representative is from willowick | CREATE TABLE table_29486189_4 (representative VARCHAR, residence VARCHAR) | SELECT representative FROM table_29486189_4 WHERE residence = "Willowick" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3707,
4241,
3914,
834,
591,
41,
60,
12640,
1528,
584,
4280,
28027,
6,
6198,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
84,
6978,
19,
45,
56,
32,
5981,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6978,
21680,
953,
834,
3166,
3707,
4241,
3914,
834,
591,
549,
17444,
427,
6198,
3274,
96,
518,
1092,
32,
5981,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which actors first appeared in episode 'Blink' 1, 2, 3? | CREATE TABLE table_16572 (
"Character" text,
"Portrayed by" text,
"First appearance" text,
"Last appearance" text,
"Duration" text,
"Episodes" text
) | SELECT "Portrayed by" FROM table_16572 WHERE "First appearance" = 'Blink" 1, 2, 3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
5865,
41,
96,
18947,
2708,
49,
121,
1499,
6,
96,
14714,
2866,
15,
26,
57,
121,
1499,
6,
96,
25171,
3179,
121,
1499,
6,
96,
3612,
7,
17,
3179,
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,
14714,
2866,
15,
26,
57,
121,
21680,
953,
834,
22823,
5865,
549,
17444,
427,
96,
25171,
3179,
121,
3274,
3,
31,
279,
4907,
121,
1914,
3547,
220,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the largest average for the episode with 1.97 million Hong Kong viewers? | CREATE TABLE table_24856090_1 (average INTEGER, hk_viewers VARCHAR) | SELECT MAX(average) FROM table_24856090_1 WHERE hk_viewers = "1.97 million" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4433,
3328,
2394,
834,
536,
41,
28951,
3,
21342,
17966,
6,
3,
107,
157,
834,
4576,
277,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
1348,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
28951,
61,
21680,
953,
834,
2266,
4433,
3328,
2394,
834,
536,
549,
17444,
427,
3,
107,
157,
834,
4576,
277,
3274,
96,
5411,
4327,
770,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the date for 2004 | CREATE TABLE table_56203 (
"Year" text,
"Date" text,
"Venue" text,
"Winner" text,
"Country" text,
"Score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text,
"Winner's share ( \u20ac )" text
) | SELECT "Date" FROM table_56203 WHERE "Year" = '2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
23330,
41,
96,
476,
2741,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4834,
23330,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
21653,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What played has 247 as the points? | CREATE TABLE table_name_63 (
played VARCHAR,
points_for VARCHAR
) | SELECT played FROM table_name_63 WHERE points_for = "247" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
1944,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1944,
65,
204,
4177,
38,
8,
979,
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,
1944,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
979,
834,
1161,
3274,
96,
357,
4177,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Operation start of 2015 has what gross mw? | CREATE TABLE table_68269 (
"Unit" text,
"Type" text,
"Gross MW" text,
"Construction start" text,
"Operation start" text
) | SELECT "Gross MW" FROM table_68269 WHERE "Operation start" = '2015' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
357,
3951,
41,
96,
5110,
155,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
517,
1859,
7,
3,
16027,
121,
1499,
6,
96,
4302,
7,
26853,
456,
121,
1499,
6,
96,
667,
883... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1859,
7,
3,
16027,
121,
21680,
953,
834,
3651,
357,
3951,
549,
17444,
427,
96,
667,
883,
257,
456,
121,
3274,
3,
31,
8651,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How large was the crowd at the Kardinia Park venue games? | CREATE TABLE table_name_69 (crowd INTEGER, venue VARCHAR) | SELECT SUM(crowd) FROM table_name_69 WHERE venue = "kardinia park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
75,
3623,
26,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
508,
47,
8,
4374,
44,
8,
4556,
2644,
23,
9,
1061,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
5669,
3274,
96,
4031,
2644,
23,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
, show X-axis from high to low order. | CREATE TABLE airport (
id int,
City text,
Country text,
IATA text,
ICAO text,
name text
)
CREATE TABLE flight (
id int,
Vehicle_Flight_number text,
Date text,
Pilot text,
Velocity real,
Altitude real,
airport_id int,
company_id int
)
CREATE TABLE operate_company (
id int,
name text,
Type text,
Principal_activities text,
Incorporated_in text,
Group_Equity_Shareholding real
) | SELECT Country, COUNT(*) FROM airport GROUP BY Country ORDER BY Country DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
41,
3,
23,
26,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
27,
19282,
1499,
6,
3,
15038,
667,
1499,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
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,
6993,
6,
2847,
17161,
599,
1935,
61,
21680,
3761,
350,
4630,
6880,
272,
476,
6993,
4674,
11300,
272,
476,
6993,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show first name for all students with major 600. | CREATE TABLE Student (Fname VARCHAR, Major VARCHAR) | SELECT Fname FROM Student WHERE Major = 600 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
371,
4350,
584,
4280,
28027,
6,
9236,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
166,
564,
21,
66,
481,
28,
779,
7366,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
377,
4350,
21680,
6341,
549,
17444,
427,
9236,
3274,
7366,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Country's ICAO is VOTR? | CREATE TABLE table_45563 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | SELECT "Country" FROM table_45563 WHERE "ICAO" = 'votr' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
4834,
519,
41,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,
667,
121,
1499,
6,
96,
20162,
1493,
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,
10628,
651,
121,
21680,
953,
834,
2128,
4834,
519,
549,
17444,
427,
96,
15038,
667,
121,
3274,
3,
31,
1621,
17,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the number of companies which worked with ' Gabriele Ferzetti | CREATE TABLE keyword (
id int,
keyword text
)
CREATE TABLE made_by (
id int,
msid int,
pid int
)
CREATE TABLE writer (
wid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE company (
id int,
name text,
country_code varchar
)
CREATE TABLE written_by (
id int,
msid int,
wid int
)
CREATE TABLE tags (
id int,
msid int,
kid int
)
CREATE TABLE tv_series (
sid int,
title text,
release_year int,
num_of_seasons int,
num_of_episodes int,
title_aka text,
budget text
)
CREATE TABLE genre (
gid int,
genre text
)
CREATE TABLE movie (
mid int,
title text,
release_year int,
title_aka text,
budget text
)
CREATE TABLE director (
did int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE directed_by (
id int,
msid int,
did int
)
CREATE TABLE copyright (
id int,
msid int,
cid int
)
CREATE TABLE cast (
id int,
msid int,
aid int,
role text
)
CREATE TABLE producer (
pid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE classification (
id int,
msid int,
gid int
)
CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
) | SELECT COUNT(DISTINCT (company.name)) FROM actor, cast, company, copyright, movie WHERE actor.name = 'Gabriele Ferzetti' AND cast.aid = actor.aid AND copyright.cid = company.id AND movie.mid = cast.msid AND movie.mid = copyright.msid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15693,
41,
3,
23,
26,
16,
17,
6,
15693,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
263,
834,
969,
41,
3,
23,
26,
16,
17,
6,
3,
51,
7,
23,
26,
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,
2847,
17161,
599,
15438,
25424,
6227,
41,
29179,
5,
4350,
61,
61,
21680,
7556,
6,
4061,
6,
349,
6,
2405,
3535,
6,
1974,
549,
17444,
427,
7556,
5,
4350,
3274,
3,
31,
517,
17639,
400,
7566,
172,
10652,
31,
3430,
406... |
What is the lowest Top-25 when events shows 12, the top-5 is 1, and less than 11 cuts? | CREATE TABLE table_name_63 (
top_25 INTEGER,
cuts_made VARCHAR,
events VARCHAR,
top_5 VARCHAR
) | SELECT MIN(top_25) FROM table_name_63 WHERE events = 12 AND top_5 = 1 AND cuts_made < 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
420,
834,
1828,
3,
21342,
17966,
6,
8620,
834,
4725,
584,
4280,
28027,
6,
984,
584,
4280,
28027,
6,
420,
834,
755,
584,
4280,
28027,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
2916,
834,
1828,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
984,
3274,
586,
3430,
420,
834,
755,
3274,
209,
3430,
8620,
834,
4725,
3,
2,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose admission location is emergency room admit and item id is 51375? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND lab.itemid = "51375" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which Opponents have a Partnering of alessandro motti, and a Date of 12 september 2005? | CREATE TABLE table_48442 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponents" text,
"Score" text
) | SELECT "Opponents" FROM table_48442 WHERE "Partnering" = 'alessandro motti' AND "Date" = '12 september 2005' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
3628,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
53,
121,
1499,
6,
96,
667,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
102,
9977,
7,
121,
21680,
953,
834,
3707,
3628,
357,
549,
17444,
427,
96,
13725,
687,
53,
121,
3274,
3,
31,
9,
924,
9,
22357,
3,
51,
22334,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2122,
16022,
18247,
... |
Who wrote the song that runs for 2:22? | CREATE TABLE table_name_35 (
author_s_ VARCHAR,
time VARCHAR
) | SELECT author_s_ FROM table_name_35 WHERE time = "2:22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
2291,
834,
7,
834,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
8,
2324,
24,
3154,
21,
204,
10,
2884,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2291,
834,
7,
834,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
97,
3274,
96,
357,
10,
2884,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Goal number in R sunda, Stockholm with a Result of 2 2? | CREATE TABLE table_name_80 (
goal INTEGER,
result VARCHAR,
venue VARCHAR
) | SELECT AVG(goal) FROM table_name_80 WHERE result = "2–2" AND venue = "råsunda, stockholm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
1288,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17916,
381,
16,
391,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
839,
138,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
741,
3274,
96,
357,
104,
357,
121,
3430,
5669,
3274,
96,
52,
2,
7,
1106,
9,
6,
1519,
2831,
51,
121,
1,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose death status is 1 and primary disease is t5 fracture? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "T5 FRACTURE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
536,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
38... |
What is Teleplay, when First Broadcast is April 10, 1981? | CREATE TABLE table_name_57 (teleplay VARCHAR, first_broadcast VARCHAR) | SELECT teleplay FROM table_name_57 WHERE first_broadcast = "april 10, 1981" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
1931,
4895,
584,
4280,
28027,
6,
166,
834,
115,
8635,
5254,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7338,
4895,
6,
116,
1485,
13017... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
1931,
4895,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
166,
834,
115,
8635,
5254,
3274,
96,
9,
2246,
40,
10372,
15465,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was 7th heaven made? | CREATE TABLE table_name_24 (year VARCHAR, film VARCHAR) | SELECT year FROM table_name_24 WHERE film = "7th heaven" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
1201,
584,
4280,
28027,
6,
814,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
489,
189,
9922,
263,
58,
1,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
814,
3274,
96,
940,
189,
9922,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the scoring aerage for 111419? | CREATE TABLE table_17941 (
"Year" real,
"Starts" real,
"Wins (Majors)" text,
"2nd" real,
"3rd" real,
"Earnings ($)" real,
"Money list rank" text,
"Scoring average" text
) | SELECT "Scoring average" FROM table_17941 WHERE "Earnings ($)" = '111419' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
4853,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
41,
329,
9,
12775,
7,
61,
121,
1499,
6,
96,
357,
727,
121,
490,
6,
96,
519,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5715,
53,
1348,
121,
21680,
953,
834,
26593,
4853,
549,
17444,
427,
96,
427,
291,
29,
53,
7,
8785,
61,
121,
3274,
3,
31,
2596,
2534,
2294,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the amount of deaths that had a natural growth smaller than 3.4, and a total fertility rate of 1.63? | CREATE TABLE table_name_41 (
deaths VARCHAR,
natural_growth VARCHAR,
total_fertility_rate VARCHAR
) | SELECT deaths FROM table_name_41 WHERE natural_growth < 3.4 AND total_fertility_rate = "1.63" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
14319,
584,
4280,
28027,
6,
793,
834,
24690,
584,
4280,
28027,
6,
792,
834,
1010,
17,
14277,
834,
2206,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14319,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
793,
834,
24690,
3,
2,
3,
23204,
3430,
792,
834,
1010,
17,
14277,
834,
2206,
3274,
96,
15062,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Opponent of the Game on October 20? | CREATE TABLE table_51154 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Record" text,
"Attendance" real
) | SELECT "Opponent" FROM table_51154 WHERE "Date" = 'october 20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
27308,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
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,
667,
102,
9977,
121,
21680,
953,
834,
5553,
27308,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
32,
75,
235,
1152,
460,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the report where the location is kyalami? | CREATE TABLE table_1140085_2 (report VARCHAR, location VARCHAR) | SELECT report FROM table_1140085_2 WHERE location = "Kyalami" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
5548,
4433,
834,
357,
41,
60,
1493,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
934,
213,
8,
1128,
19,
3,
3781,
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,
934,
21680,
953,
834,
2596,
5548,
4433,
834,
357,
549,
17444,
427,
1128,
3274,
96,
439,
63,
138,
3690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many bronzes have 1 as the total, with spain (esp) as the nation, and a gold greater than 0? | CREATE TABLE table_name_31 (
bronze VARCHAR,
gold VARCHAR,
total VARCHAR,
nation VARCHAR
) | SELECT COUNT(bronze) FROM table_name_31 WHERE total = 1 AND nation = "spain (esp)" AND gold > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
13467,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
792,
3274,
209,
3430,
2982,
3274,
96,
14147,
77,
41,
15,
7,
102,
61,
121,
3430,
2045,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-... |
What was the location that had an accident by the F-27-600RF aircraft with tail number 6O-SAZ? | CREATE TABLE table_7013 (
"Location" text,
"Aircraft" text,
"Tail number" text,
"Aircraft damage" text,
"Fatalities" text
) | SELECT "Location" FROM table_7013 WHERE "Aircraft" = 'f-27-600rf' AND "Tail number" = '6o-saz' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
2368,
41,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20162,
6696,
121,
1499,
6,
96,
382,
9,
173,
381,
121,
1499,
6,
96,
20162,
6696,
1783,
121,
1499,
6,
96,
371,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
2518,
2368,
549,
17444,
427,
96,
20162,
6696,
121,
3274,
3,
31,
89,
18,
2555,
18,
6007,
52,
89,
31,
3430,
96,
382,
9,
173,
381,
121,
3274,
3,
31,
948,
32,
18,
7,
9... |
When the CAT FEA is 3 how many points were scored? | CREATE TABLE table_69845 (
"Team" text,
"Car No." text,
"MNZ SPR" text,
"MNZ FEA" text,
"SPA SPR" text,
"SPA FEA" text,
"MON FEA" text,
"SIL SPR" text,
"SIL FEA" text,
"HUN SPR" text,
"HUN FEA" text,
"LMS SPR" text,
"LMS FEA" text,
"CAT SPR" text,
"CAT FEA" text,
"Points" text
) | SELECT "Points" FROM table_69845 WHERE "CAT FEA" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
927,
2128,
41,
96,
18699,
121,
1499,
6,
96,
6936,
465,
535,
1499,
6,
96,
329,
567,
956,
180,
5554,
121,
1499,
6,
96,
329,
567,
956,
3,
6392,
188,
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,
22512,
7,
121,
21680,
953,
834,
3951,
927,
2128,
549,
17444,
427,
96,
18911,
3,
6392,
188,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the outcome of the match against Sylvia Hanika on a hard (i) surface? | CREATE TABLE table_name_75 (outcome VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR) | SELECT outcome FROM table_name_75 WHERE opponent_in_the_final = "sylvia hanika" AND surface = "hard (i)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
670,
287,
15,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6138,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
7,
63,
40,
5907,
3,
2618,
5561,
121,
3430,
1774,
3274,
96,
5651,
41,
23,
61,
121,
1,
-100,
-100,
-100,
-100,... |
What is every affiliation for the Tottenham constituency? | CREATE TABLE table_73868 (
"Constituency" text,
"Candidate" text,
"Affiliation" text,
"Result - votes" real,
"Result - %" text,
"Loss/gain" text
) | SELECT "Affiliation" FROM table_73868 WHERE "Constituency" = 'Tottenham' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3747,
3651,
41,
96,
4302,
2248,
17,
76,
4392,
121,
1499,
6,
96,
14050,
12416,
342,
121,
1499,
6,
96,
188,
89,
8027,
23,
257,
121,
1499,
6,
96,
20119,
3,
18,
11839,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
89,
8027,
23,
257,
121,
21680,
953,
834,
940,
3747,
3651,
549,
17444,
427,
96,
4302,
2248,
17,
76,
4392,
121,
3274,
3,
31,
3696,
17,
324,
1483,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest FLap by a Honda NSR500 bike after Race 16? | CREATE TABLE table_61036 (
"Season" text,
"Class" text,
"Bike" text,
"Team" text,
"Race" real,
"Pole" real,
"FLap" real
) | SELECT MAX("FLap") FROM table_61036 WHERE "Bike" = 'honda nsr500' AND "Race" > '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27097,
3420,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
279,
5208,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
3302,
121,
490,
6,
96,
8931,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
10765,
9,
102,
8512,
21680,
953,
834,
27097,
3420,
549,
17444,
427,
96,
279,
5208,
121,
3274,
3,
31,
31782,
3,
29,
7,
52,
2560,
31,
3430,
96,
448,
3302,
121,
2490,
3,
31,
2938,
31,
1,
-100,
... |
What round had Canada with a draft of 1970 and a pick of 7? | CREATE TABLE table_60443 (
"Draft" real,
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text
) | SELECT MAX("Round") FROM table_60443 WHERE "Nationality" = 'canada' AND "Draft" < '1970' AND "Pick" = '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3628,
519,
41,
96,
308,
10913,
121,
490,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
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,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
3328,
3628,
519,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
658,
18089,
31,
3430,
96,
308,
10913,
121,
3,
2,
3,
31,
2294,
2518,
31,
3430,
96,
345,... |
What team was the visitor on 3/2? | CREATE TABLE table_name_72 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_72 WHERE date = "3/2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
3466,
155,
127,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
8,
7019,
30,
220,
13311,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
833,
3274,
96,
15020,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of lost games when 2 were drawn, and there were 6 bonus points? | CREATE TABLE table_name_55 (lost VARCHAR, drawn VARCHAR, bonus_points VARCHAR) | SELECT lost FROM table_name_55 WHERE drawn = "2" AND bonus_points = "6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
2298,
17,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
4023,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1513,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
6796,
3274,
96,
357,
121,
3430,
4023,
834,
2700,
7,
3274,
96,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total of the team with a T score less than 6.8? | CREATE TABLE table_name_88 (total INTEGER, t_score INTEGER) | SELECT SUM(total) FROM table_name_88 WHERE t_score < 6.8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
235,
1947,
3,
21342,
17966,
6,
3,
17,
834,
7,
9022,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
13,
8,
372,
28,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
3,
17,
834,
7,
9022,
3,
2,
4357,
927,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what were the total number of times filmfare awards can be seen listed on this chart as the award ceremony ? | CREATE TABLE table_203_757 (
id number,
"year" number,
"award ceremony" text,
"category" text,
"film/show" text,
"result" text
) | SELECT COUNT(*) FROM table_203_757 WHERE "award ceremony" = 'filmfare awards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3072,
940,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
9,
2239,
7252,
121,
1499,
6,
96,
8367,
839,
651,
121,
1499,
6,
96,
9988,
87,
10049,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
3072,
940,
549,
17444,
427,
96,
9,
2239,
7252,
121,
3274,
3,
31,
9988,
89,
355,
6120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what's the total number of report with date 29 april | CREATE TABLE table_16734 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
) | SELECT COUNT("Report") FROM table_16734 WHERE "Date" = '29 April' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27650,
3710,
41,
96,
448,
727,
121,
490,
6,
96,
448,
3302,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1649,
1493,
8512,
21680,
953,
834,
27650,
3710,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
3166,
1186,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Height (cm) has a Birthplace of bloomfield hills, michigan? | CREATE TABLE table_75980 (
"Position" text,
"Jersey #" real,
"Name" text,
"Height (cm)" real,
"Weight (kg)" real,
"Birthdate" text,
"Birthplace" text,
"2007\u20132008 Team" text,
"NHL rights, if any" text
) | SELECT AVG("Height (cm)") FROM table_75980 WHERE "Birthplace" = 'bloomfield hills, michigan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3390,
2079,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
683,
277,
15,
63,
1713,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
41,
75,
51,
61,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3845,
2632,
41,
75,
51,
61,
8512,
21680,
953,
834,
940,
3390,
2079,
549,
17444,
427,
96,
279,
23,
52,
189,
4687,
121,
3274,
3,
31,
115,
14351,
1846,
11787,
6,
2278,
12588,
31,
1,
-100,
-100,
... |
What is the score for the away team of Grimsby Town? | CREATE TABLE table_44232 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Score" FROM table_44232 WHERE "Away team" = 'grimsby town' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
23188,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
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,
3628,
23188,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
3496,
51,
7,
969,
1511,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which player was transferred to Reggina? | CREATE TABLE table_49989 (
"Exit Date" text,
"Pos." text,
"Player" text,
"To club" text,
"Transfer fee" text
) | SELECT "Player" FROM table_49989 WHERE "To club" = 'reggina' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3264,
3914,
41,
96,
5420,
155,
7678,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
3696,
1886,
121,
1499,
6,
96,
18474,
1010,
2572,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15800,
49,
121,
21680,
953,
834,
591,
3264,
3914,
549,
17444,
427,
96,
3696,
1886,
121,
3274,
3,
31,
60,
122,
19604,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the smallest value for Wins when the number of cuts is greater than 4 and the Top-5 value is less than 1? | CREATE TABLE table_name_51 (wins INTEGER, cuts_made VARCHAR, top_5 VARCHAR) | SELECT MIN(wins) FROM table_name_51 WHERE cuts_made > 4 AND top_5 < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
3757,
7,
3,
21342,
17966,
6,
8620,
834,
4725,
584,
4280,
28027,
6,
420,
834,
755,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
8620,
834,
4725,
2490,
314,
3430,
420,
834,
755,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many players are from energa czarni? | CREATE TABLE table_12962773_16 (position VARCHAR, current_club VARCHAR) | SELECT COUNT(position) FROM table_12962773_16 WHERE current_club = "Energa Czarni" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4314,
2555,
4552,
834,
2938,
41,
4718,
584,
4280,
28027,
6,
750,
834,
13442,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
33,
45,
3,
35,
49,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4718,
61,
21680,
953,
834,
2122,
4314,
2555,
4552,
834,
2938,
549,
17444,
427,
750,
834,
13442,
3274,
96,
427,
687,
122,
9,
205,
172,
23403,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did the player from Hawaii play for Toronto? | CREATE TABLE table_10015132_3 (
years_in_toronto VARCHAR,
school_club_team VARCHAR
) | SELECT years_in_toronto FROM table_10015132_3 WHERE school_club_team = "Hawaii" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
1808,
23757,
834,
519,
41,
203,
834,
77,
834,
235,
4438,
32,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
77,
834,
235,
4438,
32,
21680,
953,
834,
2915,
1808,
23757,
834,
519,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
566,
7396,
23,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what are patient 031-1337's gender? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime 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 cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
) | SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '031-1337' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1868,
5,
122,
3868,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
3341,
13056,
4118,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the total number of countries that the england women 's rfu played against ? | CREATE TABLE table_203_506 (
id number,
"opponent" text,
"played" number,
"won" number,
"lost" number,
"drawn" number,
"% won overall" text
) | SELECT COUNT("opponent") FROM table_203_506 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1752,
948,
41,
3,
23,
26,
381,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
4895,
15,
26,
121,
381,
6,
96,
210,
106,
121,
381,
6,
96,
2298,
17,
121,
381,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
32,
102,
9977,
8512,
21680,
953,
834,
23330,
834,
1752,
948,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the athlete when the time is less than 11.13 and the country is belgium? | CREATE TABLE table_64386 (
"Rank" real,
"Heat" real,
"Athlete" text,
"Country" text,
"Time" real
) | SELECT "Athlete" FROM table_64386 WHERE "Time" < '11.13' AND "Country" = 'belgium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
519,
3840,
41,
96,
22557,
121,
490,
6,
96,
3845,
144,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
490,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
189,
1655,
15,
121,
21680,
953,
834,
4389,
519,
3840,
549,
17444,
427,
96,
13368,
121,
3,
2,
3,
31,
10032,
2368,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
2370,
122,
2552,
31,
1,
-100,
-100,
-100,
-10... |
What is the score of the tournament with olivier dela tre as the opponent in the final? | CREATE TABLE table_76387 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Score" FROM table_76387 WHERE "Opponent in the final" = 'olivier delaître' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
519,
4225,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
16,
8,
804,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3959,
519,
4225,
549,
17444,
427,
96,
667,
102,
9977,
16,
8,
804,
121,
3274,
3,
31,
4172,
5144,
20,
521,
3633,
929,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the score with record of 17-27 | CREATE TABLE table_68893 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | SELECT "Score" FROM table_68893 WHERE "Record" = '17-27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3914,
519,
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,
1649,
7621,
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,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3651,
3914,
519,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2517,
18,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHat is the highest difference? | CREATE TABLE table_28837 (
"Place" real,
"Nation" text,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" real,
"Table points" real
) | SELECT MAX("difference") FROM table_28837 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4060,
4118,
41,
96,
345,
11706,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
4895,
15,
26,
121,
490,
6,
96,
210,
106,
121,
490,
6,
96,
19489,
29,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
26,
99,
11788,
8512,
21680,
953,
834,
357,
4060,
4118,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give me the number of patients whose procedure icd9 code is 331 and drug route is sc? | 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 INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "331" AND prescriptions.route = "SC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
3388,
18206... |
Which record's round was 3 when the event was fight festival 27? | CREATE TABLE table_name_19 (
record VARCHAR,
round VARCHAR,
event VARCHAR
) | SELECT record FROM table_name_19 WHERE round = 3 AND event = "fight festival 27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
1368,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1368,
31,
7,
1751,
47,
220,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1751,
3274,
220,
3430,
605,
3274,
96,
14466,
3994,
2307,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average price of the products for each category? | CREATE TABLE products (
product_id number,
parent_product_id number,
product_category_code text,
date_product_first_available time,
date_product_discontinued time,
product_name text,
product_description text,
product_price number
)
CREATE TABLE complaints (
complaint_id number,
product_id number,
customer_id number,
complaint_outcome_code text,
complaint_status_code text,
complaint_type_code text,
date_complaint_raised time,
date_complaint_closed time,
staff_id number
)
CREATE TABLE customers (
customer_id number,
customer_type_code text,
address_line_1 text,
address_line_2 text,
town_city text,
state text,
email_address text,
phone_number text
)
CREATE TABLE staff (
staff_id number,
gender text,
first_name text,
last_name text,
email_address text,
phone_number text
) | SELECT AVG(product_price), product_category_code FROM products GROUP BY product_category_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
556,
834,
23,
26,
381,
6,
4208,
834,
15892,
834,
23,
26,
381,
6,
556,
834,
8367,
839,
651,
834,
4978,
1499,
6,
833,
834,
15892,
834,
14672,
834,
28843,
97,
6,
833,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
15892,
834,
102,
4920,
201,
556,
834,
8367,
839,
651,
834,
4978,
21680,
494,
350,
4630,
6880,
272,
476,
556,
834,
8367,
839,
651,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the dates on which more than one revisions were made, and the bin the date of latest revision into weekday interval and count them as a line chart, sort by the x axis from low to high. | CREATE TABLE Attribute_Definitions (
attribute_id INTEGER,
attribute_name VARCHAR(30),
attribute_data_type VARCHAR(10)
)
CREATE TABLE Catalog_Contents (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
parent_entry_id INTEGER,
previous_entry_id INTEGER,
next_entry_id INTEGER,
catalog_entry_name VARCHAR(80),
product_stock_number VARCHAR(50),
price_in_dollars DOUBLE,
price_in_euros DOUBLE,
price_in_pounds DOUBLE,
capacity VARCHAR(20),
length VARCHAR(20),
height VARCHAR(20),
width VARCHAR(20)
)
CREATE TABLE Catalog_Structure (
catalog_level_number INTEGER,
catalog_id INTEGER,
catalog_level_name VARCHAR(50)
)
CREATE TABLE Catalogs (
catalog_id INTEGER,
catalog_name VARCHAR(50),
catalog_publisher VARCHAR(80),
date_of_publication DATETIME,
date_of_latest_revision DATETIME
)
CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
attribute_id INTEGER,
attribute_value VARCHAR(255)
) | SELECT date_of_latest_revision, COUNT(date_of_latest_revision) FROM Catalogs ORDER BY date_of_latest_revision | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
486,
5135,
17,
15,
834,
2962,
5582,
10872,
41,
15816,
834,
23,
26,
3,
21342,
17966,
6,
15816,
834,
4350,
584,
4280,
28027,
599,
1458,
201,
15816,
834,
6757,
834,
6137,
584,
4280,
28027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
521,
4377,
834,
60,
6610,
6,
2847,
17161,
599,
5522,
834,
858,
834,
521,
4377,
834,
60,
6610,
61,
21680,
22424,
7,
4674,
11300,
272,
476,
833,
834,
858,
834,
521,
4377,
834,
60,
6610,
1,
-100,
... |
how many votes did the independent party have ? | CREATE TABLE table_203_798 (
id number,
"party" text,
"votes" text,
"%" number,
"swing" number,
"seats" number,
"change" number
) | SELECT "votes" FROM table_203_798 WHERE "party" = 'independent' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
940,
3916,
41,
3,
23,
26,
381,
6,
96,
8071,
121,
1499,
6,
96,
1621,
1422,
121,
1499,
6,
96,
1454,
121,
381,
6,
96,
7,
3108,
121,
381,
6,
96,
7,
1544,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1621,
1422,
121,
21680,
953,
834,
23330,
834,
940,
3916,
549,
17444,
427,
96,
8071,
121,
3274,
3,
31,
77,
17631,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the sum of Goals win an Average larger than 1? | CREATE TABLE table_name_94 (
goals VARCHAR,
average INTEGER
) | SELECT COUNT(goals) FROM table_name_94 WHERE average > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1766,
584,
4280,
28027,
6,
1348,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
17916,
7,
1369,
46,
23836,
2186,
145,
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,
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,
839,
5405,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1348,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Game site has a Kickoff (ET) of 1:00pm, and a Record of 4 1? | CREATE TABLE table_74817 (
"Week" real,
"Date" text,
"Kickoff (ET)" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game site" text,
"NFL Recap" text
) | SELECT "Game site" FROM table_74817 WHERE "Kickoff (ET)" = '1:00pm' AND "Record" = '4–1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3707,
2517,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
439,
3142,
1647,
41,
7969,
61,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
201... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
353,
121,
21680,
953,
834,
940,
3707,
2517,
549,
17444,
427,
96,
439,
3142,
1647,
41,
7969,
61,
121,
3274,
3,
31,
24294,
2028,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
591,
104,
536,
31,
1,
-100,
-... |
Give me a histogram for how many events are there for each party? | CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int,
Member_in_charge_ID int
)
CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text,
Region_ID int,
Party_name text
) | SELECT Party_name, COUNT(*) FROM party_events AS T1 JOIN party AS T2 ON T1.Party_ID = T2.Party_ID GROUP BY T1.Party_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
834,
15,
2169,
7,
41,
8042,
834,
4309,
16,
17,
6,
8042,
834,
23954,
1499,
6,
3450,
834,
4309,
16,
17,
6,
8541,
834,
77,
834,
7993,
834,
4309,
16,
17,
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,
3450,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
1088,
834,
15,
2169,
7,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
13725,
63,
834,
4309,
3274,
332,
4416,
13725,
63,
834,
4309,
350,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about commission_pct over the email , rank in desc by the bars. | 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 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
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 EMAIL, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMAIL DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
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,... |
What is the margin at the Nabisco Championship? | CREATE TABLE table_name_18 (margin VARCHAR, championship VARCHAR) | SELECT margin FROM table_name_18 WHERE championship = "nabisco championship" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
1635,
122,
77,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6346,
44,
8,
1823,
11514,
509,
7666,
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,
6346,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
10183,
3274,
96,
29,
15975,
3523,
10183,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When is the earliest year that there's a judd engine? | CREATE TABLE table_name_40 (
year INTEGER,
engine VARCHAR
) | SELECT MIN(year) FROM table_name_40 WHERE engine = "judd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
215,
3,
21342,
17966,
6,
1948,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
19,
8,
3,
16454,
215,
24,
132,
31,
7,
3,
9,
3,
14312,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
1948,
3274,
96,
14312,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Report the number of patients with left femur fracture primary disease who died in or before 2115. | 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
)
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.diagnosis = "LEFT FEMUR FRACTURE" AND demographic.dod_year <= "2115.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
3765,
6245,
377,
6037,
5905,
377,
22034,
25380,
121,
3430,
14798,
5,
2... |
Name the most races for flaps larger than 2.0 | CREATE TABLE table_26862 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"FLaps" real,
"Podiums" real,
"Points" text,
"Position" text
) | SELECT MAX("Races") FROM table_26862 WHERE "FLaps" > '2.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3840,
357,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
448,
9,
2319,
8512,
21680,
953,
834,
2688,
3840,
357,
549,
17444,
427,
96,
10765,
9,
102,
7,
121,
2490,
3,
31,
24273,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Where did Test Mission: War Heads and Missile Payload launch when there was a partial failure? | CREATE TABLE table_11869952_3 (
launch_site VARCHAR,
mission VARCHAR,
results VARCHAR
) | SELECT launch_site FROM table_11869952_3 WHERE mission = "Test mission: war heads and Missile payload" AND results = "Partial Failure" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
3951,
3301,
357,
834,
519,
41,
3289,
834,
3585,
584,
4280,
28027,
6,
2253,
584,
4280,
28027,
6,
772,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3289,
834,
3585,
21680,
953,
834,
20056,
3951,
3301,
357,
834,
519,
549,
17444,
427,
2253,
3274,
96,
382,
222,
2253,
10,
615,
7701,
11,
5964,
699,
726,
7134,
121,
3430,
772,
3274,
96,
13212,
10646,
25629,
121,
1,
-1... |
Name the general classification for mauricio soler | CREATE TABLE table_30921 (
"Stage" real,
"Winner" text,
"General classification" text,
"Mountains Classification" text,
"Points classification" text,
"Sprints Classification" text,
"Team Classification" text
) | SELECT "General classification" FROM table_30921 WHERE "Winner" = 'Mauricio Soler' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
4508,
536,
41,
96,
134,
6505,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
13774,
121,
1499,
6,
96,
329,
32,
14016,
77,
7,
4501,
2420,
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,
20857,
13774,
121,
21680,
953,
834,
1458,
4508,
536,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
19059,
1294,
32,
5175,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the highest attendance at a game that was played in tulane stadium? | CREATE TABLE table_name_63 (
attendance INTEGER,
game_site VARCHAR
) | SELECT MAX(attendance) FROM table_name_63 WHERE game_site = "tulane stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
11364,
3,
21342,
17966,
6,
467,
834,
3585,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
11364,
44,
3,
9,
467,
24,
47,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
467,
834,
3585,
3274,
96,
2520,
152,
15,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number in attendance for when the bulls visited | CREATE TABLE table_52718 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | SELECT COUNT("Attendance") FROM table_52718 WHERE "Visitor" = 'bulls' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2555,
2606,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
755,
2555,
2606,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
20638,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the wins average when 17 games were lost? | CREATE TABLE table_62236 (
"South West DFL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT AVG("Wins") FROM table_62236 WHERE "Losses" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
357,
3420,
41,
96,
22081,
1244,
309,
10765,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
7,
8512,
21680,
953,
834,
4056,
357,
3420,
549,
17444,
427,
96,
434,
13526,
7,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many Games have Years at club of 1971 1974, and a Debut year larger than 1971? | CREATE TABLE table_66241 (
"Debut year" real,
"Player" text,
"Games" real,
"Goals" real,
"Years at club" text
) | SELECT SUM("Games") FROM table_66241 WHERE "Years at club" = '1971–1974' AND "Debut year" > '1971' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
2266,
536,
41,
96,
2962,
2780,
215,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
6221,
5405,
121,
490,
6,
96,
476,
2741,
7,
44,
1886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
7,
8512,
21680,
953,
834,
3539,
2266,
536,
549,
17444,
427,
96,
476,
2741,
7,
44,
1886,
121,
3274,
3,
31,
2294,
4450,
104,
2294,
4581,
31,
3430,
96,
2962,
2780,
215,
121,
2490,
3,
31,
... |
Which Round has a Player of damon jones? | CREATE TABLE table_51067 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"College" text
) | SELECT SUM("Round") FROM table_51067 WHERE "Player" = 'damon jones' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25926,
3708,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
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,
180,
6122,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
25926,
3708,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
7812,
106,
3,
1927,
1496,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the result for dolly parton | CREATE TABLE table_19508635_1 (result VARCHAR, original_artist VARCHAR) | SELECT result FROM table_19508635_1 WHERE original_artist = "Dolly Parton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
1752,
3840,
2469,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
926,
834,
1408,
343,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
741,
21,
103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
2294,
1752,
3840,
2469,
834,
536,
549,
17444,
427,
926,
834,
1408,
343,
3274,
96,
4135,
6073,
2733,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the least amount of laps completed ? | CREATE TABLE table_203_99 (
id number,
"season" number,
"date" text,
"driver" text,
"team" text,
"chassis" text,
"engine" text,
"race distance\nlaps" number,
"race distance\nmiles (km)" text,
"race time" text,
"average speed\n(mph)" number,
"report" text
) | SELECT MIN("race distance\nlaps") FROM table_203_99 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3264,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
13739,
52,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
524,
6500,
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,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
12614,
2357,
2,
29,
8478,
7,
8512,
21680,
953,
834,
23330,
834,
3264,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Player, when Total is '294', and when Year(s) Won is '1955'? | CREATE TABLE table_48343 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
) | SELECT "Player" FROM table_48343 WHERE "Total" = '294' AND "Year(s) won" = '1955' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
3710,
519,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
3707,
3710,
519,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
357,
4240,
31,
3430,
96,
476,
2741,
599,
7,
61,
751,
121,
3274,
3,
31,
2294,
3769,
31,
1,
-100,
-100,
-100... |
how many games were scheduled from 10/9/2009 to 2/20/2010 ? | CREATE TABLE table_204_718 (
id number,
"date" text,
"opponent" text,
"time" text,
"score" text,
"record" text
) | SELECT COUNT(*) FROM table_204_718 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
2606,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
60,
7621,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
940,
2606,
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... |
What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%? | CREATE TABLE table_name_85 (t_papadopoulos VARCHAR, i_kasoulidis VARCHAR) | SELECT t_papadopoulos FROM table_name_85 WHERE i_kasoulidis = "27.1%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
17,
834,
16281,
9,
26,
32,
102,
1063,
2298,
584,
4280,
28027,
6,
3,
23,
834,
1258,
7,
1063,
8130,
159,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
834,
16281,
9,
26,
32,
102,
1063,
2298,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
3,
23,
834,
1258,
7,
1063,
8130,
159,
3274,
96,
2555,
5,
4704,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the fleet number for the model with Serial number 68056? | CREATE TABLE table_63992 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Manufacturer" text,
"Serial numbers" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text,
"Year(s) retired" text
) | SELECT "Fleet number(s)" FROM table_63992 WHERE "Serial numbers" = '68056' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3264,
357,
41,
96,
21486,
121,
1499,
6,
96,
518,
88,
15,
40,
8641,
121,
1499,
6,
96,
371,
109,
15,
17,
381,
599,
7,
61,
121,
1499,
6,
96,
7296,
76,
8717,
450,
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,
371,
109,
15,
17,
381,
599,
7,
61,
121,
21680,
953,
834,
3891,
3264,
357,
549,
17444,
427,
96,
134,
15,
12042,
2302,
121,
3274,
3,
31,
948,
2079,
4834,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the roles of the Bionic Woman? | CREATE TABLE table_79449 (
"Year" real,
"Program" text,
"Role" text,
"Episode" text,
"First aired" text
) | SELECT "Role" FROM table_79449 WHERE "Program" = 'the bionic woman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
591,
3647,
41,
96,
476,
2741,
121,
490,
6,
96,
3174,
5096,
121,
1499,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
25171,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
109,
121,
21680,
953,
834,
4440,
591,
3647,
549,
17444,
427,
96,
3174,
5096,
121,
3274,
3,
31,
532,
2392,
2532,
2335,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHAT NAME HAS A FREE TRANSFER FREE AND RETIRED? | CREATE TABLE table_name_74 (
name VARCHAR,
transfer_fee VARCHAR,
moving_to VARCHAR
) | SELECT name FROM table_name_74 WHERE transfer_fee = "free" AND moving_to = "retired" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
564,
584,
4280,
28027,
6,
2025,
834,
89,
15,
15,
584,
4280,
28027,
6,
1735,
834,
235,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
2025,
834,
89,
15,
15,
3274,
96,
2113,
121,
3430,
1735,
834,
235,
3274,
96,
10682,
1271,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Bar chart x axis software platform y axis the total number, sort by the Software_Platform in desc. | CREATE TABLE shop (
Shop_ID int,
Shop_Name text,
Location text,
Open_Date text,
Open_Year int
)
CREATE TABLE stock (
Shop_ID int,
Device_ID int,
Quantity int
)
CREATE TABLE device (
Device_ID int,
Device text,
Carrier text,
Package_Version text,
Applications text,
Software_Platform text
) | SELECT Software_Platform, COUNT(*) FROM device GROUP BY Software_Platform ORDER BY Software_Platform DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1814,
41,
3687,
834,
4309,
16,
17,
6,
3687,
834,
23954,
1499,
6,
10450,
1499,
6,
2384,
834,
308,
342,
1499,
6,
2384,
834,
476,
2741,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
438... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4300,
834,
10146,
2032,
6,
2847,
17161,
599,
1935,
61,
21680,
1407,
350,
4630,
6880,
272,
476,
4300,
834,
10146,
2032,
4674,
11300,
272,
476,
4300,
834,
10146,
2032,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How did the manager replaced by Wolfgang Frank depart? | CREATE TABLE table_name_93 (manner_of_departure VARCHAR, replaced_by VARCHAR) | SELECT manner_of_departure FROM table_name_93 WHERE replaced_by = "wolfgang frank" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
2434,
49,
834,
858,
834,
221,
2274,
1462,
584,
4280,
28027,
6,
5821,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
410,
8,
2743,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3107,
834,
858,
834,
221,
2274,
1462,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
5821,
834,
969,
3274,
96,
19747,
3810,
3,
89,
6254,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the least amount of silver medals won by Total with more than 1 bronze and more than 18 total medals won? | CREATE TABLE table_name_8 (silver INTEGER, bronze VARCHAR, nation VARCHAR) | SELECT MIN(silver) FROM table_name_8 WHERE bronze > 1 AND nation = "total" AND "total" > 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
7,
173,
624,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
866,
13,
4294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
13467,
2490,
209,
3430,
2982,
3274,
96,
235,
1947,
121,
3430,
96,
235,
1947,
121,
2490,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name of the program that is broadcast most frequently. | CREATE TABLE program (
program_id number,
name text,
origin text,
launch number,
owner text
)
CREATE TABLE broadcast_share (
channel_id number,
program_id number,
date text,
share_in_percent number
)
CREATE TABLE broadcast (
channel_id number,
program_id number,
time_of_day text
)
CREATE TABLE channel (
channel_id number,
name text,
owner text,
share_in_percent number,
rating_in_percent number
) | SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
478,
41,
478,
834,
23,
26,
381,
6,
564,
1499,
6,
5233,
1499,
6,
3289,
381,
6,
2527,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6878,
834,
12484,
41,
4245,
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,
3,
17,
5411,
4350,
21680,
478,
6157,
3,
17,
536,
3,
15355,
3162,
6878,
6157,
3,
17,
357,
9191,
3,
17,
5411,
1409,
5096,
834,
23,
26,
3274,
3,
17,
4416,
1409,
5096,
834,
23,
26,
350,
4630,
6880,
272,
476,
3,
17... |
Who was the home team that played the Lakers? | CREATE TABLE table_name_85 (
home VARCHAR,
visitor VARCHAR
) | SELECT home FROM table_name_85 WHERE visitor = "lakers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
234,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
24,
1944,
8,
325,
11758,
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,
234,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
7019,
3274,
96,
521,
11758,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number of step 6 for 11 gs grade | CREATE TABLE table_2319437_1 (step_6 VARCHAR, gs_grade VARCHAR) | SELECT COUNT(step_6) FROM table_2319437_1 WHERE gs_grade = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2294,
591,
4118,
834,
536,
41,
7910,
834,
948,
584,
4280,
28027,
6,
3,
122,
7,
834,
6801,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7910,
834,
10938,
21680,
953,
834,
2773,
2294,
591,
4118,
834,
536,
549,
17444,
427,
3,
122,
7,
834,
6801,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.