instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
what is maximum age of patients whose marital status is married and gender is m? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.gender = "M" | [
10919,
318,
5415,
2479,
286,
3871,
3025,
29555,
3722,
318,
6405,
290,
5279,
318,
285,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
7112,
1961,
1,
5357,
16728,
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
] | [
10919,
318,
5415,
2479,
286,
3871,
3025,
29555,
3722,
318,
6405,
290,
5279,
318,
285,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
7112,
1961,
1,
5357,
16728,
13,... |
What is the Lead in the 2004-05 Season? | SELECT "Lead" FROM table_9474 WHERE "Season" = '2004-05' | [
2061,
318,
262,
20116,
287,
262,
5472,
12,
2713,
7369,
30,
46506,
366,
20451,
1,
16034,
3084,
62,
24,
38652,
33411,
366,
18960,
1,
796,
705,
15724,
12,
2713,
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
] | [
2061,
318,
262,
20116,
287,
262,
5472,
12,
2713,
7369,
30,
46506,
366,
20451,
1,
16034,
3084,
62,
24,
38652,
33411,
366,
18960,
1,
796,
705,
15724,
12,
2713,
6
] |
what is the number of patients whose admission location is clinic referral/premature and with discharge location left against medical advi? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
15760,
31413,
14,
31605,
1300,
290,
351,
17655,
4067,
1364,
1028,
3315,
1354,
72,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
15760,
31413,
14,
31605,
1300,
290,
351,
17655,
4067,
1364,
1028,
3315,
1354,
72,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33... |
all right do you have a flight from WASHINGTON to BOSTON that stops in PHILADELPHIA | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND CITY_2.cit... | [
439,
826,
466,
345,
423,
257,
5474,
422,
370,
19436,
284,
347,
10892,
1340,
326,
9911,
287,
9370,
4146,
2885,
3698,
11909,
40,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
439,
826,
466,
345,
423,
257,
5474,
422,
370,
19436,
284,
347,
10892,
1340,
326,
9911,
287,
9370,
4146,
2885,
3698,
11909,
40,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
... |
Calculate the minimum age of patients admitted to emergency who died before 2154? | SELECT MIN(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dod_year < "2154.0" | [
9771,
3129,
378,
262,
5288,
2479,
286,
3871,
6848,
284,
6334,
508,
3724,
878,
362,
21526,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
45155,
1,
5357,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9771,
3129,
378,
262,
5288,
2479,
286,
3871,
6848,
284,
6334,
508,
3724,
878,
362,
21526,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
45155,
1,
5357,
16728,
... |
What is the Nation when the Athlete was emma george, and a Record of 4.58m(15ft0 in)? | SELECT "Nation" FROM table_40863 WHERE "Athlete" = 'emma george' AND "Record" = '4.58m(15ft0¼in)' | [
2061,
318,
262,
8741,
618,
262,
13548,
5807,
373,
795,
2611,
4903,
3643,
11,
290,
257,
13266,
286,
604,
13,
3365,
76,
7,
1314,
701,
15,
287,
19427,
46506,
366,
46108,
1,
16034,
3084,
62,
1821,
4521,
18,
33411,
366,
32,
400,
5807,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
8741,
618,
262,
13548,
5807,
373,
795,
2611,
4903,
3643,
11,
290,
257,
13266,
286,
604,
13,
3365,
76,
7,
1314,
701,
15,
287,
19427,
46506,
366,
46108,
1,
16034,
3084,
62,
1821,
4521,
18,
33411,
366,
32,
400,
5807,
... |
What is the average FA cup that has a league of 0, fahmi hatta as the player, with a Malaysia cup less than 0? | SELECT AVG(fa_cup) FROM table_name_56 WHERE league = 0 AND player = "fahmi hatta" AND malaysia_cup < 0 | [
2061,
318,
262,
2811,
9677,
6508,
326,
468,
257,
4652,
286,
657,
11,
277,
993,
11632,
289,
25014,
355,
262,
2137,
11,
351,
257,
15336,
6508,
1342,
621,
657,
30,
46506,
35224,
7,
13331,
62,
25244,
8,
16034,
3084,
62,
3672,
62,
3980,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
2811,
9677,
6508,
326,
468,
257,
4652,
286,
657,
11,
277,
993,
11632,
289,
25014,
355,
262,
2137,
11,
351,
257,
15336,
6508,
1342,
621,
657,
30,
46506,
35224,
7,
13331,
62,
25244,
8,
16034,
3084,
62,
3672,
62,
3980,
... |
Number of Qs and As per month. | SELECT MONTH(CreationDate) AS month, YEAR(CreationDate) AS year, (SELECT COUNT(Id) FROM Posts WHERE PostTypeId = 1 AND (MONTH(CreationDate) = MONTH(p1.CreationDate) AND YEAR(CreationDate) = YEAR(p1.CreationDate))) AS questions, (SELECT COUNT(Id) FROM Posts WHERE PostTypeId = 2 AND (MONTH(CreationDate) = MONTH(p1.Creati... | [
15057,
286,
1195,
82,
290,
1081,
583,
1227,
13,
46506,
25000,
4221,
7,
12443,
341,
10430,
8,
7054,
1227,
11,
32914,
7,
12443,
341,
10430,
8,
7054,
614,
11,
357,
46506,
327,
28270,
7,
7390,
8,
16034,
12043,
33411,
2947,
6030,
7390,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15057,
286,
1195,
82,
290,
1081,
583,
1227,
13,
46506,
25000,
4221,
7,
12443,
341,
10430,
8,
7054,
1227,
11,
32914,
7,
12443,
341,
10430,
8,
7054,
614,
11,
357,
46506,
327,
28270,
7,
7390,
8,
16034,
12043,
33411,
2947,
6030,
7390,
7... |
when was patient 62977 in 2101 admitted for the first time to the hospital? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 62977 AND STRFTIME('%y', admissions.admittime) = '2101' ORDER BY admissions.admittime LIMIT 1 | [
12518,
373,
5827,
718,
1959,
3324,
287,
2310,
486,
6848,
329,
262,
717,
640,
284,
262,
4436,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
718,
1959,
3324,
5357,
19269,
9792,
12789,
10786,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
5827,
718,
1959,
3324,
287,
2310,
486,
6848,
329,
262,
717,
640,
284,
262,
4436,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
718,
1959,
3324,
5357,
19269,
9792,
12789,
10786,
... |
is the level of systemicdiastolic in patient 016-9636 second measured on the current icu visit greater than the value first measured on the current icu visit? | SELECT (SELECT vitalperiodic.systemicdiastolic FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-9636') AND patient.unitdischargetime ... | [
271,
262,
1241,
286,
21971,
10989,
459,
4160,
287,
5827,
5534,
21,
12,
4846,
2623,
1218,
8630,
319,
262,
1459,
14158,
84,
3187,
3744,
621,
262,
1988,
717,
8630,
319,
262,
1459,
14158,
84,
3187,
30,
46506,
357,
46506,
9204,
41007,
291,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
271,
262,
1241,
286,
21971,
10989,
459,
4160,
287,
5827,
5534,
21,
12,
4846,
2623,
1218,
8630,
319,
262,
1459,
14158,
84,
3187,
3744,
621,
262,
1988,
717,
8630,
319,
262,
1459,
14158,
84,
3187,
30,
46506,
357,
46506,
9204,
41007,
291,... |
What is the lowest heat of the Lakeside race? | SELECT MIN("Heat.") FROM table_57766 WHERE "Race Title" = 'lakeside' | [
2061,
318,
262,
9016,
4894,
286,
262,
24153,
485,
3234,
30,
46506,
20625,
7203,
39596,
19570,
16034,
3084,
62,
49447,
2791,
33411,
366,
35157,
11851,
1,
796,
705,
75,
1124,
485,
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
] | [
2061,
318,
262,
9016,
4894,
286,
262,
24153,
485,
3234,
30,
46506,
20625,
7203,
39596,
19570,
16034,
3084,
62,
49447,
2791,
33411,
366,
35157,
11851,
1,
796,
705,
75,
1124,
485,
6
] |
find out the drug code for the patient with patient id 2560. | SELECT prescriptions.formulary_drug_cd FROM prescriptions WHERE prescriptions.subject_id = "2560" | [
19796,
503,
262,
2563,
2438,
329,
262,
5827,
351,
5827,
4686,
1679,
1899,
13,
46506,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
16034,
34092,
33411,
34092,
13,
32796,
62,
312,
796,
366,
1495,
1899,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19796,
503,
262,
2563,
2438,
329,
262,
5827,
351,
5827,
4686,
1679,
1899,
13,
46506,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
16034,
34092,
33411,
34092,
13,
32796,
62,
312,
796,
366,
1495,
1899,
1
] |
What medal was awarded in the men's freestyle 52 kg? | SELECT "Medal" FROM table_35155 WHERE "Event" = 'men''s freestyle 52 kg' | [
2061,
18279,
373,
11343,
287,
262,
1450,
338,
2030,
10992,
6740,
14211,
30,
46506,
366,
9921,
282,
1,
16034,
3084,
62,
2327,
18742,
33411,
366,
9237,
1,
796,
705,
3653,
7061,
82,
2030,
10992,
6740,
14211,
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
] | [
2061,
18279,
373,
11343,
287,
262,
1450,
338,
2030,
10992,
6740,
14211,
30,
46506,
366,
9921,
282,
1,
16034,
3084,
62,
2327,
18742,
33411,
366,
9237,
1,
796,
705,
3653,
7061,
82,
2030,
10992,
6740,
14211,
6
] |
how many hours has it passed since the first time that patient 51858 stayed in careunit micu on this hospital visit? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 51858 AND admissions.dischtime IS NULL) AND transfers.careunit = 'micu' ORDER BY transfers.intime LIMIT 1 | [
4919,
867,
2250,
468,
340,
3804,
1201,
262,
717,
640,
326,
5827,
642,
1507,
3365,
9658,
287,
1337,
20850,
12314,
84,
319,
428,
4436,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
2895... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
2250,
468,
340,
3804,
1201,
262,
717,
640,
326,
5827,
642,
1507,
3365,
9658,
287,
1337,
20850,
12314,
84,
319,
428,
4436,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
2895... |
how many patients this year were prescribed spironolactone 25 mg po tabs during the same month after receiving a therapeutic antibacterials - penicillins? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'therapeutic antibacterials - penicillins' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(... | [
4919,
867,
3871,
428,
614,
547,
14798,
599,
1934,
349,
529,
505,
1679,
10527,
745,
22524,
1141,
262,
976,
1227,
706,
6464,
257,
21546,
11310,
7321,
8231,
532,
3112,
291,
359,
1040,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
428,
614,
547,
14798,
599,
1934,
349,
529,
505,
1679,
10527,
745,
22524,
1141,
262,
976,
1227,
706,
6464,
257,
21546,
11310,
7321,
8231,
532,
3112,
291,
359,
1040,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
... |
who is the manager when the year is before 1994 and finish is 5th? | SELECT "Manager" FROM table_48341 WHERE "Year" < '1994' AND "Finish" = '5th' | [
8727,
318,
262,
4706,
618,
262,
614,
318,
878,
9162,
290,
5461,
318,
642,
400,
30,
46506,
366,
13511,
1,
16034,
3084,
62,
2780,
33660,
33411,
366,
17688,
1,
1279,
705,
22666,
6,
5357,
366,
48658,
1,
796,
705,
20,
400,
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
] | [
8727,
318,
262,
4706,
618,
262,
614,
318,
878,
9162,
290,
5461,
318,
642,
400,
30,
46506,
366,
13511,
1,
16034,
3084,
62,
2780,
33660,
33411,
366,
17688,
1,
1279,
705,
22666,
6,
5357,
366,
48658,
1,
796,
705,
20,
400,
6
] |
who was the fastest , iceland or finland ? | SELECT "nationality" FROM table_204_547 WHERE "nationality" IN ('iceland', 'finland') ORDER BY "time" LIMIT 1 | [
8727,
373,
262,
14162,
837,
14158,
8822,
393,
957,
1044,
5633,
46506,
366,
14648,
414,
1,
16034,
3084,
62,
18638,
62,
20,
2857,
33411,
366,
14648,
414,
1,
3268,
19203,
291,
8822,
3256,
705,
15643,
1044,
11537,
38678,
11050,
366,
2435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
373,
262,
14162,
837,
14158,
8822,
393,
957,
1044,
5633,
46506,
366,
14648,
414,
1,
16034,
3084,
62,
18638,
62,
20,
2857,
33411,
366,
14648,
414,
1,
3268,
19203,
291,
8822,
3256,
705,
15643,
1044,
11537,
38678,
11050,
366,
2435,
... |
What is the highest amount of bronze medals when the rank was larger than 9? | SELECT MAX("Bronze") FROM table_38202 WHERE "Rank" > '9' | [
2061,
318,
262,
4511,
2033,
286,
22101,
28057,
618,
262,
4279,
373,
4025,
621,
860,
30,
46506,
25882,
7203,
18760,
2736,
4943,
16034,
3084,
62,
2548,
19004,
33411,
366,
27520,
1,
1875,
705,
24,
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
] | [
2061,
318,
262,
4511,
2033,
286,
22101,
28057,
618,
262,
4279,
373,
4025,
621,
860,
30,
46506,
25882,
7203,
18760,
2736,
4943,
16034,
3084,
62,
2548,
19004,
33411,
366,
27520,
1,
1875,
705,
24,
6
] |
What was the issue price for the Trumpeter Swan set? | SELECT "Issue Price" FROM table_51185 WHERE "Theme" = 'trumpeter swan' | [
2061,
373,
262,
2071,
2756,
329,
262,
1301,
2357,
21491,
900,
30,
46506,
366,
45147,
7886,
1,
16034,
3084,
62,
41647,
5332,
33411,
366,
47863,
1,
796,
705,
40954,
2357,
1509,
272,
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
] | [
2061,
373,
262,
2071,
2756,
329,
262,
1301,
2357,
21491,
900,
30,
46506,
366,
45147,
7886,
1,
16034,
3084,
62,
41647,
5332,
33411,
366,
47863,
1,
796,
705,
40954,
2357,
1509,
272,
6
] |
how many patients whose days of hospital stay is greater than 5 and drug type is additive? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "5" AND prescriptions.drug_type = "ADDITIVE" | [
4919,
867,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
642,
290,
2563,
2099,
318,
38298,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
642,
290,
2563,
2099,
318,
38298,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
... |
show me flights from BOSTON to DENVER on wednesday | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND date_day.day_number = 23 AND date_day.month_number = 4 AND da... | [
12860,
502,
13956,
422,
347,
10892,
1340,
284,
37692,
5959,
319,
29445,
3462,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
13956,
422,
347,
10892,
1340,
284,
37692,
5959,
319,
29445,
3462,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600... |
how many songs did ishaan dev provide for movies made between 2007 and 2009 ? | SELECT COUNT("song") FROM table_204_546 WHERE "year" >= 2007 AND "year" <= 2009 | [
4919,
867,
7259,
750,
318,
3099,
272,
1614,
2148,
329,
6918,
925,
1022,
4343,
290,
3717,
5633,
46506,
327,
28270,
7203,
34050,
4943,
16034,
3084,
62,
18638,
62,
49489,
33411,
366,
1941,
1,
18189,
4343,
5357,
366,
1941,
1,
19841,
3717
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
7259,
750,
318,
3099,
272,
1614,
2148,
329,
6918,
925,
1022,
4343,
290,
3717,
5633,
46506,
327,
28270,
7203,
34050,
4943,
16034,
3084,
62,
18638,
62,
49489,
33411,
366,
1941,
1,
18189,
4343,
5357,
366,
1941,
1,
19841,
3717
] |
What was John Jones's pick#? | SELECT SUM("Pick") FROM table_65686 WHERE "Player" = 'john jones' | [
2061,
373,
1757,
5437,
338,
2298,
2,
30,
46506,
35683,
7203,
31686,
4943,
16034,
3084,
62,
2996,
33808,
33411,
366,
14140,
1,
796,
705,
30686,
474,
1952,
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
] | [
2061,
373,
1757,
5437,
338,
2298,
2,
30,
46506,
35683,
7203,
31686,
4943,
16034,
3084,
62,
2996,
33808,
33411,
366,
14140,
1,
796,
705,
30686,
474,
1952,
6
] |
What type of Competition has a Goal of 3? | SELECT competition FROM table_name_84 WHERE goal = 3 | [
2061,
2099,
286,
27348,
468,
257,
25376,
286,
513,
30,
46506,
5449,
16034,
3084,
62,
3672,
62,
5705,
33411,
3061,
796,
513
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2099,
286,
27348,
468,
257,
25376,
286,
513,
30,
46506,
5449,
16034,
3084,
62,
3672,
62,
5705,
33411,
3061,
796,
513
] |
What was the Winner of the SS5 Stage? | SELECT winner FROM table_name_54 WHERE stage = "ss5" | [
2061,
373,
262,
25358,
286,
262,
6723,
20,
15371,
30,
46506,
8464,
16034,
3084,
62,
3672,
62,
4051,
33411,
3800,
796,
366,
824,
20,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
25358,
286,
262,
6723,
20,
15371,
30,
46506,
8464,
16034,
3084,
62,
3672,
62,
4051,
33411,
3800,
796,
366,
824,
20,
1
] |
When peter kox roman rusinov is the gt1 of the winning team how many lmp1 winning teams are there? | SELECT COUNT(lmp1_winning_team) FROM table_19722436_2 WHERE gt1_winning_team = "Peter Kox Roman Rusinov" | [
2215,
279,
2357,
479,
1140,
374,
5185,
374,
385,
259,
709,
318,
262,
308,
83,
16,
286,
262,
5442,
1074,
703,
867,
300,
3149,
16,
5442,
3466,
389,
612,
30,
46506,
327,
28270,
7,
75,
3149,
16,
62,
14463,
62,
15097,
8,
16034,
3084,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2215,
279,
2357,
479,
1140,
374,
5185,
374,
385,
259,
709,
318,
262,
308,
83,
16,
286,
262,
5442,
1074,
703,
867,
300,
3149,
16,
5442,
3466,
389,
612,
30,
46506,
327,
28270,
7,
75,
3149,
16,
62,
14463,
62,
15097,
8,
16034,
3084,
... |
Who is Essendon's home team? | SELECT MIN("Crowd") FROM table_53471 WHERE "Home team" = 'essendon' | [
8241,
318,
11985,
43153,
338,
1363,
1074,
30,
46506,
20625,
7203,
34,
3986,
4943,
16034,
3084,
62,
20,
2682,
4869,
33411,
366,
16060,
1074,
1,
796,
705,
408,
43153,
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
] | [
8241,
318,
11985,
43153,
338,
1363,
1074,
30,
46506,
20625,
7203,
34,
3986,
4943,
16034,
3084,
62,
20,
2682,
4869,
33411,
366,
16060,
1074,
1,
796,
705,
408,
43153,
6
] |
Name the total number of Round in liverpool , england? | SELECT COUNT("Round") FROM table_50033 WHERE "Location" = 'liverpool , england' | [
5376,
262,
2472,
1271,
286,
10485,
287,
300,
10864,
837,
1786,
1044,
30,
46506,
327,
28270,
7203,
22685,
4943,
16034,
3084,
62,
4059,
2091,
33411,
366,
14749,
1,
796,
705,
75,
10864,
837,
1786,
1044,
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
] | [
5376,
262,
2472,
1271,
286,
10485,
287,
300,
10864,
837,
1786,
1044,
30,
46506,
327,
28270,
7203,
22685,
4943,
16034,
3084,
62,
4059,
2091,
33411,
366,
14749,
1,
796,
705,
75,
10864,
837,
1786,
1044,
6
] |
What is the To par for Lanny Wadkins? | SELECT "To par" FROM table_12925 WHERE "Player" = 'lanny wadkins' | [
2061,
318,
262,
1675,
1582,
329,
406,
7737,
48986,
5331,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
18741,
1495,
33411,
366,
14140,
1,
796,
705,
75,
7737,
266,
324,
5331,
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
] | [
2061,
318,
262,
1675,
1582,
329,
406,
7737,
48986,
5331,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
18741,
1495,
33411,
366,
14140,
1,
796,
705,
75,
7737,
266,
324,
5331,
6
] |
what are the three most frequently ordered medications until 4 years ago? | SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-4 year') GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 <= 3 | [
10919,
389,
262,
1115,
749,
6777,
6149,
17638,
1566,
604,
812,
2084,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
1115,
749,
6777,
6149,
17638,
1566,
604,
812,
2084,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
... |
Which venue hosted South Melbourne as an away team? | SELECT "Venue" FROM table_54919 WHERE "Away team" = 'south melbourne' | [
13828,
14359,
12007,
2520,
14819,
355,
281,
1497,
1074,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
44966,
1129,
33411,
366,
32,
1014,
1074,
1,
796,
705,
35782,
7758,
12544,
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
] | [
13828,
14359,
12007,
2520,
14819,
355,
281,
1497,
1074,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
44966,
1129,
33411,
366,
32,
1014,
1074,
1,
796,
705,
35782,
7758,
12544,
6
] |
WHAT YEAR HAS A TO PAR SMALLER THAN 16, TOTAL 151? | SELECT "Year(s) won" FROM table_61987 WHERE "To par" < '16' AND "Total" = '151' | [
32971,
32914,
33930,
317,
5390,
29463,
9447,
7036,
1137,
2320,
1565,
1467,
11,
36247,
25326,
30,
46506,
366,
17688,
7,
82,
8,
1839,
1,
16034,
3084,
62,
21,
27301,
33411,
366,
2514,
1582,
1,
1279,
705,
1433,
6,
5357,
366,
14957,
1,
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
] | [
32971,
32914,
33930,
317,
5390,
29463,
9447,
7036,
1137,
2320,
1565,
1467,
11,
36247,
25326,
30,
46506,
366,
17688,
7,
82,
8,
1839,
1,
16034,
3084,
62,
21,
27301,
33411,
366,
2514,
1582,
1,
1279,
705,
1433,
6,
5357,
366,
14957,
1,
7... |
Which gender had a roll of 627? | SELECT "Gender" FROM table_70037 WHERE "Roll" = '627' | [
13828,
5279,
550,
257,
4836,
286,
718,
1983,
30,
46506,
366,
41394,
1,
16034,
3084,
62,
9879,
2718,
33411,
366,
26869,
1,
796,
705,
49856,
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
] | [
13828,
5279,
550,
257,
4836,
286,
718,
1983,
30,
46506,
366,
41394,
1,
16034,
3084,
62,
9879,
2718,
33411,
366,
26869,
1,
796,
705,
49856,
6
] |
What's the highest season number with a series number of 47? | SELECT MAX("No. in Season") FROM table_29486 WHERE "No. in Series" = '47' | [
2061,
338,
262,
4511,
1622,
1271,
351,
257,
2168,
1271,
286,
6298,
30,
46506,
25882,
7203,
2949,
13,
287,
7369,
4943,
16034,
3084,
62,
1959,
34251,
33411,
366,
2949,
13,
287,
7171,
1,
796,
705,
2857,
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
] | [
2061,
338,
262,
4511,
1622,
1271,
351,
257,
2168,
1271,
286,
6298,
30,
46506,
25882,
7203,
2949,
13,
287,
7369,
4943,
16034,
3084,
62,
1959,
34251,
33411,
366,
2949,
13,
287,
7171,
1,
796,
705,
2857,
6
] |
If the Away team score was 14.10 (94), which Date was that? | SELECT "Date" FROM table_54571 WHERE "Away team score" = '14.10 (94)' | [
1532,
262,
21986,
1074,
4776,
373,
1478,
13,
940,
357,
5824,
828,
543,
7536,
373,
326,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
45326,
4869,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1415,
13,
940,
357,
5824,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1532,
262,
21986,
1074,
4776,
373,
1478,
13,
940,
357,
5824,
828,
543,
7536,
373,
326,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
45326,
4869,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1415,
13,
940,
357,
5824,
33047
] |
Return the booking end dates for the apartments that have type code 'Duplex' and bin the year into weekday interval with a bar chart, order by the the number of booking start date in desc. | SELECT booking_end_date, COUNT(booking_end_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = "Duplex" ORDER BY COUNT(booking_start_date) DESC | [
13615,
262,
25452,
886,
9667,
329,
262,
19592,
326,
423,
2099,
2438,
705,
35,
929,
2588,
6,
290,
9874,
262,
614,
656,
28269,
16654,
351,
257,
2318,
8262,
11,
1502,
416,
262,
262,
1271,
286,
25452,
923,
3128,
287,
1715,
13,
46506,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13615,
262,
25452,
886,
9667,
329,
262,
19592,
326,
423,
2099,
2438,
705,
35,
929,
2588,
6,
290,
9874,
262,
614,
656,
28269,
16654,
351,
257,
2318,
8262,
11,
1502,
416,
262,
262,
1271,
286,
25452,
923,
3128,
287,
1715,
13,
46506,
25... |
Display a bar chart for what is the total revenue of companies started by founder?, and display by the x-axis from low to high. | SELECT Founder, SUM(Revenue) FROM Manufacturers GROUP BY Founder ORDER BY Founder | [
23114,
257,
2318,
8262,
329,
644,
318,
262,
2472,
6426,
286,
2706,
2067,
416,
9119,
21747,
290,
3359,
416,
262,
2124,
12,
22704,
422,
1877,
284,
1029,
13,
46506,
30153,
11,
35683,
7,
3041,
4080,
8,
16034,
17858,
17496,
44441,
11050,
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
] | [
23114,
257,
2318,
8262,
329,
644,
318,
262,
2472,
6426,
286,
2706,
2067,
416,
9119,
21747,
290,
3359,
416,
262,
2124,
12,
22704,
422,
1877,
284,
1029,
13,
46506,
30153,
11,
35683,
7,
3041,
4080,
8,
16034,
17858,
17496,
44441,
11050,
3... |
Who won on 2007-04-14 | SELECT "Result" FROM table_11819 WHERE "Date" = '2007-04-14' | [
8241,
1839,
319,
4343,
12,
3023,
12,
1415,
46506,
366,
23004,
1,
16034,
3084,
62,
16817,
1129,
33411,
366,
10430,
1,
796,
705,
12726,
12,
3023,
12,
1415,
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
] | [
8241,
1839,
319,
4343,
12,
3023,
12,
1415,
46506,
366,
23004,
1,
16034,
3084,
62,
16817,
1129,
33411,
366,
10430,
1,
796,
705,
12726,
12,
3023,
12,
1415,
6
] |
What is the smallest Asian rank? | SELECT MIN("Rank Asia") FROM table_25040 | [
2061,
318,
262,
18197,
7740,
4279,
30,
46506,
20625,
7203,
27520,
7229,
4943,
16034,
3084,
62,
9031,
1821
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
18197,
7740,
4279,
30,
46506,
20625,
7203,
27520,
7229,
4943,
16034,
3084,
62,
9031,
1821
] |
how many awards did whitney houston win for singles on her album whitney ? | SELECT COUNT("award description(s)") FROM table_203_799 WHERE "format(s)" = 'single' | [
4919,
867,
13304,
750,
20542,
1681,
289,
6526,
1592,
329,
25287,
319,
607,
5062,
20542,
1681,
5633,
46506,
327,
28270,
7203,
707,
446,
6764,
7,
82,
8,
4943,
16034,
3084,
62,
22416,
62,
45455,
33411,
366,
18982,
7,
82,
16725,
796,
705,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
13304,
750,
20542,
1681,
289,
6526,
1592,
329,
25287,
319,
607,
5062,
20542,
1681,
5633,
46506,
327,
28270,
7203,
707,
446,
6764,
7,
82,
8,
4943,
16034,
3084,
62,
22416,
62,
45455,
33411,
366,
18982,
7,
82,
16725,
796,
705,... |
Which away team scored 10.14 (74)? | SELECT "Away team" FROM table_52963 WHERE "Away team score" = '10.14 (74)' | [
13828,
1497,
1074,
7781,
838,
13,
1415,
357,
4524,
19427,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
49721,
5066,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
940,
13,
1415,
357,
4524,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1497,
1074,
7781,
838,
13,
1415,
357,
4524,
19427,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
49721,
5066,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
940,
13,
1415,
357,
4524,
33047
] |
Which District has a 2008 Status of re-election, and a Democratic david price? | SELECT AVG("District") FROM table_37320 WHERE "2008 Status" = 're-election' AND "Democratic" = 'david price' | [
13828,
5665,
468,
257,
3648,
12678,
286,
302,
12,
14300,
11,
290,
257,
4390,
21970,
2756,
30,
46506,
35224,
7203,
44857,
4943,
16034,
3084,
62,
2718,
19504,
33411,
366,
11528,
12678,
1,
796,
705,
260,
12,
14300,
6,
5357,
366,
33939,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
5665,
468,
257,
3648,
12678,
286,
302,
12,
14300,
11,
290,
257,
4390,
21970,
2756,
30,
46506,
35224,
7203,
44857,
4943,
16034,
3084,
62,
2718,
19504,
33411,
366,
11528,
12678,
1,
796,
705,
260,
12,
14300,
6,
5357,
366,
33939,
1... |
What is the rank of the 150.163 qual? | SELECT "Rank" FROM table_71113 WHERE "Qual" = '150.163' | [
2061,
318,
262,
4279,
286,
262,
6640,
13,
24136,
4140,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
22,
1157,
1485,
33411,
366,
46181,
1,
796,
705,
8628,
13,
24136,
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
] | [
2061,
318,
262,
4279,
286,
262,
6640,
13,
24136,
4140,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
22,
1157,
1485,
33411,
366,
46181,
1,
796,
705,
8628,
13,
24136,
6
] |
On how many different dates was the race at the Silverstone circuit? | SELECT COUNT(date) FROM table_22334183_3 WHERE circuit = "Silverstone" | [
2202,
703,
867,
1180,
9667,
373,
262,
3234,
379,
262,
7698,
6440,
10349,
30,
46506,
327,
28270,
7,
4475,
8,
16034,
3084,
62,
1828,
31380,
24839,
62,
18,
33411,
10349,
796,
366,
26766,
6440,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
703,
867,
1180,
9667,
373,
262,
3234,
379,
262,
7698,
6440,
10349,
30,
46506,
327,
28270,
7,
4475,
8,
16034,
3084,
62,
1828,
31380,
24839,
62,
18,
33411,
10349,
796,
366,
26766,
6440,
1
] |
Which driver had a grid of 18? | SELECT "Driver" FROM table_51335 WHERE "Grid" = '18' | [
13828,
4639,
550,
257,
10706,
286,
1248,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
48645,
2327,
33411,
366,
41339,
1,
796,
705,
1507,
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
] | [
13828,
4639,
550,
257,
10706,
286,
1248,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
48645,
2327,
33411,
366,
41339,
1,
796,
705,
1507,
6
] |
what is the previous performer before the cheetah girls ? | SELECT "performer(s)" FROM table_204_573 WHERE "#" = (SELECT "#" FROM table_204_573 WHERE "performer(s)" = 'the cheetah girls') - 1 | [
10919,
318,
262,
2180,
26960,
878,
262,
1125,
316,
993,
4813,
5633,
46506,
366,
525,
16354,
7,
82,
16725,
16034,
3084,
62,
18638,
62,
48638,
33411,
25113,
1,
796,
357,
46506,
25113,
1,
16034,
3084,
62,
18638,
62,
48638,
33411,
366,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2180,
26960,
878,
262,
1125,
316,
993,
4813,
5633,
46506,
366,
525,
16354,
7,
82,
16725,
16034,
3084,
62,
18638,
62,
48638,
33411,
25113,
1,
796,
357,
46506,
25113,
1,
16034,
3084,
62,
18638,
62,
48638,
33411,
366,
52... |
What year was owner Michael E. Pegram's last win? | SELECT MAX(year) FROM table_name_42 WHERE owner = "michael e. pegram" | [
2061,
614,
373,
4870,
3899,
412,
13,
31084,
859,
338,
938,
1592,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
4870,
796,
366,
76,
40302,
304,
13,
613,
4546,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
614,
373,
4870,
3899,
412,
13,
31084,
859,
338,
938,
1592,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
4870,
796,
366,
76,
40302,
304,
13,
613,
4546,
1
] |
Who was the visiting team when the record was 28 14 6 2? | SELECT "Visitor" FROM table_70741 WHERE "Record" = '28–14–6–2' | [
8241,
373,
262,
10013,
1074,
618,
262,
1700,
373,
2579,
1478,
718,
362,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
24038,
3901,
33411,
366,
23739,
1,
796,
705,
2078,
1906,
1415,
1906,
21,
1906,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
10013,
1074,
618,
262,
1700,
373,
2579,
1478,
718,
362,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
24038,
3901,
33411,
366,
23739,
1,
796,
705,
2078,
1906,
1415,
1906,
21,
1906,
17,
6
] |
What Nationality of the person who has a Rank of 4 | SELECT "Nationality" FROM table_68165 WHERE "Lane" < '4' AND "Rank" = '4' | [
2061,
2351,
414,
286,
262,
1048,
508,
468,
257,
10916,
286,
604,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
3104,
20986,
33411,
366,
43,
1531,
1,
1279,
705,
19,
6,
5357,
366,
27520,
1,
796,
705,
19,
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
] | [
2061,
2351,
414,
286,
262,
1048,
508,
468,
257,
10916,
286,
604,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
3104,
20986,
33411,
366,
43,
1531,
1,
1279,
705,
19,
6,
5357,
366,
27520,
1,
796,
705,
19,
6
] |
High rep through prolific bad answers. A list of the 100 above-30k users with the lowest average answer score excluding
community wiki / closed posts or users with less than 100 answers | SELECT Users.Id AS "user_link", Users.Reputation AS Reputation, COUNT(Posts.Id) AS Answers, CAST(AVG(CAST(Score AS FLOAT)) AS FLOAT(6, 2)) AS "average_answer_score" FROM Posts INNER JOIN Users ON Users.Id = OwnerUserId WHERE PostTypeId = 2 AND CommunityOwnedDate IS NULL AND ClosedDate IS NULL AND Users.Reputation > 500... | [
11922,
1128,
832,
28892,
2089,
7429,
13,
317,
1351,
286,
262,
1802,
2029,
12,
1270,
74,
2985,
351,
262,
9016,
2811,
3280,
4776,
23494,
201,
198,
28158,
22719,
1220,
4838,
6851,
393,
2985,
351,
1342,
621,
1802,
7429,
46506,
18987,
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... | [
11922,
1128,
832,
28892,
2089,
7429,
13,
317,
1351,
286,
262,
1802,
2029,
12,
1270,
74,
2985,
351,
262,
9016,
2811,
3280,
4776,
23494,
201,
198,
28158,
22719,
1220,
4838,
6851,
393,
2985,
351,
1342,
621,
1802,
7429,
46506,
18987,
13,
... |
Who is the December playmate with a February playmate Anne-Marie Fox? | SELECT december FROM table_name_76 WHERE february = "anne-marie fox" | [
8241,
318,
262,
3426,
711,
9830,
351,
257,
3945,
711,
9830,
15397,
12,
44507,
5426,
30,
46506,
390,
3273,
16034,
3084,
62,
3672,
62,
4304,
33411,
730,
65,
3728,
796,
366,
21952,
12,
3876,
494,
21831,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
3426,
711,
9830,
351,
257,
3945,
711,
9830,
15397,
12,
44507,
5426,
30,
46506,
390,
3273,
16034,
3084,
62,
3672,
62,
4304,
33411,
730,
65,
3728,
796,
366,
21952,
12,
3876,
494,
21831,
1
] |
What is Grupo Capitol Valladolid's highest rank with more than 34 games? | SELECT MAX("Rank") FROM table_49784 WHERE "Team" = 'grupo capitol valladolid' AND "Games" > '34' | [
2061,
318,
25665,
7501,
13241,
46929,
324,
10180,
338,
4511,
4279,
351,
517,
621,
4974,
1830,
30,
46506,
25882,
7203,
27520,
4943,
16034,
3084,
62,
2920,
37688,
33411,
366,
15592,
1,
796,
705,
48929,
7501,
1451,
11650,
410,
439,
324,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
25665,
7501,
13241,
46929,
324,
10180,
338,
4511,
4279,
351,
517,
621,
4974,
1830,
30,
46506,
25882,
7203,
27520,
4943,
16034,
3084,
62,
2920,
37688,
33411,
366,
15592,
1,
796,
705,
48929,
7501,
1451,
11650,
410,
439,
324,
10... |
Name the Opponent in the final on july 4, 2005? | SELECT opponent_in_the_final FROM table_name_52 WHERE date = "july 4, 2005" | [
5376,
262,
9385,
3471,
287,
262,
2457,
319,
474,
2062,
604,
11,
5075,
30,
46506,
6125,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
4309,
33411,
3128,
796,
366,
73,
2062,
604,
11,
5075,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
9385,
3471,
287,
262,
2457,
319,
474,
2062,
604,
11,
5075,
30,
46506,
6125,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
4309,
33411,
3128,
796,
366,
73,
2062,
604,
11,
5075,
1
] |
What is the smallest Satu Mare value associated with Baia Mare over 523? | SELECT MIN("Satu Mare") FROM table_69412 WHERE "Baia Mare" > '523' | [
2061,
318,
262,
18197,
7031,
84,
36989,
1988,
3917,
351,
8999,
544,
36989,
625,
642,
1954,
30,
46506,
20625,
7203,
20245,
84,
36989,
4943,
16034,
3084,
62,
3388,
39226,
33411,
366,
34458,
544,
36989,
1,
1875,
705,
49803,
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
] | [
2061,
318,
262,
18197,
7031,
84,
36989,
1988,
3917,
351,
8999,
544,
36989,
625,
642,
1954,
30,
46506,
20625,
7203,
20245,
84,
36989,
4943,
16034,
3084,
62,
3388,
39226,
33411,
366,
34458,
544,
36989,
1,
1875,
705,
49803,
6
] |
What was the gross tonnage of the ship that ended service in 1866? | SELECT gross_tonnage FROM table_11662133_1 WHERE ended_service = "1866" | [
2061,
373,
262,
10319,
5680,
77,
496,
286,
262,
4074,
326,
4444,
2139,
287,
1248,
2791,
30,
46506,
10319,
62,
1122,
77,
496,
16034,
3084,
62,
1157,
39380,
16945,
62,
16,
33411,
4444,
62,
15271,
796,
366,
1507,
2791,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
10319,
5680,
77,
496,
286,
262,
4074,
326,
4444,
2139,
287,
1248,
2791,
30,
46506,
10319,
62,
1122,
77,
496,
16034,
3084,
62,
1157,
39380,
16945,
62,
16,
33411,
4444,
62,
15271,
796,
366,
1507,
2791,
1
] |
what does the cost of bendamustine be? | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'prescriptions' AND cost.event_id IN (SELECT prescriptions.row_id FROM prescriptions WHERE prescriptions.drug = 'bendamustine') | [
10919,
857,
262,
1575,
286,
19396,
321,
436,
500,
307,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
62,
4906,
796,
705,
18302,
24370,
6,
5357,
1575,
13,
15596,
62,
312,
3268,
357,
46506,
3409... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
857,
262,
1575,
286,
19396,
321,
436,
500,
307,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
62,
4906,
796,
705,
18302,
24370,
6,
5357,
1575,
13,
15596,
62,
312,
3268,
357,
46506,
3409... |
what's the time required for prices to double with highest monthly inflation rate being 29,500% | SELECT "Time required for prices to double" FROM table_18915 WHERE "Highest monthly inflation rate" = '29,500%' | [
10919,
338,
262,
640,
2672,
329,
4536,
284,
4274,
351,
4511,
9651,
10610,
2494,
852,
2808,
11,
4059,
4,
46506,
366,
7575,
2672,
329,
4536,
284,
4274,
1,
16034,
3084,
62,
23362,
1314,
33411,
366,
36124,
3634,
9651,
10610,
2494,
1,
796,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
640,
2672,
329,
4536,
284,
4274,
351,
4511,
9651,
10610,
2494,
852,
2808,
11,
4059,
4,
46506,
366,
7575,
2672,
329,
4536,
284,
4274,
1,
16034,
3084,
62,
23362,
1314,
33411,
366,
36124,
3634,
9651,
10610,
2494,
1,
796,... |
what's the date of patient 14611's birth? | SELECT patients.dob FROM patients WHERE patients.subject_id = 14611 | [
10919,
338,
262,
3128,
286,
5827,
22986,
1157,
338,
4082,
30,
46506,
3871,
13,
67,
672,
16034,
3871,
33411,
3871,
13,
32796,
62,
312,
796,
22986,
1157
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
3128,
286,
5827,
22986,
1157,
338,
4082,
30,
46506,
3871,
13,
67,
672,
16034,
3871,
33411,
3871,
13,
32796,
62,
312,
796,
22986,
1157
] |
How many middlesex principals were there in 2000-2001? | SELECT COUNT(middlesex_principal) FROM table_25037577_1 WHERE year = "2000-2001" | [
2437,
867,
285,
29319,
1069,
44998,
547,
612,
287,
4751,
12,
14585,
30,
46506,
327,
28270,
7,
76,
29319,
1069,
62,
1050,
1939,
8521,
8,
16034,
3084,
62,
9031,
22318,
3324,
62,
16,
33411,
614,
796,
366,
11024,
12,
14585,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
285,
29319,
1069,
44998,
547,
612,
287,
4751,
12,
14585,
30,
46506,
327,
28270,
7,
76,
29319,
1069,
62,
1050,
1939,
8521,
8,
16034,
3084,
62,
9031,
22318,
3324,
62,
16,
33411,
614,
796,
366,
11024,
12,
14585,
1
] |
Who is the third member of the Liberal Party, a third party conservative, the second member Humphrey Mildmay? | SELECT third_member FROM table_name_2 WHERE second_party = "liberal" AND third_party = "conservative" AND second_member = "humphrey mildmay" | [
8241,
318,
262,
2368,
2888,
286,
262,
12266,
3615,
11,
257,
2368,
2151,
5940,
11,
262,
1218,
2888,
32787,
4364,
29087,
11261,
30,
46506,
2368,
62,
19522,
16034,
3084,
62,
3672,
62,
17,
33411,
1218,
62,
10608,
796,
366,
35739,
1,
5357,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
2368,
2888,
286,
262,
12266,
3615,
11,
257,
2368,
2151,
5940,
11,
262,
1218,
2888,
32787,
4364,
29087,
11261,
30,
46506,
2368,
62,
19522,
16034,
3084,
62,
3672,
62,
17,
33411,
1218,
62,
10608,
796,
366,
35739,
1,
5357,... |
Which Performance has a Usage of hepa and a Class of h14? | SELECT "Performance" FROM table_44092 WHERE "Usage" = 'hepa' AND "Class" = 'h14' | [
13828,
15193,
468,
257,
29566,
286,
339,
8957,
290,
257,
5016,
286,
289,
1415,
30,
46506,
366,
32273,
1,
16034,
3084,
62,
25644,
5892,
33411,
366,
28350,
1,
796,
705,
258,
8957,
6,
5357,
366,
9487,
1,
796,
705,
71,
1415,
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
] | [
13828,
15193,
468,
257,
29566,
286,
339,
8957,
290,
257,
5016,
286,
289,
1415,
30,
46506,
366,
32273,
1,
16034,
3084,
62,
25644,
5892,
33411,
366,
28350,
1,
796,
705,
258,
8957,
6,
5357,
366,
9487,
1,
796,
705,
71,
1415,
6
] |
If the qatari female is 918, what is the total number of females? | SELECT total_female FROM table_26214389_3 WHERE qatari_female = 918 | [
1532,
262,
10662,
35554,
4048,
318,
860,
1507,
11,
644,
318,
262,
2472,
1271,
286,
12366,
30,
46506,
2472,
62,
24724,
16034,
3084,
62,
2075,
22291,
29769,
62,
18,
33411,
10662,
35554,
62,
24724,
796,
860,
1507
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1532,
262,
10662,
35554,
4048,
318,
860,
1507,
11,
644,
318,
262,
2472,
1271,
286,
12366,
30,
46506,
2472,
62,
24724,
16034,
3084,
62,
2075,
22291,
29769,
62,
18,
33411,
10662,
35554,
62,
24724,
796,
860,
1507
] |
What was the away team's score for the match played at Victoria Park? | SELECT away_team AS score FROM table_name_89 WHERE venue = "victoria park" | [
2061,
373,
262,
1497,
1074,
338,
4776,
329,
262,
2872,
2826,
379,
12313,
3250,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
4531,
33411,
14359,
796,
366,
32433,
7661,
3952,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1497,
1074,
338,
4776,
329,
262,
2872,
2826,
379,
12313,
3250,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
4531,
33411,
14359,
796,
366,
32433,
7661,
3952,
1
] |
Who had the most assists and how many did they have in game 35? | SELECT "High assists" FROM table_29904 WHERE "Game" = '35' | [
8241,
550,
262,
749,
13648,
290,
703,
867,
750,
484,
423,
287,
983,
3439,
30,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
22579,
3023,
33411,
366,
8777,
1,
796,
705,
2327,
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
] | [
8241,
550,
262,
749,
13648,
290,
703,
867,
750,
484,
423,
287,
983,
3439,
30,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
22579,
3023,
33411,
366,
8777,
1,
796,
705,
2327,
6
] |
how many groups of wrestlers are listed ? | SELECT COUNT("wrestlers") FROM table_203_565 | [
4919,
867,
2628,
286,
41758,
389,
5610,
5633,
46506,
327,
28270,
7203,
86,
2118,
8116,
4943,
16034,
3084,
62,
22416,
62,
47372
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
2628,
286,
41758,
389,
5610,
5633,
46506,
327,
28270,
7203,
86,
2118,
8116,
4943,
16034,
3084,
62,
22416,
62,
47372
] |
Capacity smaller than 3,292, and a Highest larger than 812, and a Stadium of strathclyde homes stadium has what sum of the average? | SELECT SUM("Average") FROM table_34734 WHERE "Capacity" < '3,292' AND "Highest" > '812' AND "Stadium" = 'strathclyde homes stadium' | [
15610,
4355,
4833,
621,
513,
11,
32759,
11,
290,
257,
41864,
4025,
621,
807,
1065,
11,
290,
257,
10499,
286,
965,
776,
66,
306,
2934,
5682,
10308,
468,
644,
2160,
286,
262,
2811,
30,
46506,
35683,
7203,
26287,
4943,
16034,
3084,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15610,
4355,
4833,
621,
513,
11,
32759,
11,
290,
257,
41864,
4025,
621,
807,
1065,
11,
290,
257,
10499,
286,
965,
776,
66,
306,
2934,
5682,
10308,
468,
644,
2160,
286,
262,
2811,
30,
46506,
35683,
7203,
26287,
4943,
16034,
3084,
62,
... |
When is the term end of Shlomo-Yisrael Ben-Meir of the National Religious Party? | SELECT term_end FROM table_name_37 WHERE party = "national religious party" AND minister = "shlomo-yisrael ben-meir" | [
2215,
318,
262,
3381,
886,
286,
911,
75,
17902,
12,
56,
271,
2510,
3932,
12,
5308,
343,
286,
262,
2351,
23945,
3615,
30,
46506,
3381,
62,
437,
16034,
3084,
62,
3672,
62,
2718,
33411,
2151,
796,
366,
14648,
4158,
2151,
1,
5357,
5342,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
318,
262,
3381,
886,
286,
911,
75,
17902,
12,
56,
271,
2510,
3932,
12,
5308,
343,
286,
262,
2351,
23945,
3615,
30,
46506,
3381,
62,
437,
16034,
3084,
62,
3672,
62,
2718,
33411,
2151,
796,
366,
14648,
4158,
2151,
1,
5357,
5342,... |
What chassis has the year 1987? | SELECT chassis FROM table_name_87 WHERE year = 1987 | [
2061,
24587,
468,
262,
614,
12923,
30,
46506,
24587,
16034,
3084,
62,
3672,
62,
5774,
33411,
614,
796,
12923
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
24587,
468,
262,
614,
12923,
30,
46506,
24587,
16034,
3084,
62,
3672,
62,
5774,
33411,
614,
796,
12923
] |
What game has valiquette as the decision, with @ los angeles kings as the opponent? | SELECT game FROM table_name_96 WHERE decision = "valiquette" AND opponent = "@ los angeles kings" | [
2061,
983,
468,
1188,
40387,
355,
262,
2551,
11,
351,
2488,
22346,
18304,
274,
21557,
355,
262,
6125,
30,
46506,
983,
16034,
3084,
62,
3672,
62,
4846,
33411,
2551,
796,
366,
2100,
40387,
1,
5357,
6125,
796,
44212,
22346,
18304,
274,
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
] | [
2061,
983,
468,
1188,
40387,
355,
262,
2551,
11,
351,
2488,
22346,
18304,
274,
21557,
355,
262,
6125,
30,
46506,
983,
16034,
3084,
62,
3672,
62,
4846,
33411,
2551,
796,
366,
2100,
40387,
1,
5357,
6125,
796,
44212,
22346,
18304,
274,
2... |
make a count of the number of patients who are discharged from the hospital until 1 year ago. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND DATETIME(admissions.dischtime) <= DATETIME(CURRENT_TIME(), '-1 year') | [
15883,
257,
954,
286,
262,
1271,
286,
3871,
508,
389,
26476,
422,
262,
4436,
1566,
352,
614,
2084,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
5626,
25349,
13,
6381,
354,
2435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15883,
257,
954,
286,
262,
1271,
286,
3871,
508,
389,
26476,
422,
262,
4436,
1566,
352,
614,
2084,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
5626,
25349,
13,
6381,
354,
2435,
... |
WHAT DATE HAD A SCORE OF 71-64? | SELECT date FROM table_name_46 WHERE score = "71-64" | [
32971,
360,
6158,
367,
2885,
317,
6374,
6965,
3963,
9166,
12,
2414,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3510,
33411,
4776,
796,
366,
4869,
12,
2414,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32971,
360,
6158,
367,
2885,
317,
6374,
6965,
3963,
9166,
12,
2414,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3510,
33411,
4776,
796,
366,
4869,
12,
2414,
1
] |
Which Country has a Margin of victory of 2 strokes? | SELECT "Country" FROM table_39227 WHERE "Margin of victory" = '2 strokes' | [
13828,
12946,
468,
257,
11899,
259,
286,
5373,
286,
362,
29483,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
2670,
24403,
33411,
366,
24428,
259,
286,
5373,
1,
796,
705,
17,
29483,
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
] | [
13828,
12946,
468,
257,
11899,
259,
286,
5373,
286,
362,
29483,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
2670,
24403,
33411,
366,
24428,
259,
286,
5373,
1,
796,
705,
17,
29483,
6
] |
does AA fly from PITTSBURGH to ATLANTA | SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((flight.airline_code = 'AA') AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.to_airport = AIRPORT_SE... | [
22437,
15923,
6129,
422,
49040,
4694,
38926,
17511,
284,
41051,
8643,
11159,
16779,
360,
8808,
1268,
4177,
18091,
13,
958,
1370,
62,
8189,
16034,
18091,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
22437,
15923,
6129,
422,
49040,
4694,
38926,
17511,
284,
41051,
8643,
11159,
16779,
360,
8808,
1268,
4177,
18091,
13,
958,
1370,
62,
8189,
16034,
18091,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15... |
what has changed in patient 009-12221's temperature last measured on the first icu visit compared to the second to last value measured on the first icu visit? | SELECT (SELECT vitalperiodic.temperature FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-12221') AND NOT patient.unitdischargetime I... | [
10919,
468,
3421,
287,
5827,
3571,
24,
12,
1065,
26115,
338,
5951,
938,
8630,
319,
262,
717,
14158,
84,
3187,
3688,
284,
262,
1218,
284,
938,
1988,
8630,
319,
262,
717,
14158,
84,
3187,
30,
46506,
357,
46506,
9204,
41007,
291,
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,
1... | [
10919,
468,
3421,
287,
5827,
3571,
24,
12,
1065,
26115,
338,
5951,
938,
8630,
319,
262,
717,
14158,
84,
3187,
3688,
284,
262,
1218,
284,
938,
1988,
8630,
319,
262,
717,
14158,
84,
3187,
30,
46506,
357,
46506,
9204,
41007,
291,
13,
1... |
Tell me the high assists for orlando | SELECT "High assists" FROM table_11578 WHERE "Team" = 'orlando' | [
24446,
502,
262,
1029,
13648,
329,
393,
11993,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
1157,
38907,
33411,
366,
15592,
1,
796,
705,
273,
11993,
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
] | [
24446,
502,
262,
1029,
13648,
329,
393,
11993,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
1157,
38907,
33411,
366,
15592,
1,
796,
705,
273,
11993,
6
] |
what is the maximum total hospital cost to include a procedure called treatment of hypernatremia - desmopressin this year? | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'treatment of hypernatremia - desmopressin'))... | [
10919,
318,
262,
5415,
2472,
4436,
1575,
284,
2291,
257,
8771,
1444,
3513,
286,
8718,
32353,
2787,
544,
532,
748,
35244,
601,
259,
428,
614,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
5415,
2472,
4436,
1575,
284,
2291,
257,
8771,
1444,
3513,
286,
8718,
32353,
2787,
544,
532,
748,
35244,
601,
259,
428,
614,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
... |
Who is the outgoing manager when the team is simurq pfc? | SELECT outgoing_manager FROM table_27057070_3 WHERE team = "Simurq PFC" | [
8241,
318,
262,
28181,
4706,
618,
262,
1074,
318,
985,
333,
80,
279,
16072,
30,
46506,
28181,
62,
37153,
16034,
3084,
62,
1983,
2713,
2154,
2154,
62,
18,
33411,
1074,
796,
366,
8890,
333,
80,
350,
4851,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
28181,
4706,
618,
262,
1074,
318,
985,
333,
80,
279,
16072,
30,
46506,
28181,
62,
37153,
16034,
3084,
62,
1983,
2713,
2154,
2154,
62,
18,
33411,
1074,
796,
366,
8890,
333,
80,
350,
4851,
1
] |
which patients are taking drug via ns route? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "NS" | [
4758,
3871,
389,
2263,
2563,
2884,
36545,
6339,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
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
] | [
4758,
3871,
389,
2263,
2563,
2884,
36545,
6339,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
7... |
What day was the complete 2nd series: volume one released? | SELECT "Date Released" FROM table_72938 WHERE "Season" = 'The Complete 2nd Series: Volume One' | [
2061,
1110,
373,
262,
1844,
362,
358,
2168,
25,
6115,
530,
2716,
30,
46506,
366,
10430,
28728,
1,
16034,
3084,
62,
48555,
2548,
33411,
366,
18960,
1,
796,
705,
464,
13248,
362,
358,
7171,
25,
14701,
1881,
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
] | [
2061,
1110,
373,
262,
1844,
362,
358,
2168,
25,
6115,
530,
2716,
30,
46506,
366,
10430,
28728,
1,
16034,
3084,
62,
48555,
2548,
33411,
366,
18960,
1,
796,
705,
464,
13248,
362,
358,
7171,
25,
14701,
1881,
6
] |
what name comes after santiago romero 's name on the list ? | SELECT "name" FROM table_204_753 WHERE id = (SELECT id FROM table_204_753 WHERE "name" = 'santiago romero') + 1 | [
10919,
1438,
2058,
706,
264,
17096,
3839,
9267,
3529,
705,
82,
1438,
319,
262,
1351,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
44550,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
44550,
33411,
366,
3672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
1438,
2058,
706,
264,
17096,
3839,
9267,
3529,
705,
82,
1438,
319,
262,
1351,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
44550,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
44550,
33411,
366,
3672,
... |
What was the attendance when Nuneaton Borough was the home team? | SELECT "Attendance" FROM table_5909 WHERE "Home team" = 'nuneaton borough' | [
2061,
373,
262,
14858,
618,
399,
1726,
13951,
48114,
373,
262,
1363,
1074,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
3270,
2931,
33411,
366,
16060,
1074,
1,
796,
705,
77,
1726,
13951,
33534,
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
] | [
2061,
373,
262,
14858,
618,
399,
1726,
13951,
48114,
373,
262,
1363,
1074,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
3270,
2931,
33411,
366,
16060,
1074,
1,
796,
705,
77,
1726,
13951,
33534,
6
] |
Who has 1 win, 1 loss, and has played 2 matches? | SELECT "Name" FROM table_71370 WHERE "Wins" = '1' AND "Losses" = '1' AND "Matches" = '2' | [
8241,
468,
352,
1592,
11,
352,
2994,
11,
290,
468,
2826,
362,
7466,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
50055,
2154,
33411,
366,
54,
1040,
1,
796,
705,
16,
6,
5357,
366,
43,
793,
274,
1,
796,
705,
16,
6,
5357,
366,
19044,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
468,
352,
1592,
11,
352,
2994,
11,
290,
468,
2826,
362,
7466,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
50055,
2154,
33411,
366,
54,
1040,
1,
796,
705,
16,
6,
5357,
366,
43,
793,
274,
1,
796,
705,
16,
6,
5357,
366,
19044,
... |
Name the Status with an Against larger than 15? | SELECT status FROM table_name_98 WHERE against > 15 | [
5376,
262,
12678,
351,
281,
12914,
4025,
621,
1315,
30,
46506,
3722,
16034,
3084,
62,
3672,
62,
4089,
33411,
1028,
1875,
1315
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
12678,
351,
281,
12914,
4025,
621,
1315,
30,
46506,
3722,
16034,
3084,
62,
3672,
62,
4089,
33411,
1028,
1875,
1315
] |
What was Melbourne's score as the away team? | SELECT away_team AS score FROM table_name_17 WHERE away_team = "melbourne" | [
2061,
373,
14819,
338,
4776,
355,
262,
1497,
1074,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1558,
33411,
1497,
62,
15097,
796,
366,
17694,
12544,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
14819,
338,
4776,
355,
262,
1497,
1074,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1558,
33411,
1497,
62,
15097,
796,
366,
17694,
12544,
1
] |
Name the archive for run time of 23:55 | SELECT "Archive" FROM table_24055 WHERE "Run time" = '23:55' | [
5376,
262,
15424,
329,
1057,
640,
286,
2242,
25,
2816,
46506,
366,
19895,
425,
1,
16034,
3084,
62,
1731,
47838,
33411,
366,
10987,
640,
1,
796,
705,
1954,
25,
2816,
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
] | [
5376,
262,
15424,
329,
1057,
640,
286,
2242,
25,
2816,
46506,
366,
19895,
425,
1,
16034,
3084,
62,
1731,
47838,
33411,
366,
10987,
640,
1,
796,
705,
1954,
25,
2816,
6
] |
Where is the moving from location with a transfer window of summer and the source kerkida.net? | SELECT moving_from FROM table_name_88 WHERE transfer_window = "summer" AND source = "kerkida.net" | [
8496,
318,
262,
3867,
422,
4067,
351,
257,
4351,
4324,
286,
3931,
290,
262,
2723,
479,
9587,
3755,
13,
3262,
30,
46506,
3867,
62,
6738,
16034,
3084,
62,
3672,
62,
3459,
33411,
4351,
62,
17497,
796,
366,
16345,
647,
1,
5357,
2723,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
318,
262,
3867,
422,
4067,
351,
257,
4351,
4324,
286,
3931,
290,
262,
2723,
479,
9587,
3755,
13,
3262,
30,
46506,
3867,
62,
6738,
16034,
3084,
62,
3672,
62,
3459,
33411,
4351,
62,
17497,
796,
366,
16345,
647,
1,
5357,
2723,
79... |
For those records from the products and each product's manufacturer, find headquarter and the average of manufacturer , and group by attribute headquarter, and visualize them by a bar chart. | SELECT Headquarter, AVG(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1182,
24385,
290,
262,
2811,
286,
11554,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
7123,
24385,
11,
35224,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1182,
24385,
290,
262,
2811,
286,
11554,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
7123,
24385,
11,
35224,
7,... |
who does chasins work with ? | SELECT DISTINCT AUTHOR_1.authorid FROM author AS AUTHOR_0, author AS AUTHOR_1, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_0.authorname = 'chasins' AND WRITES_0.authorid = AUTHOR_0.authorid AND WRITES_1.authorid = AUTHOR_1.authorid AND WRITES_1.paperid = WRITES_0.paperid | [
8727,
857,
442,
292,
1040,
670,
351,
5633,
46506,
360,
8808,
1268,
4177,
44746,
62,
16,
13,
9800,
312,
16034,
1772,
7054,
44746,
62,
15,
11,
1772,
7054,
44746,
62,
16,
11,
6797,
7054,
11342,
2043,
1546,
62,
15,
11,
6797,
7054,
11342... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8727,
857,
442,
292,
1040,
670,
351,
5633,
46506,
360,
8808,
1268,
4177,
44746,
62,
16,
13,
9800,
312,
16034,
1772,
7054,
44746,
62,
15,
11,
1772,
7054,
44746,
62,
16,
11,
6797,
7054,
11342,
2043,
1546,
62,
15,
11,
6797,
7054,
11342... |
How many affiliations does the University of Toledo have? | SELECT COUNT("Affiliation") FROM table_4007 WHERE "Institution" = 'University of Toledo' | [
2437,
867,
8349,
602,
857,
262,
2059,
286,
36026,
423,
30,
46506,
327,
28270,
7203,
35191,
15547,
4943,
16034,
3084,
62,
7029,
22,
33411,
366,
6310,
2738,
1,
796,
705,
21009,
286,
36026,
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
] | [
2437,
867,
8349,
602,
857,
262,
2059,
286,
36026,
423,
30,
46506,
327,
28270,
7203,
35191,
15547,
4943,
16034,
3084,
62,
7029,
22,
33411,
366,
6310,
2738,
1,
796,
705,
21009,
286,
36026,
6
] |
give me the length of stay of patient 28484 during his last stay in the icu. | SELECT STRFTIME('%j', icustays.outtime) - STRFTIME('%j', icustays.intime) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28484) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1 | [
26535,
502,
262,
4129,
286,
2652,
286,
5827,
2579,
34137,
1141,
465,
938,
2652,
287,
262,
14158,
84,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
14158,
436,
592,
13,
448,
2435,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
4129,
286,
2652,
286,
5827,
2579,
34137,
1141,
465,
938,
2652,
287,
262,
14158,
84,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
14158,
436,
592,
13,
448,
2435,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
... |
What is the league name for the regular season status of 2nd, mid atlantic? | SELECT league FROM table_16636344_1 WHERE regular_season = "2nd, Mid Atlantic" | [
2061,
318,
262,
4652,
1438,
329,
262,
3218,
1622,
3722,
286,
362,
358,
11,
3095,
379,
75,
5109,
30,
46506,
4652,
16034,
3084,
62,
23055,
2623,
33535,
62,
16,
33411,
3218,
62,
6230,
796,
366,
17,
358,
11,
7215,
10596,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4652,
1438,
329,
262,
3218,
1622,
3722,
286,
362,
358,
11,
3095,
379,
75,
5109,
30,
46506,
4652,
16034,
3084,
62,
23055,
2623,
33535,
62,
16,
33411,
3218,
62,
6230,
796,
366,
17,
358,
11,
7215,
10596,
1
] |
What is the score for Set 2 at 15:21? | SELECT score FROM table_name_48 WHERE set_2 = "15:21" | [
2061,
318,
262,
4776,
329,
5345,
362,
379,
1315,
25,
2481,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2780,
33411,
900,
62,
17,
796,
366,
1314,
25,
2481,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4776,
329,
5345,
362,
379,
1315,
25,
2481,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2780,
33411,
900,
62,
17,
796,
366,
1314,
25,
2481,
1
] |
How many heights does chad henne have? | SELECT COUNT(height) FROM table_15017024_2 WHERE player_name = "Chad Henne" | [
2437,
867,
23245,
857,
442,
324,
30963,
710,
423,
30,
46506,
327,
28270,
7,
17015,
8,
16034,
3084,
62,
1314,
486,
2154,
1731,
62,
17,
33411,
2137,
62,
3672,
796,
366,
1925,
324,
6752,
710,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
23245,
857,
442,
324,
30963,
710,
423,
30,
46506,
327,
28270,
7,
17015,
8,
16034,
3084,
62,
1314,
486,
2154,
1731,
62,
17,
33411,
2137,
62,
3672,
796,
366,
1925,
324,
6752,
710,
1
] |
find me the earliest BOSTON departure for ATLANTA and the lastest return trip from ATLANTA so that i can be in ATLANTA the longest amount of time but return to BOSTON the same day | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.arrival_time = (SELECT MIN(FLIGHTalias1.arrival_time) FROM airport_s... | [
19796,
502,
262,
14555,
347,
10892,
1340,
12928,
329,
5161,
25697,
5603,
290,
262,
938,
395,
1441,
5296,
422,
5161,
25697,
5603,
523,
326,
1312,
460,
307,
287,
5161,
25697,
5603,
262,
14069,
2033,
286,
640,
475,
1441,
284,
347,
10892,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19796,
502,
262,
14555,
347,
10892,
1340,
12928,
329,
5161,
25697,
5603,
290,
262,
938,
395,
1441,
5296,
422,
5161,
25697,
5603,
523,
326,
1312,
460,
307,
287,
5161,
25697,
5603,
262,
14069,
2033,
286,
640,
475,
1441,
284,
347,
10892,
... |
How many characteristics does the product named 'laurel' have? | SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "laurel" | [
2437,
867,
9695,
857,
262,
1720,
3706,
705,
5031,
495,
75,
6,
423,
30,
46506,
327,
28270,
7,
28104,
16034,
3186,
7054,
256,
16,
32357,
1268,
1720,
62,
22769,
3969,
7054,
256,
17,
6177,
256,
16,
13,
11167,
62,
312,
796,
256,
17,
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... | [
2437,
867,
9695,
857,
262,
1720,
3706,
705,
5031,
495,
75,
6,
423,
30,
46506,
327,
28270,
7,
28104,
16034,
3186,
7054,
256,
16,
32357,
1268,
1720,
62,
22769,
3969,
7054,
256,
17,
6177,
256,
16,
13,
11167,
62,
312,
796,
256,
17,
13... |
Please show the employee first names and ids of employees who serve at least 10 customers. | SELECT T1.firstname, T1.supportrepid FROM customer AS T1 JOIN employee AS T2 ON T1.supportrepid = T2.employeeid GROUP BY T1.supportrepid HAVING COUNT(*) >= 10 | [
5492,
905,
262,
6538,
717,
3891,
290,
220,
2340,
286,
4409,
508,
4691,
379,
1551,
838,
4297,
13,
46506,
309,
16,
13,
11085,
3672,
11,
309,
16,
13,
11284,
7856,
312,
16034,
6491,
7054,
309,
16,
32357,
1268,
6538,
7054,
309,
17,
6177,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5492,
905,
262,
6538,
717,
3891,
290,
220,
2340,
286,
4409,
508,
4691,
379,
1551,
838,
4297,
13,
46506,
309,
16,
13,
11085,
3672,
11,
309,
16,
13,
11284,
7856,
312,
16034,
6491,
7054,
309,
16,
32357,
1268,
6538,
7054,
309,
17,
6177,... |
What was the capacity percentage when attendance was 71080? | SELECT capacity_percentage FROM table_28884858_2 WHERE average_attendance = 71080 | [
2061,
373,
262,
5339,
5873,
618,
14858,
373,
767,
24045,
30,
46506,
5339,
62,
25067,
496,
16034,
3084,
62,
2078,
3459,
2780,
3365,
62,
17,
33411,
2811,
62,
1078,
437,
590,
796,
767,
24045
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
5339,
5873,
618,
14858,
373,
767,
24045,
30,
46506,
5339,
62,
25067,
496,
16034,
3084,
62,
2078,
3459,
2780,
3365,
62,
17,
33411,
2811,
62,
1078,
437,
590,
796,
767,
24045
] |
What is the score on october 7? | SELECT "Score" FROM table_6413 WHERE "Date" = 'october 7' | [
2061,
318,
262,
4776,
319,
19318,
2023,
767,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2414,
1485,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
767,
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
] | [
2061,
318,
262,
4776,
319,
19318,
2023,
767,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2414,
1485,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
767,
6
] |
what number of patients were primarily diagnosed for overdose? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "OVERDOSE" | [
10919,
1271,
286,
3871,
547,
7525,
14641,
329,
27357,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
41983,
35,
14058,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
1271,
286,
3871,
547,
7525,
14641,
329,
27357,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
41983,
35,
14058,
1
] |
Name the D 43 when it has D 45 of d 25 | SELECT d_43 FROM table_name_45 WHERE d_45 = "d 25" | [
5376,
262,
360,
5946,
618,
340,
468,
360,
4153,
286,
288,
1679,
46506,
288,
62,
3559,
16034,
3084,
62,
3672,
62,
2231,
33411,
288,
62,
2231,
796,
366,
67,
1679,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
360,
5946,
618,
340,
468,
360,
4153,
286,
288,
1679,
46506,
288,
62,
3559,
16034,
3084,
62,
3672,
62,
2231,
33411,
288,
62,
2231,
796,
366,
67,
1679,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.