instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Find the brand and name for each camera lens, and sort in descending order of maximum aperture. | SELECT brand, name FROM camera_lens ORDER BY max_aperture DESC | [
16742,
262,
4508,
290,
1438,
329,
1123,
4676,
10317,
11,
290,
3297,
287,
31491,
1502,
286,
5415,
32729,
13,
46506,
4508,
11,
1438,
16034,
4676,
62,
75,
641,
38678,
11050,
3509,
62,
499,
861,
495,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
4508,
290,
1438,
329,
1123,
4676,
10317,
11,
290,
3297,
287,
31491,
1502,
286,
5415,
32729,
13,
46506,
4508,
11,
1438,
16034,
4676,
62,
75,
641,
38678,
11050,
3509,
62,
499,
861,
495,
22196,
34
] |
What is the home team of the game where the Grizzlies were the visitor team and Rudy Gay (21) was the leading scorer? | SELECT "Home" FROM table_51866 WHERE "Visitor" = 'grizzlies' AND "Leading scorer" = 'rudy gay (21)' | [
2061,
318,
262,
1363,
1074,
286,
262,
983,
810,
262,
40669,
547,
262,
21493,
1074,
290,
37602,
16013,
357,
2481,
8,
373,
262,
3756,
30664,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
44085,
2791,
33411,
366,
15854,
2072,
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,
1,
1,
1
] | [
2061,
318,
262,
1363,
1074,
286,
262,
983,
810,
262,
40669,
547,
262,
21493,
1074,
290,
37602,
16013,
357,
2481,
8,
373,
262,
3756,
30664,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
44085,
2791,
33411,
366,
15854,
2072,
1,
796,
705,
... |
Tell me the total number of top 25 for wins less than 1 and cuts made of 22 | SELECT COUNT("Top-25") FROM table_74502 WHERE "Cuts made" = '22' AND "Wins" < '1' | [
24446,
502,
262,
2472,
1271,
286,
1353,
1679,
329,
7864,
1342,
621,
352,
290,
6630,
925,
286,
2534,
46506,
327,
28270,
7203,
9126,
12,
1495,
4943,
16034,
3084,
62,
4524,
35126,
33411,
366,
34,
5500,
925,
1,
796,
705,
1828,
6,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
2472,
1271,
286,
1353,
1679,
329,
7864,
1342,
621,
352,
290,
6630,
925,
286,
2534,
46506,
327,
28270,
7203,
9126,
12,
1495,
4943,
16034,
3084,
62,
4524,
35126,
33411,
366,
34,
5500,
925,
1,
796,
705,
1828,
6,
5357,
... |
In week 9 who were the opponent? | SELECT opponent FROM table_14608759_1 WHERE week = 9 | [
818,
1285,
860,
508,
547,
262,
6125,
30,
46506,
6125,
16034,
3084,
62,
1415,
28688,
38314,
62,
16,
33411,
1285,
796,
860
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
1285,
860,
508,
547,
262,
6125,
30,
46506,
6125,
16034,
3084,
62,
1415,
28688,
38314,
62,
16,
33411,
1285,
796,
860
] |
For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of hire_date and the average of department_id bin hire_date by weekday. | SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
13,
46506,
36210,
2200,
62,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
13,
46506,
36210,
2200,
62,
35,
... |
How much were tickets for the show in Hartford, Connecticut? | SELECT "Ticket price(s)" FROM table_61776 WHERE "City, state" = 'hartford, connecticut' | [
2437,
881,
547,
8587,
329,
262,
905,
287,
37118,
11,
14493,
30,
46506,
366,
51,
9715,
2756,
7,
82,
16725,
16034,
3084,
62,
47941,
4304,
33411,
366,
14941,
11,
1181,
1,
796,
705,
18647,
3841,
11,
2018,
13554,
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
] | [
2437,
881,
547,
8587,
329,
262,
905,
287,
37118,
11,
14493,
30,
46506,
366,
51,
9715,
2756,
7,
82,
16725,
16034,
3084,
62,
47941,
4304,
33411,
366,
14941,
11,
1181,
1,
796,
705,
18647,
3841,
11,
2018,
13554,
6
] |
In which episode is Sean's team made up of Krishnan Guru-Murthy and Vic Reeves? | SELECT episode FROM table_23292220_3 WHERE seans_team = "Krishnan Guru-Murthy and Vic Reeves" | [
818,
543,
4471,
318,
11465,
338,
1074,
925,
510,
286,
31372,
12647,
38749,
12,
23830,
20057,
290,
24017,
41533,
30,
46506,
4471,
16034,
3084,
62,
1954,
1959,
1828,
1238,
62,
18,
33411,
384,
504,
62,
15097,
796,
366,
42,
37518,
12647,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
543,
4471,
318,
11465,
338,
1074,
925,
510,
286,
31372,
12647,
38749,
12,
23830,
20057,
290,
24017,
41533,
30,
46506,
4471,
16034,
3084,
62,
1954,
1959,
1828,
1238,
62,
18,
33411,
384,
504,
62,
15097,
796,
366,
42,
37518,
12647,
... |
how many days have gone since the first time patient 012-66291 was diagnosed with acute respiratory failure - due to neurological process on this hospital visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnosis.diagnosistime)) FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-66291'... | [
4919,
867,
1528,
423,
3750,
1201,
262,
717,
640,
5827,
5534,
17,
12,
2791,
33551,
373,
14641,
351,
14352,
22949,
5287,
532,
2233,
284,
30232,
1429,
319,
428,
4436,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
325... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
423,
3750,
1201,
262,
717,
640,
5827,
5534,
17,
12,
2791,
33551,
373,
14641,
351,
14352,
22949,
5287,
532,
2233,
284,
30232,
1429,
319,
428,
4436,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
325... |
Who is the away team at western oval? | SELECT "Away team score" FROM table_32644 WHERE "Venue" = 'western oval' | [
8241,
318,
262,
1497,
1074,
379,
8830,
41186,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
39195,
2598,
33411,
366,
37522,
518,
1,
796,
705,
14197,
41186,
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,
1497,
1074,
379,
8830,
41186,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
39195,
2598,
33411,
366,
37522,
518,
1,
796,
705,
14197,
41186,
6
] |
what is the number of patients whose admission type is elective and procedure short title is other bronchoscopy? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.short_title = "Other bronchoscopy" | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
8771,
1790,
3670,
318,
584,
18443,
354,
17500,
11081,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
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,
318,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
8771,
1790,
3670,
318,
584,
18443,
354,
17500,
11081,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
3... |
VIE is the IATA for which city? | SELECT airport FROM table_name_80 WHERE iata = "vie" | [
53,
10008,
318,
262,
314,
13563,
329,
543,
1748,
30,
46506,
9003,
16034,
3084,
62,
3672,
62,
1795,
33411,
1312,
1045,
796,
366,
85,
494,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
53,
10008,
318,
262,
314,
13563,
329,
543,
1748,
30,
46506,
9003,
16034,
3084,
62,
3672,
62,
1795,
33411,
1312,
1045,
796,
366,
85,
494,
1
] |
Which Played has a Lost larger than 9, and a Points smaller than 15, and a Position smaller than 12, and a Drawn smaller than 2? | SELECT AVG(played) FROM table_name_18 WHERE lost > 9 AND points < 15 AND position < 12 AND drawn < 2 | [
13828,
33101,
468,
257,
9164,
4025,
621,
860,
11,
290,
257,
11045,
4833,
621,
1315,
11,
290,
257,
23158,
4833,
621,
1105,
11,
290,
257,
50061,
4833,
621,
362,
30,
46506,
35224,
7,
21542,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
33101,
468,
257,
9164,
4025,
621,
860,
11,
290,
257,
11045,
4833,
621,
1315,
11,
290,
257,
23158,
4833,
621,
1105,
11,
290,
257,
50061,
4833,
621,
362,
30,
46506,
35224,
7,
21542,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
26... |
How many wickets did Alec bedser have? | SELECT MAX(wickets) FROM table_16570286_4 WHERE player = "Alec Bedser" | [
2437,
867,
266,
15970,
750,
38285,
3996,
2655,
423,
30,
46506,
25882,
7,
86,
15970,
8,
16034,
3084,
62,
20986,
2154,
27033,
62,
19,
33411,
2137,
796,
366,
37474,
66,
15585,
2655,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
266,
15970,
750,
38285,
3996,
2655,
423,
30,
46506,
25882,
7,
86,
15970,
8,
16034,
3084,
62,
20986,
2154,
27033,
62,
19,
33411,
2137,
796,
366,
37474,
66,
15585,
2655,
1
] |
at what location is the last flew on 11 june 2000 | SELECT "Location" FROM table_23457 WHERE "Last flew" = '11 June 2000' | [
265,
644,
4067,
318,
262,
938,
13112,
319,
1367,
474,
1726,
4751,
46506,
366,
14749,
1,
16034,
3084,
62,
1954,
33032,
33411,
366,
5956,
13112,
1,
796,
705,
1157,
2795,
4751,
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
] | [
265,
644,
4067,
318,
262,
938,
13112,
319,
1367,
474,
1726,
4751,
46506,
366,
14749,
1,
16034,
3084,
62,
1954,
33032,
33411,
366,
5956,
13112,
1,
796,
705,
1157,
2795,
4751,
6
] |
For each start station id, what is its name, longitude and average duration of trips started there? | SELECT T1.name, T1.long, AVG(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id | [
1890,
1123,
923,
4429,
4686,
11,
644,
318,
663,
1438,
11,
890,
3984,
290,
2811,
9478,
286,
13229,
2067,
612,
30,
46506,
309,
16,
13,
3672,
11,
309,
16,
13,
6511,
11,
35224,
7,
51,
17,
13,
32257,
8,
16034,
4429,
7054,
309,
16,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
1123,
923,
4429,
4686,
11,
644,
318,
663,
1438,
11,
890,
3984,
290,
2811,
9478,
286,
13229,
2067,
612,
30,
46506,
309,
16,
13,
3672,
11,
309,
16,
13,
6511,
11,
35224,
7,
51,
17,
13,
32257,
8,
16034,
4429,
7054,
309,
16,
32... |
what is the number of patients whose hospital stay is above 14 days and admission year before 2119? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.days_stay > "14" AND demographic.admityear < "2119" | [
10919,
318,
262,
1271,
286,
3871,
3025,
4436,
2652,
318,
2029,
1478,
1528,
290,
13938,
614,
878,
2310,
1129,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
12545,
62,
3171... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1271,
286,
3871,
3025,
4436,
2652,
318,
2029,
1478,
1528,
290,
13938,
614,
878,
2310,
1129,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
12545,
62,
3171... |
Who is the opponent for the game played on august 20, 2006? | SELECT opponent FROM table_name_47 WHERE date = "august 20, 2006" | [
8241,
318,
262,
6125,
329,
262,
983,
2826,
319,
16339,
436,
1160,
11,
4793,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2857,
33411,
3128,
796,
366,
7493,
436,
1160,
11,
4793,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6125,
329,
262,
983,
2826,
319,
16339,
436,
1160,
11,
4793,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2857,
33411,
3128,
796,
366,
7493,
436,
1160,
11,
4793,
1
] |
What is the position of the player who's hometown is North Babylon, NY? | SELECT position FROM table_20785990_2 WHERE home_town = "North Babylon, NY" | [
2061,
318,
262,
2292,
286,
262,
2137,
508,
338,
20994,
318,
2258,
28028,
11,
6645,
30,
46506,
2292,
16034,
3084,
62,
1238,
41172,
34155,
62,
17,
33411,
1363,
62,
12735,
796,
366,
14157,
28028,
11,
6645,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2292,
286,
262,
2137,
508,
338,
20994,
318,
2258,
28028,
11,
6645,
30,
46506,
2292,
16034,
3084,
62,
1238,
41172,
34155,
62,
17,
33411,
1363,
62,
12735,
796,
366,
14157,
28028,
11,
6645,
1
] |
What are the names of courses with 1 credit? | SELECT cname FROM course WHERE credits = 1 | [
2061,
389,
262,
3891,
286,
10902,
351,
352,
3884,
30,
46506,
269,
3672,
16034,
1781,
33411,
10824,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3891,
286,
10902,
351,
352,
3884,
30,
46506,
269,
3672,
16034,
1781,
33411,
10824,
796,
352
] |
what is the total number of games played when the goals for is less than 30? | SELECT COUNT(games_played) FROM table_name_8 WHERE goals_for < 30 | [
10919,
318,
262,
2472,
1271,
286,
1830,
2826,
618,
262,
4661,
329,
318,
1342,
621,
1542,
30,
46506,
327,
28270,
7,
19966,
62,
21542,
8,
16034,
3084,
62,
3672,
62,
23,
33411,
4661,
62,
1640,
1279,
1542
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2472,
1271,
286,
1830,
2826,
618,
262,
4661,
329,
318,
1342,
621,
1542,
30,
46506,
327,
28270,
7,
19966,
62,
21542,
8,
16034,
3084,
62,
3672,
62,
23,
33411,
4661,
62,
1640,
1279,
1542
] |
has patient 004-29334 received ssri administration - fluoxetine (prozac) at other hospitals? | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '004-29334' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '004-29334' AND patient.hospitaldischargetime IS NULL)) AND tr... | [
10134,
5827,
3571,
19,
12,
1959,
31380,
2722,
37786,
380,
3662,
532,
6562,
1140,
316,
500,
357,
1676,
49897,
8,
379,
584,
11301,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10134,
5827,
3571,
19,
12,
1959,
31380,
2722,
37786,
380,
3662,
532,
6562,
1140,
316,
500,
357,
1676,
49897,
8,
379,
584,
11301,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
... |
What is the lowest round of Ed Smith, who had a pick lower than 19? | SELECT MIN("Round") FROM table_35935 WHERE "Player" = 'ed smith' AND "Pick" > '19' | [
2061,
318,
262,
9016,
2835,
286,
1717,
4176,
11,
508,
550,
257,
2298,
2793,
621,
678,
30,
46506,
20625,
7203,
22685,
4943,
16034,
3084,
62,
30743,
2327,
33411,
366,
14140,
1,
796,
705,
276,
895,
342,
6,
5357,
366,
31686,
1,
1875,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
2835,
286,
1717,
4176,
11,
508,
550,
257,
2298,
2793,
621,
678,
30,
46506,
20625,
7203,
22685,
4943,
16034,
3084,
62,
30743,
2327,
33411,
366,
14140,
1,
796,
705,
276,
895,
342,
6,
5357,
366,
31686,
1,
1875,
70... |
What was the winning score of the Masters Tournament? | SELECT winning_score FROM table_13026799_1 WHERE championship = "Masters Tournament" | [
2061,
373,
262,
5442,
4776,
286,
262,
15812,
9595,
30,
46506,
5442,
62,
26675,
16034,
3084,
62,
12952,
25674,
2079,
62,
16,
33411,
12184,
796,
366,
44,
7060,
9595,
1
] | [
1,
1,
1,
1,
1,
1,
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,
5442,
4776,
286,
262,
15812,
9595,
30,
46506,
5442,
62,
26675,
16034,
3084,
62,
12952,
25674,
2079,
62,
16,
33411,
12184,
796,
366,
44,
7060,
9595,
1
] |
Find all cities in which there is a restaurant called ' MGM Grand Buffet | SELECT business.city FROM business, category WHERE business.name = 'MGM Grand Buffet' AND category.business_id = business.business_id AND category.category_name = 'restaurant' | [
16742,
477,
4736,
287,
543,
612,
318,
257,
7072,
1444,
705,
49182,
5675,
8792,
316,
46506,
1597,
13,
19205,
16034,
1597,
11,
6536,
33411,
1597,
13,
3672,
796,
705,
44,
15548,
5675,
8792,
316,
6,
5357,
6536,
13,
22680,
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
] | [
16742,
477,
4736,
287,
543,
612,
318,
257,
7072,
1444,
705,
49182,
5675,
8792,
316,
46506,
1597,
13,
19205,
16034,
1597,
11,
6536,
33411,
1597,
13,
3672,
796,
705,
44,
15548,
5675,
8792,
316,
6,
5357,
6536,
13,
22680,
62,
312,
796,
... |
A bar chart for what are the number of the purchase details of transactions with amount bigger than 10000?, and display y-axis from high to low order. | SELECT purchase_details, COUNT(purchase_details) FROM Purchases AS T1 JOIN Transactions AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000 GROUP BY purchase_details ORDER BY COUNT(purchase_details) DESC | [
32,
2318,
8262,
329,
644,
389,
262,
1271,
286,
262,
5001,
3307,
286,
8945,
351,
2033,
5749,
621,
33028,
21747,
290,
3359,
331,
12,
22704,
422,
1029,
284,
1877,
1502,
13,
46506,
5001,
62,
36604,
11,
327,
28270,
7,
79,
18737,
62,
3660... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32,
2318,
8262,
329,
644,
389,
262,
1271,
286,
262,
5001,
3307,
286,
8945,
351,
2033,
5749,
621,
33028,
21747,
290,
3359,
331,
12,
22704,
422,
1029,
284,
1877,
1502,
13,
46506,
5001,
62,
36604,
11,
327,
28270,
7,
79,
18737,
62,
3660... |
What is the Stadium that hosts the team Jacksonville Jaguars? | SELECT stadium FROM table_name_1 WHERE host_team = "jacksonville jaguars" | [
2061,
318,
262,
10499,
326,
11453,
262,
1074,
23194,
28392,
30,
46506,
10308,
16034,
3084,
62,
3672,
62,
16,
33411,
2583,
62,
15097,
796,
366,
19650,
1559,
4244,
474,
11433,
945,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
10499,
326,
11453,
262,
1074,
23194,
28392,
30,
46506,
10308,
16034,
3084,
62,
3672,
62,
16,
33411,
2583,
62,
15097,
796,
366,
19650,
1559,
4244,
474,
11433,
945,
1
] |
what is the number of patients whose year of birth is less than 2065? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.dob_year < "2065" | [
10919,
318,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
2996,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
67,
672,
62,
1941,
1279,
366,
1238,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
2996,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
67,
672,
62,
1941,
1279,
366,
1238,
29... |
Visualize a bar chart for how many students are in each department?, and sort from low to high by the bar. | SELECT dept_name, COUNT(*) FROM student GROUP BY dept_name ORDER BY dept_name | [
36259,
1096,
257,
2318,
8262,
329,
703,
867,
2444,
389,
287,
1123,
5011,
21747,
290,
3297,
422,
1877,
284,
1029,
416,
262,
2318,
13,
46506,
390,
457,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
3710,
44441,
11050,
390,
457,
62,
3672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36259,
1096,
257,
2318,
8262,
329,
703,
867,
2444,
389,
287,
1123,
5011,
21747,
290,
3297,
422,
1877,
284,
1029,
416,
262,
2318,
13,
46506,
390,
457,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
3710,
44441,
11050,
390,
457,
62,
3672,
... |
Answers that have been unaccepted. | SELECT a.Id AS "post_link", a.CreationDate, q.LastActivityDate FROM Posts AS a INNER JOIN Posts AS q ON q.Id = a.ParentId WHERE q.AcceptedAnswerId != a.Id AND (SELECT COUNT(*) FROM Votes WHERE PostId = a.Id AND VoteTypeId = 1) > 0 | [
2025,
37848,
326,
423,
587,
555,
13635,
276,
13,
46506,
257,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
257,
13,
12443,
341,
10430,
11,
10662,
13,
5956,
16516,
10430,
16034,
12043,
7054,
257,
3268,
21479,
32357,
1268,
12043,
7054,
10662... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2025,
37848,
326,
423,
587,
555,
13635,
276,
13,
46506,
257,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
257,
13,
12443,
341,
10430,
11,
10662,
13,
5956,
16516,
10430,
16034,
12043,
7054,
257,
3268,
21479,
32357,
1268,
12043,
7054,
10662... |
For how many contestants was the background internet dreamer? | SELECT COUNT(contestant) FROM table_19810459_1 WHERE background = "Internet dreamer" | [
1890,
703,
867,
37851,
373,
262,
4469,
5230,
4320,
263,
30,
46506,
327,
28270,
7,
3642,
395,
415,
8,
16034,
3084,
62,
22337,
940,
33459,
62,
16,
33411,
4469,
796,
366,
28566,
4320,
263,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
703,
867,
37851,
373,
262,
4469,
5230,
4320,
263,
30,
46506,
327,
28270,
7,
3642,
395,
415,
8,
16034,
3084,
62,
22337,
940,
33459,
62,
16,
33411,
4469,
796,
366,
28566,
4320,
263,
1
] |
What is the result when the competition was the 2006 fifa world cup qualifier, and a Venue of warner park sporting complex, bassaterre? | SELECT result FROM table_name_32 WHERE competition = "2006 fifa world cup qualifier" AND venue = "warner park sporting complex, bassaterre" | [
2061,
318,
262,
1255,
618,
262,
5449,
373,
262,
4793,
5515,
64,
995,
6508,
39265,
11,
290,
257,
9932,
518,
286,
1175,
1008,
3952,
17702,
3716,
11,
12702,
729,
260,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2624,
33411,
5449,
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... | [
2061,
318,
262,
1255,
618,
262,
5449,
373,
262,
4793,
5515,
64,
995,
6508,
39265,
11,
290,
257,
9932,
518,
286,
1175,
1008,
3952,
17702,
3716,
11,
12702,
729,
260,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2624,
33411,
5449,
796,
... |
What is the Standalone when Tron is the Arcade? | SELECT "Standalone" FROM table_66311 WHERE "Arcade" = 'tron' | [
2061,
318,
262,
5751,
17749,
618,
833,
261,
318,
262,
23190,
30,
46506,
366,
1273,
7642,
505,
1,
16034,
3084,
62,
2791,
36244,
33411,
366,
43763,
1,
796,
705,
83,
1313,
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,
5751,
17749,
618,
833,
261,
318,
262,
23190,
30,
46506,
366,
1273,
7642,
505,
1,
16034,
3084,
62,
2791,
36244,
33411,
366,
43763,
1,
796,
705,
83,
1313,
6
] |
count the number of patients whose marital status is single and drug route is po? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.marital_status = "SINGLE" AND prescriptions.route = "PO" | [
9127,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
2563,
6339,
318,
745,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29555,
3722,
318,
2060,
290,
2563,
6339,
318,
745,
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,
... |
What home team had 2 ties? | SELECT home_team FROM table_name_86 WHERE tie_no = "2" | [
2061,
1363,
1074,
550,
362,
8470,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
4521,
33411,
9839,
62,
3919,
796,
366,
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
] | [
2061,
1363,
1074,
550,
362,
8470,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
4521,
33411,
9839,
62,
3919,
796,
366,
17,
1
] |
What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 League Cup apps? | SELECT AVG("Total Goals") FROM table_64987 WHERE "FA Cup Goals" = '0' AND "Name" = 'alan sweeney' AND "League Cup Apps" < '0' | [
2061,
338,
262,
2472,
4661,
329,
12246,
47005,
1719,
657,
9677,
5454,
4661,
290,
7380,
621,
657,
4041,
5454,
6725,
30,
46506,
35224,
7203,
14957,
28510,
4943,
16034,
3084,
62,
2414,
44183,
33411,
366,
7708,
5454,
28510,
1,
796,
705,
15,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
2472,
4661,
329,
12246,
47005,
1719,
657,
9677,
5454,
4661,
290,
7380,
621,
657,
4041,
5454,
6725,
30,
46506,
35224,
7203,
14957,
28510,
4943,
16034,
3084,
62,
2414,
44183,
33411,
366,
7708,
5454,
28510,
1,
796,
705,
15,... |
calculate the number of patients with left femur fracture who were on medicaid insurance. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.diagnosis = "LEFT FEMUR FRACTURE" | [
9948,
3129,
378,
262,
1271,
286,
3871,
351,
1364,
2796,
333,
31846,
508,
547,
319,
6924,
1698,
5096,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9948,
3129,
378,
262,
1271,
286,
3871,
351,
1364,
2796,
333,
31846,
508,
547,
319,
6924,
1698,
5096,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
... |
Which Lane has a Rank larger than 3, and a Time larger than 45.63, and a Reaction smaller than 0.28800000000000003, and an Athlete of geiner mosquera? | SELECT MAX(lane) FROM table_name_60 WHERE rank > 3 AND time > 45.63 AND react < 0.28800000000000003 AND athlete = "geiner mosquera" | [
13828,
15016,
468,
257,
10916,
4025,
621,
513,
11,
290,
257,
3862,
4025,
621,
4153,
13,
5066,
11,
290,
257,
39912,
4833,
621,
657,
13,
25270,
8269,
20483,
18,
11,
290,
281,
13548,
5807,
286,
4903,
7274,
22263,
8607,
30,
46506,
25882,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15016,
468,
257,
10916,
4025,
621,
513,
11,
290,
257,
3862,
4025,
621,
4153,
13,
5066,
11,
290,
257,
39912,
4833,
621,
657,
13,
25270,
8269,
20483,
18,
11,
290,
281,
13548,
5807,
286,
4903,
7274,
22263,
8607,
30,
46506,
25882,
... |
on how many dates was the sum of the scores at most 10 ? | SELECT COUNT("date") FROM table_204_418 WHERE "score" + "score" <= 10 | [
261,
703,
867,
9667,
373,
262,
2160,
286,
262,
8198,
379,
749,
838,
5633,
46506,
327,
28270,
7203,
4475,
4943,
16034,
3084,
62,
18638,
62,
39667,
33411,
366,
26675,
1,
1343,
366,
26675,
1,
19841,
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
] | [
261,
703,
867,
9667,
373,
262,
2160,
286,
262,
8198,
379,
749,
838,
5633,
46506,
327,
28270,
7203,
4475,
4943,
16034,
3084,
62,
18638,
62,
39667,
33411,
366,
26675,
1,
1343,
366,
26675,
1,
19841,
838
] |
When were 668 units produced? | SELECT "Production Period" FROM table_17690 WHERE "Units Produced" = '668' | [
2215,
547,
718,
3104,
4991,
4635,
30,
46506,
366,
35027,
18581,
1,
16034,
3084,
62,
1558,
35844,
33411,
366,
3118,
896,
21522,
771,
1,
796,
705,
35809,
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
] | [
2215,
547,
718,
3104,
4991,
4635,
30,
46506,
366,
35027,
18581,
1,
16034,
3084,
62,
1558,
35844,
33411,
366,
3118,
896,
21522,
771,
1,
796,
705,
35809,
6
] |
What is the Date of the Event in Punta del Este? | SELECT date FROM table_name_68 WHERE city = "punta del este" | [
2061,
318,
262,
7536,
286,
262,
8558,
287,
350,
44424,
1619,
412,
4169,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3104,
33411,
1748,
796,
366,
79,
44424,
1619,
43577,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
7536,
286,
262,
8558,
287,
350,
44424,
1619,
412,
4169,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3104,
33411,
1748,
796,
366,
79,
44424,
1619,
43577,
1
] |
How many times was the background university student? | SELECT COUNT(result) FROM table_26263322_1 WHERE background = "University Student" | [
2437,
867,
1661,
373,
262,
4469,
6403,
3710,
30,
46506,
327,
28270,
7,
20274,
8,
16034,
3084,
62,
2075,
2075,
2091,
1828,
62,
16,
33411,
4469,
796,
366,
21009,
13613,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
1661,
373,
262,
4469,
6403,
3710,
30,
46506,
327,
28270,
7,
20274,
8,
16034,
3084,
62,
2075,
2075,
2091,
1828,
62,
16,
33411,
4469,
796,
366,
21009,
13613,
1
] |
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 hire_date and the average of salary bin hire_date by weekday. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | [
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,
11078,
62,
4475,
290,
262,
2811,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11078,
62,
4475,
290,
262,
2811,
28... |
what were the three most commonly ordered lab tests for patients who had received open liver biopsy before in the same month since 2103? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_i... | [
10919,
547,
262,
1115,
749,
8811,
6149,
2248,
5254,
329,
3871,
508,
550,
2722,
1280,
14383,
3182,
44522,
878,
287,
262,
976,
1227,
1201,
362,
15197,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1115,
749,
8811,
6149,
2248,
5254,
329,
3871,
508,
550,
2722,
1280,
14383,
3182,
44522,
878,
287,
262,
976,
1227,
1201,
362,
15197,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
... |
Show all the buildings that have at least 10 professors. | SELECT building FROM Faculty WHERE rank = "Professor" GROUP BY building HAVING COUNT(*) >= 10 | [
15307,
477,
262,
6832,
326,
423,
379,
1551,
838,
20339,
13,
46506,
2615,
16034,
35262,
33411,
4279,
796,
366,
25031,
1,
44441,
11050,
2615,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
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
] | [
15307,
477,
262,
6832,
326,
423,
379,
1551,
838,
20339,
13,
46506,
2615,
16034,
35262,
33411,
4279,
796,
366,
25031,
1,
44441,
11050,
2615,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
838
] |
on which date did the red raiders score the least points ? | SELECT "date" FROM table_204_197 ORDER BY "result" LIMIT 1 | [
261,
543,
3128,
750,
262,
2266,
9513,
364,
4776,
262,
1551,
2173,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
18638,
62,
24991,
38678,
11050,
366,
20274,
1,
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,
1,
1,
1
] | [
261,
543,
3128,
750,
262,
2266,
9513,
364,
4776,
262,
1551,
2173,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
18638,
62,
24991,
38678,
11050,
366,
20274,
1,
27564,
2043,
352
] |
What IHSAA clas is the school with a county number of 12 clinton and the hornets as their mascot? | SELECT "IHSAA Class" FROM table_5569 WHERE "# / County" = '12 clinton' AND "Mascot" = 'hornets' | [
2061,
314,
7998,
3838,
537,
292,
318,
262,
1524,
351,
257,
7968,
1271,
286,
1105,
537,
2371,
290,
262,
12718,
1039,
355,
511,
37358,
30,
46506,
366,
40,
7998,
3838,
5016,
1,
16034,
3084,
62,
2816,
3388,
33411,
25113,
1220,
3418,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
314,
7998,
3838,
537,
292,
318,
262,
1524,
351,
257,
7968,
1271,
286,
1105,
537,
2371,
290,
262,
12718,
1039,
355,
511,
37358,
30,
46506,
366,
40,
7998,
3838,
5016,
1,
16034,
3084,
62,
2816,
3388,
33411,
25113,
1220,
3418,
1,
... |
All the views (log scaled). http://meta.stackexchange.com/questions/244534/were-working-on-a-new-stat-to-help-convey-the-reach-of-your-posts-here | WITH question_score AS (SELECT CAST(ViewCount AS INT) AS ask_views, OwnerUserId AS UserId, Id AS PostId FROM Posts WHERE PostTypeId = 1 AND AnswerCount > 0 AND Score > 0 GROUP BY OwnerUserId, Id, ViewCount), answer_score AS (SELECT CAST(q.ViewCount AS INT) AS answer_views, a.OwnerUserId AS UserId, a.Id AS PostId FROM P... | [
3237,
262,
5009,
357,
6404,
27464,
737,
2638,
1378,
28961,
13,
301,
330,
365,
87,
3803,
13,
785,
14,
6138,
507,
14,
1731,
2231,
2682,
14,
22474,
12,
16090,
12,
261,
12,
64,
12,
3605,
12,
14269,
12,
1462,
12,
16794,
12,
1102,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3237,
262,
5009,
357,
6404,
27464,
737,
2638,
1378,
28961,
13,
301,
330,
365,
87,
3803,
13,
785,
14,
6138,
507,
14,
1731,
2231,
2682,
14,
22474,
12,
16090,
12,
261,
12,
64,
12,
3605,
12,
14269,
12,
1462,
12,
16794,
12,
1102,
3304,... |
Show names of technicians who are assigned to repair machines with value point more than 70, and count them by a bar chart, could you sort by the y axis in ascending? | SELECT Name, COUNT(Name) FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.Machine_ID = T2.Machine_ID JOIN technician AS T3 ON T1.technician_id = T3.technician_id WHERE T2.value_points > 70 GROUP BY Name ORDER BY COUNT(Name) | [
15307,
3891,
286,
33519,
508,
389,
8686,
284,
9185,
8217,
351,
1988,
966,
517,
621,
4317,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
714,
345,
3297,
416,
262,
331,
16488,
287,
41988,
30,
46506,
6530,
11,
327,
28270,
7,
5376,
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... | [
15307,
3891,
286,
33519,
508,
389,
8686,
284,
9185,
8217,
351,
1988,
966,
517,
621,
4317,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
714,
345,
3297,
416,
262,
331,
16488,
287,
41988,
30,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
... |
Compare the lowest rating among all movies by each title using a histogram. | SELECT title, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title | [
41488,
262,
9016,
7955,
1871,
477,
6918,
416,
1123,
3670,
1262,
257,
1554,
21857,
13,
46506,
3670,
11,
20625,
7,
51,
16,
13,
30783,
8,
16034,
12028,
7054,
309,
16,
32357,
1268,
15875,
7054,
309,
17,
6177,
309,
16,
13,
76,
2389,
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
] | [
41488,
262,
9016,
7955,
1871,
477,
6918,
416,
1123,
3670,
1262,
257,
1554,
21857,
13,
46506,
3670,
11,
20625,
7,
51,
16,
13,
30783,
8,
16034,
12028,
7054,
309,
16,
32357,
1268,
15875,
7054,
309,
17,
6177,
309,
16,
13,
76,
2389,
796,... |
What is the total number of white (Hispanic/Non-Hispanic) having a black (Hispanic/Non-Hispanic) of 9.9 and Hispanic under 99.5? | SELECT COUNT(white__both_hispanic_and_non_hispanic_) FROM table_name_77 WHERE black__both_hispanic_and_non_hispanic_ = 9.9 AND hispanic__of_any_race_ < 99.5 | [
2061,
318,
262,
2472,
1271,
286,
2330,
357,
43830,
14,
15419,
12,
43830,
8,
1719,
257,
2042,
357,
43830,
14,
15419,
12,
43830,
8,
286,
860,
13,
24,
290,
16949,
739,
7388,
13,
20,
30,
46506,
327,
28270,
7,
11186,
834,
16885,
62,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2330,
357,
43830,
14,
15419,
12,
43830,
8,
1719,
257,
2042,
357,
43830,
14,
15419,
12,
43830,
8,
286,
860,
13,
24,
290,
16949,
739,
7388,
13,
20,
30,
46506,
327,
28270,
7,
11186,
834,
16885,
62,
14... |
who were the only two runners to complete the race in over 54 seconds ? | SELECT "athlete" FROM table_204_937 WHERE "time" > 54 | [
8727,
547,
262,
691,
734,
19323,
284,
1844,
262,
3234,
287,
625,
7175,
4201,
5633,
46506,
366,
776,
5807,
1,
16034,
3084,
62,
18638,
62,
24,
2718,
33411,
366,
2435,
1,
1875,
7175
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
262,
691,
734,
19323,
284,
1844,
262,
3234,
287,
625,
7175,
4201,
5633,
46506,
366,
776,
5807,
1,
16034,
3084,
62,
18638,
62,
24,
2718,
33411,
366,
2435,
1,
1875,
7175
] |
what is the name of the drug that was prescribed during the same hospital encounter to patient 007-1517 after having received a therapeutic antibacterials - vancomycin procedure until 70 months ago? | SELECT t2.drugname FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =... | [
10919,
318,
262,
1438,
286,
262,
2563,
326,
373,
14798,
1141,
262,
976,
4436,
8791,
284,
5827,
3571,
22,
12,
1314,
1558,
706,
1719,
2722,
257,
21546,
11310,
7321,
8231,
532,
5719,
785,
88,
17879,
8771,
1566,
4317,
1933,
2084,
30,
4650... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2563,
326,
373,
14798,
1141,
262,
976,
4436,
8791,
284,
5827,
3571,
22,
12,
1314,
1558,
706,
1719,
2722,
257,
21546,
11310,
7321,
8231,
532,
5719,
785,
88,
17879,
8771,
1566,
4317,
1933,
2084,
30,
4650... |
What is the away team when solon was the home team? | SELECT "Away team" FROM table_79295 WHERE "Home team" = 'solon' | [
2061,
318,
262,
1497,
1074,
618,
1540,
261,
373,
262,
1363,
1074,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
3720,
25710,
33411,
366,
16060,
1074,
1,
796,
705,
34453,
261,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1497,
1074,
618,
1540,
261,
373,
262,
1363,
1074,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
3720,
25710,
33411,
366,
16060,
1074,
1,
796,
705,
34453,
261,
6
] |
What is the number with an 80.62 percentage? | SELECT number FROM table_name_91 WHERE percentage___percentage_ = "80.62" | [
2061,
318,
262,
1271,
351,
281,
4019,
13,
5237,
5873,
30,
46506,
1271,
16034,
3084,
62,
3672,
62,
6420,
33411,
5873,
17569,
25067,
496,
62,
796,
366,
1795,
13,
5237,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
351,
281,
4019,
13,
5237,
5873,
30,
46506,
1271,
16034,
3084,
62,
3672,
62,
6420,
33411,
5873,
17569,
25067,
496,
62,
796,
366,
1795,
13,
5237,
1
] |
What is the latest year for first elected with john hostettler as incumbent and a result of lost re-election democratic gain? | SELECT MAX("First elected") FROM table_59726 WHERE "Results" = 'lost re-election democratic gain' AND "Incumbent" = 'john hostettler' | [
2061,
318,
262,
3452,
614,
329,
717,
7018,
351,
45610,
2583,
3087,
1754,
355,
23526,
290,
257,
1255,
286,
2626,
302,
12,
14300,
10518,
4461,
30,
46506,
25882,
7203,
5962,
7018,
4943,
16034,
3084,
62,
43239,
2075,
33411,
366,
25468,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3452,
614,
329,
717,
7018,
351,
45610,
2583,
3087,
1754,
355,
23526,
290,
257,
1255,
286,
2626,
302,
12,
14300,
10518,
4461,
30,
46506,
25882,
7203,
5962,
7018,
4943,
16034,
3084,
62,
43239,
2075,
33411,
366,
25468,
1,
... |
give me the number of patients whose admission type is emergency and lab test category is hematology? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab."CATEGORY" = "Hematology" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
2248,
1332,
6536,
318,
339,
6759,
1435,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
2248,
1332,
6536,
318,
339,
6759,
1435,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6... |
Which Team/Chassis has less than 65 points? | SELECT "Team/Chassis" FROM table_59161 WHERE "Pts." < '65' | [
13828,
4816,
14,
1925,
20297,
468,
1342,
621,
6135,
2173,
30,
46506,
366,
15592,
14,
1925,
20297,
1,
16034,
3084,
62,
3270,
25948,
33411,
366,
47,
912,
526,
1279,
705,
2996,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
4816,
14,
1925,
20297,
468,
1342,
621,
6135,
2173,
30,
46506,
366,
15592,
14,
1925,
20297,
1,
16034,
3084,
62,
3270,
25948,
33411,
366,
47,
912,
526,
1279,
705,
2996,
6
] |
What team had a high rebound of perkins (9) and a game smaller than 78? | SELECT "Team" FROM table_51237 WHERE "Game" < '78' AND "High rebounds" = 'perkins (9)' | [
2061,
1074,
550,
257,
1029,
23623,
286,
583,
5331,
357,
24,
8,
290,
257,
983,
4833,
621,
8699,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
25836,
2718,
33411,
366,
8777,
1,
1279,
705,
3695,
6,
5357,
366,
11922,
18841,
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,
1074,
550,
257,
1029,
23623,
286,
583,
5331,
357,
24,
8,
290,
257,
983,
4833,
621,
8699,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
25836,
2718,
33411,
366,
8777,
1,
1279,
705,
3695,
6,
5357,
366,
11922,
18841,
1,
796,
705,
... |
Which Crowd has an Away team of st kilda? | SELECT crowd FROM table_name_28 WHERE away_team = "st kilda" | [
13828,
29452,
468,
281,
21986,
1074,
286,
336,
479,
27281,
30,
46506,
4315,
16034,
3084,
62,
3672,
62,
2078,
33411,
1497,
62,
15097,
796,
366,
301,
479,
27281,
1
] | [
1,
1,
1,
1,
1,
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,
29452,
468,
281,
21986,
1074,
286,
336,
479,
27281,
30,
46506,
4315,
16034,
3084,
62,
3672,
62,
2078,
33411,
1497,
62,
15097,
796,
366,
301,
479,
27281,
1
] |
Name the 2007 for 2005 of a and 003 of a with 2009 of sf | SELECT "2007" FROM table_69450 WHERE "2005" = 'a' AND "2003" = 'a' AND "2009" = 'sf' | [
5376,
262,
4343,
329,
5075,
286,
257,
290,
3571,
18,
286,
257,
351,
3717,
286,
264,
69,
46506,
366,
12726,
1,
16034,
3084,
62,
3388,
17885,
33411,
366,
14315,
1,
796,
705,
64,
6,
5357,
366,
16088,
1,
796,
705,
64,
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,
1
] | [
5376,
262,
4343,
329,
5075,
286,
257,
290,
3571,
18,
286,
257,
351,
3717,
286,
264,
69,
46506,
366,
12726,
1,
16034,
3084,
62,
3388,
17885,
33411,
366,
14315,
1,
796,
705,
64,
6,
5357,
366,
16088,
1,
796,
705,
64,
6,
5357,
366,
... |
What is the other mozilla that has 9.41% for the safari? | SELECT "Other Mozilla" FROM table_64268 WHERE "Safari" = '9.41%' | [
2061,
318,
262,
584,
6941,
16496,
326,
468,
860,
13,
3901,
4,
329,
262,
1932,
2743,
30,
46506,
366,
6395,
29258,
1,
16034,
3084,
62,
2414,
25022,
33411,
366,
50,
1878,
2743,
1,
796,
705,
24,
13,
3901,
4,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
584,
6941,
16496,
326,
468,
860,
13,
3901,
4,
329,
262,
1932,
2743,
30,
46506,
366,
6395,
29258,
1,
16034,
3084,
62,
2414,
25022,
33411,
366,
50,
1878,
2743,
1,
796,
705,
24,
13,
3901,
4,
6
] |
What was the Partner on June 17, 2012? | SELECT partner FROM table_name_69 WHERE date = "june 17, 2012" | [
2061,
373,
262,
35532,
319,
2795,
1596,
11,
2321,
30,
46506,
5212,
16034,
3084,
62,
3672,
62,
3388,
33411,
3128,
796,
366,
73,
1726,
1596,
11,
2321,
1
] | [
1,
1,
1,
1,
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,
35532,
319,
2795,
1596,
11,
2321,
30,
46506,
5212,
16034,
3084,
62,
3672,
62,
3388,
33411,
3128,
796,
366,
73,
1726,
1596,
11,
2321,
1
] |
what is the number of patients whose marital status is single and admission year is less than 2178? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.admityear < "2178" | [
10919,
318,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
13938,
614,
318,
1342,
621,
362,
23188,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
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
] | [
10919,
318,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
13938,
614,
318,
1342,
621,
362,
23188,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,... |
Will next semester 's offerings include DENT 753 ? | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'DENT' AND course.number = 753 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | [
8743,
1306,
24878,
705,
82,
18369,
2291,
360,
3525,
767,
4310,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
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... | [
8743,
1306,
24878,
705,
82,
18369,
2291,
360,
3525,
767,
4310,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
... |
what is average age of patients whose primary disease is st elevated myocardial infarction\cardiac cath and days of hospital stay is 13? | SELECT AVG(demographic.age) FROM demographic WHERE demographic.diagnosis = "ST ELEVATED MYOCARDIAL INFARCTION\CARDIAC CATH" AND demographic.days_stay = "13" | [
10919,
318,
2811,
2479,
286,
3871,
3025,
4165,
4369,
318,
336,
15321,
616,
44412,
498,
1167,
283,
596,
59,
9517,
9607,
32171,
290,
1528,
286,
4436,
2652,
318,
1511,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
2479,
286,
3871,
3025,
4165,
4369,
318,
336,
15321,
616,
44412,
498,
1167,
283,
596,
59,
9517,
9607,
32171,
290,
1528,
286,
4436,
2652,
318,
1511,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
167... |
How many sets were played in the 2011 tournament, in which 2R were played in 2008? | SELECT 2011 FROM table_name_4 WHERE 2008 = "2r" | [
2437,
867,
5621,
547,
2826,
287,
262,
2813,
7756,
11,
287,
543,
362,
49,
547,
2826,
287,
3648,
30,
46506,
2813,
16034,
3084,
62,
3672,
62,
19,
33411,
3648,
796,
366,
17,
81,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
5621,
547,
2826,
287,
262,
2813,
7756,
11,
287,
543,
362,
49,
547,
2826,
287,
3648,
30,
46506,
2813,
16034,
3084,
62,
3672,
62,
19,
33411,
3648,
796,
366,
17,
81,
1
] |
when did patient 004-93782 for the last time since 2102 get discharged from the hospital? | SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '004-93782' AND STRFTIME('%y', patient.hospitaldischargetime) >= '2102' ORDER BY patient.hospitaldischargetime DESC LIMIT 1 | [
12518,
750,
5827,
3571,
19,
12,
24,
2718,
6469,
329,
262,
938,
640,
1201,
362,
15377,
651,
26476,
422,
262,
4436,
30,
46506,
5827,
13,
49257,
6381,
354,
7641,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
22914,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
5827,
3571,
19,
12,
24,
2718,
6469,
329,
262,
938,
640,
1201,
362,
15377,
651,
26476,
422,
262,
4436,
30,
46506,
5827,
13,
49257,
6381,
354,
7641,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
22914,
... |
Who was the away team for the game with a score of 139-119? | SELECT away_team FROM table_name_75 WHERE score = "139-119" | [
8241,
373,
262,
1497,
1074,
329,
262,
983,
351,
257,
4776,
286,
23666,
12,
16315,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
2425,
33411,
4776,
796,
366,
20219,
12,
16315,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1497,
1074,
329,
262,
983,
351,
257,
4776,
286,
23666,
12,
16315,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
2425,
33411,
4776,
796,
366,
20219,
12,
16315,
1
] |
How many reviewers are there? | SELECT COUNT(*) FROM reviewer | [
2437,
867,
30702,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
37823
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
30702,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
37823
] |
What is the change number with fewer than 4.7% votes and more than 0 seats? | SELECT SUM(change) FROM table_name_89 WHERE _percentage_votes < 4.7 AND seats > 0 | [
2061,
318,
262,
1487,
1271,
351,
7380,
621,
604,
13,
22,
4,
5690,
290,
517,
621,
657,
8632,
30,
46506,
35683,
7,
3803,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
4808,
25067,
496,
62,
29307,
1279,
604,
13,
22,
5357,
8632,
1875,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1487,
1271,
351,
7380,
621,
604,
13,
22,
4,
5690,
290,
517,
621,
657,
8632,
30,
46506,
35683,
7,
3803,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
4808,
25067,
496,
62,
29307,
1279,
604,
13,
22,
5357,
8632,
1875,
65... |
fasting c _ peptide greater than or equal to 0.8 ng / ml. | SELECT * FROM table_dev_14 WHERE fasting_c_peptide >= 0.8 | [
7217,
278,
269,
4808,
34337,
485,
3744,
621,
393,
4961,
284,
657,
13,
23,
23370,
1220,
25962,
13,
46506,
1635,
16034,
3084,
62,
7959,
62,
1415,
33411,
24845,
62,
66,
62,
431,
457,
485,
18189,
657,
13,
23
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
7217,
278,
269,
4808,
34337,
485,
3744,
621,
393,
4961,
284,
657,
13,
23,
23370,
1220,
25962,
13,
46506,
1635,
16034,
3084,
62,
7959,
62,
1415,
33411,
24845,
62,
66,
62,
431,
457,
485,
18189,
657,
13,
23
] |
male or female 50 to 90 of age inclusive. | SELECT * FROM table_train_77 WHERE (gender = 'male' OR gender = 'female') AND (age >= 50 AND age <= 90) | [
22606,
393,
4048,
2026,
284,
4101,
286,
2479,
19889,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
3324,
33411,
357,
8388,
796,
705,
22606,
6,
6375,
5279,
796,
705,
24724,
11537,
5357,
357,
496,
18189,
2026,
5357,
2479,
19841,
4101,
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
] | [
22606,
393,
4048,
2026,
284,
4101,
286,
2479,
19889,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
3324,
33411,
357,
8388,
796,
705,
22606,
6,
6375,
5279,
796,
705,
24724,
11537,
5357,
357,
496,
18189,
2026,
5357,
2479,
19841,
4101,
8
] |
What is the Call sign of the Omni television network with a Digitial PSIP of 14.1? | SELECT "Call sign" FROM table_68877 WHERE "Network" = 'omni television' AND "Digital PSIP" = '14.1' | [
2061,
318,
262,
4889,
1051,
286,
262,
44251,
5581,
3127,
351,
257,
7367,
6847,
6599,
4061,
286,
1478,
13,
16,
30,
46506,
366,
14134,
1051,
1,
16034,
3084,
62,
34427,
3324,
33411,
366,
26245,
1,
796,
705,
296,
8461,
5581,
6,
5357,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4889,
1051,
286,
262,
44251,
5581,
3127,
351,
257,
7367,
6847,
6599,
4061,
286,
1478,
13,
16,
30,
46506,
366,
14134,
1051,
1,
16034,
3084,
62,
34427,
3324,
33411,
366,
26245,
1,
796,
705,
296,
8461,
5581,
6,
5357,
36... |
How many times did an election feature the result robert l. leggett (d) 50.2% albert dehr (r) 49.8%? | SELECT COUNT(result) FROM table_1341672_6 WHERE candidates = "Robert L. Leggett (D) 50.2% Albert Dehr (R) 49.8%" | [
2437,
867,
1661,
750,
281,
3071,
3895,
262,
1255,
686,
4835,
300,
13,
443,
1130,
3087,
357,
67,
8,
2026,
13,
17,
4,
435,
4835,
390,
11840,
357,
81,
8,
5125,
13,
23,
4,
30,
46506,
327,
28270,
7,
20274,
8,
16034,
3084,
62,
19880,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
750,
281,
3071,
3895,
262,
1255,
686,
4835,
300,
13,
443,
1130,
3087,
357,
67,
8,
2026,
13,
17,
4,
435,
4835,
390,
11840,
357,
81,
8,
5125,
13,
23,
4,
30,
46506,
327,
28270,
7,
20274,
8,
16034,
3084,
62,
19880,
... |
What is the total number of 3rd place entries that have exactly 8 total placings? | SELECT COUNT(third_place_s_) FROM table_20823568_2 WHERE total_placing_s_ = 8 | [
2061,
318,
262,
2472,
1271,
286,
513,
4372,
1295,
12784,
326,
423,
3446,
807,
2472,
21957,
654,
30,
46506,
327,
28270,
7,
17089,
62,
5372,
62,
82,
62,
8,
16034,
3084,
62,
21315,
22370,
3104,
62,
17,
33411,
2472,
62,
489,
4092,
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
] | [
2061,
318,
262,
2472,
1271,
286,
513,
4372,
1295,
12784,
326,
423,
3446,
807,
2472,
21957,
654,
30,
46506,
327,
28270,
7,
17089,
62,
5372,
62,
82,
62,
8,
16034,
3084,
62,
21315,
22370,
3104,
62,
17,
33411,
2472,
62,
489,
4092,
62,
... |
how many patients whose diagnoses icd9 code is 6929 and drug route is ed? | 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.icd9_code = "6929" AND prescriptions.route = "ED" | [
4919,
867,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
8644,
1959,
290,
2563,
6339,
318,
1225,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
8644,
1959,
290,
2563,
6339,
318,
1225,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
... |
Which team had a game of 82? | SELECT "Team" FROM table_55772 WHERE "Game" = '82' | [
13828,
1074,
550,
257,
983,
286,
9415,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
2816,
43571,
33411,
366,
8777,
1,
796,
705,
6469,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1074,
550,
257,
983,
286,
9415,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
2816,
43571,
33411,
366,
8777,
1,
796,
705,
6469,
6
] |
How many positions had a difference of - 4 and an against of less than 24? | SELECT COUNT("Position") FROM table_34591 WHERE "Difference" = '- 4' AND "Against" < '24' | [
2437,
867,
6116,
550,
257,
3580,
286,
532,
604,
290,
281,
1028,
286,
1342,
621,
1987,
30,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
27712,
6420,
33411,
366,
28813,
1945,
1,
796,
705,
12,
604,
6,
5357,
366,
39276,
1,
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
] | [
2437,
867,
6116,
550,
257,
3580,
286,
532,
604,
290,
281,
1028,
286,
1342,
621,
1987,
30,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
27712,
6420,
33411,
366,
28813,
1945,
1,
796,
705,
12,
604,
6,
5357,
366,
39276,
1,
127... |
For those employees who was hired before 2002-06-21, give me the comparison about the sum of salary over the hire_date bin hire_date by weekday by a bar chart. | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
9588,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
416,
257,
2318,
8262,
13,
46506,
36210,
2200,
62,
35,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
9588,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
416,
257,
2318,
8262,
13,
46506,
36210,
2200,
62,
35,... |
count the number of patients whose primary disease is s/p hanging and days of hospital stay is greater than 20? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "S/P HANGING" AND demographic.days_stay > "20" | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
264,
14,
79,
10938,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
1160,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
264,
14,
79,
10938,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
1160,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
4... |
Bar chart x axis meter 600 y axis id | SELECT meter_600, ID FROM swimmer | [
10374,
8262,
2124,
16488,
16430,
10053,
331,
16488,
4686,
46506,
16430,
62,
8054,
11,
4522,
16034,
9422,
647
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
8262,
2124,
16488,
16430,
10053,
331,
16488,
4686,
46506,
16430,
62,
8054,
11,
4522,
16034,
9422,
647
] |
what's the function / genus with shigella being spa32 | SELECT "\u2193 Function / Genus \u2192" FROM table_16047 WHERE "Shigella" = 'Spa32' | [
10919,
338,
262,
2163,
1220,
34306,
351,
427,
328,
12627,
852,
41900,
2624,
46506,
37082,
84,
17,
24943,
15553,
1220,
5215,
385,
3467,
84,
17,
17477,
1,
16034,
3084,
62,
14198,
2857,
33411,
366,
2484,
328,
12627,
1,
796,
705,
4561,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
2163,
1220,
34306,
351,
427,
328,
12627,
852,
41900,
2624,
46506,
37082,
84,
17,
24943,
15553,
1220,
5215,
385,
3467,
84,
17,
17477,
1,
16034,
3084,
62,
14198,
2857,
33411,
366,
2484,
328,
12627,
1,
796,
705,
4561,
64... |
Which UEFA confederation member had a rank more than 17 and caps of 114? | SELECT name FROM table_name_32 WHERE rank > 17 AND confederation = "uefa" AND caps = 114 | [
13828,
40858,
1013,
9748,
2888,
550,
257,
4279,
517,
621,
1596,
290,
11022,
286,
17342,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
2624,
33411,
4279,
1875,
1596,
5357,
1013,
9748,
796,
366,
518,
13331,
1,
5357,
11022,
796,
17342
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40858,
1013,
9748,
2888,
550,
257,
4279,
517,
621,
1596,
290,
11022,
286,
17342,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
2624,
33411,
4279,
1875,
1596,
5357,
1013,
9748,
796,
366,
518,
13331,
1,
5357,
11022,
796,
17342
] |
which of the listed segments has the most electorates ? | SELECT "name" FROM table_204_255 ORDER BY "number of electorates (2009)" DESC LIMIT 1 | [
4758,
286,
262,
5610,
17894,
468,
262,
749,
43191,
689,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
13381,
38678,
11050,
366,
17618,
286,
43191,
689,
357,
10531,
16725,
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,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
286,
262,
5610,
17894,
468,
262,
749,
43191,
689,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
13381,
38678,
11050,
366,
17618,
286,
43191,
689,
357,
10531,
16725,
22196,
34,
27564,
2043,
352
] |
What Film Festival had participants/recipients of Isao Tomita? | SELECT film_festival FROM table_26282750_1 WHERE participants_recipients = "Isao Tomita" | [
2061,
13741,
11117,
550,
6809,
14,
8344,
541,
2334,
286,
1148,
5488,
4186,
5350,
30,
46506,
2646,
62,
69,
6743,
16034,
3084,
62,
2075,
2078,
1983,
1120,
62,
16,
33411,
6809,
62,
8344,
541,
2334,
796,
366,
3792,
5488,
4186,
5350,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13741,
11117,
550,
6809,
14,
8344,
541,
2334,
286,
1148,
5488,
4186,
5350,
30,
46506,
2646,
62,
69,
6743,
16034,
3084,
62,
2075,
2078,
1983,
1120,
62,
16,
33411,
6809,
62,
8344,
541,
2334,
796,
366,
3792,
5488,
4186,
5350,
1
] |
What is the Date of the RCA release with Catalog number SF-7635? | SELECT date FROM table_name_57 WHERE label = "rca" AND catalog = "sf-7635" | [
2061,
318,
262,
7536,
286,
262,
371,
8141,
2650,
351,
44515,
1271,
14362,
12,
4304,
2327,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3553,
33411,
6167,
796,
366,
6015,
64,
1,
5357,
18388,
796,
366,
28202,
12,
4304,
2327,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7536,
286,
262,
371,
8141,
2650,
351,
44515,
1271,
14362,
12,
4304,
2327,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3553,
33411,
6167,
796,
366,
6015,
64,
1,
5357,
18388,
796,
366,
28202,
12,
4304,
2327,
1
] |
What is the total capacity of dorms for each gender? Give me a bar chart, and could you list by the x-axis from low to high? | SELECT gender, SUM(student_capacity) FROM Dorm GROUP BY gender ORDER BY gender | [
2061,
318,
262,
2472,
5339,
286,
18586,
82,
329,
1123,
5279,
30,
13786,
502,
257,
2318,
8262,
11,
290,
714,
345,
1351,
416,
262,
2124,
12,
22704,
422,
1877,
284,
1029,
30,
46506,
5279,
11,
35683,
7,
50139,
62,
42404,
8,
16034,
360,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5339,
286,
18586,
82,
329,
1123,
5279,
30,
13786,
502,
257,
2318,
8262,
11,
290,
714,
345,
1351,
416,
262,
2124,
12,
22704,
422,
1877,
284,
1029,
30,
46506,
5279,
11,
35683,
7,
50139,
62,
42404,
8,
16034,
360,
... |
how many prescriptions have been ordered for atorvastatin 40 mg tab in this year? | SELECT COUNT(*) FROM medication WHERE medication.drugname = 'atorvastatin 40 mg tab' AND DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
4919,
867,
34092,
423,
587,
6149,
329,
379,
273,
85,
459,
10680,
2319,
10527,
7400,
287,
428,
614,
30,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
13,
30349,
3672,
796,
705,
1352,
85,
459,
10680,
2319,
10527,
7400,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
34092,
423,
587,
6149,
329,
379,
273,
85,
459,
10680,
2319,
10527,
7400,
287,
428,
614,
30,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
13,
30349,
3672,
796,
705,
1352,
85,
459,
10680,
2319,
10527,
7400,
6,
535... |
which NW flights stop in DENVER before 1200 | SELECT DISTINCT flight.flight_id FROM airport_service, city, flight, flight_stop WHERE city.city_code = airport_service.city_code AND city.city_name = 'DENVER' AND flight_stop.arrival_time < 1200 AND flight_stop.stop_airport = airport_service.airport_code AND flight.airline_code = 'NW' AND flight.flight_id = flight_sto... | [
4758,
21966,
13956,
2245,
287,
37692,
5959,
878,
24938,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
11,
1748,
11,
5474,
11,
5474,
62,
11338,
33411,
1748,
13,
19205,
62,
8189,
796,
9003,
62,
15271,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4758,
21966,
13956,
2245,
287,
37692,
5959,
878,
24938,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
11,
1748,
11,
5474,
11,
5474,
62,
11338,
33411,
1748,
13,
19205,
62,
8189,
796,
9003,
62,
15271,
1... |
What kind of South Marquesan has a S moan of /matua/? | SELECT south_marquesan FROM table_name_67 WHERE sāmoan = "/matua/" | [
2061,
1611,
286,
2520,
1526,
13281,
272,
468,
257,
311,
44567,
286,
1220,
6759,
6413,
20924,
46506,
5366,
62,
3876,
13281,
272,
16034,
3084,
62,
3672,
62,
3134,
33411,
264,
10235,
5908,
272,
796,
12813,
6759,
6413,
30487
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2520,
1526,
13281,
272,
468,
257,
311,
44567,
286,
1220,
6759,
6413,
20924,
46506,
5366,
62,
3876,
13281,
272,
16034,
3084,
62,
3672,
62,
3134,
33411,
264,
10235,
5908,
272,
796,
12813,
6759,
6413,
30487
] |
How many rounds did the match last when his record was 6-6? | SELECT round FROM table_name_72 WHERE record = "6-6" | [
2437,
867,
9196,
750,
262,
2872,
938,
618,
465,
1700,
373,
718,
12,
21,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
4761,
33411,
1700,
796,
366,
21,
12,
21,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
9196,
750,
262,
2872,
938,
618,
465,
1700,
373,
718,
12,
21,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
4761,
33411,
1700,
796,
366,
21,
12,
21,
1
] |
What is the lowest number of wins? | SELECT MIN("Wins") FROM table_19606 | [
2061,
318,
262,
9016,
1271,
286,
7864,
30,
46506,
20625,
7203,
54,
1040,
4943,
16034,
3084,
62,
1129,
33206
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
1271,
286,
7864,
30,
46506,
20625,
7203,
54,
1040,
4943,
16034,
3084,
62,
1129,
33206
] |
What is the Diameter (mi) when the Longitude is 79.8 e? | SELECT diameter__mi_ FROM table_name_65 WHERE longitude = "79.8° e" | [
2061,
318,
262,
360,
13173,
357,
11632,
8,
618,
262,
5882,
3984,
318,
9225,
13,
23,
304,
30,
46506,
14753,
834,
11632,
62,
16034,
3084,
62,
3672,
62,
2996,
33411,
890,
3984,
796,
366,
3720,
13,
23,
7200,
304,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
360,
13173,
357,
11632,
8,
618,
262,
5882,
3984,
318,
9225,
13,
23,
304,
30,
46506,
14753,
834,
11632,
62,
16034,
3084,
62,
3672,
62,
2996,
33411,
890,
3984,
796,
366,
3720,
13,
23,
7200,
304,
1
] |
What is the lowest Total, when Year(s) Won is '1968 , 1971', and when To Par is less than 11? | SELECT MIN(total) FROM table_name_79 WHERE year_s__won = "1968 , 1971" AND to_par < 11 | [
2061,
318,
262,
9016,
7472,
11,
618,
6280,
7,
82,
8,
23306,
318,
705,
42246,
837,
16382,
3256,
290,
618,
1675,
2547,
318,
1342,
621,
1367,
30,
46506,
20625,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
3720,
33411,
614,
62,
82,
834,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
7472,
11,
618,
6280,
7,
82,
8,
23306,
318,
705,
42246,
837,
16382,
3256,
290,
618,
1675,
2547,
318,
1342,
621,
1367,
30,
46506,
20625,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
3720,
33411,
614,
62,
82,
834,
26... |
Which Incumbent has a District of California 5? | SELECT incumbent FROM table_name_99 WHERE district = "california 5" | [
13828,
3457,
2178,
298,
468,
257,
5665,
286,
3442,
642,
30,
46506,
23526,
16034,
3084,
62,
3672,
62,
2079,
33411,
4783,
796,
366,
9948,
361,
3317,
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
] | [
13828,
3457,
2178,
298,
468,
257,
5665,
286,
3442,
642,
30,
46506,
23526,
16034,
3084,
62,
3672,
62,
2079,
33411,
4783,
796,
366,
9948,
361,
3317,
642,
1
] |
The fighting knights has what type of nickname? | SELECT type FROM table_1183842_1 WHERE nickname = "Fighting Knights" | [
464,
4330,
27536,
468,
644,
2099,
286,
21814,
30,
46506,
2099,
16034,
3084,
62,
16817,
2548,
3682,
62,
16,
33411,
21814,
796,
366,
46375,
15188,
1
] | [
1,
1,
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,
4330,
27536,
468,
644,
2099,
286,
21814,
30,
46506,
2099,
16034,
3084,
62,
16817,
2548,
3682,
62,
16,
33411,
21814,
796,
366,
46375,
15188,
1
] |
Calculate the average age of white-russian ethnic background patients who were admitted to hospital in or after 2137. | SELECT AVG(demographic.age) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.admityear >= "2137" | [
9771,
3129,
378,
262,
2811,
2479,
286,
2330,
12,
81,
31562,
9450,
4469,
3871,
508,
547,
6848,
284,
4436,
287,
393,
706,
362,
19708,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9771,
3129,
378,
262,
2811,
2479,
286,
2330,
12,
81,
31562,
9450,
4469,
3871,
508,
547,
6848,
284,
4436,
287,
393,
706,
362,
19708,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
366,
1... |
What is the location of the tiruchirappalli district? | SELECT "Location" FROM table_57114 WHERE "District" = 'tiruchirappalli district' | [
2061,
318,
262,
4067,
286,
262,
48965,
794,
343,
1324,
36546,
4783,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
3553,
16562,
33411,
366,
44857,
1,
796,
705,
83,
343,
794,
343,
1324,
36546,
4783,
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
] | [
2061,
318,
262,
4067,
286,
262,
48965,
794,
343,
1324,
36546,
4783,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
3553,
16562,
33411,
366,
44857,
1,
796,
705,
83,
343,
794,
343,
1324,
36546,
4783,
6
] |
which country is last on the table ? | SELECT "nation" FROM table_203_653 ORDER BY id DESC LIMIT 1 | [
4758,
1499,
318,
938,
319,
262,
3084,
5633,
46506,
366,
25729,
1,
16034,
3084,
62,
22416,
62,
46435,
38678,
11050,
4686,
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
] | [
4758,
1499,
318,
938,
319,
262,
3084,
5633,
46506,
366,
25729,
1,
16034,
3084,
62,
22416,
62,
46435,
38678,
11050,
4686,
22196,
34,
27564,
2043,
352
] |
Which song has picturization by only vijay? | SELECT song FROM table_10848177_1 WHERE picturization = "Vijay" | [
13828,
3496,
468,
2862,
333,
1634,
416,
691,
410,
2926,
323,
30,
46506,
3496,
16034,
3084,
62,
15711,
2780,
22413,
62,
16,
33411,
2862,
333,
1634,
796,
366,
53,
2926,
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
] | [
13828,
3496,
468,
2862,
333,
1634,
416,
691,
410,
2926,
323,
30,
46506,
3496,
16034,
3084,
62,
15711,
2780,
22413,
62,
16,
33411,
2862,
333,
1634,
796,
366,
53,
2926,
323,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.