instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
For all employees who have the letters D or S in their first name, show me about the distribution of job_id and the sum of department_id , and group by attribute job_id in a bar chart, order by the X in ascending. | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
5011,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
287,
257,
2318,
8262,
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,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
5011,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
287,
257,
2318,
8262,
11,
... |
What is the total number in attendance for the game after week 8 that was on November 25, 1979? | SELECT COUNT("Attendance") FROM table_33873 WHERE "Week" > '8' AND "Date" = 'november 25, 1979' | [
2061,
318,
262,
2472,
1271,
287,
14858,
329,
262,
983,
706,
1285,
807,
326,
373,
319,
3389,
1679,
11,
13521,
30,
46506,
327,
28270,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
28460,
4790,
33411,
366,
20916,
1,
1875,
705,
23,
6,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
287,
14858,
329,
262,
983,
706,
1285,
807,
326,
373,
319,
3389,
1679,
11,
13521,
30,
46506,
327,
28270,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
28460,
4790,
33411,
366,
20916,
1,
1875,
705,
23,
6,
53... |
What Nationality has a Position of right wing, with a #20 pick? | SELECT nationality FROM table_name_79 WHERE position = "right wing" AND pick__number = "20" | [
2061,
2351,
414,
468,
257,
23158,
286,
826,
8539,
11,
351,
257,
1303,
1238,
2298,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
3720,
33411,
2292,
796,
366,
3506,
8539,
1,
5357,
2298,
834,
17618,
796,
366,
1238,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2351,
414,
468,
257,
23158,
286,
826,
8539,
11,
351,
257,
1303,
1238,
2298,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
3720,
33411,
2292,
796,
366,
3506,
8539,
1,
5357,
2298,
834,
17618,
796,
366,
1238,
1
] |
Who is the team when the category is blocks per game? | SELECT "Team" FROM table_4065 WHERE "Category" = 'Blocks per game' | [
8241,
318,
262,
1074,
618,
262,
6536,
318,
7021,
583,
983,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1821,
2996,
33411,
366,
27313,
1,
796,
705,
45356,
583,
983,
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
] | [
8241,
318,
262,
1074,
618,
262,
6536,
318,
7021,
583,
983,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1821,
2996,
33411,
366,
27313,
1,
796,
705,
45356,
583,
983,
6
] |
what is the rank when heat is 9 and the nation is great britain? | SELECT SUM(rank) FROM table_name_21 WHERE heat = 9 AND nation = "great britain" | [
10919,
318,
262,
4279,
618,
4894,
318,
860,
290,
262,
3277,
318,
1049,
275,
799,
391,
30,
46506,
35683,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
4894,
796,
860,
5357,
3277,
796,
366,
18223,
275,
799,
391,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4279,
618,
4894,
318,
860,
290,
262,
3277,
318,
1049,
275,
799,
391,
30,
46506,
35683,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
4894,
796,
860,
5357,
3277,
796,
366,
18223,
275,
799,
391,
1
] |
What was the smallest crowd that Melbourne played for at home? | SELECT MIN(crowd) FROM table_name_18 WHERE home_team = "melbourne" | [
2061,
373,
262,
18197,
4315,
326,
14819,
2826,
329,
379,
1363,
30,
46506,
20625,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
1363,
62,
15097,
796,
366,
17694,
12544,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
18197,
4315,
326,
14819,
2826,
329,
379,
1363,
30,
46506,
20625,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
1363,
62,
15097,
796,
366,
17694,
12544,
1
] |
how many days has it been since patient 012-66291 dext 5%-nacl 0.9% 1000 ml lvp was last prescribed on this hospital encounter? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', medication.drugstarttime)) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-662... | [
4919,
867,
1528,
468,
340,
587,
1201,
5827,
5534,
17,
12,
2791,
33551,
390,
742,
642,
33963,
77,
37779,
657,
13,
24,
4,
8576,
25962,
300,
36133,
373,
938,
14798,
319,
428,
4436,
8791,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
5534,
17,
12,
2791,
33551,
390,
742,
642,
33963,
77,
37779,
657,
13,
24,
4,
8576,
25962,
300,
36133,
373,
938,
14798,
319,
428,
4436,
8791,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
1... |
When did Collingwood play? | SELECT date FROM table_name_36 WHERE home_team = "collingwood" | [
2215,
750,
7778,
278,
3822,
711,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2623,
33411,
1363,
62,
15097,
796,
366,
26000,
278,
3822,
1
] | [
1,
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,
750,
7778,
278,
3822,
711,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2623,
33411,
1363,
62,
15097,
796,
366,
26000,
278,
3822,
1
] |
What place was Mark Carnevale in? | SELECT place FROM table_name_32 WHERE player = "mark carnevale" | [
2061,
1295,
373,
2940,
1879,
710,
41161,
287,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
2624,
33411,
2137,
796,
366,
4102,
1097,
710,
41161,
1
] | [
1,
1,
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,
1295,
373,
2940,
1879,
710,
41161,
287,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
2624,
33411,
2137,
796,
366,
4102,
1097,
710,
41161,
1
] |
What is the player who is lb and cfl team is saskatchewan roughriders? | SELECT "Player" FROM table_16406 WHERE "Position" = 'LB' AND "CFL Team" = 'Saskatchewan Roughriders' | [
2061,
318,
262,
2137,
508,
318,
18360,
290,
269,
2704,
1074,
318,
264,
2093,
29736,
5210,
81,
4157,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
1433,
29703,
33411,
366,
26545,
1,
796,
705,
30501,
6,
5357,
366,
34,
3697,
4816,
1,
796,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2137,
508,
318,
18360,
290,
269,
2704,
1074,
318,
264,
2093,
29736,
5210,
81,
4157,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
1433,
29703,
33411,
366,
26545,
1,
796,
705,
30501,
6,
5357,
366,
34,
3697,
4816,
1,
796,... |
how many times has this racer finished below 20th position ? | SELECT COUNT(*) FROM table_204_798 WHERE "position" > 20 | [
4919,
867,
1661,
468,
428,
48233,
5201,
2174,
1160,
400,
2292,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
43240,
33411,
366,
9150,
1,
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
] | [
4919,
867,
1661,
468,
428,
48233,
5201,
2174,
1160,
400,
2292,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
43240,
33411,
366,
9150,
1,
1875,
1160
] |
What are the number of the names of all the playlists?, display by the x-axis from high to low please. | SELECT name, COUNT(name) FROM playlists GROUP BY name ORDER BY name DESC | [
2061,
389,
262,
1271,
286,
262,
3891,
286,
477,
262,
711,
20713,
21747,
3359,
416,
262,
2124,
12,
22704,
422,
1029,
284,
1877,
3387,
13,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
711,
20713,
44441,
11050,
1438,
38678,
11050,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
262,
3891,
286,
477,
262,
711,
20713,
21747,
3359,
416,
262,
2124,
12,
22704,
422,
1029,
284,
1877,
3387,
13,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
711,
20713,
44441,
11050,
1438,
38678,
11050,
143... |
What is Episode, when Jeremy's Guest is 'Pauline McLynn'? | SELECT "Episode" FROM table_76326 WHERE "Jeremy's guest" = 'pauline mclynn' | [
2061,
318,
7922,
11,
618,
11753,
338,
22358,
318,
705,
12041,
500,
18365,
2047,
77,
30960,
46506,
366,
23758,
1,
16034,
3084,
62,
4304,
39195,
33411,
366,
35623,
338,
8319,
1,
796,
705,
79,
2518,
500,
36650,
12935,
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,
7922,
11,
618,
11753,
338,
22358,
318,
705,
12041,
500,
18365,
2047,
77,
30960,
46506,
366,
23758,
1,
16034,
3084,
62,
4304,
39195,
33411,
366,
35623,
338,
8319,
1,
796,
705,
79,
2518,
500,
36650,
12935,
6
] |
For the Year 2013 what building(s) had less than 20 Floors? | SELECT building FROM table_name_13 WHERE year = "2013" AND floors < 20 | [
1890,
262,
6280,
2211,
644,
2615,
7,
82,
8,
550,
1342,
621,
1160,
29075,
669,
30,
46506,
2615,
16034,
3084,
62,
3672,
62,
1485,
33411,
614,
796,
366,
6390,
1,
5357,
18570,
1279,
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
] | [
1890,
262,
6280,
2211,
644,
2615,
7,
82,
8,
550,
1342,
621,
1160,
29075,
669,
30,
46506,
2615,
16034,
3084,
62,
3672,
62,
1485,
33411,
614,
796,
366,
6390,
1,
5357,
18570,
1279,
1160
] |
Name the rufus guest for 15 december 2008 | SELECT COUNT("Rufus guest") FROM table_23435 WHERE "First broadcast" = '15 December 2008' | [
5376,
262,
374,
3046,
385,
8319,
329,
1315,
390,
3273,
3648,
46506,
327,
28270,
7203,
49,
3046,
385,
8319,
4943,
16034,
3084,
62,
24409,
2327,
33411,
366,
5962,
7025,
1,
796,
705,
1314,
3426,
3648,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
374,
3046,
385,
8319,
329,
1315,
390,
3273,
3648,
46506,
327,
28270,
7203,
49,
3046,
385,
8319,
4943,
16034,
3084,
62,
24409,
2327,
33411,
366,
5962,
7025,
1,
796,
705,
1314,
3426,
3648,
6
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of hire_date and the average of manager_id bin hire_date by weekday, and show in descending by the y axis. | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(MANAGER_ID) DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
4706,
62,
312,
9874,
11078,
62,
4475,
416,
2826... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
4706,
62,
312,
9874,
11078,
62,
4475,
416,
2826... |
On week 7, what were the opponents? | SELECT "Opponent" FROM table_27615 WHERE "Week" = '7' | [
2202,
1285,
767,
11,
644,
547,
262,
7691,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
27988,
1314,
33411,
366,
20916,
1,
796,
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
] | [
2202,
1285,
767,
11,
644,
547,
262,
7691,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
27988,
1314,
33411,
366,
20916,
1,
796,
705,
22,
6
] |
provide the number of patients whose diagnoses short title is hx tia/stroke w/o resid and drug name is warfarin? | 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 = "Hx TIA/stroke w/o resid" AND prescriptions.drug = "Warfarin" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
289,
87,
256,
544,
14,
30757,
266,
14,
78,
15384,
290,
2563,
1438,
318,
1175,
16370,
259,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
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... | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
289,
87,
256,
544,
14,
30757,
266,
14,
78,
15384,
290,
2563,
1438,
318,
1175,
16370,
259,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
... |
What is the Name of the dinosaur, whose notes are, 'n ornithischia of uncertain placement'? | SELECT "Name" FROM table_75801 WHERE "Notes" = 'n ornithischia of uncertain placement' | [
2061,
318,
262,
6530,
286,
262,
28257,
11,
3025,
4710,
389,
11,
705,
77,
25322,
342,
25308,
544,
286,
8627,
13127,
30960,
46506,
366,
5376,
1,
16034,
3084,
62,
38569,
486,
33411,
366,
16130,
1,
796,
705,
77,
25322,
342,
25308,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
6530,
286,
262,
28257,
11,
3025,
4710,
389,
11,
705,
77,
25322,
342,
25308,
544,
286,
8627,
13127,
30960,
46506,
366,
5376,
1,
16034,
3084,
62,
38569,
486,
33411,
366,
16130,
1,
796,
705,
77,
25322,
342,
25308,
544,
... |
What's the Score for the Game of 75? | SELECT score FROM table_name_74 WHERE game = 75 | [
2061,
338,
262,
15178,
329,
262,
3776,
286,
5441,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4524,
33411,
983,
796,
5441
] | [
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,
15178,
329,
262,
3776,
286,
5441,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4524,
33411,
983,
796,
5441
] |
Name the number of position for democratic republic of the congo | SELECT COUNT("Position") FROM table_26941 WHERE "Nationality\u00b2" = 'Democratic Republic of the Congo' | [
5376,
262,
1271,
286,
2292,
329,
10518,
17146,
286,
262,
369,
2188,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
26276,
3901,
33411,
366,
16186,
414,
59,
84,
405,
65,
17,
1,
796,
705,
33939,
2066,
286,
262,
25935,
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
] | [
5376,
262,
1271,
286,
2292,
329,
10518,
17146,
286,
262,
369,
2188,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
26276,
3901,
33411,
366,
16186,
414,
59,
84,
405,
65,
17,
1,
796,
705,
33939,
2066,
286,
262,
25935,
6
] |
What is the lowest #? | SELECT MIN(_number) FROM table_11964047_10 | [
2061,
318,
262,
9016,
1303,
30,
46506,
20625,
28264,
17618,
8,
16034,
3084,
62,
16315,
31102,
2857,
62,
940
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
1303,
30,
46506,
20625,
28264,
17618,
8,
16034,
3084,
62,
16315,
31102,
2857,
62,
940
] |
List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement. | SELECT T1.claim_id, T1.date_claim_made, T1.date_claim_settled FROM claims AS T1 JOIN settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id HAVING COUNT(*) = 1 | [
8053,
262,
3128,
262,
1624,
373,
925,
11,
262,
3128,
340,
373,
10282,
290,
262,
2033,
10282,
329,
477,
262,
3667,
543,
550,
3446,
530,
9443,
13,
46506,
309,
16,
13,
6604,
62,
312,
11,
309,
16,
13,
4475,
62,
6604,
62,
9727,
11,
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... | [
8053,
262,
3128,
262,
1624,
373,
925,
11,
262,
3128,
340,
373,
10282,
290,
262,
2033,
10282,
329,
477,
262,
3667,
543,
550,
3446,
530,
9443,
13,
46506,
309,
16,
13,
6604,
62,
312,
11,
309,
16,
13,
4475,
62,
6604,
62,
9727,
11,
3... |
What's the title of the episode that Rob Heyland wrote? | SELECT title FROM table_14330096_3 WHERE writer = "Rob Heyland" | [
2061,
338,
262,
3670,
286,
262,
4471,
326,
3851,
14690,
1044,
2630,
30,
46506,
3670,
16034,
3084,
62,
1415,
2091,
405,
4846,
62,
18,
33411,
6260,
796,
366,
14350,
14690,
1044,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
3670,
286,
262,
4471,
326,
3851,
14690,
1044,
2630,
30,
46506,
3670,
16034,
3084,
62,
1415,
2091,
405,
4846,
62,
18,
33411,
6260,
796,
366,
14350,
14690,
1044,
1
] |
how much does antihypertensive drug - beta blocker cost. | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'treatment' AND cost.eventid IN (SELECT treatment.treatmentid FROM treatment WHERE treatment.treatmentname = 'antihypertensive drug - beta blocker') | [
4919,
881,
857,
3098,
12114,
11766,
2021,
2563,
532,
12159,
38731,
1575,
13,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
42487,
6,
5357,
1575,
13,
15596,
312,
3268,
357,
46506,
351... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
881,
857,
3098,
12114,
11766,
2021,
2563,
532,
12159,
38731,
1575,
13,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
42487,
6,
5357,
1575,
13,
15596,
312,
3268,
357,
46506,
351... |
Which people had the best 10-year period when Capablanca had the best 15-year period? | SELECT "best 10-year period" FROM table_21314 WHERE "best 15-year period" = 'Capablanca' | [
13828,
661,
550,
262,
1266,
838,
12,
1941,
2278,
618,
4476,
23117,
42124,
550,
262,
1266,
1315,
12,
1941,
2278,
30,
46506,
366,
13466,
838,
12,
1941,
2278,
1,
16034,
3084,
62,
26427,
1415,
33411,
366,
13466,
1315,
12,
1941,
2278,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
661,
550,
262,
1266,
838,
12,
1941,
2278,
618,
4476,
23117,
42124,
550,
262,
1266,
1315,
12,
1941,
2278,
30,
46506,
366,
13466,
838,
12,
1941,
2278,
1,
16034,
3084,
62,
26427,
1415,
33411,
366,
13466,
1315,
12,
1941,
2278,
1,
... |
What is the Name of the swimmer with a Time of 9:04.86 in Heat 2? | SELECT "Name" FROM table_63682 WHERE "Heat" = '2' AND "Time" = '9:04.86' | [
2061,
318,
262,
6530,
286,
262,
9422,
647,
351,
257,
3862,
286,
860,
25,
3023,
13,
4521,
287,
12308,
362,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
21,
2623,
6469,
33411,
366,
39596,
1,
796,
705,
17,
6,
5357,
366,
7575,
1,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
6530,
286,
262,
9422,
647,
351,
257,
3862,
286,
860,
25,
3023,
13,
4521,
287,
12308,
362,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
21,
2623,
6469,
33411,
366,
39596,
1,
796,
705,
17,
6,
5357,
366,
7575,
1,
796,
... |
What is the sum of games for a record of 33-13-3? | SELECT SUM("Game") FROM table_5514 WHERE "Record" = '33-13-3' | [
2061,
318,
262,
2160,
286,
1830,
329,
257,
1700,
286,
4747,
12,
1485,
12,
18,
30,
46506,
35683,
7203,
8777,
4943,
16034,
3084,
62,
2816,
1415,
33411,
366,
23739,
1,
796,
705,
2091,
12,
1485,
12,
18,
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,
262,
2160,
286,
1830,
329,
257,
1700,
286,
4747,
12,
1485,
12,
18,
30,
46506,
35683,
7203,
8777,
4943,
16034,
3084,
62,
2816,
1415,
33411,
366,
23739,
1,
796,
705,
2091,
12,
1485,
12,
18,
6
] |
Which surface has a Date of 22 august 2006? | SELECT "Surface" FROM table_52750 WHERE "Date" = '22 august 2006' | [
13828,
4417,
468,
257,
7536,
286,
2534,
16339,
436,
4793,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
20,
1983,
1120,
33411,
366,
10430,
1,
796,
705,
1828,
16339,
436,
4793,
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,
4417,
468,
257,
7536,
286,
2534,
16339,
436,
4793,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
20,
1983,
1120,
33411,
366,
10430,
1,
796,
705,
1828,
16339,
436,
4793,
6
] |
What title has daffy (as duck dodgers) as the character? | SELECT "Title" FROM table_62788 WHERE "Characters" = 'daffy (as duck dodgers)' | [
2061,
3670,
468,
288,
2001,
88,
357,
292,
22045,
20764,
5355,
8,
355,
262,
2095,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
49856,
3459,
33411,
366,
48393,
1,
796,
705,
67,
2001,
88,
357,
292,
22045,
20764,
5355,
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
] | [
2061,
3670,
468,
288,
2001,
88,
357,
292,
22045,
20764,
5355,
8,
355,
262,
2095,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
49856,
3459,
33411,
366,
48393,
1,
796,
705,
67,
2001,
88,
357,
292,
22045,
20764,
5355,
33047
] |
were there any results of microbiological tests on patient 031-3507's stool? | SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3507')) AND microlab.culturesite = 'stool' | [
22474,
612,
597,
2482,
286,
24559,
2770,
5254,
319,
5827,
657,
3132,
12,
14877,
22,
338,
38753,
30,
46506,
327,
28270,
7,
28104,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
22474,
612,
597,
2482,
286,
24559,
2770,
5254,
319,
5827,
657,
3132,
12,
14877,
22,
338,
38753,
30,
46506,
327,
28270,
7,
28104,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20... |
When was it where 65 Australians were involved in the UN? | SELECT dates_of_australian_involvement FROM table_10121127_1 WHERE number_of_australians_involved = "65" | [
2215,
373,
340,
810,
6135,
24933,
547,
2950,
287,
262,
4725,
30,
46506,
9667,
62,
1659,
62,
64,
436,
1373,
666,
62,
16340,
6442,
434,
16034,
3084,
62,
8784,
2481,
16799,
62,
16,
33411,
1271,
62,
1659,
62,
64,
436,
1373,
1547,
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
] | [
2215,
373,
340,
810,
6135,
24933,
547,
2950,
287,
262,
4725,
30,
46506,
9667,
62,
1659,
62,
64,
436,
1373,
666,
62,
16340,
6442,
434,
16034,
3084,
62,
8784,
2481,
16799,
62,
16,
33411,
1271,
62,
1659,
62,
64,
436,
1373,
1547,
62,
... |
What is the total of quantity rebuilt if the type is 1B N2T and the railway number is 88, 118? | SELECT COUNT(quantity_rebuilt) FROM table_name_4 WHERE type = "1b n2t" AND railway_number_s_ = "88, 118" | [
2061,
318,
262,
2472,
286,
12040,
30080,
611,
262,
2099,
318,
352,
33,
399,
17,
51,
290,
262,
20515,
1271,
318,
9193,
11,
19035,
30,
46506,
327,
28270,
7,
40972,
414,
62,
260,
18780,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
2099,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12040,
30080,
611,
262,
2099,
318,
352,
33,
399,
17,
51,
290,
262,
20515,
1271,
318,
9193,
11,
19035,
30,
46506,
327,
28270,
7,
40972,
414,
62,
260,
18780,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
2099,
... |
Who directed the episode that had 6.76 million U.S. viewers? | SELECT directed_by FROM table_23242968_1 WHERE us_viewers__millions_ = "6.76" | [
8241,
7924,
262,
4471,
326,
550,
718,
13,
4304,
1510,
471,
13,
50,
13,
10209,
30,
46506,
7924,
62,
1525,
16034,
3084,
62,
1954,
1731,
1959,
3104,
62,
16,
33411,
514,
62,
1177,
364,
834,
17805,
507,
62,
796,
366,
21,
13,
4304,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7924,
262,
4471,
326,
550,
718,
13,
4304,
1510,
471,
13,
50,
13,
10209,
30,
46506,
7924,
62,
1525,
16034,
3084,
62,
1954,
1731,
1959,
3104,
62,
16,
33411,
514,
62,
1177,
364,
834,
17805,
507,
62,
796,
366,
21,
13,
4304,
1
] |
When did the comic which came out in 1982 end? | SELECT "Last Year" FROM table_55142 WHERE "First Year" = '1982' | [
2215,
750,
262,
9048,
543,
1625,
503,
287,
14489,
886,
30,
46506,
366,
5956,
6280,
1,
16034,
3084,
62,
2816,
23726,
33411,
366,
5962,
6280,
1,
796,
705,
30763,
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
] | [
2215,
750,
262,
9048,
543,
1625,
503,
287,
14489,
886,
30,
46506,
366,
5956,
6280,
1,
16034,
3084,
62,
2816,
23726,
33411,
366,
5962,
6280,
1,
796,
705,
30763,
6
] |
How many Wisconsin school districts receive federal funding? | SELECT COUNT(*) FROM finrev_fed_17 WHERE school_district LIKE "%Wisconsin%" | [
2437,
867,
9279,
1524,
12815,
3328,
2717,
4918,
30,
46506,
327,
28270,
7,
28104,
16034,
957,
18218,
62,
19082,
62,
1558,
33411,
1524,
62,
17080,
2012,
34178,
36521,
49097,
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
] | [
2437,
867,
9279,
1524,
12815,
3328,
2717,
4918,
30,
46506,
327,
28270,
7,
28104,
16034,
957,
18218,
62,
19082,
62,
1558,
33411,
1524,
62,
17080,
2012,
34178,
36521,
49097,
39658
] |
What event did Soares fight against josh spearman? | SELECT event FROM table_name_69 WHERE opponent = "josh spearman" | [
2061,
1785,
750,
1406,
3565,
1907,
1028,
474,
3768,
17514,
805,
30,
46506,
1785,
16034,
3084,
62,
3672,
62,
3388,
33411,
6125,
796,
366,
73,
3768,
17514,
805,
1
] | [
1,
1,
1,
1,
1,
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,
1785,
750,
1406,
3565,
1907,
1028,
474,
3768,
17514,
805,
30,
46506,
1785,
16034,
3084,
62,
3672,
62,
3388,
33411,
6125,
796,
366,
73,
3768,
17514,
805,
1
] |
How many different kickoffs happened when the opponent was the Scottish Claymores | SELECT COUNT(kickoff) FROM table_26275503_2 WHERE opponent = "Scottish Claymores" | [
2437,
867,
1180,
4829,
8210,
3022,
618,
262,
6125,
373,
262,
11905,
15551,
76,
2850,
46506,
327,
28270,
7,
24585,
2364,
8,
16034,
3084,
62,
2075,
1983,
22730,
18,
62,
17,
33411,
6125,
796,
366,
19040,
680,
15551,
76,
2850,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4829,
8210,
3022,
618,
262,
6125,
373,
262,
11905,
15551,
76,
2850,
46506,
327,
28270,
7,
24585,
2364,
8,
16034,
3084,
62,
2075,
1983,
22730,
18,
62,
17,
33411,
6125,
796,
366,
19040,
680,
15551,
76,
2850,
1
] |
Who is the Opponent on December 7, 2003? | SELECT opponent FROM table_name_22 WHERE date = "december 7, 2003" | [
8241,
318,
262,
9385,
3471,
319,
3426,
767,
11,
5816,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
1828,
33411,
3128,
796,
366,
2934,
3273,
767,
11,
5816,
1
] | [
1,
1,
1,
1,
1,
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,
9385,
3471,
319,
3426,
767,
11,
5816,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
1828,
33411,
3128,
796,
366,
2934,
3273,
767,
11,
5816,
1
] |
stimulated or basal c _ peptide > 0.3 ng / ml. | SELECT * FROM table_train_239 WHERE stimulated = 1 OR basal_c_peptide > 0.3 | [
42003,
4817,
393,
41202,
269,
4808,
34337,
485,
1875,
657,
13,
18,
23370,
1220,
25962,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
23516,
33411,
40216,
796,
352,
6375,
41202,
62,
66,
62,
431,
457,
485,
1875,
657,
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
] | [
42003,
4817,
393,
41202,
269,
4808,
34337,
485,
1875,
657,
13,
18,
23370,
1220,
25962,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
23516,
33411,
40216,
796,
352,
6375,
41202,
62,
66,
62,
431,
457,
485,
1875,
657,
13,
18
] |
Show how many delegates in each party with a pie chart. | SELECT T2.Party, COUNT(T2.Party) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party | [
15307,
703,
867,
15265,
287,
1123,
2151,
351,
257,
2508,
8262,
13,
46506,
309,
17,
13,
33553,
11,
327,
28270,
7,
51,
17,
13,
33553,
8,
16034,
3071,
7054,
309,
16,
32357,
1268,
2151,
7054,
309,
17,
6177,
309,
16,
13,
33553,
796,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
703,
867,
15265,
287,
1123,
2151,
351,
257,
2508,
8262,
13,
46506,
309,
17,
13,
33553,
11,
327,
28270,
7,
51,
17,
13,
33553,
8,
16034,
3071,
7054,
309,
16,
32357,
1268,
2151,
7054,
309,
17,
6177,
309,
16,
13,
33553,
796,
30... |
Who were the developers for Portal? | SELECT "Developer(s)" FROM table_63847 WHERE "Game" = 'portal' | [
8241,
547,
262,
6505,
329,
25663,
30,
46506,
366,
45351,
7,
82,
16725,
16034,
3084,
62,
21,
2548,
2857,
33411,
366,
8777,
1,
796,
705,
634,
282,
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
] | [
8241,
547,
262,
6505,
329,
25663,
30,
46506,
366,
45351,
7,
82,
16725,
16034,
3084,
62,
21,
2548,
2857,
33411,
366,
8777,
1,
796,
705,
634,
282,
6
] |
Find all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona. | SELECT address_content FROM addresses WHERE city = "East Julianaside" AND state_province_county = "Texas" UNION SELECT address_content FROM addresses WHERE city = "Gleasonmouth" AND state_province_county = "Arizona" | [
16742,
477,
262,
9405,
287,
3687,
18322,
292,
485,
11,
3936,
393,
287,
25680,
888,
14775,
11,
7943,
13,
46506,
2209,
62,
11299,
16034,
9405,
33411,
1748,
796,
366,
25234,
18322,
292,
485,
1,
5357,
1181,
62,
15234,
924,
62,
9127,
88,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9405,
287,
3687,
18322,
292,
485,
11,
3936,
393,
287,
25680,
888,
14775,
11,
7943,
13,
46506,
2209,
62,
11299,
16034,
9405,
33411,
1748,
796,
366,
25234,
18322,
292,
485,
1,
5357,
1181,
62,
15234,
924,
62,
9127,
88,
... |
how many patients whose admission type is newborn and drug route is po/ng? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "NEWBORN" AND prescriptions.route = "PO/NG" | [
4919,
867,
3871,
3025,
13938,
2099,
318,
23856,
290,
2563,
6339,
318,
745,
14,
782,
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,
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... | [
4919,
867,
3871,
3025,
13938,
2099,
318,
23856,
290,
2563,
6339,
318,
745,
14,
782,
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,
7... |
since 6 years ago how many patients were prescribed fentanyl in the same hospital visit after receiving therapeutic antibacterials - third generation cephalosporin treatment? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'therapeutic antibacterials - third generation cephalosporin' AND DATETIME... | [
20777,
718,
812,
2084,
703,
867,
3871,
547,
14798,
47804,
287,
262,
976,
4436,
3187,
706,
6464,
21546,
11310,
7321,
8231,
532,
2368,
5270,
269,
538,
14201,
418,
1819,
259,
3513,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
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... | [
20777,
718,
812,
2084,
703,
867,
3871,
547,
14798,
47804,
287,
262,
976,
4436,
3187,
706,
6464,
21546,
11310,
7321,
8231,
532,
2368,
5270,
269,
538,
14201,
418,
1819,
259,
3513,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,... |
What place is the player from the United States with a to par of e? | SELECT "Place" FROM table_9916 WHERE "Country" = 'united states' AND "To par" = 'e' | [
2061,
1295,
318,
262,
2137,
422,
262,
1578,
1829,
351,
257,
284,
1582,
286,
304,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
2079,
1433,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6,
5357,
366,
2514,
1582,
1,
796,
705,
68,
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
] | [
2061,
1295,
318,
262,
2137,
422,
262,
1578,
1829,
351,
257,
284,
1582,
286,
304,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
2079,
1433,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6,
5357,
366,
2514,
1582,
1,
796,
705,
68,
6
] |
Who did the Chiefs play in Week 8? | SELECT opponent FROM table_name_30 WHERE week = 8 | [
8241,
750,
262,
18733,
711,
287,
6119,
807,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
1270,
33411,
1285,
796,
807
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
750,
262,
18733,
711,
287,
6119,
807,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
1270,
33411,
1285,
796,
807
] |
tell me the three most frequent surgeries that patients received during the same month after having had a sedative agent - lorazepam procedure last year? | SELECT t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'sedative agent - lorazepam' AND DATETIME... | [
33331,
502,
262,
1115,
749,
10792,
33624,
326,
3871,
2722,
1141,
262,
976,
1227,
706,
1719,
550,
257,
10081,
876,
5797,
532,
300,
273,
1031,
538,
321,
8771,
938,
614,
30,
46506,
256,
18,
13,
42487,
3672,
16034,
357,
46506,
256,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
262,
1115,
749,
10792,
33624,
326,
3871,
2722,
1141,
262,
976,
1227,
706,
1719,
550,
257,
10081,
876,
5797,
532,
300,
273,
1031,
538,
321,
8771,
938,
614,
30,
46506,
256,
18,
13,
42487,
3672,
16034,
357,
46506,
256,
17,
... |
what is the name of the only reservoir in the kannur district ? | SELECT "river" FROM table_204_851 WHERE "district" = 'kannur' | [
10919,
318,
262,
1438,
286,
262,
691,
22115,
287,
262,
479,
1236,
333,
4783,
5633,
46506,
366,
38291,
1,
16034,
3084,
62,
18638,
62,
23,
4349,
33411,
366,
17080,
2012,
1,
796,
705,
74,
1236,
333,
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
] | [
10919,
318,
262,
1438,
286,
262,
691,
22115,
287,
262,
479,
1236,
333,
4783,
5633,
46506,
366,
38291,
1,
16034,
3084,
62,
18638,
62,
23,
4349,
33411,
366,
17080,
2012,
1,
796,
705,
74,
1236,
333,
6
] |
what patient 011-31229's age is in their first hospital visit? | SELECT patient.age FROM patient WHERE patient.uniquepid = '011-31229' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1 | [
10919,
5827,
5534,
16,
12,
27970,
1959,
338,
2479,
318,
287,
511,
717,
4436,
3187,
30,
46506,
5827,
13,
496,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28555,
12,
27970,
1959,
6,
5357,
5626,
5827,
13,
49257,
6381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
5534,
16,
12,
27970,
1959,
338,
2479,
318,
287,
511,
717,
4436,
3187,
30,
46506,
5827,
13,
496,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28555,
12,
27970,
1959,
6,
5357,
5626,
5827,
13,
49257,
6381,
... |
Which institution has the most papers? Find the name of the institution. | SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY COUNT(*) DESC LIMIT 1 | [
13828,
9901,
468,
262,
749,
9473,
30,
9938,
262,
1438,
286,
262,
9901,
13,
46506,
256,
16,
13,
3672,
16034,
916,
7054,
256,
16,
32357,
1268,
7035,
1056,
7054,
256,
17,
6177,
256,
16,
13,
8625,
312,
796,
256,
17,
13,
8625,
312,
323... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9901,
468,
262,
749,
9473,
30,
9938,
262,
1438,
286,
262,
9901,
13,
46506,
256,
16,
13,
3672,
16034,
916,
7054,
256,
16,
32357,
1268,
7035,
1056,
7054,
256,
17,
6177,
256,
16,
13,
8625,
312,
796,
256,
17,
13,
8625,
312,
323... |
what is the highest number of draws for sveikata kybartai | SELECT MAX(draws) FROM table_16034882_3 WHERE club = "Sveikata Kybartai" | [
10919,
318,
262,
4511,
1271,
286,
14293,
329,
264,
303,
1134,
1045,
479,
88,
16575,
1872,
46506,
25882,
7,
19334,
82,
8,
16034,
3084,
62,
14198,
2682,
42980,
62,
18,
33411,
3430,
796,
366,
50,
303,
1134,
1045,
11118,
16575,
1872,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4511,
1271,
286,
14293,
329,
264,
303,
1134,
1045,
479,
88,
16575,
1872,
46506,
25882,
7,
19334,
82,
8,
16034,
3084,
62,
14198,
2682,
42980,
62,
18,
33411,
3430,
796,
366,
50,
303,
1134,
1045,
11118,
16575,
1872,
1
] |
How many companies each investor has invested? Show me a bar chart. | SELECT Investor, COUNT(Investor) FROM entrepreneur GROUP BY Investor | [
2437,
867,
2706,
1123,
15811,
468,
13356,
30,
5438,
502,
257,
2318,
8262,
13,
46506,
47979,
11,
327,
28270,
7,
19070,
273,
8,
16034,
19500,
44441,
11050,
47979
] | [
1,
1,
1,
1,
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,
2706,
1123,
15811,
468,
13356,
30,
5438,
502,
257,
2318,
8262,
13,
46506,
47979,
11,
327,
28270,
7,
19070,
273,
8,
16034,
19500,
44441,
11050,
47979
] |
What is the party affiliation of Thomas D. Waterman, whose appointing governor is Terry Branstad? | SELECT "Governor's Party Affiliation" FROM table_11791 WHERE "Appointing Governor" = 'terry branstad' AND "Name" = 'thomas d. waterman' | [
2061,
318,
262,
2151,
26218,
286,
5658,
360,
13,
5638,
805,
11,
3025,
47680,
8153,
318,
14286,
33628,
24107,
30,
46506,
366,
29168,
273,
338,
3615,
6708,
15547,
1,
16034,
3084,
62,
1157,
3720,
16,
33411,
366,
4677,
1563,
278,
10807,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2151,
26218,
286,
5658,
360,
13,
5638,
805,
11,
3025,
47680,
8153,
318,
14286,
33628,
24107,
30,
46506,
366,
29168,
273,
338,
3615,
6708,
15547,
1,
16034,
3084,
62,
1157,
3720,
16,
33411,
366,
4677,
1563,
278,
10807,
1... |
Which tournament has a hard surface and final opponents rohan bopanna & mustafa ghouse? | SELECT tournament FROM table_name_19 WHERE surface = "hard" AND opponents_in_the_final = "rohan bopanna & mustafa ghouse" | [
13828,
7756,
468,
257,
1327,
4417,
290,
2457,
7691,
686,
7637,
275,
404,
7697,
1222,
1276,
28485,
308,
4803,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
1129,
33411,
4417,
796,
366,
10424,
1,
5357,
7691,
62,
259,
62,
1169,
62,
20311,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7756,
468,
257,
1327,
4417,
290,
2457,
7691,
686,
7637,
275,
404,
7697,
1222,
1276,
28485,
308,
4803,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
1129,
33411,
4417,
796,
366,
10424,
1,
5357,
7691,
62,
259,
62,
1169,
62,
20311,
... |
Users above 1k rep, sorted by highest rep. | SELECT u.DisplayName, u.Reputation, a.AnswersCount, u.Reputation / a.AnswersCount AS RepPerAnswer FROM Users AS u JOIN (SELECT COUNT(1) AS AnswersCount, OwnerUserId FROM Posts WHERE PostTypeId = 2 GROUP BY OwnerUserId) AS a ON u.Id = a.OwnerUserId WHERE u.Reputation > 1000 ORDER BY u.Reputation DESC | [
14490,
2029,
352,
74,
1128,
11,
23243,
416,
4511,
1128,
13,
46506,
334,
13,
23114,
5376,
11,
334,
13,
6207,
7094,
11,
257,
13,
2025,
37848,
12332,
11,
334,
13,
6207,
7094,
1220,
257,
13,
2025,
37848,
12332,
7054,
1432,
5990,
33706,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14490,
2029,
352,
74,
1128,
11,
23243,
416,
4511,
1128,
13,
46506,
334,
13,
23114,
5376,
11,
334,
13,
6207,
7094,
11,
257,
13,
2025,
37848,
12332,
11,
334,
13,
6207,
7094,
1220,
257,
13,
2025,
37848,
12332,
7054,
1432,
5990,
33706,
... |
What is every rider on Monday August 24 at 21' 12.02 106.781mph? | SELECT rider FROM table_23465864_5 WHERE mon_24_aug = "21' 12.02 106.781mph" | [
2061,
318,
790,
17876,
319,
3321,
2932,
1987,
379,
2310,
6,
1105,
13,
2999,
15696,
13,
49703,
23335,
30,
46506,
17876,
16034,
3084,
62,
24409,
38431,
2414,
62,
20,
33411,
937,
62,
1731,
62,
7493,
796,
366,
2481,
6,
1105,
13,
2999,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
790,
17876,
319,
3321,
2932,
1987,
379,
2310,
6,
1105,
13,
2999,
15696,
13,
49703,
23335,
30,
46506,
17876,
16034,
3084,
62,
24409,
38431,
2414,
62,
20,
33411,
937,
62,
1731,
62,
7493,
796,
366,
2481,
6,
1105,
13,
2999,
1... |
provide the number of patients whose procedure icd9 code is 3607? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "3607" | [
15234,
485,
262,
1271,
286,
3871,
3025,
8771,
14158,
67,
24,
2438,
318,
11470,
22,
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... | [
15234,
485,
262,
1271,
286,
3871,
3025,
8771,
14158,
67,
24,
2438,
318,
11470,
22,
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,... |
What is the average rank for a building with 24 floors? | SELECT AVG("Rank") FROM table_71946 WHERE "Floors" = '24' | [
2061,
318,
262,
2811,
4279,
329,
257,
2615,
351,
1987,
18570,
30,
46506,
35224,
7203,
27520,
4943,
16034,
3084,
62,
22,
1129,
3510,
33411,
366,
33574,
669,
1,
796,
705,
1731,
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,
2811,
4279,
329,
257,
2615,
351,
1987,
18570,
30,
46506,
35224,
7203,
27520,
4943,
16034,
3084,
62,
22,
1129,
3510,
33411,
366,
33574,
669,
1,
796,
705,
1731,
6
] |
What is the attendance on may 28? | SELECT attendance FROM table_name_62 WHERE date = "may 28" | [
2061,
318,
262,
14858,
319,
743,
2579,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
5237,
33411,
3128,
796,
366,
11261,
2579,
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,
14858,
319,
743,
2579,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
5237,
33411,
3128,
796,
366,
11261,
2579,
1
] |
Who is every young rider classification when Jelle Vanendert is the winner? | SELECT young_rider_classification FROM table_25999087_2 WHERE winner = "Jelle Vanendert" | [
8241,
318,
790,
1862,
17876,
17923,
618,
449,
13485,
6656,
437,
861,
318,
262,
8464,
30,
46506,
1862,
62,
49449,
62,
4871,
2649,
16034,
3084,
62,
1495,
17032,
2919,
22,
62,
17,
33411,
8464,
796,
366,
41,
13485,
6656,
437,
861,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
790,
1862,
17876,
17923,
618,
449,
13485,
6656,
437,
861,
318,
262,
8464,
30,
46506,
1862,
62,
49449,
62,
4871,
2649,
16034,
3084,
62,
1495,
17032,
2919,
22,
62,
17,
33411,
8464,
796,
366,
41,
13485,
6656,
437,
861,
1
] |
What classes are offered next Winter for PreMajor ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id WHERE program_cour... | [
2061,
6097,
389,
4438,
1306,
10633,
329,
3771,
24206,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6097,
389,
4438,
1306,
10633,
329,
3771,
24206,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319... |
What is Run 4, when Run 2 is 1:29.00? | SELECT "Run 4" FROM table_10016 WHERE "Run 2" = '1:29.00' | [
2061,
318,
5660,
604,
11,
618,
5660,
362,
318,
352,
25,
1959,
13,
405,
30,
46506,
366,
10987,
604,
1,
16034,
3084,
62,
3064,
1433,
33411,
366,
10987,
362,
1,
796,
705,
16,
25,
1959,
13,
405,
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,
5660,
604,
11,
618,
5660,
362,
318,
352,
25,
1959,
13,
405,
30,
46506,
366,
10987,
604,
1,
16034,
3084,
62,
3064,
1433,
33411,
366,
10987,
362,
1,
796,
705,
16,
25,
1959,
13,
405,
6
] |
Which JAPANESE has a KOREAN of / sanahwasa? | SELECT "JAPANESE" FROM table_6766 WHERE "KOREAN" = '상나화수 / sanahwasa' | [
13828,
449,
2969,
1565,
33635,
468,
257,
509,
6965,
1565,
286,
1220,
5336,
993,
9776,
64,
30,
46506,
366,
41,
2969,
1565,
33635,
1,
16034,
3084,
62,
3134,
2791,
33411,
366,
42,
6965,
1565,
1,
796,
705,
168,
225,
223,
167,
224,
246,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
449,
2969,
1565,
33635,
468,
257,
509,
6965,
1565,
286,
1220,
5336,
993,
9776,
64,
30,
46506,
366,
41,
2969,
1565,
33635,
1,
16034,
3084,
62,
3134,
2791,
33411,
366,
42,
6965,
1565,
1,
796,
705,
168,
225,
223,
167,
224,
246,
... |
The League Cup of 0 40 0 (6) also has what listed in the Europe column? | SELECT "Europe" FROM table_68720 WHERE "League Cup" = '0 40 0 (6)' | [
464,
4041,
5454,
286,
657,
2319,
657,
357,
21,
8,
635,
468,
644,
5610,
287,
262,
2031,
5721,
30,
46506,
366,
16112,
1,
16034,
3084,
62,
3104,
23906,
33411,
366,
24623,
5454,
1,
796,
705,
15,
2319,
657,
357,
21,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
464,
4041,
5454,
286,
657,
2319,
657,
357,
21,
8,
635,
468,
644,
5610,
287,
262,
2031,
5721,
30,
46506,
366,
16112,
1,
16034,
3084,
62,
3104,
23906,
33411,
366,
24623,
5454,
1,
796,
705,
15,
2319,
657,
357,
21,
33047
] |
how many states have no qualification ? | SELECT COUNT("team") FROM table_204_735 WHERE "qualification" IS NULL | [
4919,
867,
2585,
423,
645,
28587,
5633,
46506,
327,
28270,
7203,
15097,
4943,
16034,
3084,
62,
18638,
62,
22,
2327,
33411,
366,
13255,
2649,
1,
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
] | [
4919,
867,
2585,
423,
645,
28587,
5633,
46506,
327,
28270,
7203,
15097,
4943,
16034,
3084,
62,
18638,
62,
22,
2327,
33411,
366,
13255,
2649,
1,
3180,
15697
] |
tell me the dose of ipratropium bromide that patient 60180 had been prescribed since 05/2104? | SELECT SUM(prescriptions.dose_val_rx) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 60180) AND prescriptions.drug = 'ipratropium bromide' AND STRFTIME('%y-%m', prescriptions.startdate) >= '2104-05' | [
33331,
502,
262,
10742,
286,
20966,
10366,
1773,
1505,
275,
398,
485,
326,
5827,
49231,
1795,
550,
587,
14798,
1201,
8870,
14,
17,
13464,
30,
46506,
35683,
7,
18302,
24370,
13,
34436,
62,
2100,
62,
40914,
8,
16034,
34092,
33411,
34092,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10742,
286,
20966,
10366,
1773,
1505,
275,
398,
485,
326,
5827,
49231,
1795,
550,
587,
14798,
1201,
8870,
14,
17,
13464,
30,
46506,
35683,
7,
18302,
24370,
13,
34436,
62,
2100,
62,
40914,
8,
16034,
34092,
33411,
34092,
... |
Find the name of the train whose route runs through greatest number of stations. | SELECT t1.name FROM train AS t1 JOIN route AS t2 ON t1.id = t2.train_id GROUP BY t2.train_id ORDER BY COUNT(*) DESC LIMIT 1 | [
16742,
262,
1438,
286,
262,
4512,
3025,
6339,
4539,
832,
6000,
1271,
286,
8985,
13,
46506,
256,
16,
13,
3672,
16034,
4512,
7054,
256,
16,
32357,
1268,
6339,
7054,
256,
17,
6177,
256,
16,
13,
312,
796,
256,
17,
13,
27432,
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
] | [
16742,
262,
1438,
286,
262,
4512,
3025,
6339,
4539,
832,
6000,
1271,
286,
8985,
13,
46506,
256,
16,
13,
3672,
16034,
4512,
7054,
256,
16,
32357,
1268,
6339,
7054,
256,
17,
6177,
256,
16,
13,
312,
796,
256,
17,
13,
27432,
62,
312,
... |
Which 1st Party has a 2nd Party of conservative, and a 1st Member of william wither bramston beach? | SELECT "1st Party" FROM table_14763 WHERE "2nd Party" = 'conservative' AND "1st Member" = 'william wither bramston beach' | [
13828,
352,
301,
3615,
468,
257,
362,
358,
3615,
286,
5940,
11,
290,
257,
352,
301,
10239,
286,
481,
1789,
266,
1555,
275,
859,
3743,
10481,
30,
46506,
366,
16,
301,
3615,
1,
16034,
3084,
62,
1415,
49641,
33411,
366,
17,
358,
3615,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
352,
301,
3615,
468,
257,
362,
358,
3615,
286,
5940,
11,
290,
257,
352,
301,
10239,
286,
481,
1789,
266,
1555,
275,
859,
3743,
10481,
30,
46506,
366,
16,
301,
3615,
1,
16034,
3084,
62,
1415,
49641,
33411,
366,
17,
358,
3615,
... |
Which role had thulasidas direction? | SELECT role FROM table_name_55 WHERE direction = "thulasidas" | [
13828,
2597,
550,
294,
25283,
24496,
4571,
30,
46506,
2597,
16034,
3084,
62,
3672,
62,
2816,
33411,
4571,
796,
366,
400,
25283,
24496,
1
] | [
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,
2597,
550,
294,
25283,
24496,
4571,
30,
46506,
2597,
16034,
3084,
62,
3672,
62,
2816,
33411,
4571,
796,
366,
400,
25283,
24496,
1
] |
Who was the Broadway equivalent of Sharon D. Clarke's character? | SELECT "Original Broadway Performer" FROM table_25004 WHERE "Original West End Performer" = 'Sharon D. Clarke' | [
8241,
373,
262,
20617,
7548,
286,
26918,
360,
13,
19635,
338,
2095,
30,
46506,
366,
20556,
20617,
2448,
16354,
1,
16034,
3084,
62,
1495,
22914,
33411,
366,
20556,
2688,
5268,
2448,
16354,
1,
796,
705,
2484,
8045,
360,
13,
19635,
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
] | [
8241,
373,
262,
20617,
7548,
286,
26918,
360,
13,
19635,
338,
2095,
30,
46506,
366,
20556,
20617,
2448,
16354,
1,
16034,
3084,
62,
1495,
22914,
33411,
366,
20556,
2688,
5268,
2448,
16354,
1,
796,
705,
2484,
8045,
360,
13,
19635,
6
] |
What result has a week less than 16, and October 31, 2005 as the date? | SELECT result FROM table_name_25 WHERE week < 16 AND date = "october 31, 2005" | [
2061,
1255,
468,
257,
1285,
1342,
621,
1467,
11,
290,
3267,
3261,
11,
5075,
355,
262,
3128,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
1495,
33411,
1285,
1279,
1467,
5357,
3128,
796,
366,
38441,
2023,
3261,
11,
5075,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1255,
468,
257,
1285,
1342,
621,
1467,
11,
290,
3267,
3261,
11,
5075,
355,
262,
3128,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
1495,
33411,
1285,
1279,
1467,
5357,
3128,
796,
366,
38441,
2023,
3261,
11,
5075,
1
] |
what was the last time that patient 16572 had promote w/fiber taken until 12/31/2101? | SELECT inputevents_cv.charttime FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 16572)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label... | [
10919,
373,
262,
938,
640,
326,
5827,
1467,
48724,
550,
7719,
266,
14,
69,
1856,
2077,
1566,
1105,
14,
3132,
14,
2481,
486,
30,
46506,
287,
79,
1133,
85,
658,
62,
33967,
13,
40926,
2435,
16034,
287,
79,
1133,
85,
658,
62,
33967,
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... | [
10919,
373,
262,
938,
640,
326,
5827,
1467,
48724,
550,
7719,
266,
14,
69,
1856,
2077,
1566,
1105,
14,
3132,
14,
2481,
486,
30,
46506,
287,
79,
1133,
85,
658,
62,
33967,
13,
40926,
2435,
16034,
287,
79,
1133,
85,
658,
62,
33967,
3... |
how much fluticasone propionate 110mcg was prescribed to patient 71558 in total since 12/2105? | SELECT SUM(prescriptions.dose_val_rx) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 71558) AND prescriptions.drug = 'fluticasone propionate 110mcg' AND STRFTIME('%y-%m', prescriptions.startdate) >= '2105-12' | [
4919,
881,
781,
18089,
292,
505,
2632,
295,
378,
9796,
23209,
70,
373,
14798,
284,
5827,
767,
1314,
3365,
287,
2472,
1201,
1105,
14,
17,
13348,
30,
46506,
35683,
7,
18302,
24370,
13,
34436,
62,
2100,
62,
40914,
8,
16034,
34092,
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,
1... | [
4919,
881,
781,
18089,
292,
505,
2632,
295,
378,
9796,
23209,
70,
373,
14798,
284,
5827,
767,
1314,
3365,
287,
2472,
1201,
1105,
14,
17,
13348,
30,
46506,
35683,
7,
18302,
24370,
13,
34436,
62,
2100,
62,
40914,
8,
16034,
34092,
33411,... |
Name the location of 64-74 | SELECT "Location/Attendance" FROM table_21308 WHERE "Score" = '64-74' | [
5376,
262,
4067,
286,
5598,
12,
4524,
46506,
366,
14749,
14,
8086,
437,
590,
1,
16034,
3084,
62,
2481,
21495,
33411,
366,
26595,
1,
796,
705,
2414,
12,
4524,
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,
4067,
286,
5598,
12,
4524,
46506,
366,
14749,
14,
8086,
437,
590,
1,
16034,
3084,
62,
2481,
21495,
33411,
366,
26595,
1,
796,
705,
2414,
12,
4524,
6
] |
On what date was a game played at Windy Hill? | SELECT date FROM table_name_6 WHERE venue = "windy hill" | [
2202,
644,
3128,
373,
257,
983,
2826,
379,
3086,
88,
3327,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
21,
33411,
14359,
796,
366,
7972,
88,
12788,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
3128,
373,
257,
983,
2826,
379,
3086,
88,
3327,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
21,
33411,
14359,
796,
366,
7972,
88,
12788,
1
] |
How many Laps with a Grid smaller than 3 did Driver NIki Lauda have? | SELECT AVG("Laps") FROM table_52759 WHERE "Driver" = 'niki lauda' AND "Grid" < '3' | [
2437,
867,
406,
1686,
351,
257,
24846,
4833,
621,
513,
750,
12434,
24947,
4106,
406,
3885,
64,
423,
30,
46506,
35224,
7203,
43,
1686,
4943,
16034,
3084,
62,
20,
1983,
3270,
33411,
366,
32103,
1,
796,
705,
77,
5580,
28907,
64,
6,
535... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
406,
1686,
351,
257,
24846,
4833,
621,
513,
750,
12434,
24947,
4106,
406,
3885,
64,
423,
30,
46506,
35224,
7203,
43,
1686,
4943,
16034,
3084,
62,
20,
1983,
3270,
33411,
366,
32103,
1,
796,
705,
77,
5580,
28907,
64,
6,
535... |
What section comes later than 08:45 A.M. and is in CAAS 512 ? | SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '08:45' AND course.course_id = course_offering.course_id AND course.department = 'CAAS' AND course.number = 512 AND semester.semester = 'WN' AND ... | [
2061,
2665,
2058,
1568,
621,
8487,
25,
2231,
317,
13,
44,
13,
290,
318,
287,
7257,
1921,
22243,
5633,
46506,
360,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
437,
62,
2435,
11,
1781,
62,
2364,
1586,
13,
5458,
62,
17618,
11,
1781,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2665,
2058,
1568,
621,
8487,
25,
2231,
317,
13,
44,
13,
290,
318,
287,
7257,
1921,
22243,
5633,
46506,
360,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
437,
62,
2435,
11,
1781,
62,
2364,
1586,
13,
5458,
62,
17618,
11,
1781,
... |
What is the average points that Centro Asegurador earned with the McLaren M23 chassis? | SELECT AVG(points) FROM table_name_3 WHERE chassis = "mclaren m23" AND entrant = "centro asegurador" | [
2061,
318,
262,
2811,
2173,
326,
1979,
305,
317,
325,
45073,
7079,
7366,
351,
262,
33017,
337,
1954,
24587,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
18,
33411,
24587,
796,
366,
76,
565,
5757,
285,
1954,
1,
5357,
920... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
2173,
326,
1979,
305,
317,
325,
45073,
7079,
7366,
351,
262,
33017,
337,
1954,
24587,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
18,
33411,
24587,
796,
366,
76,
565,
5757,
285,
1954,
1,
5357,
920... |
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 weekday, list total number of employee id from high to low order. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(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,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
11,
1351,
2472,
1271,
286,
6538... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28269,
11,
1351,
2472,
1271,
286,
6538... |
does patient 031-24513 have the result of his or her microbiology test until 10/2105? | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-24513')) AND STRFTIME('%y-%m', microlab.culturetakentime) <= '2105-10' | [
22437,
5827,
657,
3132,
12,
22995,
1485,
423,
262,
1255,
286,
465,
393,
607,
24559,
1435,
1332,
1566,
838,
14,
17,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
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... | [
22437,
5827,
657,
3132,
12,
22995,
1485,
423,
262,
1255,
286,
465,
393,
607,
24559,
1435,
1332,
1566,
838,
14,
17,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
312,
... |
Tell me the ship for lieutenant montagu verling | SELECT "Ship" FROM table_32016 WHERE "Captain" = 'lieutenant montagu verling' | [
24446,
502,
262,
4074,
329,
30269,
40689,
11433,
3326,
1359,
46506,
366,
25586,
1,
16034,
3084,
62,
18,
5304,
33411,
366,
27898,
1,
796,
705,
14485,
15340,
40689,
11433,
3326,
1359,
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
] | [
24446,
502,
262,
4074,
329,
30269,
40689,
11433,
3326,
1359,
46506,
366,
25586,
1,
16034,
3084,
62,
18,
5304,
33411,
366,
27898,
1,
796,
705,
14485,
15340,
40689,
11433,
3326,
1359,
6
] |
Where were stolen ends recorded as 15? | SELECT locale FROM table_25381437_2 WHERE stolen_ends = 15 | [
8496,
547,
9909,
5645,
6264,
355,
1315,
30,
46506,
36693,
16034,
3084,
62,
1495,
2548,
1415,
2718,
62,
17,
33411,
9909,
62,
2412,
796,
1315
] | [
1,
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,
547,
9909,
5645,
6264,
355,
1315,
30,
46506,
36693,
16034,
3084,
62,
1495,
2548,
1415,
2718,
62,
17,
33411,
9909,
62,
2412,
796,
1315
] |
What place was Dave Stockton when he had a to par of +1? | SELECT place FROM table_name_10 WHERE to_par = "+1" AND player = "dave stockton" | [
2061,
1295,
373,
9935,
10500,
1122,
618,
339,
550,
257,
284,
1582,
286,
1343,
16,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
940,
33411,
284,
62,
1845,
796,
43825,
16,
1,
5357,
2137,
796,
366,
67,
1015,
4283,
1122,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1295,
373,
9935,
10500,
1122,
618,
339,
550,
257,
284,
1582,
286,
1343,
16,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
940,
33411,
284,
62,
1845,
796,
43825,
16,
1,
5357,
2137,
796,
366,
67,
1015,
4283,
1122,
1
] |
A bar chart shows the distribution of meter_700 and ID . | SELECT meter_700, ID FROM swimmer | [
32,
2318,
8262,
2523,
262,
6082,
286,
16430,
62,
9879,
290,
4522,
764,
46506,
16430,
62,
9879,
11,
4522,
16034,
9422,
647
] | [
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,
2523,
262,
6082,
286,
16430,
62,
9879,
290,
4522,
764,
46506,
16430,
62,
9879,
11,
4522,
16034,
9422,
647
] |
find the minimum days of hospital stay for patients born after the year 2056. | SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.dob_year > "2056" | [
19796,
262,
5288,
1528,
286,
4436,
2652,
329,
3871,
4642,
706,
262,
614,
1160,
3980,
13,
46506,
20625,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
67,
672,
62,
1941,
1875,
366,
1238,
3980,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19796,
262,
5288,
1528,
286,
4436,
2652,
329,
3871,
4642,
706,
262,
614,
1160,
3980,
13,
46506,
20625,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
67,
672,
62,
1941,
1875,
366,
1238,
3980,
1
] |
is there a procedure that patient 24921 underwent during the first hospital visit? | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24921 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) | [
271,
612,
257,
8771,
326,
5827,
34620,
2481,
25289,
1141,
262,
717,
4436,
3187,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
181... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
271,
612,
257,
8771,
326,
5827,
34620,
2481,
25289,
1141,
262,
717,
4436,
3187,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
181... |
I want the D 47 for D 41 being r 21 | SELECT d_47 FROM table_name_78 WHERE d_41 = "r 21" | [
40,
765,
262,
360,
6298,
329,
360,
6073,
852,
374,
2310,
46506,
288,
62,
2857,
16034,
3084,
62,
3672,
62,
3695,
33411,
288,
62,
3901,
796,
366,
81,
2310,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
262,
360,
6298,
329,
360,
6073,
852,
374,
2310,
46506,
288,
62,
2857,
16034,
3084,
62,
3672,
62,
3695,
33411,
288,
62,
3901,
796,
366,
81,
2310,
1
] |
Top 10 Zero score questions with highest view count. | SELECT Id AS "post_link", ViewCount FROM Posts AS p WHERE Score = 0 ORDER BY ViewCount DESC LIMIT 10 | [
9126,
838,
12169,
4776,
2683,
351,
4511,
1570,
954,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
3582,
12332,
16034,
12043,
7054,
279,
33411,
15178,
796,
657,
38678,
11050,
3582,
12332,
22196,
34,
27564,
2043,
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
] | [
9126,
838,
12169,
4776,
2683,
351,
4511,
1570,
954,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
3582,
12332,
16034,
12043,
7054,
279,
33411,
15178,
796,
657,
38678,
11050,
3582,
12332,
22196,
34,
27564,
2043,
838
] |
Give me the temperature of Shanghai in January. | SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = "Shanghai" | [
23318,
502,
262,
5951,
286,
21865,
287,
3269,
13,
46506,
309,
17,
13,
12128,
16034,
1748,
7054,
309,
16,
32357,
1268,
5951,
7054,
309,
17,
6177,
309,
16,
13,
19205,
62,
312,
796,
309,
17,
13,
19205,
62,
312,
33411,
309,
16,
13,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
262,
5951,
286,
21865,
287,
3269,
13,
46506,
309,
17,
13,
12128,
16034,
1748,
7054,
309,
16,
32357,
1268,
5951,
7054,
309,
17,
6177,
309,
16,
13,
19205,
62,
312,
796,
309,
17,
13,
19205,
62,
312,
33411,
309,
16,
13,
19... |
What is the name of the episode that Richard Thorpe directed? | SELECT "Title" FROM table_535 WHERE "Directed by" = 'Richard Thorpe' | [
2061,
318,
262,
1438,
286,
262,
4471,
326,
6219,
13002,
431,
7924,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
44465,
33411,
366,
13470,
276,
416,
1,
796,
705,
22245,
13002,
431,
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,
1438,
286,
262,
4471,
326,
6219,
13002,
431,
7924,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
44465,
33411,
366,
13470,
276,
416,
1,
796,
705,
22245,
13002,
431,
6
] |
who was the first player to play for the st louis cardinals ? | SELECT "player" FROM table_203_697 WHERE "team inducted as" = 'st. louis cardinals' ORDER BY "career" LIMIT 1 | [
8727,
373,
262,
717,
2137,
284,
711,
329,
262,
336,
21081,
271,
2657,
6897,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
40035,
33411,
366,
15097,
28948,
276,
355,
1,
796,
705,
301,
13,
21081,
271,
2657,
6897,
6,
38678,
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
] | [
8727,
373,
262,
717,
2137,
284,
711,
329,
262,
336,
21081,
271,
2657,
6897,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
40035,
33411,
366,
15097,
28948,
276,
355,
1,
796,
705,
301,
13,
21081,
271,
2657,
6897,
6,
38678,
11... |
What position has 1958 as the NFL Draft, and jerry kramer as the player? | SELECT position FROM table_name_55 WHERE nfl_draft = 1958 AND player = "jerry kramer" | [
2061,
2292,
468,
24648,
355,
262,
5134,
13650,
11,
290,
474,
6996,
479,
29172,
355,
262,
2137,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
2816,
33411,
299,
2704,
62,
35679,
796,
24648,
5357,
2137,
796,
366,
73,
6996,
479,
29172,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
24648,
355,
262,
5134,
13650,
11,
290,
474,
6996,
479,
29172,
355,
262,
2137,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
2816,
33411,
299,
2704,
62,
35679,
796,
24648,
5357,
2137,
796,
366,
73,
6996,
479,
29172,
1
] |
when patient 31696 had the .9% normal saline for the first time on 07/23/last year? | SELECT inputevents_cv.charttime FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31696)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label... | [
12518,
5827,
34131,
4846,
550,
262,
764,
24,
4,
3487,
47375,
329,
262,
717,
640,
319,
8753,
14,
1954,
14,
12957,
614,
30,
46506,
287,
79,
1133,
85,
658,
62,
33967,
13,
40926,
2435,
16034,
287,
79,
1133,
85,
658,
62,
33967,
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,
1... | [
12518,
5827,
34131,
4846,
550,
262,
764,
24,
4,
3487,
47375,
329,
262,
717,
640,
319,
8753,
14,
1954,
14,
12957,
614,
30,
46506,
287,
79,
1133,
85,
658,
62,
33967,
13,
40926,
2435,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
... |
What is the enrollment for the institution in Westfield, Massachusetts? | SELECT enrollment FROM table_261927_2 WHERE location = "Westfield, Massachusetts" | [
2061,
318,
262,
20753,
329,
262,
9901,
287,
2688,
3245,
11,
10140,
30,
46506,
20753,
16034,
3084,
62,
2075,
1129,
1983,
62,
17,
33411,
4067,
796,
366,
15045,
3245,
11,
10140,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
20753,
329,
262,
9901,
287,
2688,
3245,
11,
10140,
30,
46506,
20753,
16034,
3084,
62,
2075,
1129,
1983,
62,
17,
33411,
4067,
796,
366,
15045,
3245,
11,
10140,
1
] |
Search comments by user ID and search term, by length of text. | SELECT PostId AS "post_link", CreationDate, Id AS "comment_link" FROM Comments WHERE UserId = '##UserId:int##' AND LOWER(Text) LIKE '%' + LOWER('##SearchString:string##') + '%' ORDER BY LENGTH(Text) LIMIT 500 | [
18243,
3651,
416,
2836,
4522,
290,
2989,
3381,
11,
416,
4129,
286,
2420,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
21582,
10430,
11,
5121,
7054,
366,
23893,
62,
8726,
1,
16034,
19502,
33411,
11787,
7390,
796,
705,
2235,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
18243,
3651,
416,
2836,
4522,
290,
2989,
3381,
11,
416,
4129,
286,
2420,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
21582,
10430,
11,
5121,
7054,
366,
23893,
62,
8726,
1,
16034,
19502,
33411,
11787,
7390,
796,
705,
2235,
... |
tell me the age and health insurance for the patient jerry deberry. | SELECT demographic.age, demographic.insurance FROM demographic WHERE demographic.name = "Jerry Deberry" | [
33331,
502,
262,
2479,
290,
1535,
5096,
329,
262,
5827,
474,
6996,
390,
8396,
13,
46506,
16728,
13,
496,
11,
16728,
13,
1040,
3874,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
43462,
1024,
8396,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2479,
290,
1535,
5096,
329,
262,
5827,
474,
6996,
390,
8396,
13,
46506,
16728,
13,
496,
11,
16728,
13,
1040,
3874,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
43462,
1024,
8396,
1
] |
Which team has a value less than 377 million in Germany with a rank of 17? | SELECT "Team" FROM table_15636 WHERE "Value ($M)" < '377' AND "Country" = 'germany' AND "Rank" = '17' | [
13828,
1074,
468,
257,
1988,
1342,
621,
42163,
1510,
287,
4486,
351,
257,
4279,
286,
1596,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
21599,
2623,
33411,
366,
11395,
7198,
44,
16725,
1279,
705,
26514,
6,
5357,
366,
33921,
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
] | [
13828,
1074,
468,
257,
1988,
1342,
621,
42163,
1510,
287,
4486,
351,
257,
4279,
286,
1596,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
21599,
2623,
33411,
366,
11395,
7198,
44,
16725,
1279,
705,
26514,
6,
5357,
366,
33921,
1,
796,
705,... |
What is the winning score of the tournament with Charles Coody as the runner-up? | SELECT winning_score FROM table_name_91 WHERE runner_s__up = "charles coody" | [
2061,
318,
262,
5442,
4776,
286,
262,
7756,
351,
7516,
327,
702,
88,
355,
262,
17490,
12,
929,
30,
46506,
5442,
62,
26675,
16034,
3084,
62,
3672,
62,
6420,
33411,
17490,
62,
82,
834,
929,
796,
366,
10641,
829,
269,
702,
88,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5442,
4776,
286,
262,
7756,
351,
7516,
327,
702,
88,
355,
262,
17490,
12,
929,
30,
46506,
5442,
62,
26675,
16034,
3084,
62,
3672,
62,
6420,
33411,
17490,
62,
82,
834,
929,
796,
366,
10641,
829,
269,
702,
88,
1
] |
What was the series standing for games over 4? | SELECT series FROM table_name_2 WHERE game > 4 | [
2061,
373,
262,
2168,
5055,
329,
1830,
625,
604,
30,
46506,
2168,
16034,
3084,
62,
3672,
62,
17,
33411,
983,
1875,
604
] | [
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,
2168,
5055,
329,
1830,
625,
604,
30,
46506,
2168,
16034,
3084,
62,
3672,
62,
17,
33411,
983,
1875,
604
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.