instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Which Tournament has a 2009 of q1, and a 2008 of 1r? | SELECT tournament FROM table_name_28 WHERE 2009 = "q1" AND 2008 = "1r" | [
13828,
9595,
468,
257,
3717,
286,
10662,
16,
11,
290,
257,
3648,
286,
352,
81,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
2078,
33411,
3717,
796,
366,
80,
16,
1,
5357,
3648,
796,
366,
16,
81,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9595,
468,
257,
3717,
286,
10662,
16,
11,
290,
257,
3648,
286,
352,
81,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
2078,
33411,
3717,
796,
366,
80,
16,
1,
5357,
3648,
796,
366,
16,
81,
1
] |
kode tv and wsil tv both are a part of which network ? | SELECT "network" FROM table_204_601 WHERE "callsign" = 'kode-tv' | [
74,
1098,
31557,
290,
266,
18217,
31557,
1111,
389,
257,
636,
286,
543,
3127,
5633,
46506,
366,
27349,
1,
16034,
3084,
62,
18638,
62,
41706,
33411,
366,
66,
5691,
570,
1,
796,
705,
74,
1098,
12,
14981,
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
] | [
74,
1098,
31557,
290,
266,
18217,
31557,
1111,
389,
257,
636,
286,
543,
3127,
5633,
46506,
366,
27349,
1,
16034,
3084,
62,
18638,
62,
41706,
33411,
366,
66,
5691,
570,
1,
796,
705,
74,
1098,
12,
14981,
6
] |
Who is the player with playoff money from the United States? | SELECT "Player" FROM table_60500 WHERE "Money ( \u00a3 )" = 'playoff' AND "Country" = 'united states' | [
8241,
318,
262,
2137,
351,
13119,
1637,
422,
262,
1578,
1829,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
1899,
4059,
33411,
366,
26788,
357,
3467,
84,
405,
64,
18,
1267,
1,
796,
705,
1759,
2364,
6,
5357,
366,
33921,
1,
796,
705,
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
] | [
8241,
318,
262,
2137,
351,
13119,
1637,
422,
262,
1578,
1829,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
1899,
4059,
33411,
366,
26788,
357,
3467,
84,
405,
64,
18,
1267,
1,
796,
705,
1759,
2364,
6,
5357,
366,
33921,
1,
796,
705,
4... |
list flights from DETROIT to SAN DIEGO on thursday | 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 = 'SAN DIEGO' AND date_day.day_number = 24 AND date_day.month_number = 5 AND... | [
4868,
13956,
422,
38267,
13252,
2043,
284,
37376,
14766,
7156,
46,
319,
294,
3479,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4868,
13956,
422,
38267,
13252,
2043,
284,
37376,
14766,
7156,
46,
319,
294,
3479,
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,
... |
What was the capacity percentage when attendance was 71080? | SELECT "Capacity Percentage" FROM table_74339 WHERE "Average Attendance" = '71080' | [
2061,
373,
262,
5339,
5873,
618,
14858,
373,
767,
24045,
30,
46506,
366,
15610,
4355,
36013,
1,
16034,
3084,
62,
4524,
29626,
33411,
366,
26287,
46502,
590,
1,
796,
705,
22,
24045,
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,
5339,
5873,
618,
14858,
373,
767,
24045,
30,
46506,
366,
15610,
4355,
36013,
1,
16034,
3084,
62,
4524,
29626,
33411,
366,
26287,
46502,
590,
1,
796,
705,
22,
24045,
6
] |
what is the number of patients with a personal history of antineoplastic chemotherapy diagnoses who have been admitted to the hospital on an emergency basis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Personal history of antineoplastic chemotherapy" | [
10919,
318,
262,
1271,
286,
3871,
351,
257,
2614,
2106,
286,
1885,
500,
20106,
3477,
34696,
40567,
508,
423,
587,
6848,
284,
262,
4436,
319,
281,
6334,
4308,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
351,
257,
2614,
2106,
286,
1885,
500,
20106,
3477,
34696,
40567,
508,
423,
587,
6848,
284,
262,
4436,
319,
281,
6334,
4308,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
... |
What's the total number of NGC that has a Declination ( J2000 ) of 15 55 , and an Apparent magnitude greater than 10? | SELECT SUM("NGC number") FROM table_58287 WHERE "Declination ( J2000 )" = '°15′55″' AND "Apparent magnitude" > '10' | [
2061,
338,
262,
2472,
1271,
286,
399,
15916,
326,
468,
257,
16691,
1883,
357,
449,
11024,
1267,
286,
1315,
5996,
837,
290,
281,
2034,
1580,
14735,
3744,
621,
838,
30,
46506,
35683,
7203,
10503,
34,
1271,
4943,
16034,
3084,
62,
3365,
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... | [
2061,
338,
262,
2472,
1271,
286,
399,
15916,
326,
468,
257,
16691,
1883,
357,
449,
11024,
1267,
286,
1315,
5996,
837,
290,
281,
2034,
1580,
14735,
3744,
621,
838,
30,
46506,
35683,
7203,
10503,
34,
1271,
4943,
16034,
3084,
62,
3365,
2... |
Who was the leading scorer on November 2, 2007? | SELECT "Leading scorer" FROM table_58486 WHERE "Date" = 'november 2, 2007' | [
8241,
373,
262,
3756,
30664,
319,
3389,
362,
11,
4343,
30,
46506,
366,
20451,
278,
30664,
1,
16034,
3084,
62,
3365,
34251,
33411,
366,
10430,
1,
796,
705,
77,
3239,
362,
11,
4343,
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
] | [
8241,
373,
262,
3756,
30664,
319,
3389,
362,
11,
4343,
30,
46506,
366,
20451,
278,
30664,
1,
16034,
3084,
62,
3365,
34251,
33411,
366,
10430,
1,
796,
705,
77,
3239,
362,
11,
4343,
6
] |
show me the flights from BALTIMORE to OAKLAND please | 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_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKL... | [
12860,
502,
262,
13956,
422,
347,
31429,
3955,
6965,
284,
440,
10206,
28182,
3387,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
13956,
422,
347,
31429,
3955,
6965,
284,
440,
10206,
28182,
3387,
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,
... |
what is the total amount of input since 12/26/2105 patient 006-2586 had received? | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-2586')) AND intakeoutput.cellpath LIKE '%int... | [
10919,
318,
262,
2472,
2033,
286,
5128,
1201,
1105,
14,
2075,
14,
17,
13348,
5827,
3571,
21,
12,
1495,
4521,
550,
2722,
30,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
2033,
286,
5128,
1201,
1105,
14,
2075,
14,
17,
13348,
5827,
3571,
21,
12,
1495,
4521,
550,
2722,
30,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,... |
count the number of patients diagnosed with acute respiratory failure who did not come back to the hospital within 2 months of the diagnosis. | SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'acute respiratory failure') AS t1) - (SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT patient.uniqu... | [
9127,
262,
1271,
286,
3871,
14641,
351,
14352,
22949,
5287,
508,
750,
407,
1282,
736,
284,
262,
4436,
1626,
362,
1933,
286,
262,
13669,
13,
46506,
357,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
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... | [
9127,
262,
1271,
286,
3871,
14641,
351,
14352,
22949,
5287,
508,
750,
407,
1282,
736,
284,
262,
4436,
1626,
362,
1933,
286,
262,
13669,
13,
46506,
357,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,... |
What are all approximate sales for the author Laura Ingalls Wilder? | SELECT approximate_sales FROM table_2512935_8 WHERE author = "Laura Ingalls Wilder" | [
2061,
389,
477,
27665,
4200,
329,
262,
1772,
16753,
17589,
5691,
6183,
263,
30,
46506,
27665,
62,
82,
2040,
16034,
3084,
62,
1495,
18741,
2327,
62,
23,
33411,
1772,
796,
366,
43687,
17589,
5691,
6183,
263,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
477,
27665,
4200,
329,
262,
1772,
16753,
17589,
5691,
6183,
263,
30,
46506,
27665,
62,
82,
2040,
16034,
3084,
62,
1495,
18741,
2327,
62,
23,
33411,
1772,
796,
366,
43687,
17589,
5691,
6183,
263,
1
] |
what is the game when the opponent is new york knickerbockers? | SELECT SUM(game) FROM table_name_96 WHERE opponent = "new york knickerbockers" | [
10919,
318,
262,
983,
618,
262,
6125,
318,
649,
331,
967,
638,
15799,
65,
735,
364,
30,
46506,
35683,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
4846,
33411,
6125,
796,
366,
3605,
331,
967,
638,
15799,
65,
735,
364,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
983,
618,
262,
6125,
318,
649,
331,
967,
638,
15799,
65,
735,
364,
30,
46506,
35683,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
4846,
33411,
6125,
796,
366,
3605,
331,
967,
638,
15799,
65,
735,
364,
1
] |
What is Venue, when Extra is Pentathlon? | SELECT venue FROM table_name_39 WHERE extra = "pentathlon" | [
2061,
318,
9932,
518,
11,
618,
17221,
318,
9696,
50236,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2670,
33411,
3131,
796,
366,
16923,
50236,
1
] | [
1,
1,
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,
9932,
518,
11,
618,
17221,
318,
9696,
50236,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2670,
33411,
3131,
796,
366,
16923,
50236,
1
] |
A bar chart for what are the number of the descriptions of the service types with product price above 100?, and could you list in descending by the how many service type description please? | SELECT Service_Type_Description, COUNT(Service_Type_Description) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100 GROUP BY Service_Type_Description ORDER BY COUNT(Service_Type_Description) DESC | [
32,
2318,
8262,
329,
644,
389,
262,
1271,
286,
262,
16969,
286,
262,
2139,
3858,
351,
1720,
2756,
2029,
1802,
21747,
290,
714,
345,
1351,
287,
31491,
416,
262,
703,
867,
2139,
2099,
6764,
3387,
30,
46506,
4809,
62,
6030,
62,
11828,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32,
2318,
8262,
329,
644,
389,
262,
1271,
286,
262,
16969,
286,
262,
2139,
3858,
351,
1720,
2756,
2029,
1802,
21747,
290,
714,
345,
1351,
287,
31491,
416,
262,
703,
867,
2139,
2099,
6764,
3387,
30,
46506,
4809,
62,
6030,
62,
11828,
... |
provide the number of patients who have been diagnosed with unspecified encephalopathy and abnormal lab test status. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Encephalopathy NOS" AND lab.flag = "abnormal" | [
15234,
485,
262,
1271,
286,
3871,
508,
423,
587,
14641,
351,
29547,
551,
43996,
27189,
290,
18801,
2248,
1332,
3722,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
508,
423,
587,
14641,
351,
29547,
551,
43996,
27189,
290,
18801,
2248,
1332,
3722,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
Does ES 623 have morning courses ? | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.start_time < '12:00:00' AND course_offering.start_time >= '08:00:00' AND course.course_id = course_offering.course_id AND course.department = 'ES' AND course.number = 623 AND semester.semester = 'WN' AND semester.semester_id = course_offer... | [
13921,
13380,
718,
1954,
423,
3329,
10902,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
62,
2364,
1586,
13,
9688,
62,
2435,
1279,
705,
1065,
25,
405,
25,
405,
6,
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,
1,
1,
1... | [
13921,
13380,
718,
1954,
423,
3329,
10902,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
62,
2364,
1586,
13,
9688,
62,
2435,
1279,
705,
1065,
25,
405,
25,
405,
6,
5357,
... |
Show the number of apartment bookings for each year and bin booking start date by year interval in a bar chart, and show y-axis from low to high order. | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id ORDER BY COUNT(booking_start_date) | [
15307,
262,
1271,
286,
7962,
1492,
654,
329,
1123,
614,
290,
9874,
25452,
923,
3128,
416,
614,
16654,
287,
257,
2318,
8262,
11,
290,
905,
331,
12,
22704,
422,
1877,
284,
1029,
1502,
13,
46506,
25452,
62,
9688,
62,
4475,
11,
327,
282... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
262,
1271,
286,
7962,
1492,
654,
329,
1123,
614,
290,
9874,
25452,
923,
3128,
416,
614,
16654,
287,
257,
2318,
8262,
11,
290,
905,
331,
12,
22704,
422,
1877,
284,
1029,
1502,
13,
46506,
25452,
62,
9688,
62,
4475,
11,
327,
282... |
how many days has it been since the last time patient 95892 stayed during the current hospital encounter in the careunit tsicu? | SELECT 1 * (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 = 95892 AND admissions.dischtime IS NULL) AND transfers.careunit = 'tsicu' ORDER BY transfers.intime DESC LIMIT 1 | [
4919,
867,
1528,
468,
340,
587,
1201,
262,
938,
640,
5827,
860,
3365,
5892,
9658,
1141,
262,
1459,
4436,
8791,
287,
262,
1337,
20850,
256,
21383,
84,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
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... | [
4919,
867,
1528,
468,
340,
587,
1201,
262,
938,
640,
5827,
860,
3365,
5892,
9658,
1141,
262,
1459,
4436,
8791,
287,
262,
1337,
20850,
256,
21383,
84,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
... |
Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds? | SELECT DISTINCT T1.driverid, T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000 | [
16742,
477,
262,
7310,
4686,
290,
29835,
286,
6643,
508,
423,
550,
10882,
524,
517,
621,
1802,
830,
38694,
30,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
26230,
312,
11,
309,
16,
13,
14648,
414,
16034,
6643,
7054,
309,
16,
32357,
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... | [
16742,
477,
262,
7310,
4686,
290,
29835,
286,
6643,
508,
423,
550,
10882,
524,
517,
621,
1802,
830,
38694,
30,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
26230,
312,
11,
309,
16,
13,
14648,
414,
16034,
6643,
7054,
309,
16,
32357,
12... |
What are the lowest points past the year 1978? | SELECT MIN(points) FROM table_name_51 WHERE year > 1978 | [
2061,
389,
262,
9016,
2173,
1613,
262,
614,
15524,
30,
46506,
20625,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
4349,
33411,
614,
1875,
15524
] | [
1,
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,
389,
262,
9016,
2173,
1613,
262,
614,
15524,
30,
46506,
20625,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
4349,
33411,
614,
1875,
15524
] |
With a lost of lost what was the losing bonus? | SELECT "Losing bonus" FROM table_46097 WHERE "Lost" = 'lost' | [
3152,
257,
2626,
286,
2626,
644,
373,
262,
6078,
7202,
30,
46506,
366,
43,
2752,
7202,
1,
16034,
3084,
62,
34716,
5607,
33411,
366,
31042,
1,
796,
705,
33224,
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
] | [
3152,
257,
2626,
286,
2626,
644,
373,
262,
6078,
7202,
30,
46506,
366,
43,
2752,
7202,
1,
16034,
3084,
62,
34716,
5607,
33411,
366,
31042,
1,
796,
705,
33224,
6
] |
what was the difference in score for the tenth game of the season against the oakland raiders ? | SELECT "result" - "result" FROM table_203_730 WHERE "week" = 10 | [
10919,
373,
262,
3580,
287,
4776,
329,
262,
24395,
983,
286,
262,
1622,
1028,
262,
26210,
1044,
9513,
364,
5633,
46506,
366,
20274,
1,
532,
366,
20274,
1,
16034,
3084,
62,
22416,
62,
43916,
33411,
366,
10464,
1,
796,
838
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
373,
262,
3580,
287,
4776,
329,
262,
24395,
983,
286,
262,
1622,
1028,
262,
26210,
1044,
9513,
364,
5633,
46506,
366,
20274,
1,
532,
366,
20274,
1,
16034,
3084,
62,
22416,
62,
43916,
33411,
366,
10464,
1,
796,
838
] |
What percentage of my answers are accepted?. Returns the total number of answers, the number of accepted answers, and what percentage of answers are accepted. | SELECT COUNT(a.Id) AS "total_answers", SUM(CASE q.AcceptedAnswerId WHEN a.Id THEN 1 ELSE 0 END) AS "accepted_answers", ROUND(SUM(CASE q.AcceptedAnswerId WHEN a.Id THEN 1 ELSE 0 END) * 100.0 / COUNT(a.Id), 1) AS "percentage_accepted" FROM Posts AS a JOIN Posts AS q ON a.ParentId = q.Id WHERE a.OwnerUserId = 11742502 AND... | [
2061,
5873,
286,
616,
7429,
389,
6292,
30,
13,
16409,
262,
2472,
1271,
286,
7429,
11,
262,
1271,
286,
6292,
7429,
11,
290,
644,
5873,
286,
7429,
389,
6292,
13,
46506,
327,
28270,
7,
64,
13,
7390,
8,
7054,
366,
23350,
62,
504,
86,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5873,
286,
616,
7429,
389,
6292,
30,
13,
16409,
262,
2472,
1271,
286,
7429,
11,
262,
1271,
286,
6292,
7429,
11,
290,
644,
5873,
286,
7429,
389,
6292,
13,
46506,
327,
28270,
7,
64,
13,
7390,
8,
7054,
366,
23350,
62,
504,
86,
... |
What is the total number of patient portayers for the episode directed by Craig Zisk and written by Brad Falchuk? | SELECT COUNT("Patient Portrayer") FROM table_73968 WHERE "Directed by" = 'Craig Zisk' AND "Written by" = 'Brad Falchuk' | [
2061,
318,
262,
2472,
1271,
286,
5827,
2493,
6962,
329,
262,
4471,
7924,
416,
13854,
1168,
1984,
290,
3194,
416,
8114,
9596,
46019,
30,
46506,
327,
28270,
7203,
12130,
1153,
4347,
2433,
263,
4943,
16034,
3084,
62,
22,
2670,
3104,
33411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
286,
5827,
2493,
6962,
329,
262,
4471,
7924,
416,
13854,
1168,
1984,
290,
3194,
416,
8114,
9596,
46019,
30,
46506,
327,
28270,
7203,
12130,
1153,
4347,
2433,
263,
4943,
16034,
3084,
62,
22,
2670,
3104,
33411,... |
find the number of patients who had procedure of creation of conduit between left ventricle and aorta. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.short_title = "Conduit left ventr-aorta" | [
19796,
262,
1271,
286,
3871,
508,
550,
8771,
286,
6282,
286,
44457,
1022,
1364,
7435,
1173,
293,
290,
257,
419,
64,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1271,
286,
3871,
508,
550,
8771,
286,
6282,
286,
44457,
1022,
1364,
7435,
1173,
293,
290,
257,
419,
64,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
What was the result for the Outstanding director of a musical category? | SELECT result FROM table_name_67 WHERE category = "outstanding director of a musical" | [
2061,
373,
262,
1255,
329,
262,
3806,
5646,
3437,
286,
257,
10530,
6536,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
3134,
33411,
6536,
796,
366,
448,
5646,
3437,
286,
257,
10530,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1255,
329,
262,
3806,
5646,
3437,
286,
257,
10530,
6536,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
3134,
33411,
6536,
796,
366,
448,
5646,
3437,
286,
257,
10530,
1
] |
Which Events is the highest one that has a Top-10 larger than 7, and Wins smaller than 2? | SELECT MAX("Events") FROM table_35983 WHERE "Top-10" > '7' AND "Wins" < '2' | [
13828,
18715,
318,
262,
4511,
530,
326,
468,
257,
5849,
12,
940,
4025,
621,
767,
11,
290,
24423,
4833,
621,
362,
30,
46506,
25882,
7203,
37103,
4943,
16034,
3084,
62,
2327,
4089,
18,
33411,
366,
9126,
12,
940,
1,
1875,
705,
22,
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
] | [
13828,
18715,
318,
262,
4511,
530,
326,
468,
257,
5849,
12,
940,
4025,
621,
767,
11,
290,
24423,
4833,
621,
362,
30,
46506,
25882,
7203,
37103,
4943,
16034,
3084,
62,
2327,
4089,
18,
33411,
366,
9126,
12,
940,
1,
1875,
705,
22,
6,
... |
keyphrases used by Akihito Kotera and Masatsugu Kidode | SELECT DISTINCT paperkeyphrase.keyphraseid FROM author, paperkeyphrase, writes WHERE author.authorname IN ('Akihito Kotera', 'Masatsugu Kidode') AND writes.authorid = author.authorid AND writes.paperid = paperkeyphrase.paperid GROUP BY paperkeyphrase.keyphraseid HAVING COUNT(DISTINCT writes.authorid) = 2 | [
2539,
746,
81,
1386,
973,
416,
48663,
71,
10094,
21702,
8607,
290,
11066,
1381,
45284,
16828,
1098,
46506,
360,
8808,
1268,
4177,
3348,
2539,
34675,
13,
2539,
34675,
312,
16034,
1772,
11,
3348,
2539,
34675,
11,
6797,
33411,
1772,
13,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2539,
746,
81,
1386,
973,
416,
48663,
71,
10094,
21702,
8607,
290,
11066,
1381,
45284,
16828,
1098,
46506,
360,
8808,
1268,
4177,
3348,
2539,
34675,
13,
2539,
34675,
312,
16034,
1772,
11,
3348,
2539,
34675,
11,
6797,
33411,
1772,
13,
18... |
Provide me the number of patients taking base type drug prescriptions who have hip pressure ulcer. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Pressure ulcer, hip" AND prescriptions.drug_type = "BASE" | [
15946,
485,
502,
262,
1271,
286,
3871,
2263,
2779,
2099,
2563,
34092,
508,
423,
10359,
3833,
14856,
2189,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
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... | [
15946,
485,
502,
262,
1271,
286,
3871,
2263,
2779,
2099,
2563,
34092,
508,
423,
10359,
3833,
14856,
2189,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,... |
count the number of patients who had urgent hospital admission along with one vascular stent insertion procedure. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.long_title = "Insertion of one vascular stent" | [
9127,
262,
1271,
286,
3871,
508,
550,
18039,
4436,
13938,
1863,
351,
530,
39495,
336,
298,
36075,
8771,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
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... | [
9127,
262,
1271,
286,
3871,
508,
550,
18039,
4436,
13938,
1863,
351,
530,
39495,
336,
298,
36075,
8771,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
... |
impaired glucose tolerance or cfrd defined as fasting blood glucose ( fbg ) and post _ prandial blood glucose ( pp ) equal to: fbg < 126 and pp 151 _ 200 , or fbg < 126 and pp > 200, or fbg > 126 and pp > 200. | SELECT * FROM table_dev_34 WHERE impaired_glucose_tolerance = 1 OR cfrd = 1 OR (fasting_blood_glucose_fbg < 126 AND post_prandial_pp >= 151 AND post_prandial_pp <= 200) OR (fasting_blood_glucose_fbg < 126 AND post_prandial_pp > 200) OR (fbg > 126 AND post_prandial_pp > 200) | [
320,
8957,
1202,
15701,
15621,
393,
30218,
4372,
5447,
355,
24845,
2910,
15701,
357,
277,
35904,
1267,
290,
1281,
4808,
778,
392,
498,
2910,
15701,
357,
9788,
1267,
4961,
284,
25,
277,
35904,
1279,
19710,
290,
9788,
25326,
4808,
939,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
320,
8957,
1202,
15701,
15621,
393,
30218,
4372,
5447,
355,
24845,
2910,
15701,
357,
277,
35904,
1267,
290,
1281,
4808,
778,
392,
498,
2910,
15701,
357,
9788,
1267,
4961,
284,
25,
277,
35904,
1279,
19710,
290,
9788,
25326,
4808,
939,
83... |
Which Series has a Date of may 2? | SELECT "Series" FROM table_39181 WHERE "Date" = 'may 2' | [
13828,
7171,
468,
257,
7536,
286,
743,
362,
30,
46506,
366,
27996,
1,
16034,
3084,
62,
2670,
27057,
33411,
366,
10430,
1,
796,
705,
11261,
362,
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
] | [
13828,
7171,
468,
257,
7536,
286,
743,
362,
30,
46506,
366,
27996,
1,
16034,
3084,
62,
2670,
27057,
33411,
366,
10430,
1,
796,
705,
11261,
362,
6
] |
Visualize a bar chart about the distribution of All_Home and the sum of Team_ID , and group by attribute All_Home, sort by the total number in descending. | SELECT All_Home, SUM(Team_ID) FROM basketball_match GROUP BY All_Home ORDER BY SUM(Team_ID) DESC | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
16060,
290,
262,
2160,
286,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
11,
3297,
416,
262,
2472,
1271,
287,
31491,
13,
46506,
1439,
62,
16060,
11,
35683,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
16060,
290,
262,
2160,
286,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
11,
3297,
416,
262,
2472,
1271,
287,
31491,
13,
46506,
1439,
62,
16060,
11,
35683,
... |
how many patients are born before 1850 and suggested with additive drug type? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "1850" AND prescriptions.drug_type = "ADDITIVE" | [
4919,
867,
3871,
389,
4642,
878,
35745,
290,
5220,
351,
38298,
2563,
2099,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
389,
4642,
878,
35745,
290,
5220,
351,
38298,
2563,
2099,
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,
31... |
What is the outcome of the match with opponent Jade Curtis? | SELECT "Outcome" FROM table_8600 WHERE "Opponent" = 'jade curtis' | [
2061,
318,
262,
8055,
286,
262,
2872,
351,
6125,
23386,
25157,
30,
46506,
366,
7975,
2958,
1,
16034,
3084,
62,
4521,
405,
33411,
366,
27524,
3471,
1,
796,
705,
73,
671,
1090,
48010,
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
] | [
2061,
318,
262,
8055,
286,
262,
2872,
351,
6125,
23386,
25157,
30,
46506,
366,
7975,
2958,
1,
16034,
3084,
62,
4521,
405,
33411,
366,
27524,
3471,
1,
796,
705,
73,
671,
1090,
48010,
6
] |
What position does the player from the Toronto Argonauts play? | SELECT "Position" FROM table_42403 WHERE "CFL Team" = 'toronto argonauts' | [
2061,
2292,
857,
262,
2137,
422,
262,
6586,
49974,
17712,
711,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
40090,
3070,
33411,
366,
34,
3697,
4816,
1,
796,
705,
13165,
5957,
1822,
261,
17712,
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,
2292,
857,
262,
2137,
422,
262,
6586,
49974,
17712,
711,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
40090,
3070,
33411,
366,
34,
3697,
4816,
1,
796,
705,
13165,
5957,
1822,
261,
17712,
6
] |
Visualize a bar chart about the distribution of Time and meter_100 , could you display in descending by the x-axis? | SELECT Time, meter_100 FROM swimmer ORDER BY Time DESC | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
3862,
290,
16430,
62,
3064,
837,
714,
345,
3359,
287,
31491,
416,
262,
2124,
12,
22704,
30,
46506,
3862,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
3862,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
3862,
290,
16430,
62,
3064,
837,
714,
345,
3359,
287,
31491,
416,
262,
2124,
12,
22704,
30,
46506,
3862,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
3862,
22196,
34
] |
WHAT IS THE HIGHEST PICK WITH A TE POSITION, AND ROUND SMALLER THAN 2? | SELECT MAX("Pick") FROM table_47806 WHERE "Position" = 'te' AND "Round" < '2' | [
32971,
3180,
3336,
34677,
6465,
350,
11860,
13315,
317,
13368,
28069,
17941,
11,
5357,
371,
15919,
9447,
7036,
1137,
2320,
1565,
362,
30,
46506,
25882,
7203,
31686,
4943,
16034,
3084,
62,
2857,
37988,
33411,
366,
26545,
1,
796,
705,
660,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3180,
3336,
34677,
6465,
350,
11860,
13315,
317,
13368,
28069,
17941,
11,
5357,
371,
15919,
9447,
7036,
1137,
2320,
1565,
362,
30,
46506,
25882,
7203,
31686,
4943,
16034,
3084,
62,
2857,
37988,
33411,
366,
26545,
1,
796,
705,
660,
... |
WHAT VENUE HAD AN AWAY TEAM SCORE OF 12.15 (87)? | SELECT "Venue" FROM table_33673 WHERE "Away team score" = '12.15 (87)' | [
32971,
569,
1677,
8924,
367,
2885,
3537,
14356,
4792,
33536,
6374,
6965,
3963,
1105,
13,
1314,
357,
5774,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
2091,
45758,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1065,
13,
1314,
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
] | [
32971,
569,
1677,
8924,
367,
2885,
3537,
14356,
4792,
33536,
6374,
6965,
3963,
1105,
13,
1314,
357,
5774,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
2091,
45758,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1065,
13,
1314,
3... |
Name the hometown for barahona | SELECT "Hometown" FROM table_24298 WHERE "Province, Community" = 'Barahona' | [
5376,
262,
20994,
329,
2318,
993,
4450,
46506,
366,
39,
19191,
1,
16034,
3084,
62,
1731,
27728,
33411,
366,
15946,
924,
11,
8108,
1,
796,
705,
10374,
993,
4450,
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
] | [
5376,
262,
20994,
329,
2318,
993,
4450,
46506,
366,
39,
19191,
1,
16034,
3084,
62,
1731,
27728,
33411,
366,
15946,
924,
11,
8108,
1,
796,
705,
10374,
993,
4450,
6
] |
What is the points when the club is Barry RFC with a 5 as the try bonus? | SELECT points FROM table_name_27 WHERE try_bonus = "5" AND club = "barry rfc" | [
2061,
318,
262,
2173,
618,
262,
3430,
318,
14488,
30978,
351,
257,
642,
355,
262,
1949,
7202,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
1983,
33411,
1949,
62,
4189,
385,
796,
366,
20,
1,
5357,
3430,
796,
366,
5657,
563,
374,
16072... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2173,
618,
262,
3430,
318,
14488,
30978,
351,
257,
642,
355,
262,
1949,
7202,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
1983,
33411,
1949,
62,
4189,
385,
796,
366,
20,
1,
5357,
3430,
796,
366,
5657,
563,
374,
16072... |
What series was directed by Frank Tashlin and has the production number, 8053? | SELECT "Series" FROM table_62991 WHERE "Director" = 'frank tashlin' AND "Production Num." = '8053' | [
2061,
2168,
373,
7924,
416,
5278,
309,
1077,
2815,
290,
468,
262,
3227,
1271,
11,
807,
2713,
18,
30,
46506,
366,
27996,
1,
16034,
3084,
62,
48602,
6420,
33411,
366,
28702,
1,
796,
705,
8310,
962,
256,
1077,
2815,
6,
5357,
366,
35027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2168,
373,
7924,
416,
5278,
309,
1077,
2815,
290,
468,
262,
3227,
1271,
11,
807,
2713,
18,
30,
46506,
366,
27996,
1,
16034,
3084,
62,
48602,
6420,
33411,
366,
28702,
1,
796,
705,
8310,
962,
256,
1077,
2815,
6,
5357,
366,
35027... |
For all employees who have the letters D or S in their first name, draw a bar chart about the distribution of hire_date and the average of salary bin hire_date by time, I want to sort in asc by the Y-axis. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(SALARY) | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
11,
314,
765,
284,
3297,
287,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
11,
314,
765,
284,
3297,
287,
1... |
What was the Attendance on october 2, 1977? | SELECT "Attendance" FROM table_38351 WHERE "Date" = 'october 2, 1977' | [
2061,
373,
262,
46502,
590,
319,
19318,
2023,
362,
11,
15589,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
2548,
35273,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
362,
11,
15589,
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,
373,
262,
46502,
590,
319,
19318,
2023,
362,
11,
15589,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
2548,
35273,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
362,
11,
15589,
6
] |
What is the sum of Game on february 28? | SELECT SUM("Game") FROM table_5067 WHERE "Date" = 'february 28' | [
2061,
318,
262,
2160,
286,
3776,
319,
730,
65,
3728,
2579,
30,
46506,
35683,
7203,
8777,
4943,
16034,
3084,
62,
1120,
3134,
33411,
366,
10430,
1,
796,
705,
69,
1765,
3728,
2579,
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,
2160,
286,
3776,
319,
730,
65,
3728,
2579,
30,
46506,
35683,
7203,
8777,
4943,
16034,
3084,
62,
1120,
3134,
33411,
366,
10430,
1,
796,
705,
69,
1765,
3728,
2579,
6
] |
Of the upper level classes what number are 14 credits ? | SELECT COUNT(DISTINCT course.course_id) FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.credits = 14 AND program_course.category LIKE 'ULCS' | [
5189,
262,
6727,
1241,
6097,
644,
1271,
389,
1478,
10824,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
13,
17319,
62,
312,
8,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
17319,
13,
17319,
62,
312... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5189,
262,
6727,
1241,
6097,
644,
1271,
389,
1478,
10824,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
13,
17319,
62,
312,
8,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
17319,
13,
17319,
62,
312... |
what are the four most frequent drugs that were prescribed within 2 months to the coagulopathy female patients aged 40s after they have been diagnosed with coagulopathy, since 3 years ago? | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'coagulopathy' AND DATETIME(diagnosis.diagnosistime... | [
10919,
389,
262,
1440,
749,
10792,
5010,
326,
547,
14798,
1626,
362,
1933,
284,
262,
763,
363,
377,
27189,
4048,
3871,
9722,
2319,
82,
706,
484,
423,
587,
14641,
351,
763,
363,
377,
27189,
11,
1201,
513,
812,
2084,
30,
46506,
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,
1... | [
10919,
389,
262,
1440,
749,
10792,
5010,
326,
547,
14798,
1626,
362,
1933,
284,
262,
763,
363,
377,
27189,
4048,
3871,
9722,
2319,
82,
706,
484,
423,
587,
14641,
351,
763,
363,
377,
27189,
11,
1201,
513,
812,
2084,
30,
46506,
256,
1... |
Where was the player from who graduated from Michigan after 2010? | SELECT home_town FROM table_name_32 WHERE graduated > 2010 AND college_prior = "michigan" | [
8496,
373,
262,
2137,
422,
508,
18303,
422,
7055,
706,
3050,
30,
46506,
1363,
62,
12735,
16034,
3084,
62,
3672,
62,
2624,
33411,
18303,
1875,
3050,
5357,
4152,
62,
3448,
273,
796,
366,
76,
488,
5516,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
373,
262,
2137,
422,
508,
18303,
422,
7055,
706,
3050,
30,
46506,
1363,
62,
12735,
16034,
3084,
62,
3672,
62,
2624,
33411,
18303,
1875,
3050,
5357,
4152,
62,
3448,
273,
796,
366,
76,
488,
5516,
1
] |
What is the highest number of draws with more than 15 points, an against of 19, and less than 3 losses? | SELECT MAX("Drawn") FROM table_42650 WHERE "Points" > '15' AND "Against" = '19' AND "Lost" < '3' | [
2061,
318,
262,
4511,
1271,
286,
14293,
351,
517,
621,
1315,
2173,
11,
281,
1028,
286,
678,
11,
290,
1342,
621,
513,
9089,
30,
46506,
25882,
7203,
35,
5791,
4943,
16034,
3084,
62,
42780,
1120,
33411,
366,
40710,
1,
1875,
705,
1314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
14293,
351,
517,
621,
1315,
2173,
11,
281,
1028,
286,
678,
11,
290,
1342,
621,
513,
9089,
30,
46506,
25882,
7203,
35,
5791,
4943,
16034,
3084,
62,
42780,
1120,
33411,
366,
40710,
1,
1875,
705,
1314,
... |
How many different reasons are there for the change in Connecticut (3)? | SELECT COUNT("Reason for change") FROM table_1884 WHERE "State (class)" = 'Connecticut (3)' | [
2437,
867,
1180,
3840,
389,
612,
329,
262,
1487,
287,
14493,
357,
18,
19427,
46506,
327,
28270,
7203,
45008,
329,
1487,
4943,
16034,
3084,
62,
1507,
5705,
33411,
366,
9012,
357,
4871,
16725,
796,
705,
13313,
13554,
357,
18,
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
] | [
2437,
867,
1180,
3840,
389,
612,
329,
262,
1487,
287,
14493,
357,
18,
19427,
46506,
327,
28270,
7203,
45008,
329,
1487,
4943,
16034,
3084,
62,
1507,
5705,
33411,
366,
9012,
357,
4871,
16725,
796,
705,
13313,
13554,
357,
18,
33047
] |
Which Tournament has a Semi finalists of mary pierce elena dementieva? | SELECT tournament FROM table_name_15 WHERE semi_finalists = "mary pierce elena dementieva" | [
13828,
9595,
468,
257,
35525,
43736,
286,
285,
560,
279,
9798,
1288,
8107,
24251,
494,
6862,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
1314,
33411,
10663,
62,
20311,
1023,
796,
366,
6874,
279,
9798,
1288,
8107,
24251,
494,
6862,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9595,
468,
257,
35525,
43736,
286,
285,
560,
279,
9798,
1288,
8107,
24251,
494,
6862,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
1314,
33411,
10663,
62,
20311,
1023,
796,
366,
6874,
279,
9798,
1288,
8107,
24251,
494,
6862,
1
] |
Post for tag from year 2013. | SELECT Id, Title, Tags FROM Posts WHERE YEAR(CreationDate) > 2013 AND Tags LIKE '%mysql%' | [
6307,
329,
7621,
422,
614,
2211,
13,
46506,
5121,
11,
11851,
11,
44789,
16034,
12043,
33411,
32914,
7,
12443,
341,
10430,
8,
1875,
2211,
5357,
44789,
34178,
705,
4,
28744,
13976,
4,
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
] | [
6307,
329,
7621,
422,
614,
2211,
13,
46506,
5121,
11,
11851,
11,
44789,
16034,
12043,
33411,
32914,
7,
12443,
341,
10430,
8,
1875,
2211,
5357,
44789,
34178,
705,
4,
28744,
13976,
4,
6
] |
What is the number of their teams in elimination? Draw a bar chart, and order in ascending by the y axis please. | SELECT Team, COUNT(Team) FROM Elimination GROUP BY Team ORDER BY COUNT(Team) | [
2061,
318,
262,
1271,
286,
511,
3466,
287,
21472,
30,
15315,
257,
2318,
8262,
11,
290,
1502,
287,
41988,
416,
262,
331,
16488,
3387,
13,
46506,
4816,
11,
327,
28270,
7,
15592,
8,
16034,
27405,
1883,
44441,
11050,
4816,
38678,
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,
1
] | [
2061,
318,
262,
1271,
286,
511,
3466,
287,
21472,
30,
15315,
257,
2318,
8262,
11,
290,
1502,
287,
41988,
416,
262,
331,
16488,
3387,
13,
46506,
4816,
11,
327,
28270,
7,
15592,
8,
16034,
27405,
1883,
44441,
11050,
4816,
38678,
11050,
3... |
How many losing bonus where there when points against is 439? | SELECT COUNT(losing_bonus) FROM table_12828723_4 WHERE points_against = "439" | [
2437,
867,
6078,
7202,
810,
612,
618,
2173,
1028,
318,
604,
2670,
30,
46506,
327,
28270,
7,
75,
2752,
62,
4189,
385,
8,
16034,
3084,
62,
12762,
27800,
1954,
62,
19,
33411,
2173,
62,
32826,
796,
366,
47106,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6078,
7202,
810,
612,
618,
2173,
1028,
318,
604,
2670,
30,
46506,
327,
28270,
7,
75,
2752,
62,
4189,
385,
8,
16034,
3084,
62,
12762,
27800,
1954,
62,
19,
33411,
2173,
62,
32826,
796,
366,
47106,
1
] |
What are the wickets when there are 451 runs and india is the fielding team? | SELECT "Wicket" FROM table_20971 WHERE "Runs" = '451' AND "Fielding team" = 'India' | [
2061,
389,
262,
266,
15970,
618,
612,
389,
49356,
4539,
290,
773,
544,
318,
262,
43985,
1074,
30,
46506,
366,
54,
9715,
1,
16034,
3084,
62,
22567,
4869,
33411,
366,
10987,
82,
1,
796,
705,
36330,
6,
5357,
366,
15878,
278,
1074,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
262,
266,
15970,
618,
612,
389,
49356,
4539,
290,
773,
544,
318,
262,
43985,
1074,
30,
46506,
366,
54,
9715,
1,
16034,
3084,
62,
22567,
4869,
33411,
366,
10987,
82,
1,
796,
705,
36330,
6,
5357,
366,
15878,
278,
1074,
1,
... |
What is the Position of moose goheen? | SELECT position FROM table_name_61 WHERE name = "moose goheen" | [
2061,
318,
262,
23158,
286,
6941,
577,
467,
258,
268,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
5333,
33411,
1438,
796,
366,
5908,
577,
467,
258,
268,
1
] | [
1,
1,
1,
1,
1,
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,
23158,
286,
6941,
577,
467,
258,
268,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
5333,
33411,
1438,
796,
366,
5908,
577,
467,
258,
268,
1
] |
How was the player in the position of Center acquired? | SELECT "Acquisition via" FROM table_41725 WHERE "Position" = 'center' | [
2437,
373,
262,
2137,
287,
262,
2292,
286,
3337,
9477,
30,
46506,
366,
12832,
421,
10027,
2884,
1,
16034,
3084,
62,
38547,
1495,
33411,
366,
26545,
1,
796,
705,
16159,
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
] | [
2437,
373,
262,
2137,
287,
262,
2292,
286,
3337,
9477,
30,
46506,
366,
12832,
421,
10027,
2884,
1,
16034,
3084,
62,
38547,
1495,
33411,
366,
26545,
1,
796,
705,
16159,
6
] |
what diagnosis did patient 8204 receive for the first time? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT diagnoses_icd.icd9_code FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8204) ORDER BY diagnoses_icd.charttime LIMIT 1) | [
10919,
13669,
750,
5827,
807,
18638,
3328,
329,
262,
717,
640,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
24,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13669,
750,
5827,
807,
18638,
3328,
329,
262,
717,
640,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
24,... |
For those records from the products and each product's manufacturer, give me the comparison about manufacturer over the name , and group by attribute headquarter. | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
11554,
625,
262,
1438,
837,
290,
1448,
416,
11688,
1182,
24385,
13,
46506,
309,
16,
13,
5376,
11,
309,
16,
13,
44445,
15051,
16034,
18675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
7208,
546,
11554,
625,
262,
1438,
837,
290,
1448,
416,
11688,
1182,
24385,
13,
46506,
309,
16,
13,
5376,
11,
309,
16,
13,
44445,
15051,
16034,
18675,
... |
Which player is on the roster for the Sydney University Lions? | SELECT "Name" FROM table_61435 WHERE "Club" = 'sydney university lions' | [
13828,
2137,
318,
319,
262,
9354,
329,
262,
11852,
2059,
14536,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
46841,
2327,
33411,
366,
42350,
1,
796,
705,
1837,
67,
1681,
6403,
31420,
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,
2137,
318,
319,
262,
9354,
329,
262,
11852,
2059,
14536,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
46841,
2327,
33411,
366,
42350,
1,
796,
705,
1837,
67,
1681,
6403,
31420,
6
] |
Show all track names that have had no races. | SELECT name FROM track WHERE NOT track_id IN (SELECT track_id FROM race) | [
15307,
477,
2610,
3891,
326,
423,
550,
645,
9558,
13,
46506,
1438,
16034,
2610,
33411,
5626,
2610,
62,
312,
3268,
357,
46506,
2610,
62,
312,
16034,
3234,
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
] | [
15307,
477,
2610,
3891,
326,
423,
550,
645,
9558,
13,
46506,
1438,
16034,
2610,
33411,
5626,
2610,
62,
312,
3268,
357,
46506,
2610,
62,
312,
16034,
3234,
8
] |
how many male patients are diagnosed with injury to femoral nerve? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Injury to femoral nerve" | [
4919,
867,
4257,
3871,
389,
14641,
351,
5095,
284,
2796,
6864,
16384,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
4257,
3871,
389,
14641,
351,
5095,
284,
2796,
6864,
16384,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
79... |
How many players are on this list? | SELECT MAX(_number) FROM table_197638_6 | [
2437,
867,
1938,
389,
319,
428,
1351,
30,
46506,
25882,
28264,
17618,
8,
16034,
3084,
62,
38108,
2548,
62,
21
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1938,
389,
319,
428,
1351,
30,
46506,
25882,
28264,
17618,
8,
16034,
3084,
62,
38108,
2548,
62,
21
] |
Which material has a hardness of 8.25? | SELECT "Material" FROM table_7700 WHERE "Hardness ( Mohs' scale )" = '8.25' | [
13828,
2587,
468,
257,
49604,
286,
807,
13,
1495,
30,
46506,
366,
17518,
1,
16034,
3084,
62,
3324,
405,
33411,
366,
17309,
1108,
357,
9719,
82,
6,
5046,
1267,
1,
796,
705,
23,
13,
1495,
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
] | [
13828,
2587,
468,
257,
49604,
286,
807,
13,
1495,
30,
46506,
366,
17518,
1,
16034,
3084,
62,
3324,
405,
33411,
366,
17309,
1108,
357,
9719,
82,
6,
5046,
1267,
1,
796,
705,
23,
13,
1495,
6
] |
give me the number of patients whose marital status is single and lab test name is white blood cells? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "SINGLE" AND lab.label = "White Blood Cells" | [
26535,
502,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
2248,
1332,
1438,
318,
2330,
2910,
4778,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
2248,
1332,
1438,
318,
2330,
2910,
4778,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
... |
Who is the written by when the title is 'his hour upon the stage'? | SELECT "Written by" FROM table_28378 WHERE "Title" = 'His Hour Upon the Stage' | [
8241,
318,
262,
3194,
416,
618,
262,
3670,
318,
705,
14363,
1711,
2402,
262,
3800,
30960,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
2078,
30695,
33411,
366,
19160,
1,
796,
705,
6653,
19123,
14438,
262,
15371,
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,
318,
262,
3194,
416,
618,
262,
3670,
318,
705,
14363,
1711,
2402,
262,
3800,
30960,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
2078,
30695,
33411,
366,
19160,
1,
796,
705,
6653,
19123,
14438,
262,
15371,
6
] |
meniton the drug name for the drug with code abac300. | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.formulary_drug_cd = "ABAC300" | [
3653,
37752,
262,
2563,
1438,
329,
262,
2563,
351,
2438,
450,
330,
6200,
13,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
6242,
2246,
6200,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3653,
37752,
262,
2563,
1438,
329,
262,
2563,
351,
2438,
450,
330,
6200,
13,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
6242,
2246,
6200,
1
] |
Which Bats have Throws of r, and a DOB of 22 may 1973? | SELECT bats FROM table_name_49 WHERE throws = "r" AND dob = "22 may 1973" | [
13828,
347,
1381,
423,
536,
8516,
286,
374,
11,
290,
257,
8410,
33,
286,
2534,
743,
15674,
30,
46506,
19553,
16034,
3084,
62,
3672,
62,
2920,
33411,
12542,
796,
366,
81,
1,
5357,
466,
65,
796,
366,
1828,
743,
15674,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
347,
1381,
423,
536,
8516,
286,
374,
11,
290,
257,
8410,
33,
286,
2534,
743,
15674,
30,
46506,
19553,
16034,
3084,
62,
3672,
62,
2920,
33411,
12542,
796,
366,
81,
1,
5357,
466,
65,
796,
366,
1828,
743,
15674,
1
] |
count the number of patients whose drug code is diaz5? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "DIAZ5" | [
9127,
262,
1271,
286,
3871,
3025,
2563,
2438,
318,
288,
17890,
20,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
2563,
2438,
318,
288,
17890,
20,
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,
... |
Which Date has a Score of 6 3, 7 6? | SELECT SUM("Date") FROM table_37496 WHERE "Score" = '6–3, 7–6' | [
13828,
7536,
468,
257,
15178,
286,
718,
513,
11,
767,
718,
30,
46506,
35683,
7203,
10430,
4943,
16034,
3084,
62,
2718,
37747,
33411,
366,
26595,
1,
796,
705,
21,
1906,
18,
11,
767,
1906,
21,
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
] | [
13828,
7536,
468,
257,
15178,
286,
718,
513,
11,
767,
718,
30,
46506,
35683,
7203,
10430,
4943,
16034,
3084,
62,
2718,
37747,
33411,
366,
26595,
1,
796,
705,
21,
1906,
18,
11,
767,
1906,
21,
6
] |
What was the Attendance in Week 10? | SELECT attendance FROM table_name_59 WHERE week = 10 | [
2061,
373,
262,
46502,
590,
287,
6119,
838,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
3270,
33411,
1285,
796,
838
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
46502,
590,
287,
6119,
838,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
3270,
33411,
1285,
796,
838
] |
May I see my transcript ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester, semester.year, student_record.grade FROM course, semester, student_record WHERE student_record.course_id = course.course_id AND student_record.semester = semester.semester_id AND student_record.student_id = 1 | [
6747,
314,
766,
616,
14687,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
11,
24878,
13,
1941,
11,
3710,
62,
22105,
13,
9526,
16034,
1781,
11,
2487... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
6747,
314,
766,
616,
14687,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
11,
24878,
13,
1941,
11,
3710,
62,
22105,
13,
9526,
16034,
1781,
11,
2487... |
Which Time has a Round of 3, and a Record of 2 0? | SELECT "Time" FROM table_45403 WHERE "Round" = '3' AND "Record" = '2–0' | [
13828,
3862,
468,
257,
10485,
286,
513,
11,
290,
257,
13266,
286,
362,
657,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
2231,
31552,
33411,
366,
22685,
1,
796,
705,
18,
6,
5357,
366,
23739,
1,
796,
705,
17,
1906,
15,
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,
3862,
468,
257,
10485,
286,
513,
11,
290,
257,
13266,
286,
362,
657,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
2231,
31552,
33411,
366,
22685,
1,
796,
705,
18,
6,
5357,
366,
23739,
1,
796,
705,
17,
1906,
15,
6
] |
In what City/State did the ATCC Round 4 series take place? | SELECT city___state FROM table_name_62 WHERE series = "atcc round 4" | [
818,
644,
2254,
14,
9012,
750,
262,
5161,
4093,
10485,
604,
2168,
1011,
1295,
30,
46506,
1748,
17569,
5219,
16034,
3084,
62,
3672,
62,
5237,
33411,
2168,
796,
366,
265,
535,
2835,
604,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
644,
2254,
14,
9012,
750,
262,
5161,
4093,
10485,
604,
2168,
1011,
1295,
30,
46506,
1748,
17569,
5219,
16034,
3084,
62,
3672,
62,
5237,
33411,
2168,
796,
366,
265,
535,
2835,
604,
1
] |
what procedure did patient 98235 receive the first time in 2102. | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT procedures_icd.icd9_code FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 98235) AND STRFTIME('%y', procedures_icd.charttime) = '2102' ORDER B... | [
10919,
8771,
750,
5827,
9661,
22370,
3328,
262,
717,
640,
287,
362,
15377,
13,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
1676,
771,
942,
33411,
288,
62,
291,
67,
62,
1676,
771,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8771,
750,
5827,
9661,
22370,
3328,
262,
717,
640,
287,
362,
15377,
13,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
1676,
771,
942,
33411,
288,
62,
291,
67,
62,
1676,
771,
... |
what is the total number of female patients who had item id 51352? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.itemid = "51352" | [
10919,
318,
262,
2472,
1271,
286,
4048,
3871,
508,
550,
2378,
4686,
642,
1485,
4309,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
2472,
1271,
286,
4048,
3871,
508,
550,
2378,
4686,
642,
1485,
4309,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
7... |
Which Current Club has a Player of bassem balaa? | SELECT "Current Club" FROM table_62126 WHERE "Player" = 'bassem balaa' | [
13828,
9236,
6289,
468,
257,
7853,
286,
1615,
43616,
3652,
7252,
30,
46506,
366,
11297,
6289,
1,
16034,
3084,
62,
5237,
19420,
33411,
366,
14140,
1,
796,
705,
12093,
43616,
3652,
7252,
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,
9236,
6289,
468,
257,
7853,
286,
1615,
43616,
3652,
7252,
30,
46506,
366,
11297,
6289,
1,
16034,
3084,
62,
5237,
19420,
33411,
366,
14140,
1,
796,
705,
12093,
43616,
3652,
7252,
6
] |
Which MLS team picked player Jason Herrick? | SELECT "MLS team" FROM table_31272 WHERE "Player" = 'Jason Herrick' | [
13828,
13981,
1074,
6497,
2137,
8982,
2332,
5557,
30,
46506,
366,
5805,
50,
1074,
1,
16034,
3084,
62,
27970,
4761,
33411,
366,
14140,
1,
796,
705,
26497,
2332,
5557,
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
] | [
13828,
13981,
1074,
6497,
2137,
8982,
2332,
5557,
30,
46506,
366,
5805,
50,
1074,
1,
16034,
3084,
62,
27970,
4761,
33411,
366,
14140,
1,
796,
705,
26497,
2332,
5557,
6
] |
give me the number of patients who were admitted to hospital for more than 13 days and were ordered epithelial cells lab test. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "13" AND lab.label = "Epithelial Cells" | [
26535,
502,
262,
1271,
286,
3871,
508,
547,
6848,
284,
4436,
329,
517,
621,
1511,
1528,
290,
547,
6149,
21240,
35566,
4778,
2248,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3871,
508,
547,
6848,
284,
4436,
329,
517,
621,
1511,
1528,
290,
547,
6149,
21240,
35566,
4778,
2248,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... |
How many laps were in grid 4? | SELECT "Laps" FROM table_76504 WHERE "Grid" = '4' | [
2437,
867,
24590,
547,
287,
10706,
604,
30,
46506,
366,
43,
1686,
1,
16034,
3084,
62,
4304,
33580,
33411,
366,
41339,
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
] | [
2437,
867,
24590,
547,
287,
10706,
604,
30,
46506,
366,
43,
1686,
1,
16034,
3084,
62,
4304,
33580,
33411,
366,
41339,
1,
796,
705,
19,
6
] |
Overall pick 240 was a pick in which round? | SELECT round FROM table_10360823_1 WHERE overall = 240 | [
16350,
2298,
14956,
373,
257,
2298,
287,
543,
2835,
30,
46506,
2835,
16034,
3084,
62,
15197,
28688,
1954,
62,
16,
33411,
4045,
796,
14956
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16350,
2298,
14956,
373,
257,
2298,
287,
543,
2835,
30,
46506,
2835,
16034,
3084,
62,
15197,
28688,
1954,
62,
16,
33411,
4045,
796,
14956
] |
Who was recruited from Calgary? | SELECT player FROM table_name_34 WHERE college = "calgary" | [
8241,
373,
18774,
422,
17842,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
2682,
33411,
4152,
796,
366,
9948,
14849,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
18774,
422,
17842,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
2682,
33411,
4152,
796,
366,
9948,
14849,
1
] |
Show me a bar chart for what is the id and trade name of the medicines can interact with at least 3 enzymes? | SELECT Trade_Name, id FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id | [
15307,
502,
257,
2318,
8262,
329,
644,
318,
262,
4686,
290,
3292,
1438,
286,
262,
23533,
460,
9427,
351,
379,
1551,
513,
29120,
30,
46506,
9601,
62,
5376,
11,
4686,
16034,
9007,
7054,
309,
16,
32357,
1268,
9007,
62,
268,
24266,
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
] | [
15307,
502,
257,
2318,
8262,
329,
644,
318,
262,
4686,
290,
3292,
1438,
286,
262,
23533,
460,
9427,
351,
379,
1551,
513,
29120,
30,
46506,
9601,
62,
5376,
11,
4686,
16034,
9007,
7054,
309,
16,
32357,
1268,
9007,
62,
268,
24266,
62,
... |
What are the name and phone of the customer with the most ordered product quantity? | SELECT T1.customer_name, T1.customer_phone FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T3.order_id = T2.order_id GROUP BY T1.customer_id ORDER BY SUM(T3.order_quantity) DESC LIMIT 1 | [
2061,
389,
262,
1438,
290,
3072,
286,
262,
6491,
351,
262,
749,
6149,
1720,
12040,
30,
46506,
309,
16,
13,
23144,
263,
62,
3672,
11,
309,
16,
13,
23144,
263,
62,
4862,
16034,
4297,
7054,
309,
16,
32357,
1268,
6491,
62,
6361,
7054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
262,
1438,
290,
3072,
286,
262,
6491,
351,
262,
749,
6149,
1720,
12040,
30,
46506,
309,
16,
13,
23144,
263,
62,
3672,
11,
309,
16,
13,
23144,
263,
62,
4862,
16034,
4297,
7054,
309,
16,
32357,
1268,
6491,
62,
6361,
7054,
... |
Visualize a bar chart for what are the ids and names of the medicine that can interact with two or more enzymes?, and rank by the bars in ascending. | SELECT name, id FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id ORDER BY name | [
36259,
1096,
257,
2318,
8262,
329,
644,
389,
262,
220,
2340,
290,
3891,
286,
262,
9007,
326,
460,
9427,
351,
734,
393,
517,
29120,
21747,
290,
4279,
416,
262,
9210,
287,
41988,
13,
46506,
1438,
11,
4686,
16034,
9007,
7054,
309,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
36259,
1096,
257,
2318,
8262,
329,
644,
389,
262,
220,
2340,
290,
3891,
286,
262,
9007,
326,
460,
9427,
351,
734,
393,
517,
29120,
21747,
290,
4279,
416,
262,
9210,
287,
41988,
13,
46506,
1438,
11,
4686,
16034,
9007,
7054,
309,
16,
... |
systolic blood pressure > 160 and diastolic blood pressure > 100 | SELECT * FROM table_train_172 WHERE systolic_blood_pressure_sbp > 160 AND diastolic_blood_pressure_dbp > 100 | [
1837,
301,
4160,
2910,
3833,
1875,
13454,
290,
2566,
459,
4160,
2910,
3833,
1875,
1802,
46506,
1635,
16034,
3084,
62,
27432,
62,
23628,
33411,
827,
301,
4160,
62,
18041,
62,
36151,
62,
36299,
79,
1875,
13454,
5357,
2566,
459,
4160,
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
] | [
1837,
301,
4160,
2910,
3833,
1875,
13454,
290,
2566,
459,
4160,
2910,
3833,
1875,
1802,
46506,
1635,
16034,
3084,
62,
27432,
62,
23628,
33411,
827,
301,
4160,
62,
18041,
62,
36151,
62,
36299,
79,
1875,
13454,
5357,
2566,
459,
4160,
62,
... |
what is the total number of patients discharged from the hospital until 2100? | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND STRFTIME('%y', patient.hospitaldischargetime) <= '2100' | [
10919,
318,
262,
2472,
1271,
286,
3871,
26476,
422,
262,
4436,
1566,
38123,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5626,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
286,
3871,
26476,
422,
262,
4436,
1566,
38123,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5626,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697... |
What is the number drawn when 3 have been lost? | SELECT drawn FROM table_name_74 WHERE lost = "3" | [
2061,
318,
262,
1271,
7428,
618,
513,
423,
587,
2626,
30,
46506,
7428,
16034,
3084,
62,
3672,
62,
4524,
33411,
2626,
796,
366,
18,
1
] | [
1,
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,
1271,
7428,
618,
513,
423,
587,
2626,
30,
46506,
7428,
16034,
3084,
62,
3672,
62,
4524,
33411,
2626,
796,
366,
18,
1
] |
Which Date has an Opponent of @ mariners, and a Loss of hern ndez (0-1)? | SELECT "Date" FROM table_14564 WHERE "Opponent" = '@ mariners' AND "Loss" = 'hernández (0-1)' | [
13828,
7536,
468,
281,
9385,
3471,
286,
2488,
1667,
21257,
11,
290,
257,
22014,
286,
607,
77,
299,
2934,
89,
357,
15,
12,
16,
19427,
46506,
366,
10430,
1,
16034,
3084,
62,
18781,
2414,
33411,
366,
27524,
3471,
1,
796,
705,
31,
1667,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7536,
468,
281,
9385,
3471,
286,
2488,
1667,
21257,
11,
290,
257,
22014,
286,
607,
77,
299,
2934,
89,
357,
15,
12,
16,
19427,
46506,
366,
10430,
1,
16034,
3084,
62,
18781,
2414,
33411,
366,
27524,
3471,
1,
796,
705,
31,
1667,... |
What is the grid total for cars with over 69 laps? | SELECT COUNT("Grid") FROM table_58415 WHERE "Laps" > '69' | [
2061,
318,
262,
10706,
2472,
329,
5006,
351,
625,
8644,
24590,
30,
46506,
327,
28270,
7203,
41339,
4943,
16034,
3084,
62,
3365,
35038,
33411,
366,
43,
1686,
1,
1875,
705,
3388,
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,
10706,
2472,
329,
5006,
351,
625,
8644,
24590,
30,
46506,
327,
28270,
7203,
41339,
4943,
16034,
3084,
62,
3365,
35038,
33411,
366,
43,
1686,
1,
1875,
705,
3388,
6
] |
what is the notes when the time is 7:58.71? | SELECT "Notes" FROM table_66213 WHERE "Time" = '7:58.71' | [
10919,
318,
262,
4710,
618,
262,
640,
318,
767,
25,
3365,
13,
4869,
30,
46506,
366,
16130,
1,
16034,
3084,
62,
2791,
26427,
33411,
366,
7575,
1,
796,
705,
22,
25,
3365,
13,
4869,
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
] | [
10919,
318,
262,
4710,
618,
262,
640,
318,
767,
25,
3365,
13,
4869,
30,
46506,
366,
16130,
1,
16034,
3084,
62,
2791,
26427,
33411,
366,
7575,
1,
796,
705,
22,
25,
3365,
13,
4869,
6
] |
What is the time for the rank after 5 with sc/d notes? | SELECT time FROM table_name_55 WHERE notes = "sc/d" AND rank > 5 | [
2061,
318,
262,
640,
329,
262,
4279,
706,
642,
351,
629,
14,
67,
4710,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
2816,
33411,
4710,
796,
366,
1416,
14,
67,
1,
5357,
4279,
1875,
642
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
329,
262,
4279,
706,
642,
351,
629,
14,
67,
4710,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
2816,
33411,
4710,
796,
366,
1416,
14,
67,
1,
5357,
4279,
1875,
642
] |
give the number of patients whose diagnosis short title is asthma nos w (ac) exac and lab test fluid is urine. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Asthma NOS w (ac) exac" AND lab.fluid = "Urine" | [
26535,
262,
1271,
286,
3871,
3025,
13669,
1790,
3670,
318,
28438,
43630,
266,
357,
330,
8,
409,
330,
290,
2248,
1332,
11711,
318,
18922,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1271,
286,
3871,
3025,
13669,
1790,
3670,
318,
28438,
43630,
266,
357,
330,
8,
409,
330,
290,
2248,
1332,
11711,
318,
18922,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,... |
Which player is from Dartmouth? | SELECT "Player" FROM table_32184 WHERE "School/Club Team" = 'dartmouth' | [
13828,
2137,
318,
422,
47888,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2624,
22883,
33411,
366,
26130,
14,
42350,
4816,
1,
796,
705,
67,
433,
14775,
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
] | [
13828,
2137,
318,
422,
47888,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2624,
22883,
33411,
366,
26130,
14,
42350,
4816,
1,
796,
705,
67,
433,
14775,
6
] |
What is Outcome, when Date is '19 September 2012'? | SELECT "Outcome" FROM table_58628 WHERE "Date" = '19 september 2012' | [
2061,
318,
3806,
2958,
11,
618,
7536,
318,
705,
1129,
2693,
2321,
30960,
46506,
366,
7975,
2958,
1,
16034,
3084,
62,
29796,
2078,
33411,
366,
10430,
1,
796,
705,
1129,
384,
457,
1491,
2321,
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,
3806,
2958,
11,
618,
7536,
318,
705,
1129,
2693,
2321,
30960,
46506,
366,
7975,
2958,
1,
16034,
3084,
62,
29796,
2078,
33411,
366,
10430,
1,
796,
705,
1129,
384,
457,
1491,
2321,
6
] |
Who had the high points on April 8? | SELECT high_points FROM table_17355408_9 WHERE date = "April 8" | [
8241,
550,
262,
1029,
2173,
319,
3035,
807,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
1558,
28567,
26200,
62,
24,
33411,
3128,
796,
366,
16784,
807,
1
] | [
1,
1,
1,
1,
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,
1029,
2173,
319,
3035,
807,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
1558,
28567,
26200,
62,
24,
33411,
3128,
796,
366,
16784,
807,
1
] |
What home team has 10 as the tie no? | SELECT "Home team" FROM table_66034 WHERE "Tie no" = '10' | [
2061,
1363,
1074,
468,
838,
355,
262,
9839,
645,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
39885,
2682,
33411,
366,
51,
494,
645,
1,
796,
705,
940,
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,
1363,
1074,
468,
838,
355,
262,
9839,
645,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
39885,
2682,
33411,
366,
51,
494,
645,
1,
796,
705,
940,
6
] |
When tracy reid is the player what is the highest amount of minutes? | SELECT MAX("Minutes") FROM table_3180 WHERE "Player" = 'Tracy Reid' | [
2215,
491,
1590,
302,
312,
318,
262,
2137,
644,
318,
262,
4511,
2033,
286,
2431,
30,
46506,
25882,
7203,
9452,
1769,
4943,
16034,
3084,
62,
18,
15259,
33411,
366,
14140,
1,
796,
705,
2898,
1590,
16095,
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
] | [
2215,
491,
1590,
302,
312,
318,
262,
2137,
644,
318,
262,
4511,
2033,
286,
2431,
30,
46506,
25882,
7203,
9452,
1769,
4943,
16034,
3084,
62,
18,
15259,
33411,
366,
14140,
1,
796,
705,
2898,
1590,
16095,
6
] |
What was the result of the singer with the top 8? | SELECT "Result" FROM table_68960 WHERE "Episode" = 'top 8' | [
2061,
373,
262,
1255,
286,
262,
14015,
351,
262,
1353,
807,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
3104,
39277,
33411,
366,
23758,
1,
796,
705,
4852,
807,
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,
373,
262,
1255,
286,
262,
14015,
351,
262,
1353,
807,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
3104,
39277,
33411,
366,
23758,
1,
796,
705,
4852,
807,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.