instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What is the least wins for a team with against less than 814? | SELECT MIN("Wins") FROM table_62069 WHERE "Against" < '814' | [
2061,
318,
262,
1551,
7864,
329,
257,
1074,
351,
1028,
1342,
621,
807,
1415,
30,
46506,
20625,
7203,
54,
1040,
4943,
16034,
3084,
62,
38850,
3388,
33411,
366,
39276,
1,
1279,
705,
23,
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
] | [
2061,
318,
262,
1551,
7864,
329,
257,
1074,
351,
1028,
1342,
621,
807,
1415,
30,
46506,
20625,
7203,
54,
1040,
4943,
16034,
3084,
62,
38850,
3388,
33411,
366,
39276,
1,
1279,
705,
23,
1415,
6
] |
What is the 4.45 for Yelena Isinbayeva? | SELECT "4.45" FROM table_65760 WHERE "Name" = 'yelena isinbayeva' | [
2061,
318,
262,
604,
13,
2231,
329,
28876,
8107,
1148,
259,
24406,
48855,
30,
46506,
366,
19,
13,
2231,
1,
16034,
3084,
62,
37680,
1899,
33411,
366,
5376,
1,
796,
705,
88,
417,
8107,
318,
259,
24406,
48855,
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,
604,
13,
2231,
329,
28876,
8107,
1148,
259,
24406,
48855,
30,
46506,
366,
19,
13,
2231,
1,
16034,
3084,
62,
37680,
1899,
33411,
366,
5376,
1,
796,
705,
88,
417,
8107,
318,
259,
24406,
48855,
6
] |
What is Greg Norman's score? | SELECT "Score" FROM table_61550 WHERE "Player" = 'greg norman' | [
2061,
318,
8547,
19636,
338,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
47007,
1120,
33411,
366,
14140,
1,
796,
705,
9903,
2593,
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
] | [
2061,
318,
8547,
19636,
338,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
47007,
1120,
33411,
366,
14140,
1,
796,
705,
9903,
2593,
272,
6
] |
How many laps have a Time/Retired of +12.5 secs? | SELECT COUNT("Laps") FROM table_10930 WHERE "Time/Retired" = '+12.5 secs' | [
2437,
867,
24590,
423,
257,
3862,
14,
9781,
1202,
286,
1343,
1065,
13,
20,
792,
82,
30,
46506,
327,
28270,
7203,
43,
1686,
4943,
16034,
3084,
62,
14454,
1270,
33411,
366,
7575,
14,
9781,
1202,
1,
796,
705,
10,
1065,
13,
20,
792,
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
] | [
2437,
867,
24590,
423,
257,
3862,
14,
9781,
1202,
286,
1343,
1065,
13,
20,
792,
82,
30,
46506,
327,
28270,
7203,
43,
1686,
4943,
16034,
3084,
62,
14454,
1270,
33411,
366,
7575,
14,
9781,
1202,
1,
796,
705,
10,
1065,
13,
20,
792,
8... |
count the number of patients whose admission location is trsf within this facility and year of birth is less than 2090? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.dob_year < "2090" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
491,
28202,
1626,
428,
6841,
290,
614,
286,
4082,
318,
1342,
621,
1160,
3829,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
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... | [
9127,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
491,
28202,
1626,
428,
6841,
290,
614,
286,
4082,
318,
1342,
621,
1160,
3829,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728... |
give me the number of patients diagnosed with atherosclerosis of native arteries of extremities with intermittent claudication who were hospitalized for more than a day. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "1" AND diagnoses.short_title = "Ath ext ntv at w claudct" | [
26535,
502,
262,
1271,
286,
3871,
14641,
351,
13366,
4951,
31399,
286,
6868,
45894,
286,
8963,
871,
351,
38361,
537,
3885,
3299,
508,
547,
31736,
329,
517,
621,
257,
1110,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14641,
351,
13366,
4951,
31399,
286,
6868,
45894,
286,
8963,
871,
351,
38361,
537,
3885,
3299,
508,
547,
31736,
329,
517,
621,
257,
1110,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
327... |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by weekday, and list in descending by the Y. | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(EMPLOYEE_ID) DESC | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
11,
290,
1351,
287,
31491,
416,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
11,
290,
1351,
287,
31491,
416,... |
What is the time of the driver on grid 7? | SELECT time_retired FROM table_name_48 WHERE grid = 7 | [
2061,
318,
262,
640,
286,
262,
4639,
319,
10706,
767,
30,
46506,
640,
62,
1186,
1202,
16034,
3084,
62,
3672,
62,
2780,
33411,
10706,
796,
767
] | [
1,
1,
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,
286,
262,
4639,
319,
10706,
767,
30,
46506,
640,
62,
1186,
1202,
16034,
3084,
62,
3672,
62,
2780,
33411,
10706,
796,
767
] |
How many different scores are there for the Verizon Classic? | SELECT COUNT("Score") FROM table_16911 WHERE "Tournament" = 'Verizon Classic' | [
2437,
867,
1180,
8198,
389,
612,
329,
262,
18062,
13449,
30,
46506,
327,
28270,
7203,
26595,
4943,
16034,
3084,
62,
22172,
1157,
33411,
366,
51,
5138,
1,
796,
705,
13414,
8637,
13449,
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
] | [
2437,
867,
1180,
8198,
389,
612,
329,
262,
18062,
13449,
30,
46506,
327,
28270,
7203,
26595,
4943,
16034,
3084,
62,
22172,
1157,
33411,
366,
51,
5138,
1,
796,
705,
13414,
8637,
13449,
6
] |
Which Can Yay nlar has a G zel aml nin Kay p Panteri of evreci peri? | SELECT can_yayınları FROM table_name_39 WHERE güzelçamlı’nin_kayıp_panteri = "çevreci peri" | [
13828,
1680,
575,
323,
299,
21681,
468,
257,
402,
1976,
417,
716,
75,
13462,
17356,
279,
5961,
353,
72,
286,
819,
29102,
583,
72,
30,
46506,
460,
62,
88,
323,
30102,
21283,
283,
30102,
16034,
3084,
62,
3672,
62,
2670,
33411,
308,
91... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1680,
575,
323,
299,
21681,
468,
257,
402,
1976,
417,
716,
75,
13462,
17356,
279,
5961,
353,
72,
286,
819,
29102,
583,
72,
30,
46506,
460,
62,
88,
323,
30102,
21283,
283,
30102,
16034,
3084,
62,
3672,
62,
2670,
33411,
308,
91... |
Name the most applications for 1986 | SELECT MAX(applications) FROM table_20007413_3 WHERE year = "1986" | [
5376,
262,
749,
5479,
329,
12113,
46506,
25882,
7,
1324,
677,
602,
8,
16034,
3084,
62,
11024,
4524,
1485,
62,
18,
33411,
614,
796,
366,
28054,
1
] | [
1,
1,
1,
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,
749,
5479,
329,
12113,
46506,
25882,
7,
1324,
677,
602,
8,
16034,
3084,
62,
11024,
4524,
1485,
62,
18,
33411,
614,
796,
366,
28054,
1
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a line chart about the change of manager_id over hire_date . | SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
3197,
257,
1627,
8262,
546,
262,
1487,
286,
4706,
62,
312,
625,
11078,
62,
4475,
764,
46506,
36210,
2200,
62,
35,
6158,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
3197,
257,
1627,
8262,
546,
262,
1487,
286,
4706,
62,
312,
625,
11078,
62,
4475,
764,
46506,
36210,
2200,
62,
35,
6158,
11,
... |
What was Hawthorn's away teams opponents score? | SELECT "Away team score" FROM table_55422 WHERE "Home team" = 'hawthorn' | [
2061,
373,
41457,
1211,
338,
1497,
3466,
7691,
4776,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
44218,
1828,
33411,
366,
16060,
1074,
1,
796,
705,
26615,
400,
1211,
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,
41457,
1211,
338,
1497,
3466,
7691,
4776,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
44218,
1828,
33411,
366,
16060,
1074,
1,
796,
705,
26615,
400,
1211,
6
] |
Show the authors who have submissions to more than one workshop. | SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id) > 1 | [
15307,
262,
7035,
508,
423,
22129,
284,
517,
621,
530,
20243,
13,
46506,
309,
17,
13,
13838,
16034,
13427,
7054,
309,
16,
32357,
1268,
14498,
7054,
309,
17,
6177,
309,
16,
13,
7004,
3411,
62,
2389,
796,
309,
17,
13,
7004,
3411,
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... | [
15307,
262,
7035,
508,
423,
22129,
284,
517,
621,
530,
20243,
13,
46506,
309,
17,
13,
13838,
16034,
13427,
7054,
309,
16,
32357,
1268,
14498,
7054,
309,
17,
6177,
309,
16,
13,
7004,
3411,
62,
2389,
796,
309,
17,
13,
7004,
3411,
62,
... |
on monday show me flights from BALTIMORE to DALLAS | 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 = 'DALLAS' AND date_day.day_number = 21 AND date_day.month_number = 2 AND da... | [
261,
285,
3204,
905,
502,
13956,
422,
347,
31429,
3955,
6965,
284,
360,
7036,
1921,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
261,
285,
3204,
905,
502,
13956,
422,
347,
31429,
3955,
6965,
284,
360,
7036,
1921,
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,
705... |
How many matches were there in the round with 1,000,000 in prize money? | SELECT COUNT(matches) FROM table_name_15 WHERE prize_money = "£1,000,000" | [
2437,
867,
7466,
547,
612,
287,
262,
2835,
351,
352,
11,
830,
11,
830,
287,
11596,
1637,
30,
46506,
327,
28270,
7,
6759,
2052,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
11596,
62,
26316,
796,
366,
14988,
16,
11,
830,
11,
830,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7466,
547,
612,
287,
262,
2835,
351,
352,
11,
830,
11,
830,
287,
11596,
1637,
30,
46506,
327,
28270,
7,
6759,
2052,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
11596,
62,
26316,
796,
366,
14988,
16,
11,
830,
11,
830,
1
] |
tell me what patient 022-134034 was allergic to in 04/2105? | SELECT allergy.drugname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-134034')) AND STRFTIME('%y-%m', allergy.allergytime) = '2105-04' | [
33331,
502,
644,
5827,
657,
1828,
12,
1485,
1821,
2682,
373,
31856,
284,
287,
8702,
14,
17,
13348,
30,
46506,
36197,
13,
30349,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
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... | [
33331,
502,
644,
5827,
657,
1828,
12,
1485,
1821,
2682,
373,
31856,
284,
287,
8702,
14,
17,
13348,
30,
46506,
36197,
13,
30349,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31... |
How many region 4 dates are associated with a region 2 date of July 9, 2007? | SELECT COUNT(region_4__australia_) FROM table_240936_2 WHERE region_2__uk_ = "July 9, 2007" | [
2437,
867,
3814,
604,
9667,
389,
3917,
351,
257,
3814,
362,
3128,
286,
2901,
860,
11,
4343,
30,
46506,
327,
28270,
7,
36996,
62,
19,
834,
64,
436,
1373,
544,
62,
8,
16034,
3084,
62,
1731,
2931,
2623,
62,
17,
33411,
3814,
62,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
3814,
604,
9667,
389,
3917,
351,
257,
3814,
362,
3128,
286,
2901,
860,
11,
4343,
30,
46506,
327,
28270,
7,
36996,
62,
19,
834,
64,
436,
1373,
544,
62,
8,
16034,
3084,
62,
1731,
2931,
2623,
62,
17,
33411,
3814,
62,
17,
... |
give me the number of patients whose drug code is mida100 and lab test fluid is joint fluid? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "MIDA100" AND lab.fluid = "Joint Fluid" | [
26535,
502,
262,
1271,
286,
3871,
3025,
2563,
2438,
318,
3095,
64,
3064,
290,
2248,
1332,
11711,
318,
6466,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
2563,
2438,
318,
3095,
64,
3064,
290,
2248,
1332,
11711,
318,
6466,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
3... |
For all employees who have the letters D or S in their first name, show me about the distribution of hire_date and the sum of salary bin hire_date by time in a bar chart, show Y-axis in asc order. | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(SALARY) | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
287,
257,
2318,
8262,
11,
905,
575,
12,
2270... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
287,
257,
2318,
8262,
11,
905,
575,
12,
2270... |
how many patients have been prescribed the drug with code pred1? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "PRED1" | [
4919,
867,
3871,
423,
587,
14798,
262,
2563,
351,
2438,
2747,
16,
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... | [
4919,
867,
3871,
423,
587,
14798,
262,
2563,
351,
2438,
2747,
16,
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,
... |
How many people wrote 'Michael's Game'? | SELECT COUNT("Writer(s)") FROM table_16359 WHERE "Title" = 'Michael''s Game' | [
2437,
867,
661,
2630,
705,
13256,
338,
3776,
30960,
46506,
327,
28270,
7203,
34379,
7,
82,
8,
4943,
16034,
3084,
62,
1433,
30743,
33411,
366,
19160,
1,
796,
705,
13256,
7061,
82,
3776,
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,
661,
2630,
705,
13256,
338,
3776,
30960,
46506,
327,
28270,
7203,
34379,
7,
82,
8,
4943,
16034,
3084,
62,
1433,
30743,
33411,
366,
19160,
1,
796,
705,
13256,
7061,
82,
3776,
6
] |
What district has Riley Joseph Wilson as the incumbent? | SELECT district FROM table_1342331_18 WHERE incumbent = "Riley Joseph Wilson" | [
2061,
4783,
468,
22637,
7212,
8127,
355,
262,
23526,
30,
46506,
4783,
16034,
3084,
62,
19880,
1954,
3132,
62,
1507,
33411,
23526,
796,
366,
49,
9618,
7212,
8127,
1
] | [
1,
1,
1,
1,
1,
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,
4783,
468,
22637,
7212,
8127,
355,
262,
23526,
30,
46506,
4783,
16034,
3084,
62,
19880,
1954,
3132,
62,
1507,
33411,
23526,
796,
366,
49,
9618,
7212,
8127,
1
] |
the team with the most international caps | SELECT "club" FROM table_203_312 ORDER BY "international caps" DESC LIMIT 1 | [
1169,
1074,
351,
262,
749,
3230,
11022,
46506,
366,
18664,
1,
16034,
3084,
62,
22416,
62,
27970,
38678,
11050,
366,
45609,
11022,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1169,
1074,
351,
262,
749,
3230,
11022,
46506,
366,
18664,
1,
16034,
3084,
62,
22416,
62,
27970,
38678,
11050,
366,
45609,
11022,
1,
22196,
34,
27564,
2043,
352
] |
How many totals have a To par of 1? | SELECT SUM(total) FROM table_name_98 WHERE to_par = "–1" | [
2437,
867,
26310,
423,
257,
1675,
1582,
286,
352,
30,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
284,
62,
1845,
796,
366,
1906,
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
] | [
2437,
867,
26310,
423,
257,
1675,
1582,
286,
352,
30,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
284,
62,
1845,
796,
366,
1906,
16,
1
] |
Name the number of numbers for howard clark | SELECT COUNT("No.") FROM table_20271 WHERE "Runner(s)-up" = 'Howard Clark' | [
5376,
262,
1271,
286,
3146,
329,
703,
446,
537,
668,
46506,
327,
28270,
7203,
2949,
19570,
16034,
3084,
62,
1238,
28977,
33411,
366,
49493,
7,
82,
13219,
929,
1,
796,
705,
32434,
11264,
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
] | [
5376,
262,
1271,
286,
3146,
329,
703,
446,
537,
668,
46506,
327,
28270,
7203,
2949,
19570,
16034,
3084,
62,
1238,
28977,
33411,
366,
49493,
7,
82,
13219,
929,
1,
796,
705,
32434,
11264,
6
] |
How questions get closed since the beginning of 2014. | SELECT SUM(CASE WHEN UserId = -1 THEN 1 ELSE 0 END) AS "community_closed", SUM(CASE WHEN UserId = -1 THEN 0 ELSE 1 END) AS "mod_or_dupehammer_closed", COUNT(Id) AS "total" FROM PostHistory WHERE PostHistoryTypeId = 10 AND CreationDate >= '2014-01-01' | [
2437,
2683,
651,
4838,
1201,
262,
3726,
286,
1946,
13,
46506,
35683,
7,
34,
11159,
42099,
11787,
7390,
796,
532,
16,
42243,
352,
17852,
5188,
657,
23578,
8,
7054,
366,
28158,
62,
20225,
1600,
35683,
7,
34,
11159,
42099,
11787,
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... | [
2437,
2683,
651,
4838,
1201,
262,
3726,
286,
1946,
13,
46506,
35683,
7,
34,
11159,
42099,
11787,
7390,
796,
532,
16,
42243,
352,
17852,
5188,
657,
23578,
8,
7054,
366,
28158,
62,
20225,
1600,
35683,
7,
34,
11159,
42099,
11787,
7390,
7... |
Before round 7, what is the greatest Pick # for a player that plays defensive tackle? | SELECT MAX(pick__number) FROM table_name_5 WHERE position = "defensive tackle" AND round < 7 | [
8421,
2835,
767,
11,
644,
318,
262,
6000,
12346,
1303,
329,
257,
2137,
326,
5341,
6110,
9761,
30,
46506,
25882,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
20,
33411,
2292,
796,
366,
4299,
2021,
9761,
1,
5357,
2835,
1279,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8421,
2835,
767,
11,
644,
318,
262,
6000,
12346,
1303,
329,
257,
2137,
326,
5341,
6110,
9761,
30,
46506,
25882,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
20,
33411,
2292,
796,
366,
4299,
2021,
9761,
1,
5357,
2835,
1279,
76... |
how many stars have a current magnitude of at least 1.0 ? | SELECT COUNT("star") FROM table_203_56 WHERE "current\nmagnitude" >= 1.0 | [
4919,
867,
5788,
423,
257,
1459,
14735,
286,
379,
1551,
352,
13,
15,
5633,
46506,
327,
28270,
7203,
7364,
4943,
16034,
3084,
62,
22416,
62,
3980,
33411,
366,
14421,
59,
21533,
4660,
3984,
1,
18189,
352,
13,
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
] | [
4919,
867,
5788,
423,
257,
1459,
14735,
286,
379,
1551,
352,
13,
15,
5633,
46506,
327,
28270,
7203,
7364,
4943,
16034,
3084,
62,
22416,
62,
3980,
33411,
366,
14421,
59,
21533,
4660,
3984,
1,
18189,
352,
13,
15
] |
What is the highest rank of the medal total less than 15, more than 2 bronzes, 0 gold and 1 silver? | SELECT MAX(rank) FROM table_name_29 WHERE total < 15 AND bronze > 2 AND gold = 0 AND silver = 1 | [
2061,
318,
262,
4511,
4279,
286,
262,
18279,
2472,
1342,
621,
1315,
11,
517,
621,
362,
18443,
12271,
11,
657,
3869,
290,
352,
8465,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
1959,
33411,
2472,
1279,
1315,
5357,
22101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4279,
286,
262,
18279,
2472,
1342,
621,
1315,
11,
517,
621,
362,
18443,
12271,
11,
657,
3869,
290,
352,
8465,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
1959,
33411,
2472,
1279,
1315,
5357,
22101,
... |
What is Claude Harmon's Place? | SELECT "Place" FROM table_76216 WHERE "Player" = 'claude harmon' | [
2061,
318,
40559,
39712,
338,
8474,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
4304,
20666,
33411,
366,
14140,
1,
796,
705,
565,
64,
2507,
25625,
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
] | [
2061,
318,
40559,
39712,
338,
8474,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
4304,
20666,
33411,
366,
14140,
1,
796,
705,
565,
64,
2507,
25625,
6
] |
What league has 2-3 as the away? | SELECT league FROM table_name_18 WHERE away = "2-3" | [
2061,
4652,
468,
362,
12,
18,
355,
262,
1497,
30,
46506,
4652,
16034,
3084,
62,
3672,
62,
1507,
33411,
1497,
796,
366,
17,
12,
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
] | [
2061,
4652,
468,
362,
12,
18,
355,
262,
1497,
30,
46506,
4652,
16034,
3084,
62,
3672,
62,
1507,
33411,
1497,
796,
366,
17,
12,
18,
1
] |
Tell me the surface for eastbourne 14 june 1999 | SELECT "Surface" FROM table_4368 WHERE "Tournament" = 'eastbourne' AND "Date" = '14 june 1999' | [
24446,
502,
262,
4417,
329,
7627,
12544,
1478,
474,
1726,
7358,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
19,
27412,
33411,
366,
51,
5138,
1,
796,
705,
23316,
12544,
6,
5357,
366,
10430,
1,
796,
705,
1415,
474,
1726,
7358,
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
] | [
24446,
502,
262,
4417,
329,
7627,
12544,
1478,
474,
1726,
7358,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
19,
27412,
33411,
366,
51,
5138,
1,
796,
705,
23316,
12544,
6,
5357,
366,
10430,
1,
796,
705,
1415,
474,
1726,
7358,
6
] |
What are the lengths hosted by Pocono International Raceway? | SELECT "Length" FROM table_25224 WHERE "Track" = 'Pocono International Raceway' | [
2061,
389,
262,
20428,
12007,
416,
39375,
29941,
4037,
24746,
16172,
30,
46506,
366,
24539,
1,
16034,
3084,
62,
22800,
1731,
33411,
366,
24802,
1,
796,
705,
47,
420,
29941,
4037,
24746,
16172,
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,
389,
262,
20428,
12007,
416,
39375,
29941,
4037,
24746,
16172,
30,
46506,
366,
24539,
1,
16034,
3084,
62,
22800,
1731,
33411,
366,
24802,
1,
796,
705,
47,
420,
29941,
4037,
24746,
16172,
6
] |
Find the total number of students for each department with a bar chart, and sort in ascending by the y-axis. | SELECT T1.dept_name, COUNT(DISTINCT T2.ID) FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name ORDER BY COUNT(DISTINCT T2.ID) | [
16742,
262,
2472,
1271,
286,
2444,
329,
1123,
5011,
351,
257,
2318,
8262,
11,
290,
3297,
287,
41988,
416,
262,
331,
12,
22704,
13,
46506,
309,
16,
13,
2934,
457,
62,
3672,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
17,
13,
2389... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2472,
1271,
286,
2444,
329,
1123,
5011,
351,
257,
2318,
8262,
11,
290,
3297,
287,
41988,
416,
262,
331,
12,
22704,
13,
46506,
309,
16,
13,
2934,
457,
62,
3672,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
17,
13,
2389... |
what is the only role she played with broadcaster itv2 ? | SELECT "character" FROM table_204_903 WHERE "broadcaster" = 'itv2' | [
10919,
318,
262,
691,
2597,
673,
2826,
351,
26661,
340,
85,
17,
5633,
46506,
366,
22769,
1,
16034,
3084,
62,
18638,
62,
24,
3070,
33411,
366,
36654,
17970,
1,
796,
705,
270,
85,
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
] | [
10919,
318,
262,
691,
2597,
673,
2826,
351,
26661,
340,
85,
17,
5633,
46506,
366,
22769,
1,
16034,
3084,
62,
18638,
62,
24,
3070,
33411,
366,
36654,
17970,
1,
796,
705,
270,
85,
17,
6
] |
What is the total number of bronze medals the U.S. Virgin Islands, which has less than 0 golds, has? | SELECT COUNT("Bronze") FROM table_35124 WHERE "Nation" = 'u.s. virgin islands' AND "Gold" < '0' | [
2061,
318,
262,
2472,
1271,
286,
22101,
28057,
262,
471,
13,
50,
13,
5283,
12010,
11,
543,
468,
1342,
621,
657,
3869,
82,
11,
468,
30,
46506,
327,
28270,
7203,
18760,
2736,
4943,
16034,
3084,
62,
2327,
17464,
33411,
366,
46108,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
22101,
28057,
262,
471,
13,
50,
13,
5283,
12010,
11,
543,
468,
1342,
621,
657,
3869,
82,
11,
468,
30,
46506,
327,
28270,
7203,
18760,
2736,
4943,
16034,
3084,
62,
2327,
17464,
33411,
366,
46108,
1,
7... |
Show the name and location of track with 1 race. | SELECT T2.name, T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING COUNT(*) = 1 | [
15307,
262,
1438,
290,
4067,
286,
2610,
351,
352,
3234,
13,
46506,
309,
17,
13,
3672,
11,
309,
17,
13,
24886,
16034,
3234,
7054,
309,
16,
32357,
1268,
2610,
7054,
309,
17,
6177,
309,
16,
13,
11659,
62,
312,
796,
309,
17,
13,
11659... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
290,
4067,
286,
2610,
351,
352,
3234,
13,
46506,
309,
17,
13,
3672,
11,
309,
17,
13,
24886,
16034,
3234,
7054,
309,
16,
32357,
1268,
2610,
7054,
309,
17,
6177,
309,
16,
13,
11659,
62,
312,
796,
309,
17,
13,
11659... |
how many players are from the united states ? | SELECT COUNT("player") FROM table_203_305 WHERE "nationality" = 'united states' | [
4919,
867,
1938,
389,
422,
262,
16503,
2585,
5633,
46506,
327,
28270,
7203,
7829,
4943,
16034,
3084,
62,
22416,
62,
22515,
33411,
366,
14648,
414,
1,
796,
705,
41187,
2585,
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
] | [
4919,
867,
1938,
389,
422,
262,
16503,
2585,
5633,
46506,
327,
28270,
7203,
7829,
4943,
16034,
3084,
62,
22416,
62,
22515,
33411,
366,
14648,
414,
1,
796,
705,
41187,
2585,
6
] |
What is Driver Howden Ganley's Time/Retired? | SELECT "Time/Retired" FROM table_53935 WHERE "Driver" = 'howden ganley' | [
2061,
318,
12434,
1374,
6559,
23207,
1636,
338,
3862,
14,
9781,
1202,
30,
46506,
366,
7575,
14,
9781,
1202,
1,
16034,
3084,
62,
20,
2670,
2327,
33411,
366,
32103,
1,
796,
705,
4919,
6559,
308,
272,
1636,
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,
318,
12434,
1374,
6559,
23207,
1636,
338,
3862,
14,
9781,
1202,
30,
46506,
366,
7575,
14,
9781,
1202,
1,
16034,
3084,
62,
20,
2670,
2327,
33411,
366,
32103,
1,
796,
705,
4919,
6559,
308,
272,
1636,
6
] |
What is Erwin Sommer's average position? | SELECT AVG("Position") FROM table_35574 WHERE "Pilot" = 'erwin sommer' | [
2061,
318,
5256,
5404,
9995,
647,
338,
2811,
2292,
30,
46506,
35224,
7203,
26545,
4943,
16034,
3084,
62,
2327,
46900,
33411,
366,
47,
23439,
1,
796,
705,
263,
5404,
3870,
647,
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,
5256,
5404,
9995,
647,
338,
2811,
2292,
30,
46506,
35224,
7203,
26545,
4943,
16034,
3084,
62,
2327,
46900,
33411,
366,
47,
23439,
1,
796,
705,
263,
5404,
3870,
647,
6
] |
when they visited the hospital first time, when was patient 32592 prescribed a medication via pb route for the first time? | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 32592 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND prescriptions.route = 'pb' ORDER BY prescriptions.startdate LIMIT 1 | [
12518,
484,
8672,
262,
4436,
717,
640,
11,
618,
373,
5827,
29524,
5892,
14798,
257,
14103,
2884,
279,
65,
6339,
329,
262,
717,
640,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
484,
8672,
262,
4436,
717,
640,
11,
618,
373,
5827,
29524,
5892,
14798,
257,
14103,
2884,
279,
65,
6339,
329,
262,
717,
640,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506... |
For which industry is the assets smaller than 1,258.1 and the profit smaller than 11.6? | SELECT "Industry" FROM table_47778 WHERE "Assets (billion $)" < '1,258.1' AND "Profits (billion $)" < '11.6' | [
1890,
543,
2831,
318,
262,
6798,
4833,
621,
352,
11,
25600,
13,
16,
290,
262,
7630,
4833,
621,
1367,
13,
21,
30,
46506,
366,
35848,
563,
1,
16034,
3084,
62,
2857,
39761,
33411,
366,
8021,
1039,
357,
24540,
720,
16725,
1279,
705,
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
] | [
1890,
543,
2831,
318,
262,
6798,
4833,
621,
352,
11,
25600,
13,
16,
290,
262,
7630,
4833,
621,
1367,
13,
21,
30,
46506,
366,
35848,
563,
1,
16034,
3084,
62,
2857,
39761,
33411,
366,
8021,
1039,
357,
24540,
720,
16725,
1279,
705,
16,... |
Which driver has a G tyre, rounds of 2-12 and a M7A chassis? | SELECT "Driver" FROM table_10911 WHERE "Tyre" = 'g' AND "Rounds" = '2-12' AND "Chassis" = 'm7a' | [
13828,
4639,
468,
257,
402,
48216,
11,
9196,
286,
362,
12,
1065,
290,
257,
337,
22,
32,
24587,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
14454,
1157,
33411,
366,
25492,
260,
1,
796,
705,
70,
6,
5357,
366,
49,
3733,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
4639,
468,
257,
402,
48216,
11,
9196,
286,
362,
12,
1065,
290,
257,
337,
22,
32,
24587,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
14454,
1157,
33411,
366,
25492,
260,
1,
796,
705,
70,
6,
5357,
366,
49,
3733,
1,
796,
705,
... |
S bastien Bourdais of the team Newman/Haas Racing has what qual 1? | SELECT qual_1 FROM table_name_32 WHERE team = "newman/haas racing" AND name = "sébastien bourdais" | [
50,
19918,
2013,
20576,
6814,
271,
286,
262,
1074,
27698,
14,
23303,
292,
14954,
468,
644,
4140,
352,
30,
46506,
4140,
62,
16,
16034,
3084,
62,
3672,
62,
2624,
33411,
1074,
796,
366,
3605,
805,
14,
3099,
292,
11717,
1,
5357,
1438,
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
] | [
50,
19918,
2013,
20576,
6814,
271,
286,
262,
1074,
27698,
14,
23303,
292,
14954,
468,
644,
4140,
352,
30,
46506,
4140,
62,
16,
16034,
3084,
62,
3672,
62,
2624,
33411,
1074,
796,
366,
3605,
805,
14,
3099,
292,
11717,
1,
5357,
1438,
7... |
BIOINF 545 is taught by which professor ? | SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'BIOINF' AND course.number = 545 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering... | [
3483,
46,
1268,
37,
642,
2231,
318,
7817,
416,
543,
6240,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
33411,
1781,
13,
17319,
62,
312,
796,
178... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3483,
46,
1268,
37,
642,
2231,
318,
7817,
416,
543,
6240,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
33411,
1781,
13,
17319,
62,
312,
796,
178... |
How many gold medals for bellbrook HS with less than 1 silver? | SELECT COUNT(gold_medals) FROM table_name_73 WHERE ensemble = "bellbrook hs" AND silver_medals < 1 | [
2437,
867,
3869,
28057,
329,
8966,
19094,
18070,
351,
1342,
621,
352,
8465,
30,
46506,
327,
28270,
7,
24267,
62,
1150,
874,
8,
16034,
3084,
62,
3672,
62,
4790,
33411,
34549,
796,
366,
7923,
19094,
289,
82,
1,
5357,
8465,
62,
1150,
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
] | [
2437,
867,
3869,
28057,
329,
8966,
19094,
18070,
351,
1342,
621,
352,
8465,
30,
46506,
327,
28270,
7,
24267,
62,
1150,
874,
8,
16034,
3084,
62,
3672,
62,
4790,
33411,
34549,
796,
366,
7923,
19094,
289,
82,
1,
5357,
8465,
62,
1150,
8... |
What kind of Week 7 has a Week 5 of evicted (day 15)? | SELECT "Week 7" FROM table_59966 WHERE "Week 5" = 'evicted (day 15)' | [
2061,
1611,
286,
6119,
767,
468,
257,
6119,
642,
286,
819,
5722,
357,
820,
1315,
19427,
46506,
366,
20916,
767,
1,
16034,
3084,
62,
43452,
2791,
33411,
366,
20916,
642,
1,
796,
705,
1990,
5722,
357,
820,
1315,
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
] | [
2061,
1611,
286,
6119,
767,
468,
257,
6119,
642,
286,
819,
5722,
357,
820,
1315,
19427,
46506,
366,
20916,
767,
1,
16034,
3084,
62,
43452,
2791,
33411,
366,
20916,
642,
1,
796,
705,
1990,
5722,
357,
820,
1315,
33047
] |
give me the number of patients whose year of birth is less than 2121 and procedure icd9 code is 8854? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2121" AND procedures.icd9_code = "8854" | [
26535,
502,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
362,
19244,
290,
8771,
14158,
67,
24,
2438,
318,
9193,
4051,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
362,
19244,
290,
8771,
14158,
67,
24,
2438,
318,
9193,
4051,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2... |
What is the description of the measure that got 78.27% yes votes? | SELECT description FROM table_256286_55 WHERE _percentage_yes = "78.27%" | [
2061,
318,
262,
6764,
286,
262,
3953,
326,
1392,
8699,
13,
1983,
4,
3763,
5690,
30,
46506,
6764,
16034,
3084,
62,
11645,
27033,
62,
2816,
33411,
4808,
25067,
496,
62,
8505,
796,
366,
3695,
13,
1983,
39658
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6764,
286,
262,
3953,
326,
1392,
8699,
13,
1983,
4,
3763,
5690,
30,
46506,
6764,
16034,
3084,
62,
11645,
27033,
62,
2816,
33411,
4808,
25067,
496,
62,
8505,
796,
366,
3695,
13,
1983,
39658
] |
What is the rank of the person with more than 5 games played? | SELECT SUM(rank) FROM table_name_20 WHERE games_played > 5 | [
2061,
318,
262,
4279,
286,
262,
1048,
351,
517,
621,
642,
1830,
2826,
30,
46506,
35683,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
1238,
33411,
1830,
62,
21542,
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
] | [
2061,
318,
262,
4279,
286,
262,
1048,
351,
517,
621,
642,
1830,
2826,
30,
46506,
35683,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
1238,
33411,
1830,
62,
21542,
1875,
642
] |
What is the length for a diesel engine with numbers of tbd (13 buses)? | SELECT "Length" FROM table_55005 WHERE "Engine Type" = 'diesel' AND "Numbers" = 'tbd (13 buses)' | [
2061,
318,
262,
4129,
329,
257,
21866,
3113,
351,
3146,
286,
256,
17457,
357,
1485,
16893,
19427,
46506,
366,
24539,
1,
16034,
3084,
62,
2816,
22544,
33411,
366,
13798,
5994,
1,
796,
705,
25990,
417,
6,
5357,
366,
49601,
1,
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,
1,
1,
1,
1
] | [
2061,
318,
262,
4129,
329,
257,
21866,
3113,
351,
3146,
286,
256,
17457,
357,
1485,
16893,
19427,
46506,
366,
24539,
1,
16034,
3084,
62,
2816,
22544,
33411,
366,
13798,
5994,
1,
796,
705,
25990,
417,
6,
5357,
366,
49601,
1,
796,
705,
... |
What is the date where the winner was the Oakland Raiders in 1975? | SELECT date FROM table_name_95 WHERE year = 1975 AND winner = "oakland raiders" | [
2061,
318,
262,
3128,
810,
262,
8464,
373,
262,
12369,
16120,
287,
15231,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3865,
33411,
614,
796,
15231,
5357,
8464,
796,
366,
15877,
1044,
9513,
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
] | [
2061,
318,
262,
3128,
810,
262,
8464,
373,
262,
12369,
16120,
287,
15231,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3865,
33411,
614,
796,
15231,
5357,
8464,
796,
366,
15877,
1044,
9513,
364,
1
] |
What is 1st Leg, when Team 1 is 'Portol Palma Mallorca'? | SELECT "1st leg" FROM table_60070 WHERE "Team 1" = 'portol palma mallorca' | [
2061,
318,
352,
301,
3564,
11,
618,
4816,
352,
318,
705,
13924,
349,
3175,
2611,
16618,
273,
6888,
30960,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
8054,
2154,
33411,
366,
15592,
352,
1,
796,
705,
634,
349,
6340,
2611,
17374,
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
] | [
2061,
318,
352,
301,
3564,
11,
618,
4816,
352,
318,
705,
13924,
349,
3175,
2611,
16618,
273,
6888,
30960,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
8054,
2154,
33411,
366,
15592,
352,
1,
796,
705,
634,
349,
6340,
2611,
17374,
2... |
Name the most enrollment when nickname is hawks | SELECT MAX(enrollment) FROM table_16734640_1 WHERE nickname = "Hawks" | [
5376,
262,
749,
20753,
618,
21814,
318,
23185,
591,
46506,
25882,
7,
268,
48108,
8,
16034,
3084,
62,
21940,
30557,
1821,
62,
16,
33411,
21814,
796,
366,
39,
11890,
1
] | [
1,
1,
1,
1,
1,
1,
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,
749,
20753,
618,
21814,
318,
23185,
591,
46506,
25882,
7,
268,
48108,
8,
16034,
3084,
62,
21940,
30557,
1821,
62,
16,
33411,
21814,
796,
366,
39,
11890,
1
] |
What is Height, when Rank is less than 20, when Floors is greater than 9, when Built is 2005, and when Name is The Edge (C)? | SELECT height FROM table_name_84 WHERE rank < 20 AND floors > 9 AND built = 2005 AND name = "the edge (c)" | [
2061,
318,
27280,
11,
618,
10916,
318,
1342,
621,
1160,
11,
618,
29075,
669,
318,
3744,
621,
860,
11,
618,
28477,
318,
5075,
11,
290,
618,
6530,
318,
383,
13113,
357,
34,
19427,
46506,
6001,
16034,
3084,
62,
3672,
62,
5705,
33411,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
27280,
11,
618,
10916,
318,
1342,
621,
1160,
11,
618,
29075,
669,
318,
3744,
621,
860,
11,
618,
28477,
318,
5075,
11,
290,
618,
6530,
318,
383,
13113,
357,
34,
19427,
46506,
6001,
16034,
3084,
62,
3672,
62,
5705,
33411,
4... |
Top Users by Location (Case-Insensitive). Top users by location (case-insensitive). | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "no", Id AS "user_link", Location, Reputation FROM Users WHERE LOWER(Location) LIKE '%##Location##%' OR UPPER(Location) LIKE '%##Location##%' ORDER BY Reputation DESC | [
9126,
18987,
416,
13397,
357,
20448,
12,
20376,
18464,
737,
5849,
2985,
416,
4067,
357,
7442,
12,
1040,
18464,
737,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
366,
3919,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
18987,
416,
13397,
357,
20448,
12,
20376,
18464,
737,
5849,
2985,
416,
4067,
357,
7442,
12,
1040,
18464,
737,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
366,
3919,
160... |
What is the maximum age of patients that survived and had a primary disease of squamous cell carcinoma oral tongue/sda? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.diagnosis = "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA" | [
2061,
318,
262,
5415,
2479,
286,
3871,
326,
11803,
290,
550,
257,
4165,
4369,
286,
2809,
10877,
2685,
28164,
6086,
12886,
11880,
14,
82,
6814,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
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... | [
2061,
318,
262,
5415,
2479,
286,
3871,
326,
11803,
290,
550,
257,
4165,
4369,
286,
2809,
10877,
2685,
28164,
6086,
12886,
11880,
14,
82,
6814,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62... |
Gold that has a Rank of 6, and a Bronze larger than 0 had what total number of gold? | SELECT COUNT(gold) FROM table_name_46 WHERE rank = "6" AND bronze > 0 | [
13306,
326,
468,
257,
10916,
286,
718,
11,
290,
257,
19461,
4025,
621,
657,
550,
644,
2472,
1271,
286,
3869,
30,
46506,
327,
28270,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
3510,
33411,
4279,
796,
366,
21,
1,
5357,
22101,
1875,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13306,
326,
468,
257,
10916,
286,
718,
11,
290,
257,
19461,
4025,
621,
657,
550,
644,
2472,
1271,
286,
3869,
30,
46506,
327,
28270,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
3510,
33411,
4279,
796,
366,
21,
1,
5357,
22101,
1875,
657
] |
What is the sum of the number of clubs in seasons before 1992 with more than 3 total wins? | SELECT SUM("Number of clubs") FROM table_12752 WHERE "Season" < '1992' AND "Total wins" > '3' | [
2061,
318,
262,
2160,
286,
262,
1271,
286,
9784,
287,
7028,
878,
9768,
351,
517,
621,
513,
2472,
7864,
30,
46506,
35683,
7203,
15057,
286,
9784,
4943,
16034,
3084,
62,
1065,
43665,
33411,
366,
18960,
1,
1279,
705,
23847,
6,
5357,
366,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1271,
286,
9784,
287,
7028,
878,
9768,
351,
517,
621,
513,
2472,
7864,
30,
46506,
35683,
7203,
15057,
286,
9784,
4943,
16034,
3084,
62,
1065,
43665,
33411,
366,
18960,
1,
1279,
705,
23847,
6,
5357,
366,... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, draw a bar chart about the distribution of job_id and the average of employee_id , and group by attribute job_id, rank by the Y-axis in descending. | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY AVG(EMPLOYEE_ID) DESC | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,... |
how many patients are admitted urgently and used the drug route buccal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.route = "BUCCAL" | [
4919,
867,
3871,
389,
6848,
37788,
290,
973,
262,
2563,
6339,
809,
535,
282,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6848,
37788,
290,
973,
262,
2563,
6339,
809,
535,
282,
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,
... |
Bar chart x axis calendar date y axis the number of calendar date | SELECT Calendar_Date, COUNT(Calendar_Date) FROM Ref_Calendar | [
10374,
8262,
2124,
16488,
11845,
3128,
331,
16488,
262,
1271,
286,
11845,
3128,
46506,
26506,
62,
10430,
11,
327,
28270,
7,
9771,
9239,
62,
10430,
8,
16034,
6524,
62,
9771,
9239
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
8262,
2124,
16488,
11845,
3128,
331,
16488,
262,
1271,
286,
11845,
3128,
46506,
26506,
62,
10430,
11,
327,
28270,
7,
9771,
9239,
62,
10430,
8,
16034,
6524,
62,
9771,
9239
] |
Which number belonged to the school team from Arizona? | SELECT "No." FROM table_1284 WHERE "School/Club Team" = 'Arizona' | [
13828,
1271,
19611,
284,
262,
1524,
1074,
422,
7943,
30,
46506,
366,
2949,
526,
16034,
3084,
62,
1065,
5705,
33411,
366,
26130,
14,
42350,
4816,
1,
796,
705,
40732,
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,
1271,
19611,
284,
262,
1524,
1074,
422,
7943,
30,
46506,
366,
2949,
526,
16034,
3084,
62,
1065,
5705,
33411,
366,
26130,
14,
42350,
4816,
1,
796,
705,
40732,
6
] |
Name the college for nate binder | SELECT college FROM table_25017530_5 WHERE player = "Nate Binder" | [
5376,
262,
4152,
329,
299,
378,
275,
5540,
46506,
4152,
16034,
3084,
62,
1495,
486,
2425,
1270,
62,
20,
33411,
2137,
796,
366,
45,
378,
347,
5540,
1
] | [
1,
1,
1,
1,
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,
4152,
329,
299,
378,
275,
5540,
46506,
4152,
16034,
3084,
62,
1495,
486,
2425,
1270,
62,
20,
33411,
2137,
796,
366,
45,
378,
347,
5540,
1
] |
What conference does Luke Zettlemoyer publish the most in | SELECT DISTINCT COUNT(1), paper.venueid FROM author, paper, writes WHERE author.authorname = 'Luke Zettlemoyer' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid GROUP BY paper.venueid ORDER BY COUNT(1) DESC | [
2061,
4495,
857,
11336,
1168,
3087,
10671,
35301,
7715,
262,
749,
287,
46506,
360,
8808,
1268,
4177,
327,
28270,
7,
16,
828,
3348,
13,
4080,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
30730,
116... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4495,
857,
11336,
1168,
3087,
10671,
35301,
7715,
262,
749,
287,
46506,
360,
8808,
1268,
4177,
327,
28270,
7,
16,
828,
3348,
13,
4080,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
30730,
116... |
at least how many aerial tramways were inaugurated after 1970 ? | SELECT COUNT("tramway") FROM table_203_457 WHERE "year of inauguration" > 1970 | [
265,
1551,
703,
867,
17789,
29957,
1322,
547,
14243,
49293,
706,
8069,
5633,
46506,
327,
28270,
7203,
83,
859,
1014,
4943,
16034,
3084,
62,
22416,
62,
33032,
33411,
366,
1941,
286,
23166,
1,
1875,
8069
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
265,
1551,
703,
867,
17789,
29957,
1322,
547,
14243,
49293,
706,
8069,
5633,
46506,
327,
28270,
7203,
83,
859,
1014,
4943,
16034,
3084,
62,
22416,
62,
33032,
33411,
366,
1941,
286,
23166,
1,
1875,
8069
] |
What are the names and ids of the tourist attractions that are visited at most once. Show the proportion. | SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN Visits AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID | [
2061,
389,
262,
3891,
290,
220,
2340,
286,
262,
18473,
29156,
326,
389,
8672,
379,
749,
1752,
13,
5438,
262,
9823,
13,
46506,
309,
16,
13,
5376,
11,
309,
16,
13,
39152,
396,
62,
8086,
7861,
62,
2389,
16034,
9852,
396,
62,
8086,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
3891,
290,
220,
2340,
286,
262,
18473,
29156,
326,
389,
8672,
379,
749,
1752,
13,
5438,
262,
9823,
13,
46506,
309,
16,
13,
5376,
11,
309,
16,
13,
39152,
396,
62,
8086,
7861,
62,
2389,
16034,
9852,
396,
62,
8086,
37... |
give me the number of patients whose death status is 0 and procedure icd9 code is 8968? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.icd9_code = "8968" | [
26535,
502,
262,
1271,
286,
3871,
3025,
1918,
3722,
318,
657,
290,
8771,
14158,
67,
24,
2438,
318,
9919,
3104,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1918,
3722,
318,
657,
290,
8771,
14158,
67,
24,
2438,
318,
9919,
3104,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,... |
Are there times in the morning for the AOSS 521 course ? | SELECT DISTINCT course_offering.end_time, course_offering.start_time, semester.semester, semester.year 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 = 'AOSS' AND cou... | [
8491,
612,
1661,
287,
262,
3329,
329,
262,
317,
18420,
642,
2481,
1781,
5633,
46506,
360,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
437,
62,
2435,
11,
1781,
62,
2364,
1586,
13,
9688,
62,
2435,
11,
24878,
13,
325,
6880,
353,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8491,
612,
1661,
287,
262,
3329,
329,
262,
317,
18420,
642,
2481,
1781,
5633,
46506,
360,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
437,
62,
2435,
11,
1781,
62,
2364,
1586,
13,
9688,
62,
2435,
11,
24878,
13,
325,
6880,
353,
11,
... |
What year was the first store in India? | SELECT first_store FROM table_name_20 WHERE country = "india" | [
2061,
614,
373,
262,
717,
3650,
287,
3794,
30,
46506,
717,
62,
8095,
16034,
3084,
62,
3672,
62,
1238,
33411,
1499,
796,
366,
521,
544,
1
] | [
1,
1,
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,
262,
717,
3650,
287,
3794,
30,
46506,
717,
62,
8095,
16034,
3084,
62,
3672,
62,
1238,
33411,
1499,
796,
366,
521,
544,
1
] |
What is the highest win for losses less than 2? | SELECT MAX(wins) FROM table_name_65 WHERE losses < 2 | [
2061,
318,
262,
4511,
1592,
329,
9089,
1342,
621,
362,
30,
46506,
25882,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
2996,
33411,
9089,
1279,
362
] | [
1,
1,
1,
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,
1592,
329,
9089,
1342,
621,
362,
30,
46506,
25882,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
2996,
33411,
9089,
1279,
362
] |
What is the candidate status of macedonia? | SELECT candidate_status FROM table_name_46 WHERE state = "macedonia" | [
2061,
318,
262,
4540,
3722,
286,
285,
2286,
11339,
30,
46506,
4540,
62,
13376,
16034,
3084,
62,
3672,
62,
3510,
33411,
1181,
796,
366,
76,
2286,
11339,
1
] | [
1,
1,
1,
1,
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,
4540,
3722,
286,
285,
2286,
11339,
30,
46506,
4540,
62,
13376,
16034,
3084,
62,
3672,
62,
3510,
33411,
1181,
796,
366,
76,
2286,
11339,
1
] |
What was the date of appointment for the manager that replaced Simon Davies? | SELECT date_of_appointment FROM table_18795125_6 WHERE outgoing_manager = "Simon Davies" | [
2061,
373,
262,
3128,
286,
12557,
329,
262,
4706,
326,
6928,
11288,
26618,
30,
46506,
3128,
62,
1659,
62,
1324,
49805,
16034,
3084,
62,
1507,
41544,
11623,
62,
21,
33411,
28181,
62,
37153,
796,
366,
35475,
26618,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
286,
12557,
329,
262,
4706,
326,
6928,
11288,
26618,
30,
46506,
3128,
62,
1659,
62,
1324,
49805,
16034,
3084,
62,
1507,
41544,
11623,
62,
21,
33411,
28181,
62,
37153,
796,
366,
35475,
26618,
1
] |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by time, show by the y axis from low to high. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(EMPLOYEE_ID) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
640,
11,
905,
416,
262,
331,
16488,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
640,
11,
905,
416,
262,
331,
16488,
... |
What is the largest crowd for an away team score of 8.7 (55)? | SELECT MAX("Crowd") FROM table_33037 WHERE "Away team score" = '8.7 (55)' | [
2061,
318,
262,
4387,
4315,
329,
281,
1497,
1074,
4776,
286,
807,
13,
22,
357,
2816,
19427,
46506,
25882,
7203,
34,
3986,
4943,
16034,
3084,
62,
26073,
2718,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
23,
13,
22,
357,
2816,
3304... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4387,
4315,
329,
281,
1497,
1074,
4776,
286,
807,
13,
22,
357,
2816,
19427,
46506,
25882,
7203,
34,
3986,
4943,
16034,
3084,
62,
26073,
2718,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
23,
13,
22,
357,
2816,
3304... |
how many patients with private insurance had procedure under icd9 code 8852? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.icd9_code = "8852" | [
4919,
867,
3871,
351,
2839,
5096,
550,
8771,
739,
14158,
67,
24,
2438,
9193,
4309,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
351,
2839,
5096,
550,
8771,
739,
14158,
67,
24,
2438,
9193,
4309,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,... |
How many assets does each maintenance contract contain? List the number and the contract id. | SELECT COUNT(*), T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id | [
2437,
867,
6798,
857,
1123,
9262,
2775,
3994,
30,
7343,
262,
1271,
290,
262,
2775,
4686,
13,
46506,
327,
28270,
46491,
828,
309,
16,
13,
12417,
8219,
62,
28484,
62,
312,
16034,
34857,
62,
45845,
82,
7054,
309,
16,
32357,
1268,
41059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6798,
857,
1123,
9262,
2775,
3994,
30,
7343,
262,
1271,
290,
262,
2775,
4686,
13,
46506,
327,
28270,
46491,
828,
309,
16,
13,
12417,
8219,
62,
28484,
62,
312,
16034,
34857,
62,
45845,
82,
7054,
309,
16,
32357,
1268,
41059,
... |
What visitor has February 11 as the date? | SELECT "Visitor" FROM table_35301 WHERE "Date" = 'february 11' | [
2061,
21493,
468,
3945,
1367,
355,
262,
3128,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
2327,
18938,
33411,
366,
10430,
1,
796,
705,
69,
1765,
3728,
1367,
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,
21493,
468,
3945,
1367,
355,
262,
3128,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
2327,
18938,
33411,
366,
10430,
1,
796,
705,
69,
1765,
3728,
1367,
6
] |
Where was the tournament dated nov 3, 2002? | SELECT tournament FROM table_1121352_2 WHERE date = "Nov 3, 2002" | [
8496,
373,
262,
7756,
14567,
645,
85,
513,
11,
6244,
30,
46506,
7756,
16034,
3084,
62,
14686,
1485,
4309,
62,
17,
33411,
3128,
796,
366,
20795,
513,
11,
6244,
1
] | [
1,
1,
1,
1,
1,
1,
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,
7756,
14567,
645,
85,
513,
11,
6244,
30,
46506,
7756,
16034,
3084,
62,
14686,
1485,
4309,
62,
17,
33411,
3128,
796,
366,
20795,
513,
11,
6244,
1
] |
what is the average gold when rank is total and silver is more than 20? | SELECT AVG(gold) FROM table_name_32 WHERE rank = "total" AND silver > 20 | [
10919,
318,
262,
2811,
3869,
618,
4279,
318,
2472,
290,
8465,
318,
517,
621,
1160,
30,
46506,
35224,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
2624,
33411,
4279,
796,
366,
23350,
1,
5357,
8465,
1875,
1160
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
3869,
618,
4279,
318,
2472,
290,
8465,
318,
517,
621,
1160,
30,
46506,
35224,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
2624,
33411,
4279,
796,
366,
23350,
1,
5357,
8465,
1875,
1160
] |
What is the type if quantity rebuilt is more than 2 and the railway number is 4' 150? | SELECT "Type" FROM table_79438 WHERE "Quantity rebuilt" > '2' AND "Railway number(s)" = '4"…150' | [
2061,
318,
262,
2099,
611,
12040,
30080,
318,
517,
621,
362,
290,
262,
20515,
1271,
318,
604,
6,
6640,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
3720,
43704,
33411,
366,
31208,
30080,
1,
1875,
705,
17,
6,
5357,
366,
44631,
1014,
127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2099,
611,
12040,
30080,
318,
517,
621,
362,
290,
262,
20515,
1271,
318,
604,
6,
6640,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
3720,
43704,
33411,
366,
31208,
30080,
1,
1875,
705,
17,
6,
5357,
366,
44631,
1014,
127... |
what were the top five most common diagnoses for patients of the 30s since 4 years ago? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN... | [
10919,
547,
262,
1353,
1936,
749,
2219,
40567,
329,
3871,
286,
262,
1542,
82,
1201,
604,
812,
2084,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
262,
1353,
1936,
749,
2219,
40567,
329,
3871,
286,
262,
1542,
82,
1201,
604,
812,
2084,
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,
... |
What was the sum of Revenue ($M), when the Debt as % of value was higher than 27, and the Operating income($m) was 77? | SELECT SUM("Revenue ($M)") FROM table_71279 WHERE "Debt as %of value" > '27' AND "Operating income($m)" = '77' | [
2061,
373,
262,
2160,
286,
20197,
7198,
44,
828,
618,
262,
30319,
355,
4064,
286,
1988,
373,
2440,
621,
2681,
11,
290,
262,
24850,
3739,
16763,
76,
8,
373,
8541,
30,
46506,
35683,
7203,
3041,
4080,
7198,
44,
8,
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... | [
2061,
373,
262,
2160,
286,
20197,
7198,
44,
828,
618,
262,
30319,
355,
4064,
286,
1988,
373,
2440,
621,
2681,
11,
290,
262,
24850,
3739,
16763,
76,
8,
373,
8541,
30,
46506,
35683,
7203,
3041,
4080,
7198,
44,
8,
4943,
16034,
3084,
62... |
who was awarded an oscar for best sound for two films in the same year - king kong and rocky ? | SELECT "name" FROM table_203_17 WHERE "film" = 'king kong' | [
8727,
373,
11343,
281,
267,
13034,
329,
1266,
2128,
329,
734,
7328,
287,
262,
976,
614,
532,
5822,
479,
506,
290,
26898,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
1558,
33411,
366,
26240,
1,
796,
705,
3364,
479,
506,
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
] | [
8727,
373,
11343,
281,
267,
13034,
329,
1266,
2128,
329,
734,
7328,
287,
262,
976,
614,
532,
5822,
479,
506,
290,
26898,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
1558,
33411,
366,
26240,
1,
796,
705,
3364,
479,
506,
6
... |
The Home team of Sydney had which ground? | SELECT "Ground" FROM table_8955 WHERE "Home team" = 'sydney' | [
464,
5995,
1074,
286,
11852,
550,
543,
2323,
30,
46506,
366,
35539,
1,
16034,
3084,
62,
4531,
2816,
33411,
366,
16060,
1074,
1,
796,
705,
1837,
67,
1681,
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
] | [
464,
5995,
1074,
286,
11852,
550,
543,
2323,
30,
46506,
366,
35539,
1,
16034,
3084,
62,
4531,
2816,
33411,
366,
16060,
1074,
1,
796,
705,
1837,
67,
1681,
6
] |
What was the terrain for stage 10 of the tour? | SELECT terrain FROM table_name_69 WHERE stage = "10" | [
2061,
373,
262,
15510,
329,
3800,
838,
286,
262,
4205,
30,
46506,
15510,
16034,
3084,
62,
3672,
62,
3388,
33411,
3800,
796,
366,
940,
1
] | [
1,
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,
15510,
329,
3800,
838,
286,
262,
4205,
30,
46506,
15510,
16034,
3084,
62,
3672,
62,
3388,
33411,
3800,
796,
366,
940,
1
] |
What horizontal bar score also has a pommel horse score of 15.250? | SELECT "Horizontal Bar" FROM table_64214 WHERE "Pommel Horse" = '15.250' | [
2061,
16021,
2318,
4776,
635,
468,
257,
279,
48990,
8223,
4776,
286,
1315,
13,
9031,
30,
46506,
366,
27991,
38342,
2409,
1,
16034,
3084,
62,
2414,
22291,
33411,
366,
47,
48990,
18455,
1,
796,
705,
1314,
13,
9031,
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,
16021,
2318,
4776,
635,
468,
257,
279,
48990,
8223,
4776,
286,
1315,
13,
9031,
30,
46506,
366,
27991,
38342,
2409,
1,
16034,
3084,
62,
2414,
22291,
33411,
366,
47,
48990,
18455,
1,
796,
705,
1314,
13,
9031,
6
] |
Hinkley Locomotive Works is listed as what number as it has a works number smaller than 1563? | SELECT "Number" FROM table_44605 WHERE "Works number" < '1563' AND "Builder" = 'hinkley locomotive works' | [
39,
676,
1636,
15181,
296,
19138,
10933,
318,
5610,
355,
644,
1271,
355,
340,
468,
257,
2499,
1271,
4833,
621,
1315,
5066,
30,
46506,
366,
15057,
1,
16034,
3084,
62,
2598,
32417,
33411,
366,
23044,
1271,
1,
1279,
705,
1314,
5066,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
39,
676,
1636,
15181,
296,
19138,
10933,
318,
5610,
355,
644,
1271,
355,
340,
468,
257,
2499,
1271,
4833,
621,
1315,
5066,
30,
46506,
366,
15057,
1,
16034,
3084,
62,
2598,
32417,
33411,
366,
23044,
1271,
1,
1279,
705,
1314,
5066,
6,
... |
How many romanian eastern orthodox christianity patients have lab test item id 51251? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "ROMANIAN EAST. ORTH" AND lab.itemid = "51251" | [
2437,
867,
374,
5185,
666,
10183,
28299,
33826,
666,
414,
3871,
423,
2248,
1332,
2378,
4686,
22243,
4349,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
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... | [
2437,
867,
374,
5185,
666,
10183,
28299,
33826,
666,
414,
3871,
423,
2248,
1332,
2378,
4686,
22243,
4349,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
... |
What is the total of the points for wins under 6 and a rank of 2nd? | SELECT SUM(points) FROM table_name_59 WHERE rank = "2nd" AND wins < 6 | [
2061,
318,
262,
2472,
286,
262,
2173,
329,
7864,
739,
718,
290,
257,
4279,
286,
362,
358,
30,
46506,
35683,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
4279,
796,
366,
17,
358,
1,
5357,
7864,
1279,
718
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
2173,
329,
7864,
739,
718,
290,
257,
4279,
286,
362,
358,
30,
46506,
35683,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
4279,
796,
366,
17,
358,
1,
5357,
7864,
1279,
718
] |
during a year before what is the four most commonly taken lab test for patients 60 or above? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t1.itemid FROM (SELECT labevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age >= 60) AND DATETIME(labevents.charttime, 'start o... | [
42122,
257,
614,
878,
644,
318,
262,
1440,
749,
8811,
2077,
2248,
1332,
329,
3871,
3126,
393,
2029,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
9186,
312,
3268,
357,
465... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
42122,
257,
614,
878,
644,
318,
262,
1440,
749,
8811,
2077,
2248,
1332,
329,
3871,
3126,
393,
2029,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
9186,
312,
3268,
357,
465... |
tell me the diagnoses icd9 code and short title of diagnoses for patient with patient id 28588. | SELECT diagnoses.icd9_code, diagnoses.short_title FROM diagnoses WHERE diagnoses.subject_id = "28588" | [
33331,
502,
262,
40567,
14158,
67,
24,
2438,
290,
1790,
3670,
286,
40567,
329,
5827,
351,
5827,
4686,
2579,
39118,
13,
46506,
40567,
13,
291,
67,
24,
62,
8189,
11,
40567,
13,
19509,
62,
7839,
16034,
40567,
33411,
40567,
13,
32796,
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
] | [
33331,
502,
262,
40567,
14158,
67,
24,
2438,
290,
1790,
3670,
286,
40567,
329,
5827,
351,
5827,
4686,
2579,
39118,
13,
46506,
40567,
13,
291,
67,
24,
62,
8189,
11,
40567,
13,
19509,
62,
7839,
16034,
40567,
33411,
40567,
13,
32796,
62,... |
Which Result that is on june 5? | SELECT result FROM table_name_79 WHERE date = "june 5" | [
13828,
25414,
326,
318,
319,
474,
1726,
642,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
3720,
33411,
3128,
796,
366,
73,
1726,
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
] | [
13828,
25414,
326,
318,
319,
474,
1726,
642,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
3720,
33411,
3128,
796,
366,
73,
1726,
642,
1
] |
Name the 2008 with 1998 of a and 2002 of 1r with 2004 of 2r | SELECT "2008" FROM table_35663 WHERE "1998" = 'a' AND "2002" = '1r' AND "2004" = '2r' | [
5376,
262,
3648,
351,
7795,
286,
257,
290,
6244,
286,
352,
81,
351,
5472,
286,
362,
81,
46506,
366,
11528,
1,
16034,
3084,
62,
2327,
45791,
33411,
366,
21113,
1,
796,
705,
64,
6,
5357,
366,
16942,
1,
796,
705,
16,
81,
6,
5357,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
3648,
351,
7795,
286,
257,
290,
6244,
286,
352,
81,
351,
5472,
286,
362,
81,
46506,
366,
11528,
1,
16034,
3084,
62,
2327,
45791,
33411,
366,
21113,
1,
796,
705,
64,
6,
5357,
366,
16942,
1,
796,
705,
16,
81,
6,
5357,
3... |
Who was the partner that played against Serena Williams Venus Williams? | SELECT partner FROM table_name_94 WHERE opponents_in_the_final = "serena williams venus williams" | [
8241,
373,
262,
5212,
326,
2826,
1028,
30175,
2616,
6484,
21094,
6484,
30,
46506,
5212,
16034,
3084,
62,
3672,
62,
5824,
33411,
7691,
62,
259,
62,
1169,
62,
20311,
796,
366,
325,
918,
64,
481,
1789,
82,
8710,
385,
481,
1789,
82,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5212,
326,
2826,
1028,
30175,
2616,
6484,
21094,
6484,
30,
46506,
5212,
16034,
3084,
62,
3672,
62,
5824,
33411,
7691,
62,
259,
62,
1169,
62,
20311,
796,
366,
325,
918,
64,
481,
1789,
82,
8710,
385,
481,
1789,
82,
1
] |
Which Mongolian has a Tamil of p r am ? | SELECT "Mongolian" FROM table_35104 WHERE "Tamil \u0ba4\u0bae\u0bbf\u0bb4\u0bcd" = 'pūrāṭam பூராடம்' | [
13828,
42188,
666,
468,
257,
32519,
286,
279,
374,
716,
5633,
46506,
366,
44,
506,
349,
666,
1,
16034,
3084,
62,
2327,
13464,
33411,
366,
42061,
346,
3467,
84,
15,
7012,
19,
59,
84,
15,
65,
3609,
59,
84,
15,
11848,
69,
59,
84,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
42188,
666,
468,
257,
32519,
286,
279,
374,
716,
5633,
46506,
366,
44,
506,
349,
666,
1,
16034,
3084,
62,
2327,
13464,
33411,
366,
42061,
346,
3467,
84,
15,
7012,
19,
59,
84,
15,
65,
3609,
59,
84,
15,
11848,
69,
59,
84,
1... |
What is the english translation of the sanskrit word varsha? | SELECT "English Translation" FROM table_7921 WHERE "Season in Sanskrit" = 'varsha' | [
2061,
318,
262,
46932,
11059,
286,
262,
264,
34738,
799,
1573,
410,
945,
3099,
30,
46506,
366,
15823,
33322,
1,
16034,
3084,
62,
3720,
2481,
33411,
366,
18960,
287,
46178,
1,
796,
705,
85,
945,
3099,
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,
318,
262,
46932,
11059,
286,
262,
264,
34738,
799,
1573,
410,
945,
3099,
30,
46506,
366,
15823,
33322,
1,
16034,
3084,
62,
3720,
2481,
33411,
366,
18960,
287,
46178,
1,
796,
705,
85,
945,
3099,
6
] |
list seating capacities of DL flights from SEATTLE to SALT LAKE CITY | SELECT DISTINCT aircraft_code FROM aircraft WHERE aircraft_code IN (SELECT EQUIPMENT_SEQUENCEalias0.aircraft_code FROM equipment_sequence AS EQUIPMENT_SEQUENCEalias0 WHERE EQUIPMENT_SEQUENCEalias0.aircraft_code_sequence IN (SELECT FLIGHTalias0.aircraft_code_sequence FROM flight AS FLIGHTalias0 WHERE ((FLIGHTalias0.from... | [
4868,
24800,
32484,
286,
23641,
13956,
422,
7946,
35455,
284,
311,
31429,
9131,
7336,
27993,
46506,
360,
8808,
1268,
4177,
6215,
62,
8189,
16034,
6215,
33411,
6215,
62,
8189,
3268,
357,
46506,
46886,
4061,
10979,
62,
5188,
10917,
18310,
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... | [
4868,
24800,
32484,
286,
23641,
13956,
422,
7946,
35455,
284,
311,
31429,
9131,
7336,
27993,
46506,
360,
8808,
1268,
4177,
6215,
62,
8189,
16034,
6215,
33411,
6215,
62,
8189,
3268,
357,
46506,
46886,
4061,
10979,
62,
5188,
10917,
18310,
2... |
What is the sum of the value 'League Cup', when the Total is less than 1, and when the League is less than 0? | SELECT SUM("League Cup") FROM table_69383 WHERE "Total" < '1' AND "League" < '0' | [
2061,
318,
262,
2160,
286,
262,
1988,
705,
24623,
5454,
3256,
618,
262,
7472,
318,
1342,
621,
352,
11,
290,
618,
262,
4041,
318,
1342,
621,
657,
30,
46506,
35683,
7203,
24623,
5454,
4943,
16034,
3084,
62,
3388,
34741,
33411,
366,
1495... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1988,
705,
24623,
5454,
3256,
618,
262,
7472,
318,
1342,
621,
352,
11,
290,
618,
262,
4041,
318,
1342,
621,
657,
30,
46506,
35683,
7203,
24623,
5454,
4943,
16034,
3084,
62,
3388,
34741,
33411,
366,
1495... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.