NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What position has 217 as the pick? | CREATE TABLE table_name_93 (position VARCHAR, pick VARCHAR) | SELECT position FROM table_name_93 WHERE pick = 217 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
4718,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
65,
204,
2517,
38,
8,
1432,
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,
1102,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
1432,
3274,
204,
2517,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
between car plates of 80-84 what is the population in 1000 in year 1931? | CREATE TABLE table_name_14 (
population_in_1000__1931_ VARCHAR,
car_plates__since_1937_ VARCHAR
) | SELECT population_in_1000__1931_ FROM table_name_14 WHERE car_plates__since_1937_ = "80-84" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
2074,
834,
77,
834,
16824,
834,
834,
2294,
3341,
834,
584,
4280,
28027,
6,
443,
834,
17628,
7,
834,
834,
27296,
834,
2294,
4118,
834,
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,
2074,
834,
77,
834,
16824,
834,
834,
2294,
3341,
834,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
443,
834,
17628,
7,
834,
834,
27296,
834,
2294,
4118,
834,
3274,
96,
2079,
18,
4608,
121,
1,
-100,
-100,
-100,... |
what's the result with district being kansas 1 | CREATE TABLE table_1342359_15 (
result VARCHAR,
district VARCHAR
) | SELECT result FROM table_1342359_15 WHERE district = "Kansas 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
3390,
834,
1808,
41,
741,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
741,
28,
3939,
271,
3,
3304,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
2773,
3390,
834,
1808,
549,
17444,
427,
3939,
3274,
96,
439,
3247,
9,
7,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the 2008 election status when glenn nye was the running democrat? | CREATE TABLE table_17503169_1 (
democratic VARCHAR
) | SELECT 2008 AS _status FROM table_17503169_1 WHERE democratic = "Glenn Nye" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1752,
3341,
3951,
834,
536,
41,
15053,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2628,
4356,
2637,
116,
3,
3537,
29,
29,
3,
29,
63,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2628,
6157,
3,
834,
8547,
302,
21680,
953,
834,
2517,
1752,
3341,
3951,
834,
536,
549,
17444,
427,
15053,
3274,
96,
517,
40,
35,
29,
16663,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of Total Regions that have the Year 1954, and a Nebo greater than 447? | CREATE TABLE table_name_2 (total_region INTEGER, year VARCHAR, nebo VARCHAR) | SELECT SUM(total_region) FROM table_name_2 WHERE year = 1954 AND nebo > 447 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
235,
1947,
834,
18145,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
3,
29,
15,
115,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
834,
18145,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
215,
3274,
24970,
3430,
3,
29,
15,
115,
32,
2490,
314,
4177,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which opponents in the u.s. championships played after 1945 and had a score of 3 6, 6 4, 2 6, 6 3, 20 18? | CREATE TABLE table_77473 (
"Year" real,
"Championship" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
) | SELECT "Opponents in the final" FROM table_77473 WHERE "Championship" = 'u.s. championships' AND "Year" > '1945' AND "Score" = '3–6, 6–4, 2–6, 6–3, 20–18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
4177,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
13725,
687,
121,
1499,
6,
96,
667,
102,
9977,
7,
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,
667,
102,
9977,
7,
16,
8,
804,
121,
21680,
953,
834,
4013,
4177,
519,
549,
17444,
427,
96,
254,
1483,
12364,
2009,
121,
3274,
3,
31,
76,
5,
7,
5,
10183,
7,
31,
3430,
96,
476,
2741,
121,
2490,
3,
31,
2294,
... |
What is Visitor, when Date is 'May 9'? | CREATE TABLE table_name_13 (
visitor VARCHAR,
date VARCHAR
) | SELECT visitor FROM table_name_13 WHERE date = "may 9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
4957,
127,
6,
116,
7678,
19,
3,
31,
15881,
668,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7019,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
833,
3274,
96,
13726,
668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Opponent has a Score that is 1-6, 3-6? | CREATE TABLE table_name_57 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_57 WHERE score = "1-6, 3-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
32,
102,
9977,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
4495,
9977,
65,
3,
9,
17763,
24,
19,
3,
27019,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
2604,
3274,
96,
27019,
6,
3,
25342,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the admission location and icu stay of the patient id 74032? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT demographic.admission_location, prescriptions.icustay_id FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "74032" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
14836,
6,
7744,
7,
5,
23,
1071,
21545,
834,
23,
26,
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,
2... |
What are the id and details of the customers who have at least 3 events? | CREATE TABLE customer_event_notes (
customer_event_note_id number,
customer_event_id number,
service_type_code text,
resident_id number,
property_id number,
date_moved_in time
)
CREATE TABLE customers (
customer_id number,
customer_details text
)
CREATE TABLE residents (
resident_id number,
property_id number,
date_moved_in time,
date_moved_out time,
other_details text
)
CREATE TABLE organizations (
organization_id number,
parent_organization_id number,
organization_details text
)
CREATE TABLE services (
service_id number,
organization_id number,
service_type_code text,
service_details text
)
CREATE TABLE properties (
property_id number,
property_type_code text,
property_address text,
other_details text
)
CREATE TABLE customer_events (
customer_event_id number,
customer_id number,
date_moved_in time,
property_id number,
resident_id number,
thing_id number
)
CREATE TABLE residents_services (
resident_id number,
service_id number,
date_moved_in time,
property_id number,
date_requested time,
date_provided time,
other_details text
)
CREATE TABLE timed_status_of_things (
thing_id number,
date_and_date time,
status_of_thing_code text
)
CREATE TABLE things (
thing_id number,
organization_id number,
type_of_thing_code text,
service_type_code text,
service_details text
)
CREATE TABLE timed_locations_of_things (
thing_id number,
date_and_time time,
location_code text
) | SELECT T1.customer_id, T1.customer_details FROM customers AS T1 JOIN customer_events AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
15,
2169,
834,
7977,
7,
41,
884,
834,
15,
2169,
834,
7977,
834,
23,
26,
381,
6,
884,
834,
15,
2169,
834,
23,
26,
381,
6,
313,
834,
6137,
834,
4978,
1499,
6,
8141,
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,
332,
5411,
25697,
49,
834,
23,
26,
6,
332,
5411,
25697,
49,
834,
221,
5756,
7,
21680,
722,
6157,
332,
536,
3,
15355,
3162,
884,
834,
15,
2169,
7,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,
33... |
Can you tell me the sum of Score that has the Place of t5, and the Country of united states, and the Player of jeff maggert? | CREATE TABLE table_43991 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT SUM("Score") FROM table_43991 WHERE "Place" = 't5' AND "Country" = 'united states' AND "Player" = 'jeff maggert' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
3264,
536,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
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,
180,
6122,
599,
121,
134,
9022,
8512,
21680,
953,
834,
4906,
3264,
536,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
755,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
... |
when did patient 004-93782 for the last time since 2102 get discharged from the hospital? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime 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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
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 cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
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
) | SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '004-93782' AND STRFTIME('%y', patient.hospitaldischargetime) >= '2102' ORDER BY patient.hospitaldischargetime DESC LIMIT 1 | [
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,
1868,
5,
31386,
26,
159,
7993,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
1206,
591,
7141,
4118,
4613,
31,
3430,
3,
13733,
6245,
15382,
599,
31,
1454,
63,
31,
6,
1868,
5,
31386,
26,... |
Which Points have Drawn of 1, and a Played larger than 14? | CREATE TABLE table_63547 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
) | SELECT MAX("Points") FROM table_63547 WHERE "Drawn" = '1' AND "Played" > '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2469,
4177,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
8512,
21680,
953,
834,
948,
2469,
4177,
549,
17444,
427,
96,
308,
10936,
29,
121,
3274,
3,
31,
536,
31,
3430,
96,
15800,
15,
26,
121,
2490,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100... |
bring me the number of patients with coronary artery primary disease born before 2150. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE" AND demographic.dob_year < "2150" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
5911,
13044,
24721,
11155,
5946,
476,
309,
19056,
17892,
121,
3430,
1479... |
What country does Adam van Koeverden play for? | CREATE TABLE table_name_31 (country VARCHAR, athletes VARCHAR) | SELECT country FROM table_name_31 WHERE athletes = "adam van koeverden" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
17529,
584,
4280,
28027,
6,
9227,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
405,
7124,
4049,
1793,
3258,
537,
577,
21,
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,
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,
684,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
9227,
3274,
96,
9,
7812,
4049,
3,
157,
32,
3258,
537,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
On what Date were the Results 4:0? | CREATE TABLE table_name_47 (
date VARCHAR,
results¹ VARCHAR
) | SELECT date FROM table_name_47 WHERE results¹ = "4:0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
833,
584,
4280,
28027,
6,
772,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
7678,
130,
8,
12772,
314,
10,
632,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
772,
536,
3274,
96,
591,
10,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many poles did the player have during the Formula BMW Pacific race? | CREATE TABLE table_17246160_1 (poles INTEGER, series VARCHAR) | SELECT MAX(poles) FROM table_17246160_1 WHERE series = "Formula BMW Pacific" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27156,
4448,
19129,
834,
536,
41,
14332,
7,
3,
21342,
17966,
6,
939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
11148,
7,
410,
8,
1959,
43,
383,
8,
1378... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
14332,
7,
61,
21680,
953,
834,
27156,
4448,
19129,
834,
536,
549,
17444,
427,
939,
3274,
96,
3809,
4115,
9,
8764,
5824,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Name, when Team is Detroit Pistons, and when WSU Year(s) is 1979-82? | CREATE TABLE table_name_3 (name VARCHAR, team VARCHAR, wsu_year_s_ VARCHAR) | SELECT name FROM table_name_3 WHERE team = "detroit pistons" AND wsu_year_s_ = "1979-82" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
4350,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
3,
210,
7,
76,
834,
1201,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
372,
3274,
96,
26,
15252,
155,
28688,
7,
121,
3430,
3,
210,
7,
76,
834,
1201,
834,
7,
834,
3274,
96,
2294,
4440,
18,
4613,
121,
1,
-100,
-100,
-100,
-100,
-... |
What is the tyre on the race where Bruce Mclaren had the fastest lap? | CREATE TABLE table_77966 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) | SELECT "Tyre" FROM table_77966 WHERE "Fastest lap" = 'bruce mclaren' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4440,
3539,
41,
96,
448,
3302,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
371,
9,
7,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
63,
60,
121,
21680,
953,
834,
940,
4440,
3539,
549,
17444,
427,
96,
371,
9,
7,
4377,
14941,
121,
3274,
3,
31,
9052,
565,
3,
51,
23982,
35,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those records from the products and each product's manufacturer, find name and the average of revenue , and group by attribute name, and visualize them by a bar chart. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
332,
4416,
1649,
15098,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
4... |
Which Opponent has a Result of 1–1, and a Date of 28 november 1998? | CREATE TABLE table_name_30 (opponent VARCHAR, result VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_30 WHERE result = "1–1" AND date = "28 november 1998" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
32,
102,
9977,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
9977,
65,
3,
9,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
741,
3274,
96,
536,
104,
536,
121,
3430,
833,
3274,
96,
2577,
3,
5326,
18247,
6260,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the frequency of visits to elmanana.com.mx | CREATE TABLE table_39707 (
"Name" text,
"Frequency" text,
"Language" text,
"City" text,
"Website" text
) | SELECT "Frequency" FROM table_39707 WHERE "Website" = 'elmanana.com.mx' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
2518,
940,
41,
96,
23954,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
15805,
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,
371,
60,
835,
11298,
121,
21680,
953,
834,
3288,
2518,
940,
549,
17444,
427,
96,
15805,
3585,
121,
3274,
3,
31,
15,
40,
348,
152,
9,
5,
287,
5,
51,
226,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What time has phil mcgurk as the rider? | CREATE TABLE table_name_34 (time VARCHAR, rider VARCHAR) | SELECT time FROM table_name_34 WHERE rider = "phil mcgurk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
715,
584,
4280,
28027,
6,
2564,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
97,
65,
3,
18118,
3,
51,
75,
7840,
157,
38,
8,
2564,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
2564,
52,
3274,
96,
18118,
3,
51,
75,
7840,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the year that had an issue price of $1,295.95? | CREATE TABLE table_name_31 (year INTEGER, issue_price VARCHAR) | SELECT AVG(year) FROM table_name_31 WHERE issue_price = "$1,295.95" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
1201,
3,
21342,
17966,
6,
962,
834,
102,
4920,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
215,
24,
141,
46,
962,
594,
13,
1970,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
962,
834,
102,
4920,
3274,
96,
3229,
4347,
3166,
9125,
3301,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give me the number of patients whose primary disease is hypertension;rule out coronary artery disease\cardiac cath and year of birth is less than 2110? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\CARDIAC CATH" AND demographic.dob_year < "2110" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
15761,
8742,
17779,
134,
9215,
117,
8503,
3765,
3,
9744,
2847,
13044,
... |
What is the production code for episode 26 in the series? | CREATE TABLE table_1876825_3 (
production_code VARCHAR,
no_in_series VARCHAR
) | SELECT production_code FROM table_1876825_3 WHERE no_in_series = 26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25828,
3651,
1828,
834,
519,
41,
999,
834,
4978,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
999,
834,
4978,
21680,
953,
834,
25828,
3651,
1828,
834,
519,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
2208,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest lane in the Czech Republic and a time larger than 21.05? | CREATE TABLE table_64382 (
"Rank" real,
"Lane" real,
"Athlete" text,
"Nationality" text,
"Time" real,
"React" real
) | SELECT MIN("Lane") FROM table_64382 WHERE "Nationality" = 'czech republic' AND "Time" > '21.05' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
3747,
357,
41,
96,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
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,
3,
17684,
599,
121,
434,
152,
15,
8512,
21680,
953,
834,
4389,
3747,
357,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
75,
776,
524,
20237,
31,
3430,
96,
13368,
121,
2490,
3,
31,
2658,
5,
3076,
31,
1,
-100... |
Who was the other party nominee that ran against Democratic Rick Boucher? | CREATE TABLE table_name_98 (other_party VARCHAR, democratic VARCHAR) | SELECT other_party FROM table_name_98 WHERE democratic = "rick boucher" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
9269,
834,
8071,
584,
4280,
28027,
6,
15053,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
119,
1088,
21077,
24,
4037,
581,
10021,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
119,
834,
8071,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
15053,
3274,
96,
5206,
23462,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score on March 21, 2009? | CREATE TABLE table_1555 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Score" FROM table_1555 WHERE "Date" = 'March 21, 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3769,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
1808,
3769,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
25019,
12026,
2464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the mountain peak with rank less than 6 abd location of 81.9083 n 75.0250 w | CREATE TABLE table_name_16 (
mountain_peak VARCHAR,
rank VARCHAR,
location VARCHAR
) | SELECT mountain_peak FROM table_name_16 WHERE rank < 6 AND location = "81.9083°n 75.0250°w" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
4180,
834,
14661,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4180,
6734,
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,
0... | [
3,
23143,
14196,
4180,
834,
14661,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
11003,
3,
2,
431,
3430,
1128,
3274,
96,
4959,
5,
2394,
4591,
1956,
29,
489,
20734,
11434,
1956,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For the film titled 1997, what was the gross in Singapore? | CREATE TABLE table_40916 (
"Title" text,
"Director" text,
"Producer" text,
"Production Cost" text,
"Singapore Gross" text
) | SELECT "Singapore Gross" FROM table_40916 WHERE "Title" = '1997' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4198,
2938,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
3174,
4817,
49,
121,
1499,
6,
96,
3174,
8291,
6409,
121,
1499,
6,
96,
134,
53,
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,
134,
53,
9,
21642,
17969,
121,
21680,
953,
834,
591,
4198,
2938,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
2294,
4327,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the school for player who began in 1986, has fewer rebounds than 711 and plays F? | CREATE TABLE table_54003 (
"Player" text,
"Pos." text,
"From" real,
"School/Country" text,
"Rebs" real,
"Asts" real
) | SELECT "School/Country" FROM table_54003 WHERE "From" < '1986' AND "Rebs" < '711' AND "Pos." = 'f' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25379,
4928,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
22674,
121,
490,
6,
96,
29364,
87,
10628,
651,
121,
1499,
6,
96,
1649,
115,
7,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29364,
87,
10628,
651,
121,
21680,
953,
834,
25379,
4928,
549,
17444,
427,
96,
22674,
121,
3,
2,
3,
31,
2294,
3840,
31,
3430,
96,
1649,
115,
7,
121,
3,
2,
3,
31,
4450,
536,
31,
3430,
96,
345,
32,
7,
535,
... |
I want the score for 28 march 1979 | CREATE TABLE table_31872 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_31872 WHERE "Date" = '28 march 1979' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
4225,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3341,
4225,
357,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2577,
10556,
15393,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and revenue , and group by attribute name, could you show from high to low by the X? | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
4416,
1649,
15098,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5... |
What is the rank of the team with a time of 1:00.61? | CREATE TABLE table_name_1 (rank INTEGER, time VARCHAR) | SELECT AVG(rank) FROM table_name_1 WHERE time = "1:00.61" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
6254,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
8,
372,
28,
3,
9,
97,
13,
3,
24294,
5,
424... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
6254,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
97,
3274,
96,
24294,
5,
4241,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many CSU campuses are there? | CREATE TABLE enrollments (
campus number,
year number,
totalenrollment_ay number,
fte_ay number
)
CREATE TABLE discipline_enrollments (
campus number,
discipline number,
year number,
undergraduate number,
graduate number
)
CREATE TABLE csu_fees (
campus number,
year number,
campusfee number
)
CREATE TABLE faculty (
campus number,
year number,
faculty number
)
CREATE TABLE degrees (
year number,
campus number,
degrees number
)
CREATE TABLE campuses (
id number,
campus text,
location text,
county text,
year number
) | SELECT COUNT(*) FROM campuses | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17938,
7,
41,
4730,
381,
6,
215,
381,
6,
792,
35,
4046,
297,
834,
9,
63,
381,
6,
3,
89,
17,
15,
834,
9,
63,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
799... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25784,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the place when the player is Bob Gilder and the money was $20,903? | CREATE TABLE table_name_88 (place VARCHAR, money___$__ VARCHAR, player VARCHAR) | SELECT place FROM table_name_88 WHERE money___$__ = "20,903" AND player = "bob gilder" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
4687,
584,
4280,
28027,
6,
540,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
540,
834,
834,
834,
3229,
834,
834,
3274,
96,
1755,
6,
2394,
519,
121,
3430,
1959,
3274,
96,
17396,
3,
122,
173,
588,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
what is the average points when drawn is 0, lost is 5 and played is more than 10? | CREATE TABLE table_name_60 (
points INTEGER,
played VARCHAR,
drawn VARCHAR,
lost VARCHAR
) | SELECT AVG(points) FROM table_name_60 WHERE drawn = 0 AND lost = 5 AND played > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
979,
3,
21342,
17966,
6,
1944,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
6796,
3274,
3,
632,
3430,
1513,
3274,
305,
3430,
1944,
2490,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Race 2, when Race 4 is 28? | CREATE TABLE table_49954 (
"Driver" text,
"Race 1" text,
"Race 2" text,
"Race 3" text,
"Race 4" text
) | SELECT "Race 2" FROM table_49954 WHERE "Race 4" = '28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
3301,
591,
41,
96,
20982,
52,
121,
1499,
6,
96,
448,
3302,
209,
121,
1499,
6,
96,
448,
3302,
204,
121,
1499,
6,
96,
448,
3302,
220,
121,
1499,
6,
96,
448,
3302,
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,
3302,
204,
121,
21680,
953,
834,
3647,
3301,
591,
549,
17444,
427,
96,
448,
3302,
3,
20364,
3274,
3,
31,
2577,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what's the minimum species in the peruvian amazon with taxonomy s fern ( pteridophyta ) | CREATE TABLE table_72212 (
"Taxonomy" text,
"Species in the world" real,
"Species in Peru" real,
"Species in the Peruvian Amazon" real,
"Peru Vs. world (Percent)" real,
"Peruvian Amazon Vs. Peru (Percent)" real
) | SELECT MIN("Species in the Peruvian Amazon") FROM table_72212 WHERE "Taxonomy" = 's Fern ( Pteridophyta )' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
24837,
41,
96,
382,
9,
226,
32,
3114,
63,
121,
1499,
6,
96,
7727,
725,
16,
8,
296,
121,
490,
6,
96,
7727,
725,
16,
17665,
121,
490,
6,
96,
7727,
725,
16,
8,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7727,
725,
16,
8,
17665,
5907,
29,
2536,
8512,
21680,
953,
834,
5865,
24837,
549,
17444,
427,
96,
382,
9,
226,
32,
3114,
63,
121,
3274,
3,
31,
7,
12225,
41,
276,
449,
23,
26,
32,
6941,
17,
... |
what is the number of patients whose hospital stay is above 14 days and admission year before 2119? | 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 WHERE demographic.days_stay > "14" AND demographic.admityear < "2119" | [
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,
1135,
7,
834,
21545,
2490,
96,
2534,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
2,
96,
2658,
2294,... |
How many rounds were played on May 8? | CREATE TABLE table_25773116_2 (round VARCHAR, date VARCHAR) | SELECT COUNT(round) FROM table_25773116_2 WHERE date = "May 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4013,
3341,
2938,
834,
357,
41,
7775,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14419,
130,
1944,
30,
932,
505,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
1828,
4013,
3341,
2938,
834,
357,
549,
17444,
427,
833,
3274,
96,
15881,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which city has a resolution that is negotiated exile in Austria? | CREATE TABLE table_18299148_1 (
city VARCHAR,
resolution VARCHAR
) | SELECT city FROM table_18299148_1 WHERE resolution = "Negotiated exile in Austria" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
357,
3264,
24748,
834,
536,
41,
690,
584,
4280,
28027,
6,
3161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
690,
65,
3,
9,
3161,
24,
19,
3,
26262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
690,
21680,
953,
834,
2606,
357,
3264,
24748,
834,
536,
549,
17444,
427,
3161,
3274,
96,
567,
6066,
17,
23,
920,
1215,
699,
16,
9652,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the names of enzymes who does not produce 'Heme'? | CREATE TABLE medicine_enzyme_interaction (
enzyme_id number,
medicine_id number,
interaction_type text
)
CREATE TABLE enzyme (
id number,
name text,
location text,
product text,
chromosome text,
omim number,
porphyria text
)
CREATE TABLE medicine (
id number,
name text,
trade_name text,
fda_approved text
) | SELECT name FROM enzyme WHERE product <> 'Heme' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4404,
834,
35,
4164,
526,
834,
3870,
4787,
41,
15735,
834,
23,
26,
381,
6,
4404,
834,
23,
26,
381,
6,
6565,
834,
6137,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
15735,
549,
17444,
427,
556,
3,
2,
3155,
3,
31,
3845,
526,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List all payment methods and number of payments using each payment methods. Show a pie chart. | CREATE TABLE Customer_Payments (
customer_id INTEGER,
datetime_payment DATETIME,
payment_method_code VARCHAR(10),
amount_payment DOUBLE
)
CREATE TABLE Lessons (
lesson_id INTEGER,
customer_id INTEGER,
lesson_status_code VARCHAR(15),
staff_id INTEGER,
vehicle_id INTEGER,
lesson_date DATETIME,
lesson_time VARCHAR(10),
price DOUBLE
)
CREATE TABLE Vehicles (
vehicle_id INTEGER,
vehicle_details VARCHAR(255)
)
CREATE TABLE Addresses (
address_id INTEGER,
line_1_number_building VARCHAR(80),
city VARCHAR(50),
zip_postcode VARCHAR(20),
state_province_county VARCHAR(50),
country VARCHAR(50)
)
CREATE TABLE Staff (
staff_id INTEGER,
staff_address_id INTEGER,
nickname VARCHAR(80),
first_name VARCHAR(80),
middle_name VARCHAR(80),
last_name VARCHAR(80),
date_of_birth DATETIME,
date_joined_staff DATETIME,
date_left_staff DATETIME
)
CREATE TABLE Customers (
customer_id INTEGER,
customer_address_id INTEGER,
customer_status_code VARCHAR(15),
date_became_customer DATETIME,
date_of_birth DATETIME,
first_name VARCHAR(80),
last_name VARCHAR(80),
amount_outstanding DOUBLE,
email_address VARCHAR(250),
phone_number VARCHAR(255),
cell_mobile_phone_number VARCHAR(255)
) | SELECT payment_method_code, COUNT(*) FROM Customer_Payments GROUP BY payment_method_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7327,
834,
19702,
4128,
41,
884,
834,
23,
26,
3,
21342,
17966,
6,
833,
715,
834,
21752,
309,
6048,
382,
15382,
6,
1942,
834,
23152,
834,
4978,
584,
4280,
28027,
599,
16968,
6,
866,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1942,
834,
23152,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
7327,
834,
19702,
4128,
350,
4630,
6880,
272,
476,
1942,
834,
23152,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For all employees who have the letters D or S in their first name, show me about the distribution of job_id and the sum of department_id , and group by attribute job_id in a bar chart, and show in descending by the X-axis. | 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 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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
) | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID 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,
446,
10539,
834,
4309,
6,
180,
6122,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
... |
What is the date of the performance by Jatin Shah and co-contestant is Shalini Chandran? | CREATE TABLE table_name_89 (date_performed VARCHAR, main_contestant VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR) | SELECT date_performed FROM table_name_89 WHERE main_contestant = "jatin shah" AND co_contestant__yaar_vs_pyaar_ = "shalini chandran" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
5522,
834,
883,
10816,
584,
4280,
28027,
6,
711,
834,
1018,
4377,
288,
584,
4280,
28027,
6,
576,
834,
1018,
4377,
288,
834,
834,
63,
9,
291,
834,
208,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
883,
10816,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
711,
834,
1018,
4377,
288,
3274,
96,
1191,
17,
77,
6660,
9,
107,
121,
3430,
576,
834,
1018,
4377,
288,
834,
834,
63,
9,
291,
834,
208,
7,
... |
Which province's IATA is kix? | CREATE TABLE table_42243 (
"City" text,
"Province" text,
"Country" text,
"IATA" text,
"Airport" text
) | SELECT "Province" FROM table_42243 WHERE "IATA" = 'kix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
27730,
41,
96,
254,
485,
121,
1499,
6,
96,
3174,
2494,
565,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
19282,
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,
0,
0... | [
3,
23143,
14196,
96,
3174,
2494,
565,
121,
21680,
953,
834,
4165,
27730,
549,
17444,
427,
96,
196,
19282,
121,
3274,
3,
31,
157,
2407,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many cities are in counties that have populations of over 20000? | CREATE TABLE county_public_safety (
county_id number,
name text,
population number,
police_officers number,
residents_per_officer number,
case_burden number,
crime_rate number,
police_force text,
location text
)
CREATE TABLE city (
city_id number,
county_id number,
name text,
white number,
black number,
amerindian number,
asian number,
multiracial number,
hispanic number
) | SELECT COUNT(*) FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE population > 20000) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
834,
15727,
834,
15233,
17,
63,
41,
5435,
834,
23,
26,
381,
6,
564,
1499,
6,
2074,
381,
6,
2095,
834,
19632,
52,
7,
381,
6,
2797,
834,
883,
834,
19632,
52,
381,
6,
495,
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,
2847,
17161,
599,
1935,
61,
21680,
690,
549,
17444,
427,
5435,
834,
23,
26,
3388,
41,
23143,
14196,
5435,
834,
23,
26,
21680,
5435,
834,
15727,
834,
15233,
17,
63,
549,
17444,
427,
2074,
2490,
460,
2313,
61,
1,
-100... |
give me the number of patients whose ethnicity is american indian/alaska native and diagnoses short title is intracerebral hemorrhage? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND diagnoses.short_title = "Intracerebral hemorrhage" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which home team played Hawthorn as the away team? | CREATE TABLE table_name_44 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team FROM table_name_44 WHERE away_team = "hawthorn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
234,
372,
1944,
1626,
210,
17,
6293,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1024,
210,
17,
6293,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the maximumum number of wins? | CREATE TABLE table_1507423_4 (wins INTEGER) | SELECT MIN(wins) FROM table_1507423_4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
4581,
2773,
834,
591,
41,
3757,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
440,
381,
13,
9204,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
12278,
4581,
2773,
834,
591,
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... |
how many songs had at least 500,000 sales ? | CREATE TABLE table_203_249 (
id number,
"position" number,
"song title" text,
"artist" text,
"sales" number,
"highest position" number
) | SELECT COUNT("song title") FROM table_203_249 WHERE "sales" >= 500000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
3647,
41,
3,
23,
26,
381,
6,
96,
4718,
121,
381,
6,
96,
7,
2444,
2233,
121,
1499,
6,
96,
1408,
343,
121,
1499,
6,
96,
7,
4529,
121,
381,
6,
96,
6739,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
2444,
2233,
8512,
21680,
953,
834,
23330,
834,
357,
3647,
549,
17444,
427,
96,
7,
4529,
121,
2490,
2423,
2899,
2313,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the essendon score when they were at home? | CREATE TABLE table_name_25 (
home_team VARCHAR
) | SELECT home_team AS score FROM table_name_25 WHERE home_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
8185,
2029,
2604,
116,
79,
130,
44,
234,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
234,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the number of cores for ddr3-1333 with frequencies between 2.66-2.8ghz. | CREATE TABLE table_24018112_1 (
cores_threads VARCHAR,
max_memory_speed VARCHAR,
frequency VARCHAR
) | SELECT cores_threads FROM table_24018112_1 WHERE max_memory_speed = "DDR3-1333" AND frequency = "2.66-2.8GHz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
2606,
2596,
357,
834,
536,
41,
2583,
7,
834,
189,
5236,
7,
584,
4280,
28027,
6,
9858,
834,
526,
2528,
63,
834,
9993,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2583,
7,
834,
189,
5236,
7,
21680,
953,
834,
11944,
2606,
2596,
357,
834,
536,
549,
17444,
427,
9858,
834,
526,
2528,
63,
834,
9993,
3274,
96,
308,
3913,
519,
13056,
4201,
121,
3430,
7321,
3274,
96,
22724,
25369,
5,... |
What was the average attendance when the record was 19-13? | CREATE TABLE table_name_23 (attendance INTEGER, record VARCHAR) | SELECT AVG(attendance) FROM table_name_23 WHERE record = "19-13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
15116,
663,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
11364,
116,
8,
1368,
47,
957,
13056,
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,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
1368,
3274,
96,
2294,
13056,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
From what catalog was the release from Sundazed label? | CREATE TABLE table_13857 (
"Date" text,
"Label" text,
"Format" text,
"Country" text,
"Catalog" text
) | SELECT "Catalog" FROM table_13857 WHERE "Label" = 'sundazed' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
3436,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
18610,
9,
2152,
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,
96,
18610,
9,
2152,
121,
21680,
953,
834,
22744,
3436,
549,
17444,
427,
96,
434,
10333,
121,
3274,
3,
31,
7,
1106,
9,
776,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is HDTV, when Language is English, and when Television Service is MTV Dance? | CREATE TABLE table_41070 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
) | SELECT "HDTV" FROM table_41070 WHERE "Language" = 'english' AND "Television service" = 'mtv dance' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24175,
2518,
41,
96,
382,
400,
6610,
313,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
4302,
4669,
121,
1499,
6,
96,
11083,
4562,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11083,
4562,
121,
21680,
953,
834,
24175,
2518,
549,
17444,
427,
96,
434,
1468,
76,
545,
121,
3274,
3,
31,
4606,
40,
1273,
31,
3430,
96,
382,
400,
6610,
313,
121,
3274,
3,
31,
51,
17,
208,
2595,
31,
1,
-100,... |
Return the claim start date for the claims whose claimed amount is no more than the average | CREATE TABLE customers (
customer_id number,
customer_details text
)
CREATE TABLE settlements (
settlement_id number,
claim_id number,
date_claim_made time,
date_claim_settled time,
amount_claimed number,
amount_settled number,
customer_policy_id number
)
CREATE TABLE customer_policies (
policy_id number,
customer_id number,
policy_type_code text,
start_date time,
end_date time
)
CREATE TABLE payments (
payment_id number,
settlement_id number,
payment_method_code text,
date_payment_made time,
amount_payment number
)
CREATE TABLE claims (
claim_id number,
policy_id number,
date_claim_made time,
date_claim_settled time,
amount_claimed number,
amount_settled number
) | SELECT date_claim_made FROM claims WHERE amount_settled <= (SELECT AVG(amount_settled) FROM claims) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
884,
834,
23,
26,
381,
6,
884,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7025,
7,
41,
7025,
834,
23,
26,
381,
6,
1988,
834,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
15085,
834,
4725,
21680,
3213,
549,
17444,
427,
866,
834,
2244,
17,
1361,
3,
2,
2423,
41,
23143,
14196,
71,
17217,
599,
9,
11231,
834,
2244,
17,
1361,
61,
21680,
3213,
61,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the player when the team is oakland raiders? | CREATE TABLE table_name_89 (
player VARCHAR,
team VARCHAR
) | SELECT player FROM table_name_89 WHERE team = "oakland raiders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
1959,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1959,
116,
8,
372,
19,
11586,
40,
232,
15941,
277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
372,
3274,
96,
32,
1639,
40,
232,
15941,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the series number of the episode directed by Skipp Sudduth? | CREATE TABLE table_23528223_2 (no_in_series VARCHAR, directed_by VARCHAR) | SELECT no_in_series FROM table_23528223_2 WHERE directed_by = "Skipp Sudduth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25174,
2577,
357,
2773,
834,
357,
41,
29,
32,
834,
77,
834,
10833,
7,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
150,
834,
77,
834,
10833,
7,
21680,
953,
834,
25174,
2577,
357,
2773,
834,
357,
549,
17444,
427,
6640,
834,
969,
3274,
96,
134,
2168,
1572,
9010,
1259,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Home team has an Away team of fitzroy? | CREATE TABLE table_name_62 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_62 WHERE away_team = "fitzroy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1210,
372,
65,
46,
71,
1343,
372,
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,
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,
4056,
549,
17444,
427,
550,
834,
11650,
3274,
96,
89,
5615,
8170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find all movies by directors born in ' Los Angeles | CREATE TABLE made_by (
id int,
msid int,
pid int
)
CREATE TABLE directed_by (
id int,
msid int,
did int
)
CREATE TABLE classification (
id int,
msid int,
gid 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 tags (
id int,
msid int,
kid int
)
CREATE TABLE producer (
pid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE movie (
mid int,
title text,
release_year int,
title_aka text,
budget text
)
CREATE TABLE company (
id int,
name text,
country_code varchar
)
CREATE TABLE genre (
gid int,
genre text
)
CREATE TABLE written_by (
id int,
msid int,
wid int
)
CREATE TABLE director (
did int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE copyright (
id int,
msid int,
cid int
)
CREATE TABLE keyword (
id int,
keyword text
)
CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE cast (
id int,
msid int,
aid int,
role text
)
CREATE TABLE writer (
wid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
) | SELECT movie.title FROM directed_by, director, movie WHERE director.birth_city = 'Los Angeles' AND director.did = directed_by.did AND movie.mid = directed_by.msid | [
32100,
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,
3,
12417,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6640,
834,
969,
41,
3,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1974,
5,
21869,
21680,
6640,
834,
969,
6,
2090,
6,
1974,
549,
17444,
427,
2090,
5,
20663,
834,
6726,
3274,
3,
31,
434,
32,
7,
4975,
31,
3430,
2090,
5,
12416,
3274,
6640,
834,
969,
5,
12416,
3430,
1974,
5,
6983,
... |
What is the least attendance that has 3-5 as a record? | CREATE TABLE table_name_25 (
attendance INTEGER,
record VARCHAR
) | SELECT MIN(attendance) FROM table_name_25 WHERE record = "3-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
11364,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
11364,
24,
65,
3,
18366,
38,
3,
9,
1368,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
1368,
3274,
96,
18366,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What kind of Crowd has a Ground of subiaco oval? | CREATE TABLE table_48417 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
) | SELECT SUM("Crowd") FROM table_48417 WHERE "Ground" = 'subiaco oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
591,
2517,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
517,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
254,
3623,
26,
8512,
21680,
953,
834,
3707,
591,
2517,
549,
17444,
427,
96,
517,
7775,
121,
3274,
3,
31,
7,
8371,
9,
509,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who has the Home Score of 52-54? | CREATE TABLE table_75789 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
) | SELECT "Home" FROM table_75789 WHERE "Score" = '52-54' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
940,
3914,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
517,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
121,
21680,
953,
834,
3072,
940,
3914,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
5373,
18,
5062,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In the match played with partner Andres Molteni, with the outcome of winner, who was the opponent? | CREATE TABLE table_32834 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponent" text,
"Score" text
) | SELECT "Opponent" FROM table_32834 WHERE "Outcome" = 'winner' AND "Partner" = 'andres molteni' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28070,
3710,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28070,
3710,
549,
17444,
427,
96,
15767,
287,
15,
121,
3274,
3,
31,
3757,
687,
31,
3430,
96,
13725,
687,
121,
3274,
3,
31,
232,
60,
7,
3,
4641,
324,
23,
31,
1,
-100,
-... |
How many points did lech piasecki, stephen roche, and carrera jeans-vagabond have? | CREATE TABLE table_71552 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text,
"Trofeo Fast Team" text
) | SELECT "Points classification" FROM table_71552 WHERE "Young rider classification" = 'lech piasecki' AND "General classification" = 'stephen roche' AND "Winner" = 'carrera jeans-vagabond' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
3769,
357,
41,
96,
134,
6505,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
13774,
121,
1499,
6,
96,
22512,
7,
13774,
121,
1499,
6,
96,
329,
32,
14016,
77,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13774,
121,
21680,
953,
834,
4450,
3769,
357,
549,
17444,
427,
96,
3774,
1725,
2564,
52,
13774,
121,
3274,
3,
31,
109,
524,
2816,
9,
7,
5007,
23,
31,
3430,
96,
20857,
13774,
121,
3274,
3,
31,
849,
... |
what year did the champions have a 3-0 record before 1983 ? | CREATE TABLE table_204_110 (
id number,
"year" number,
"champion" text,
"city" text,
"llws" text,
"record" text
) | SELECT "year" FROM table_204_110 WHERE "record" = '3-0' AND "year" < 1983 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
19277,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
17788,
12364,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
195,
210,
7,
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,
96,
1201,
121,
21680,
953,
834,
26363,
834,
19277,
549,
17444,
427,
96,
60,
7621,
121,
3274,
3,
31,
22773,
31,
3430,
96,
1201,
121,
3,
2,
15041,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of played values for teams with more than 14 points and more than 1 draw? | CREATE TABLE table_name_84 (played VARCHAR, points VARCHAR, drawn VARCHAR) | SELECT COUNT(played) FROM table_name_84 WHERE points > 14 AND drawn > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
4895,
15,
26,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
1944,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
979,
2490,
968,
3430,
6796,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the oldest year that the Royal Philharmonic Orchestra released a record with Decca Records? | CREATE TABLE table_name_63 (
year_of_recording INTEGER,
orchestra VARCHAR,
record_company VARCHAR
) | SELECT MIN(year_of_recording) FROM table_name_63 WHERE orchestra = "royal philharmonic orchestra" AND record_company = "decca records" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
215,
834,
858,
834,
60,
7621,
53,
3,
21342,
17966,
6,
13873,
584,
4280,
28027,
6,
1368,
834,
29179,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1201,
834,
858,
834,
60,
7621,
53,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
13873,
3274,
96,
8170,
138,
3,
18118,
17178,
4554,
13873,
121,
3430,
1368,
834,
29179,
3274,
96,
221,
12464,
3... |
How many million U.S. viewers wtched episode 69 of the series? | CREATE TABLE table_27832075_2 (us_viewers__millions_ VARCHAR, series__number VARCHAR) | SELECT us_viewers__millions_ FROM table_27832075_2 WHERE series__number = 69 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4591,
1755,
3072,
834,
357,
41,
302,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
6,
939,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
21680,
953,
834,
2555,
4591,
1755,
3072,
834,
357,
549,
17444,
427,
939,
834,
834,
5525,
1152,
3274,
3,
3951,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the 2006 population for the local government area of alexandrina council whose rank was smaller than 19? | CREATE TABLE table_name_66 (population_2006_census INTEGER, local_government_area VARCHAR, rank VARCHAR) | SELECT AVG(population_2006_census) FROM table_name_66 WHERE local_government_area = "alexandrina council" AND rank < 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
9791,
7830,
834,
21196,
834,
75,
35,
7,
302,
3,
21342,
17966,
6,
415,
834,
27818,
834,
498,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
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,
71,
17217,
599,
9791,
7830,
834,
21196,
834,
75,
35,
7,
302,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
415,
834,
27818,
834,
498,
3274,
96,
138,
994,
152,
19161,
9,
6098,
121,
3430,
11003,
3,
2,
957,
... |
How many attended on december 2? | CREATE TABLE table_25503 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("Location Attendance") FROM table_25503 WHERE "Date" = 'December 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
4928,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
434,
32,
75,
257,
22497,
663,
8512,
21680,
953,
834,
25502,
4928,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
29835,
204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which township has a longitude of -98.741656? | CREATE TABLE table_18600760_12 (
township VARCHAR,
longitude VARCHAR
) | SELECT township FROM table_18600760_12 WHERE longitude = "-98.741656" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
4560,
3328,
834,
2122,
41,
1511,
2009,
584,
4280,
28027,
6,
307,
20341,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1511,
2009,
65,
3,
9,
307,
20341,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1511,
2009,
21680,
953,
834,
24700,
4560,
3328,
834,
2122,
549,
17444,
427,
307,
20341,
3274,
96,
18,
3916,
5,
4581,
2938,
4834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Money ($) when the Place is t6, and Player is chris dimarco? | CREATE TABLE table_77362 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Money ( $ )" FROM table_77362 WHERE "Place" = 't6' AND "Player" = 'chris dimarco' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
3420,
357,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9168,
15,
63,
41,
1514,
3,
61,
121,
21680,
953,
834,
4013,
3420,
357,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
948,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
524,
52,
159,
1227,
1635,
509,
3... |
Which Avg/G has an Effic larger than 129.73, and a Cmp-Att-Int of 333-500-13? | CREATE TABLE table_name_63 (
avg_g INTEGER,
effic VARCHAR,
cmp_att_int VARCHAR
) | SELECT SUM(avg_g) FROM table_name_63 WHERE effic > 129.73 AND cmp_att_int = "333-500-13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
3,
9,
208,
122,
834,
122,
3,
21342,
17966,
6,
13577,
447,
584,
4280,
28027,
6,
2446,
102,
834,
144,
17,
834,
77,
17,
584,
4280,
28027,
3,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
9,
208,
122,
834,
122,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
13577,
447,
2490,
3,
22174,
5,
4552,
3430,
2446,
102,
834,
144,
17,
834,
77,
17,
3274,
96,
23360,
18,
2560,
13056,
121,... |
What is the 2012 of the hamburg masters? | CREATE TABLE table_61447 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2012" FROM table_61447 WHERE "Tournament" = 'hamburg masters' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2534,
4177,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907,
121,
1499,
6,
96,
12172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12172,
121,
21680,
953,
834,
948,
2534,
4177,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
1483,
4824,
2325,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many acts had no albums released under bad boy ? | CREATE TABLE table_200_14 (
id number,
"act" text,
"year signed" number,
"# albums released under bad boy" number
) | SELECT COUNT("act") FROM table_200_14 WHERE "# albums released under bad boy" IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
834,
2534,
41,
3,
23,
26,
381,
6,
96,
2708,
121,
1499,
6,
96,
1201,
3814,
121,
381,
6,
96,
4663,
14234,
1883,
365,
1282,
4940,
121,
381,
3,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
2708,
8512,
21680,
953,
834,
3632,
834,
2534,
549,
17444,
427,
96,
4663,
14234,
1883,
365,
1282,
4940,
121,
6827,
13046,
10376,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the reference for the romani title da.i.su.ki? | CREATE TABLE table_name_4 (reference VARCHAR, romaji_title VARCHAR) | SELECT reference FROM table_name_4 WHERE romaji_title = "da.i.su.ki" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
60,
11788,
584,
4280,
28027,
6,
3,
3522,
17815,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2848,
21,
8,
3408,
23,
2233... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2848,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
3,
3522,
17815,
834,
21869,
3274,
96,
26,
9,
5,
23,
5,
7,
76,
5,
2168,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many silver medals did evgeni plushenko get ? | CREATE TABLE table_203_104 (
id number,
"athlete" text,
"nation" text,
"olympics" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "silver" FROM table_203_104 WHERE "athlete" = 'evgeni plushenko' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
15442,
41,
3,
23,
26,
381,
6,
96,
26170,
15,
121,
1499,
6,
96,
29,
257,
121,
1499,
6,
96,
32,
120,
51,
6174,
7,
121,
1499,
6,
96,
14910,
121,
381,
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,
7,
173,
624,
121,
21680,
953,
834,
23330,
834,
15442,
549,
17444,
427,
96,
26170,
15,
121,
3274,
3,
31,
15,
208,
729,
23,
303,
107,
18994,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When aspect computing is the yacht what is the sail number? | CREATE TABLE table_1858574_2 (sail_number VARCHAR, yacht VARCHAR) | SELECT sail_number FROM table_1858574_2 WHERE yacht = "Aspect Computing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
4433,
4581,
834,
357,
41,
7,
9,
173,
834,
5525,
1152,
584,
4280,
28027,
6,
18082,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
2663,
10937,
19,
8,
18082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14725,
834,
5525,
1152,
21680,
953,
834,
21594,
4433,
4581,
834,
357,
549,
17444,
427,
18082,
3274,
96,
188,
5628,
25274,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the election result before 2004 where Eric Cantor was the incumbent? | CREATE TABLE table_name_61 (results VARCHAR, first_elected VARCHAR, incumbent VARCHAR) | SELECT results FROM table_name_61 WHERE first_elected < 2004 AND incumbent = "eric cantor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
60,
7,
83,
17,
7,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
772,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
166,
834,
19971,
3,
2,
4406,
3430,
28406,
3274,
96,
15,
2234,
54,
17,
127,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many times was the motorcycle ducati 916 2nd place when wins is less than 7? | CREATE TABLE table_name_14 (motorcycle VARCHAR, wins VARCHAR) | SELECT SUM(2 AS nd_pl) FROM table_name_14 WHERE motorcycle = "ducati 916" AND wins < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
18271,
10136,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
47,
8,
11718,
146,
16461,
668,
2938,
204,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
357,
6157,
3,
727,
834,
102,
40,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
11718,
3274,
96,
1259,
16461,
668,
2938,
121,
3430,
9204,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was being played on Nov 23, 2006? | CREATE TABLE table_name_79 (
competition VARCHAR,
date VARCHAR
) | SELECT competition FROM table_name_79 WHERE date = "nov 23, 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
2259,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
271,
1944,
30,
5098,
12992,
3581,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
833,
3274,
96,
5326,
12992,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the latest year a division was established? | CREATE TABLE table_21960 (
"Voivodeship after 1569" text,
"Capital" text,
"Year established" real,
"Number of powiats" text,
"Area (km\u00b2) in 1590 (Lithuanian) Category:Articles with Lithuanian-language external links" real
) | SELECT MAX("Year established") FROM table_21960 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
27699,
41,
96,
553,
32,
23,
1621,
221,
2009,
227,
627,
3951,
121,
1499,
6,
96,
19566,
9538,
121,
1499,
6,
96,
476,
2741,
2127,
121,
490,
6,
96,
567,
5937,
49,
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,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
476,
2741,
2127,
8512,
21680,
953,
834,
2658,
27699,
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,
... |
Who was the jockey with opening odds of 4-1? | CREATE TABLE table_25096 (
"Post" real,
"Horse name" text,
"Trainer" text,
"Jockey" text,
"Opening Odds" text,
"Starting Odds" text,
"Finishing Pos." real
) | SELECT "Jockey" FROM table_25096 WHERE "Opening Odds" = '4-1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
4314,
41,
96,
22507,
121,
490,
6,
96,
566,
127,
7,
15,
564,
121,
1499,
6,
96,
9402,
4899,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
22696,
53,
9899,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
683,
3961,
15,
63,
121,
21680,
953,
834,
11434,
4314,
549,
17444,
427,
96,
22696,
53,
9899,
26,
7,
121,
3274,
3,
31,
591,
2292,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Class when Wessex Trains Pink is the Livery? | CREATE TABLE table_43400 (
"Number" real,
"Class" real,
"Name" text,
"Livery" text,
"Notes" text
) | SELECT "Class" FROM table_43400 WHERE "Livery" = 'wessex trains pink' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
5548,
41,
96,
567,
5937,
49,
121,
490,
6,
96,
21486,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24179,
651,
121,
1499,
6,
96,
10358,
15,
7,
121,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21486,
121,
21680,
953,
834,
4906,
5548,
549,
17444,
427,
96,
24179,
651,
121,
3274,
3,
31,
1123,
7,
7,
994,
14053,
5571,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which party does Timothy Kirkhope lead? | CREATE TABLE table_name_50 (
party VARCHAR,
leader VARCHAR
) | SELECT party FROM table_name_50 WHERE leader = "timothy kirkhope" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
1088,
584,
4280,
28027,
6,
2488,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1088,
405,
23720,
17839,
10776,
15,
991,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
2488,
3274,
96,
2998,
32,
189,
63,
3,
18413,
28569,
855,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When was the game with the loss of Moore (0-1)? | CREATE TABLE table_name_82 (
date VARCHAR,
loss VARCHAR
) | SELECT date FROM table_name_82 WHERE loss = "moore (0-1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
833,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
467,
28,
8,
1453,
13,
11103,
17482,
18,
6982,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
1453,
3274,
96,
21477,
15,
17482,
18,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the engine name that has a maximum torque at rpm of n·m ( lbf·ft ) @ 3,800? | CREATE TABLE table_name_42 (engine_name VARCHAR, max_torque_at_rpm VARCHAR) | SELECT engine_name FROM table_name_42 WHERE max_torque_at_rpm = "n·m ( lbf·ft ) @ 3,800" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
20165,
834,
4350,
584,
4280,
28027,
6,
9858,
834,
17,
127,
835,
834,
144,
834,
52,
2028,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1948,
834,
4350,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
9858,
834,
17,
127,
835,
834,
144,
834,
52,
2028,
3274,
96,
29,
2,
51,
41,
3,
40,
115,
89,
2,
89,
17,
3,
61,
3320,
6180,
6192,
121,
1,
-100,
... |
what is the number of losses with wins less than 4 and goals against more than 39? | CREATE TABLE table_14497 (
"Team" text,
"Games Played" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Goals For" real,
"Goals Against" real
) | SELECT COUNT("Losses") FROM table_14497 WHERE "Goals Against" > '39' AND "Wins" < '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20885,
4327,
41,
96,
18699,
121,
1499,
6,
96,
23055,
7,
2911,
15,
26,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
382,
725,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
434,
13526,
7,
8512,
21680,
953,
834,
20885,
4327,
549,
17444,
427,
96,
6221,
5405,
3,
20749,
121,
2490,
3,
31,
3288,
31,
3430,
96,
18455,
7,
121,
3,
2,
3,
31,
591,
31,
1,
-100,
-100,
-100... |
How many times is the formula tl 2 ba 2 cuo 6? | CREATE TABLE table_101336_1 (
no_of_cu_o_planes_in_unit_cell VARCHAR,
formula VARCHAR
) | SELECT no_of_cu_o_planes_in_unit_cell FROM table_101336_1 WHERE formula = "Tl 2 Ba 2 CuO 6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2368,
3420,
834,
536,
41,
150,
834,
858,
834,
1071,
834,
32,
834,
3767,
15,
7,
834,
77,
834,
15129,
834,
8725,
584,
4280,
28027,
6,
5403,
584,
4280,
28027,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
150,
834,
858,
834,
1071,
834,
32,
834,
3767,
15,
7,
834,
77,
834,
15129,
834,
8725,
21680,
953,
834,
1714,
2368,
3420,
834,
536,
549,
17444,
427,
5403,
3274,
96,
382,
40,
204,
2659,
204,
1839,
667,
431,
121,
1,
... |
What batting partners batted for pakistan? | CREATE TABLE table_1670921_2 (batting_partners VARCHAR, batting_team VARCHAR) | SELECT batting_partners FROM table_1670921_2 WHERE batting_team = "Pakistan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27650,
4198,
2658,
834,
357,
41,
27759,
834,
12300,
7,
584,
4280,
28027,
6,
3,
27759,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
27759,
3222,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
27759,
834,
12300,
7,
21680,
953,
834,
27650,
4198,
2658,
834,
357,
549,
17444,
427,
3,
27759,
834,
11650,
3274,
96,
345,
11259,
5627,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which chemical class uses the example Chloroethane (ethyl chloride)? | CREATE TABLE table_name_90 (
chemical_class VARCHAR,
example VARCHAR
) | SELECT chemical_class FROM table_name_90 WHERE example = "chloroethane (ethyl chloride)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
5368,
834,
4057,
584,
4280,
28027,
6,
677,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5368,
853,
2284,
8,
677,
4004,
322,
32,
15,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5368,
834,
4057,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
677,
3274,
96,
524,
322,
32,
15,
6736,
15,
41,
15,
189,
63,
40,
19782,
1599,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What director is from Poland? | CREATE TABLE table_name_65 (
director VARCHAR,
country VARCHAR
) | SELECT director FROM table_name_65 WHERE country = "poland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
2090,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2090,
19,
45,
14354,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
684,
3274,
96,
3233,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the location that led to a record of 9-0-0? | CREATE TABLE table_38998 (
"Result" text,
"Record" text,
"Opponent" text,
"Rd, Time" text,
"Date" text,
"Location" text
) | SELECT "Location" FROM table_38998 WHERE "Record" = '9-0-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3914,
3916,
41,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
448,
26,
6,
2900,
121,
1499,
6,
96,
308,
342,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
519,
3914,
3916,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
1298,
18,
18629,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Home team score at junction oval? | CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_19 WHERE venue = "junction oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1210,
372,
2604,
44,
23704,
17986,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
5669,
3274,
96,
6959,
4985,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the December playmate with a February playmate Anne-Marie Fox? | CREATE TABLE table_69249 (
"January" text,
"February" text,
"March" text,
"April" text,
"June" text,
"July" text,
"August" text,
"September" text,
"October" text,
"November" text,
"December" text
) | SELECT "December" FROM table_69249 WHERE "February" = 'anne-marie fox' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
357,
3647,
41,
96,
30404,
121,
1499,
6,
96,
31122,
121,
1499,
6,
96,
25019,
121,
1499,
6,
96,
23323,
121,
1499,
6,
96,
683,
444,
121,
1499,
6,
96,
683,
83,
63,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29835,
121,
21680,
953,
834,
3951,
357,
3647,
549,
17444,
427,
96,
31122,
121,
3274,
3,
31,
4515,
18,
17289,
15,
3,
20400,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the number of students who are living in a dorm with a TV Lounge and group by first name in a bar chart. | CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
) | SELECT Fname, COUNT(Fname) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM Has_amenity AS T3 JOIN Dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge') GROUP BY Fname | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6200,
51,
41,
103,
52,
6983,
3,
21342,
17966,
6,
103,
52,
51,
834,
4350,
584,
4280,
28027,
599,
1755,
201,
1236,
834,
4010,
9,
6726,
3,
21342,
17966,
6,
7285,
584,
4280,
28027,
14296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
377,
4350,
6,
2847,
17161,
599,
371,
4350,
61,
21680,
6341,
6157,
332,
536,
3,
15355,
3162,
3306,
7,
834,
77,
6157,
332,
357,
9191,
332,
5411,
7,
17,
76,
23,
26,
3274,
332,
4416,
7,
17,
76,
23,
26,
549,
17444,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.