instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What rounds did RML Racing Silverline and James Nash compete? | SELECT "Rounds" FROM table_65927 WHERE "Team" = 'rml racing silverline' AND "Drivers" = 'james nash' | [
2061,
9196,
750,
371,
5805,
14954,
7698,
1370,
290,
3700,
13950,
9320,
30,
46506,
366,
49,
3733,
1,
16034,
3084,
62,
36445,
1983,
33411,
366,
15592,
1,
796,
705,
81,
4029,
11717,
8465,
1370,
6,
5357,
366,
20564,
690,
1,
796,
705,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9196,
750,
371,
5805,
14954,
7698,
1370,
290,
3700,
13950,
9320,
30,
46506,
366,
49,
3733,
1,
16034,
3084,
62,
36445,
1983,
33411,
366,
15592,
1,
796,
705,
81,
4029,
11717,
8465,
1370,
6,
5357,
366,
20564,
690,
1,
796,
705,
73... |
Which classes being offered this Spring-Summer are upper-level WRITING ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'WRITING' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spr... | [
13828,
6097,
852,
4438,
428,
8225,
12,
33560,
389,
6727,
12,
5715,
11342,
2043,
2751,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
1430,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6097,
852,
4438,
428,
8225,
12,
33560,
389,
6727,
12,
5715,
11342,
2043,
2751,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
1430,... |
I want to know the third with runner of paris saint-germain and edition less than 5 | SELECT "Third" FROM table_10513 WHERE "Runner-up" = 'paris saint-germain' AND "Edition" < '5' | [
40,
765,
284,
760,
262,
2368,
351,
17490,
286,
1582,
271,
32292,
12,
1362,
12417,
290,
8313,
1342,
621,
642,
46506,
366,
22747,
1,
16034,
3084,
62,
13348,
1485,
33411,
366,
49493,
12,
929,
1,
796,
705,
1845,
271,
32292,
12,
1362,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
284,
760,
262,
2368,
351,
17490,
286,
1582,
271,
32292,
12,
1362,
12417,
290,
8313,
1342,
621,
642,
46506,
366,
22747,
1,
16034,
3084,
62,
13348,
1485,
33411,
366,
49493,
12,
929,
1,
796,
705,
1845,
271,
32292,
12,
1362,
12... |
how many days have passed since patient 8116 was admitted to intensive care? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', icustays.intime)) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8116) AND icustays.outtime IS NULL | [
4919,
867,
1528,
423,
3804,
1201,
5827,
807,
18298,
373,
6848,
284,
18590,
1337,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
14158,
436,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3804,
1201,
5827,
807,
18298,
373,
6848,
284,
18590,
1337,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
14158,
436,
... |
What is Result, when Date is 'June 11, 1994', and when Venue is 'Miami, United States'? | SELECT result FROM table_name_58 WHERE date = "june 11, 1994" AND venue = "miami, united states" | [
2061,
318,
25414,
11,
618,
7536,
318,
705,
15749,
1367,
11,
9162,
3256,
290,
618,
9932,
518,
318,
705,
41191,
11,
1578,
1829,
30960,
46506,
1255,
16034,
3084,
62,
3672,
62,
3365,
33411,
3128,
796,
366,
73,
1726,
1367,
11,
9162,
1,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25414,
11,
618,
7536,
318,
705,
15749,
1367,
11,
9162,
3256,
290,
618,
9932,
518,
318,
705,
41191,
11,
1578,
1829,
30960,
46506,
1255,
16034,
3084,
62,
3672,
62,
3365,
33411,
3128,
796,
366,
73,
1726,
1367,
11,
9162,
1,
5... |
What conferences does Yejin Kim submit to ? | SELECT DISTINCT paper.venueid FROM author, paper, writes WHERE author.authorname = 'Yejin Kim' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
2061,
19993,
857,
11609,
18594,
6502,
9199,
284,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
4080,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
35543,
18594,
6502,
6,
5357,
6797,
13,
9800,
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
] | [
2061,
19993,
857,
11609,
18594,
6502,
9199,
284,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
4080,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
35543,
18594,
6502,
6,
5357,
6797,
13,
9800,
312,
... |
What is 1996, when 1992 is 'ATP Masters Series'? | SELECT 1996 FROM table_name_29 WHERE 1992 = "atp masters series" | [
2061,
318,
8235,
11,
618,
9768,
318,
705,
1404,
47,
15812,
7171,
30960,
46506,
8235,
16034,
3084,
62,
3672,
62,
1959,
33411,
9768,
796,
366,
265,
79,
18159,
2168,
1
] | [
1,
1,
1,
1,
1,
1,
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,
8235,
11,
618,
9768,
318,
705,
1404,
47,
15812,
7171,
30960,
46506,
8235,
16034,
3084,
62,
3672,
62,
1959,
33411,
9768,
796,
366,
265,
79,
18159,
2168,
1
] |
In which round was Gabriel Veiga the opponent? | SELECT "Round" FROM table_66206 WHERE "Opponent" = 'gabriel veiga' | [
818,
543,
2835,
373,
17371,
8016,
13827,
262,
6125,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
2791,
22136,
33411,
366,
27524,
3471,
1,
796,
705,
70,
397,
11719,
1569,
13827,
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
] | [
818,
543,
2835,
373,
17371,
8016,
13827,
262,
6125,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
2791,
22136,
33411,
366,
27524,
3471,
1,
796,
705,
70,
397,
11719,
1569,
13827,
6
] |
What is the Country of the Player with a Score of 73-70-71-71=285? | SELECT country FROM table_name_19 WHERE score = 73 - 70 - 71 - 71 = 285 | [
2061,
318,
262,
12946,
286,
262,
7853,
351,
257,
15178,
286,
8854,
12,
2154,
12,
4869,
12,
4869,
28,
26279,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1129,
33411,
4776,
796,
8854,
532,
4317,
532,
9166,
532,
9166,
796,
33015
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12946,
286,
262,
7853,
351,
257,
15178,
286,
8854,
12,
2154,
12,
4869,
12,
4869,
28,
26279,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1129,
33411,
4776,
796,
8854,
532,
4317,
532,
9166,
532,
9166,
796,
33015
] |
What is the total number of goals for when the drawn is less than 7, less than 21 games have been lost, and there are 1 of 33 points? | SELECT COUNT("Goals For") FROM table_78987 WHERE "Drawn" < '7' AND "Lost" < '21' AND "Points 1" = '33' | [
2061,
318,
262,
2472,
1271,
286,
4661,
329,
618,
262,
7428,
318,
1342,
621,
767,
11,
1342,
621,
2310,
1830,
423,
587,
2626,
11,
290,
612,
389,
352,
286,
4747,
2173,
30,
46506,
327,
28270,
7203,
5247,
874,
1114,
4943,
16034,
3084,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
2472,
1271,
286,
4661,
329,
618,
262,
7428,
318,
1342,
621,
767,
11,
1342,
621,
2310,
1830,
423,
587,
2626,
11,
290,
612,
389,
352,
286,
4747,
2173,
30,
46506,
327,
28270,
7203,
5247,
874,
1114,
4943,
16034,
3084,
62... |
Posts containing tr.im shortened URLs. Posts containing tr.im shortened URLs, which will cease to work at the end of 2010;
See http://meta.stackoverflow.com/questions/29518/can-and-should-stack-overflow-automatically-rewrite-bit-ly-links
See http://stackapps.com/questions/121/what-ideas-do-you-have-for-the-api/546#546 | SELECT Id AS "post_link", Body FROM Posts WHERE Body LIKE '%http://tr.im%' | [
21496,
7268,
491,
13,
320,
34464,
32336,
13,
12043,
7268,
491,
13,
320,
34464,
32336,
11,
543,
481,
13468,
284,
670,
379,
262,
886,
286,
3050,
26,
198,
6214,
2638,
1378,
28961,
13,
25558,
2502,
11125,
13,
785,
14,
6138,
507,
14,
257... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
21496,
7268,
491,
13,
320,
34464,
32336,
13,
12043,
7268,
491,
13,
320,
34464,
32336,
11,
543,
481,
13468,
284,
670,
379,
262,
886,
286,
3050,
26,
198,
6214,
2638,
1378,
28961,
13,
25558,
2502,
11125,
13,
785,
14,
6138,
507,
14,
257... |
What is the Result that has the New York Rangers as the Offer Team and Adam Graves as the Player? | SELECT "Result" FROM table_70645 WHERE "Offer Team" = 'new york rangers' AND "Player" = 'adam graves' | [
2061,
318,
262,
25414,
326,
468,
262,
968,
1971,
13804,
355,
262,
33085,
4816,
290,
7244,
37729,
355,
262,
7853,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
35402,
2231,
33411,
366,
9362,
263,
4816,
1,
796,
705,
3605,
331,
967,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25414,
326,
468,
262,
968,
1971,
13804,
355,
262,
33085,
4816,
290,
7244,
37729,
355,
262,
7853,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
35402,
2231,
33411,
366,
9362,
263,
4816,
1,
796,
705,
3605,
331,
967,
374,
... |
Which owner has a description of Mark 1 pos and is dated 1956? | SELECT "Owner(s)" FROM table_57145 WHERE "Date" = '1956' AND "Description" = 'mark 1 pos' | [
13828,
4870,
468,
257,
6764,
286,
2940,
352,
1426,
290,
318,
14567,
25190,
30,
46506,
366,
42419,
7,
82,
16725,
16034,
3084,
62,
3553,
18781,
33411,
366,
10430,
1,
796,
705,
1129,
3980,
6,
5357,
366,
11828,
1,
796,
705,
4102,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
4870,
468,
257,
6764,
286,
2940,
352,
1426,
290,
318,
14567,
25190,
30,
46506,
366,
42419,
7,
82,
16725,
16034,
3084,
62,
3553,
18781,
33411,
366,
10430,
1,
796,
705,
1129,
3980,
6,
5357,
366,
11828,
1,
796,
705,
4102,
352,
1... |
What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1? | SELECT abbreviation FROM table_name_79 WHERE inception = "1999" AND assets_us$billion = "7.1" | [
2061,
338,
262,
28873,
47625,
329,
262,
1499,
351,
281,
30839,
286,
7358,
290,
1294,
3,
33,
1131,
6798,
286,
767,
13,
16,
30,
46506,
28873,
47625,
16034,
3084,
62,
3672,
62,
3720,
33411,
30839,
796,
366,
18946,
1,
5357,
6798,
62,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28873,
47625,
329,
262,
1499,
351,
281,
30839,
286,
7358,
290,
1294,
3,
33,
1131,
6798,
286,
767,
13,
16,
30,
46506,
28873,
47625,
16034,
3084,
62,
3672,
62,
3720,
33411,
30839,
796,
366,
18946,
1,
5357,
6798,
62,
38... |
When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place? | SELECT "Place" FROM table_77318 WHERE "Score" > '67' AND "Country" = 'united states' AND "To par" = 'e' AND "Player" = 'bunky henry' | [
2215,
28515,
2584,
8616,
286,
262,
1578,
1829,
7781,
2440,
621,
8275,
290,
465,
1675,
1582,
373,
304,
11,
644,
373,
465,
1295,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
3324,
36042,
33411,
366,
26595,
1,
1875,
705,
3134,
6,
5357,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2215,
28515,
2584,
8616,
286,
262,
1578,
1829,
7781,
2440,
621,
8275,
290,
465,
1675,
1582,
373,
304,
11,
644,
373,
465,
1295,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
3324,
36042,
33411,
366,
26595,
1,
1875,
705,
3134,
6,
5357,
3... |
What is the highest number of goals Eisb ren Berlin had along with 13 points and 10 assists? | SELECT MAX("Goals") FROM table_48215 WHERE "Points" = '13' AND "Assists" = '10' AND "Club" = 'eisbären berlin' | [
2061,
318,
262,
4511,
1271,
286,
4661,
412,
271,
65,
8851,
11307,
550,
1863,
351,
1511,
2173,
290,
838,
13648,
30,
46506,
25882,
7203,
5247,
874,
4943,
16034,
3084,
62,
2780,
23349,
33411,
366,
40710,
1,
796,
705,
1485,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
1271,
286,
4661,
412,
271,
65,
8851,
11307,
550,
1863,
351,
1511,
2173,
290,
838,
13648,
30,
46506,
25882,
7203,
5247,
874,
4943,
16034,
3084,
62,
2780,
23349,
33411,
366,
40710,
1,
796,
705,
1485,
6,
5357,
366,
... |
How many papers has jennifer widom published ? | SELECT DISTINCT COUNT(DISTINCT writes.paperid) FROM author, writes WHERE author.authorname = 'jennifer widom' AND writes.authorid = author.authorid | [
2437,
867,
9473,
468,
474,
1697,
7087,
9214,
296,
3199,
5633,
46506,
360,
8808,
1268,
4177,
327,
28270,
7,
35,
8808,
1268,
4177,
6797,
13,
20189,
312,
8,
16034,
1772,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
73,
1697,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9473,
468,
474,
1697,
7087,
9214,
296,
3199,
5633,
46506,
360,
8808,
1268,
4177,
327,
28270,
7,
35,
8808,
1268,
4177,
6797,
13,
20189,
312,
8,
16034,
1772,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
73,
1697,
... |
When did the episode first air that had a production code of 102? | SELECT "Original air date" FROM table_73006 WHERE "Production code" = '102' | [
2215,
750,
262,
4471,
717,
1633,
326,
550,
257,
3227,
2438,
286,
15143,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
4790,
28041,
33411,
366,
35027,
2438,
1,
796,
705,
15377,
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
] | [
2215,
750,
262,
4471,
717,
1633,
326,
550,
257,
3227,
2438,
286,
15143,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
4790,
28041,
33411,
366,
35027,
2438,
1,
796,
705,
15377,
6
] |
What is the brigade when Al-Bira is the name? | SELECT brigade FROM table_name_7 WHERE name = "al-bira" | [
2061,
318,
262,
35889,
618,
978,
12,
33,
8704,
318,
262,
1438,
30,
46506,
35889,
16034,
3084,
62,
3672,
62,
22,
33411,
1438,
796,
366,
282,
12,
65,
8704,
1
] | [
1,
1,
1,
1,
1,
1,
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,
35889,
618,
978,
12,
33,
8704,
318,
262,
1438,
30,
46506,
35889,
16034,
3084,
62,
3672,
62,
22,
33411,
1438,
796,
366,
282,
12,
65,
8704,
1
] |
which was the last horse to finish ? | SELECT "horse" FROM table_204_330 ORDER BY "finished" DESC LIMIT 1 | [
4758,
373,
262,
938,
8223,
284,
5461,
5633,
46506,
366,
30527,
1,
16034,
3084,
62,
18638,
62,
26073,
38678,
11050,
366,
43952,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
373,
262,
938,
8223,
284,
5461,
5633,
46506,
366,
30527,
1,
16034,
3084,
62,
18638,
62,
26073,
38678,
11050,
366,
43952,
1,
22196,
34,
27564,
2043,
352
] |
What was the result of the 2012 Waff Women's Futsal Championship game the team played against Iraq? | SELECT "Result" FROM table_7502 WHERE "Tournament" = '2012 waff women''s futsal championship' AND "Opponent" = 'iraq' | [
2061,
373,
262,
1255,
286,
262,
2321,
370,
2001,
6926,
338,
376,
5500,
282,
10749,
983,
262,
1074,
2826,
1028,
3908,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
15426,
17,
33411,
366,
51,
5138,
1,
796,
705,
6999,
266,
2001,
1466,
706... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
286,
262,
2321,
370,
2001,
6926,
338,
376,
5500,
282,
10749,
983,
262,
1074,
2826,
1028,
3908,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
15426,
17,
33411,
366,
51,
5138,
1,
796,
705,
6999,
266,
2001,
1466,
706... |
What was the result of the Oregon 5 District incumbent who was first elected in 1996? | SELECT results FROM table_name_18 WHERE first_elected = 1996 AND district = "oregon 5" | [
2061,
373,
262,
1255,
286,
262,
8819,
642,
5665,
23526,
508,
373,
717,
7018,
287,
8235,
30,
46506,
2482,
16034,
3084,
62,
3672,
62,
1507,
33411,
717,
62,
28604,
796,
8235,
5357,
4783,
796,
366,
382,
14520,
642,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
286,
262,
8819,
642,
5665,
23526,
508,
373,
717,
7018,
287,
8235,
30,
46506,
2482,
16034,
3084,
62,
3672,
62,
1507,
33411,
717,
62,
28604,
796,
8235,
5357,
4783,
796,
366,
382,
14520,
642,
1
] |
Draw a bar chart about the distribution of meter_500 and ID , rank by the ID in asc. | SELECT meter_500, ID FROM swimmer ORDER BY ID | [
25302,
257,
2318,
8262,
546,
262,
6082,
286,
16430,
62,
4059,
290,
4522,
837,
4279,
416,
262,
4522,
287,
10570,
13,
46506,
16430,
62,
4059,
11,
4522,
16034,
9422,
647,
38678,
11050,
4522
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2318,
8262,
546,
262,
6082,
286,
16430,
62,
4059,
290,
4522,
837,
4279,
416,
262,
4522,
287,
10570,
13,
46506,
16430,
62,
4059,
11,
4522,
16034,
9422,
647,
38678,
11050,
4522
] |
What was the score in the final when the outcome was winner in 1989? | SELECT "Score in the final" FROM table_25743 WHERE "Outcome" = 'Winner' AND "Year" = '1989' | [
2061,
373,
262,
4776,
287,
262,
2457,
618,
262,
8055,
373,
8464,
287,
11104,
30,
46506,
366,
26595,
287,
262,
2457,
1,
16034,
3084,
62,
28676,
3559,
33411,
366,
7975,
2958,
1,
796,
705,
48056,
6,
5357,
366,
17688,
1,
796,
705,
25475... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4776,
287,
262,
2457,
618,
262,
8055,
373,
8464,
287,
11104,
30,
46506,
366,
26595,
287,
262,
2457,
1,
16034,
3084,
62,
28676,
3559,
33411,
366,
7975,
2958,
1,
796,
705,
48056,
6,
5357,
366,
17688,
1,
796,
705,
25475... |
What is the rating of the restaurant Subway? | SELECT rating FROM restaurant WHERE resname = "Subway" | [
2061,
318,
262,
7955,
286,
262,
7072,
38923,
30,
46506,
7955,
16034,
7072,
33411,
581,
3672,
796,
366,
7004,
1014,
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,
7955,
286,
262,
7072,
38923,
30,
46506,
7955,
16034,
7072,
33411,
581,
3672,
796,
366,
7004,
1014,
1
] |
For those employees who was hired before 2002-06-21, find job_id and the average of department_id , and group by attribute job_id, and visualize them by a bar chart. | SELECT JOB_ID, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1064,
1693,
62,
312,
290,
262,
2811,
286,
5011,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
449,
986... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1064,
1693,
62,
312,
290,
262,
2811,
286,
5011,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
449,
986... |
What are the points 1 for the team with position less than 13 and goal difference of +16? | SELECT "Points 1" FROM table_48006 WHERE "Position" < '13' AND "Goal Difference" = '+16' | [
2061,
389,
262,
2173,
352,
329,
262,
1074,
351,
2292,
1342,
621,
1511,
290,
3061,
3580,
286,
1343,
1433,
30,
46506,
366,
40710,
352,
1,
16034,
3084,
62,
2780,
28041,
33411,
366,
26545,
1,
1279,
705,
1485,
6,
5357,
366,
49045,
43795,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2173,
352,
329,
262,
1074,
351,
2292,
1342,
621,
1511,
290,
3061,
3580,
286,
1343,
1433,
30,
46506,
366,
40710,
352,
1,
16034,
3084,
62,
2780,
28041,
33411,
366,
26545,
1,
1279,
705,
1485,
6,
5357,
366,
49045,
43795,
... |
What is the venue of North Melbourne? | SELECT venue FROM table_name_79 WHERE home_team = "north melbourne" | [
2061,
318,
262,
14359,
286,
2258,
14819,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
3720,
33411,
1363,
62,
15097,
796,
366,
43588,
7758,
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
] | [
2061,
318,
262,
14359,
286,
2258,
14819,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
3720,
33411,
1363,
62,
15097,
796,
366,
43588,
7758,
12544,
1
] |
how many patients have the drug code bari2/450i? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "BARI2/450L" | [
4919,
867,
3871,
423,
262,
2563,
2438,
2318,
72,
17,
14,
17885,
72,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
423,
262,
2563,
2438,
2318,
72,
17,
14,
17885,
72,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
79... |
what is primary disease and drug dose of subject id 18480? | SELECT demographic.diagnosis, prescriptions.drug_dose FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "18480" | [
10919,
318,
4165,
4369,
290,
2563,
10742,
286,
2426,
4686,
1248,
22148,
30,
46506,
16728,
13,
47356,
5958,
11,
34092,
13,
30349,
62,
34436,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
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
] | [
10919,
318,
4165,
4369,
290,
2563,
10742,
286,
2426,
4686,
1248,
22148,
30,
46506,
16728,
13,
47356,
5958,
11,
34092,
13,
30349,
62,
34436,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
... |
When 14 is the match number how many usa teams are there? | SELECT COUNT("Team USA") FROM table_22797 WHERE "Match no." = '14' | [
2215,
1478,
318,
262,
2872,
1271,
703,
867,
514,
64,
3466,
389,
612,
30,
46506,
327,
28270,
7203,
15592,
4916,
4943,
16034,
3084,
62,
1828,
44673,
33411,
366,
23850,
645,
526,
796,
705,
1415,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
1478,
318,
262,
2872,
1271,
703,
867,
514,
64,
3466,
389,
612,
30,
46506,
327,
28270,
7203,
15592,
4916,
4943,
16034,
3084,
62,
1828,
44673,
33411,
366,
23850,
645,
526,
796,
705,
1415,
6
] |
Find the number of users who did not write any review. | SELECT COUNT(*) FROM useracct WHERE NOT u_id IN (SELECT u_id FROM review) | [
16742,
262,
1271,
286,
2985,
508,
750,
407,
3551,
597,
2423,
13,
46506,
327,
28270,
7,
28104,
16034,
2836,
330,
310,
33411,
5626,
334,
62,
312,
3268,
357,
46506,
334,
62,
312,
16034,
2423,
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
] | [
16742,
262,
1271,
286,
2985,
508,
750,
407,
3551,
597,
2423,
13,
46506,
327,
28270,
7,
28104,
16034,
2836,
330,
310,
33411,
5626,
334,
62,
312,
3268,
357,
46506,
334,
62,
312,
16034,
2423,
8
] |
Show the number of accounts opened in each year for all accounts and group by other account details in a group line chart, could you display X-axis in ascending order? | SELECT date_account_opened, COUNT(date_account_opened) FROM Accounts GROUP BY other_account_details ORDER BY date_account_opened | [
15307,
262,
1271,
286,
5504,
4721,
287,
1123,
614,
329,
477,
5504,
290,
1448,
416,
584,
1848,
3307,
287,
257,
1448,
1627,
8262,
11,
714,
345,
3359,
1395,
12,
22704,
287,
41988,
1502,
30,
46506,
3128,
62,
23317,
62,
26350,
11,
327,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
262,
1271,
286,
5504,
4721,
287,
1123,
614,
329,
477,
5504,
290,
1448,
416,
584,
1848,
3307,
287,
257,
1448,
1627,
8262,
11,
714,
345,
3359,
1395,
12,
22704,
287,
41988,
1502,
30,
46506,
3128,
62,
23317,
62,
26350,
11,
327,
2... |
How many dorms are in the database? | SELECT COUNT(*) FROM dorm | [
2437,
867,
18586,
82,
389,
287,
262,
6831,
30,
46506,
327,
28270,
7,
28104,
16034,
18586
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
18586,
82,
389,
287,
262,
6831,
30,
46506,
327,
28270,
7,
28104,
16034,
18586
] |
What runner(s)-up has 1 (2013) as the champions? | SELECT "Runners-up" FROM table_61750 WHERE "Champions" = '1 (2013)' | [
2061,
17490,
7,
82,
13219,
929,
468,
352,
357,
6390,
8,
355,
262,
7827,
30,
46506,
366,
10987,
2741,
12,
929,
1,
16034,
3084,
62,
47941,
1120,
33411,
366,
1925,
4350,
1,
796,
705,
16,
357,
6390,
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
] | [
2061,
17490,
7,
82,
13219,
929,
468,
352,
357,
6390,
8,
355,
262,
7827,
30,
46506,
366,
10987,
2741,
12,
929,
1,
16034,
3084,
62,
47941,
1120,
33411,
366,
1925,
4350,
1,
796,
705,
16,
357,
6390,
33047
] |
What player is from the united states and started playing in 1965? | SELECT "Player" FROM table_4666 WHERE "Nationality" = 'united states' AND "From" = '1965' | [
2061,
2137,
318,
422,
262,
16503,
2585,
290,
2067,
2712,
287,
17672,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
19,
27310,
33411,
366,
16186,
414,
1,
796,
705,
41187,
2585,
6,
5357,
366,
4863,
1,
796,
705,
45271,
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,
2137,
318,
422,
262,
16503,
2585,
290,
2067,
2712,
287,
17672,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
19,
27310,
33411,
366,
16186,
414,
1,
796,
705,
41187,
2585,
6,
5357,
366,
4863,
1,
796,
705,
45271,
6
] |
Display the serial numbers for the players who play at the center. | SELECT "No" FROM table_26232 WHERE "Position" = 'Center' | [
23114,
262,
11389,
3146,
329,
262,
1938,
508,
711,
379,
262,
3641,
13,
46506,
366,
2949,
1,
16034,
3084,
62,
2075,
24339,
33411,
366,
26545,
1,
796,
705,
23656,
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
] | [
23114,
262,
11389,
3146,
329,
262,
1938,
508,
711,
379,
262,
3641,
13,
46506,
366,
2949,
1,
16034,
3084,
62,
2075,
24339,
33411,
366,
26545,
1,
796,
705,
23656,
6
] |
what is the number of episodes directed by jeff mccracken ? | SELECT COUNT(*) FROM table_204_840 WHERE "directed by" = 'jeff mccracken' | [
10919,
318,
262,
1271,
286,
8640,
7924,
416,
11223,
487,
285,
535,
39638,
268,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
40675,
33411,
366,
34762,
416,
1,
796,
705,
73,
14822,
285,
535,
39638,
268,
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
] | [
10919,
318,
262,
1271,
286,
8640,
7924,
416,
11223,
487,
285,
535,
39638,
268,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
40675,
33411,
366,
34762,
416,
1,
796,
705,
73,
14822,
285,
535,
39638,
268,
6
] |
How old is the average person for each job. Show a pie chart. | SELECT job, AVG(age) FROM Person GROUP BY job | [
2437,
1468,
318,
262,
2811,
1048,
329,
1123,
1693,
13,
5438,
257,
2508,
8262,
13,
46506,
1693,
11,
35224,
7,
496,
8,
16034,
7755,
44441,
11050,
1693
] | [
1,
1,
1,
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,
1468,
318,
262,
2811,
1048,
329,
1123,
1693,
13,
5438,
257,
2508,
8262,
13,
46506,
1693,
11,
35224,
7,
496,
8,
16034,
7755,
44441,
11050,
1693
] |
What is the average end year of the player from swe and a summer transfer window? | SELECT AVG(ends) FROM table_name_81 WHERE nat = "swe" AND transfer_window = "summer" | [
2061,
318,
262,
2811,
886,
614,
286,
262,
2137,
422,
3490,
290,
257,
3931,
4351,
4324,
30,
46506,
35224,
7,
2412,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
34664,
796,
366,
46280,
1,
5357,
4351,
62,
17497,
796,
366,
16345,
647,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
886,
614,
286,
262,
2137,
422,
3490,
290,
257,
3931,
4351,
4324,
30,
46506,
35224,
7,
2412,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
34664,
796,
366,
46280,
1,
5357,
4351,
62,
17497,
796,
366,
16345,
647,
1
] |
What is the U.S air date when the title is 'calling'? | SELECT "U.S. air date" FROM table_30647 WHERE "Title" = 'Calling' | [
2061,
318,
262,
471,
13,
50,
1633,
3128,
618,
262,
3670,
318,
705,
44714,
30960,
46506,
366,
52,
13,
50,
13,
1633,
3128,
1,
16034,
3084,
62,
1270,
33981,
33411,
366,
19160,
1,
796,
705,
48593,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
471,
13,
50,
1633,
3128,
618,
262,
3670,
318,
705,
44714,
30960,
46506,
366,
52,
13,
50,
13,
1633,
3128,
1,
16034,
3084,
62,
1270,
33981,
33411,
366,
19160,
1,
796,
705,
48593,
6
] |
how did last patient 021-155303 get admitted to the hospital? | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '021-155303' ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
4919,
750,
938,
5827,
657,
2481,
12,
18742,
22572,
651,
6848,
284,
262,
4436,
30,
46506,
5827,
13,
49257,
324,
24883,
1668,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
46821,
12,
18742,
22572,
6,
38678,
11050,
5827,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
938,
5827,
657,
2481,
12,
18742,
22572,
651,
6848,
284,
262,
4436,
30,
46506,
5827,
13,
49257,
324,
24883,
1668,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
46821,
12,
18742,
22572,
6,
38678,
11050,
5827,
1... |
what is the name of the medication which patient 013-12480 was prescribed within 2 days after receiving a thrombolytics - alteplase in 02/last year? | SELECT t2.drugname FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-12480') AND treatment.treatme... | [
10919,
318,
262,
1438,
286,
262,
14103,
543,
5827,
5534,
18,
12,
17464,
1795,
373,
14798,
1626,
362,
1528,
706,
6464,
257,
294,
398,
2127,
306,
14094,
532,
435,
660,
489,
589,
287,
7816,
14,
12957,
614,
30,
46506,
256,
17,
13,
30349... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14103,
543,
5827,
5534,
18,
12,
17464,
1795,
373,
14798,
1626,
362,
1528,
706,
6464,
257,
294,
398,
2127,
306,
14094,
532,
435,
660,
489,
589,
287,
7816,
14,
12957,
614,
30,
46506,
256,
17,
13,
30349... |
How many users have each level of badge?. | SELECT CASE WHEN Class = 1 THEN 'Gold' WHEN Class = 2 THEN 'Silver' WHEN Class = 3 THEN 'Bronze' END AS class, TagBased, COUNT(DISTINCT UserId) FROM Badges GROUP BY Class, TagBased | [
2437,
867,
2985,
423,
1123,
1241,
286,
23009,
30,
13,
46506,
42001,
42099,
5016,
796,
352,
42243,
705,
13306,
6,
42099,
5016,
796,
362,
42243,
705,
26766,
6,
42099,
5016,
796,
513,
42243,
705,
18760,
2736,
6,
23578,
7054,
1398,
11,
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
] | [
2437,
867,
2985,
423,
1123,
1241,
286,
23009,
30,
13,
46506,
42001,
42099,
5016,
796,
352,
42243,
705,
13306,
6,
42099,
5016,
796,
362,
42243,
705,
26766,
6,
42099,
5016,
796,
513,
42243,
705,
18760,
2736,
6,
23578,
7054,
1398,
11,
17... |
Give the name of the wine with the highest score. | SELECT name FROM wine ORDER BY score LIMIT 1 | [
23318,
262,
1438,
286,
262,
8237,
351,
262,
4511,
4776,
13,
46506,
1438,
16034,
8237,
38678,
11050,
4776,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
262,
1438,
286,
262,
8237,
351,
262,
4511,
4776,
13,
46506,
1438,
16034,
8237,
38678,
11050,
4776,
27564,
2043,
352
] |
What is the court rank of the person with a courtesy title of nagato-no-kami? | SELECT court_rank FROM table_name_70 WHERE courtesy_title = "nagato-no-kami" | [
2061,
318,
262,
2184,
4279,
286,
262,
1048,
351,
257,
12537,
3670,
286,
299,
363,
5549,
12,
3919,
12,
74,
6277,
30,
46506,
2184,
62,
43027,
16034,
3084,
62,
3672,
62,
2154,
33411,
12537,
62,
7839,
796,
366,
77,
363,
5549,
12,
3919,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2184,
4279,
286,
262,
1048,
351,
257,
12537,
3670,
286,
299,
363,
5549,
12,
3919,
12,
74,
6277,
30,
46506,
2184,
62,
43027,
16034,
3084,
62,
3672,
62,
2154,
33411,
12537,
62,
7839,
796,
366,
77,
363,
5549,
12,
3919,
... |
Can you tell me the lowest Total Passengers than has the Location of salvador, and the Rank larger than 5? | SELECT MIN("Total Passengers") FROM table_40158 WHERE "Location" = 'salvador' AND "Rank" > '5' | [
6090,
345,
1560,
502,
262,
9016,
7472,
6251,
9302,
621,
468,
262,
13397,
286,
24143,
7079,
11,
290,
262,
10916,
4025,
621,
642,
30,
46506,
20625,
7203,
14957,
6251,
9302,
4943,
16034,
3084,
62,
21844,
3365,
33411,
366,
14749,
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,
1,
1,
1
] | [
6090,
345,
1560,
502,
262,
9016,
7472,
6251,
9302,
621,
468,
262,
13397,
286,
24143,
7079,
11,
290,
262,
10916,
4025,
621,
642,
30,
46506,
20625,
7203,
14957,
6251,
9302,
4943,
16034,
3084,
62,
21844,
3365,
33411,
366,
14749,
1,
796,
... |
What Companion (in order from star) has an Orbital period (s day) of 9.6184 +0.0050 0.0049? | SELECT "Companion (in order from star)" FROM table_62080 WHERE "Orbital period ( s day )" = '9.6184 +0.0050 −0.0049' | [
2061,
30653,
357,
259,
1502,
422,
3491,
8,
468,
281,
45453,
2278,
357,
82,
1110,
8,
286,
860,
13,
21,
22883,
1343,
15,
13,
405,
1120,
657,
13,
405,
2920,
30,
46506,
366,
41309,
295,
357,
259,
1502,
422,
3491,
16725,
16034,
3084,
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... | [
2061,
30653,
357,
259,
1502,
422,
3491,
8,
468,
281,
45453,
2278,
357,
82,
1110,
8,
286,
860,
13,
21,
22883,
1343,
15,
13,
405,
1120,
657,
13,
405,
2920,
30,
46506,
366,
41309,
295,
357,
259,
1502,
422,
3491,
16725,
16034,
3084,
6... |
what were the three most frequently ordered microbiology tests for patients that had previous fiber-optic bronchoscopy during the same month in 2104? | SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, 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_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FR... | [
10919,
547,
262,
1115,
749,
6777,
6149,
24559,
1435,
5254,
329,
3871,
326,
550,
2180,
13608,
12,
8738,
291,
18443,
354,
17500,
11081,
1141,
262,
976,
1227,
287,
362,
13464,
30,
46506,
256,
18,
13,
16684,
62,
4906,
62,
20147,
16034,
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... | [
10919,
547,
262,
1115,
749,
6777,
6149,
24559,
1435,
5254,
329,
3871,
326,
550,
2180,
13608,
12,
8738,
291,
18443,
354,
17500,
11081,
1141,
262,
976,
1227,
287,
362,
13464,
30,
46506,
256,
18,
13,
16684,
62,
4906,
62,
20147,
16034,
35... |
Can you tell me the Record that has the Home of detroit, and the Visitor of phoenix? | SELECT record FROM table_name_59 WHERE home = "detroit" AND visitor = "phoenix" | [
6090,
345,
1560,
502,
262,
13266,
326,
468,
262,
5995,
286,
1062,
7775,
11,
290,
262,
6911,
2072,
286,
872,
8538,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
3270,
33411,
1363,
796,
366,
15255,
7775,
1,
5357,
21493,
796,
366,
746,
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
] | [
6090,
345,
1560,
502,
262,
13266,
326,
468,
262,
5995,
286,
1062,
7775,
11,
290,
262,
6911,
2072,
286,
872,
8538,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
3270,
33411,
1363,
796,
366,
15255,
7775,
1,
5357,
21493,
796,
366,
746,
8... |
Round that greg huntington went in? | SELECT "Round" FROM table_45060 WHERE "Name" = 'greg huntington' | [
22685,
326,
308,
2301,
10988,
1122,
1816,
287,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
17885,
1899,
33411,
366,
5376,
1,
796,
705,
9903,
10988,
1122,
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
] | [
22685,
326,
308,
2301,
10988,
1122,
1816,
287,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
17885,
1899,
33411,
366,
5376,
1,
796,
705,
9903,
10988,
1122,
6
] |
What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games? | SELECT MAX("Goals for") FROM table_45090 WHERE "Position" > '8' AND "Losses" = '12' AND "Played" < '30' | [
2061,
318,
262,
4511,
2033,
286,
4661,
287,
262,
2292,
706,
807,
11,
1105,
9089,
11,
290,
2826,
1342,
621,
1542,
1830,
30,
46506,
25882,
7203,
5247,
874,
329,
4943,
16034,
3084,
62,
17885,
3829,
33411,
366,
26545,
1,
1875,
705,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
2033,
286,
4661,
287,
262,
2292,
706,
807,
11,
1105,
9089,
11,
290,
2826,
1342,
621,
1542,
1830,
30,
46506,
25882,
7203,
5247,
874,
329,
4943,
16034,
3084,
62,
17885,
3829,
33411,
366,
26545,
1,
1875,
705,
23,
... |
What are the Votes for the Song by Artist Filipa Batista? | SELECT "Votes" FROM table_63019 WHERE "Artist" = 'filipa batista' | [
2061,
389,
262,
39584,
329,
262,
10940,
416,
18902,
24600,
64,
6577,
12523,
30,
46506,
366,
53,
6421,
1,
16034,
3084,
62,
5066,
30484,
33411,
366,
43020,
1,
796,
705,
10379,
541,
64,
7365,
12523,
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,
389,
262,
39584,
329,
262,
10940,
416,
18902,
24600,
64,
6577,
12523,
30,
46506,
366,
53,
6421,
1,
16034,
3084,
62,
5066,
30484,
33411,
366,
43020,
1,
796,
705,
10379,
541,
64,
7365,
12523,
6
] |
What are the top five states in descending order in terms of revenue provided to school districts? | SELECT T2.state FROM finrev_fed_key_17 AS T2 JOIN finrev_fed_17 AS T1 ON T1.state_code = T2.state_code GROUP BY T1.state_code ORDER BY SUM(t_fed_rev) | [
2061,
389,
262,
1353,
1936,
2585,
287,
31491,
1502,
287,
2846,
286,
6426,
2810,
284,
1524,
12815,
30,
46506,
309,
17,
13,
5219,
16034,
957,
18218,
62,
19082,
62,
2539,
62,
1558,
7054,
309,
17,
32357,
1268,
957,
18218,
62,
19082,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
1353,
1936,
2585,
287,
31491,
1502,
287,
2846,
286,
6426,
2810,
284,
1524,
12815,
30,
46506,
309,
17,
13,
5219,
16034,
957,
18218,
62,
19082,
62,
2539,
62,
1558,
7054,
309,
17,
32357,
1268,
957,
18218,
62,
19082,
62,
... |
what sort of ground transportation is there in WASHINGTON | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'WASHINGTON' AND ground_service.city_code = city.city_code | [
10919,
3297,
286,
2323,
9358,
318,
612,
287,
370,
19436,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
1748,
11,
2323,
62,
15271,
33411,
1748,
13,
19205,
62,
3672,
796,
705,
21793,
6,
5357,
2323,
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
] | [
10919,
3297,
286,
2323,
9358,
318,
612,
287,
370,
19436,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
1748,
11,
2323,
62,
15271,
33411,
1748,
13,
19205,
62,
3672,
796,
705,
21793,
6,
5357,
2323,
62,
... |
Quantidade de votos por coment rio. | SELECT PostId AS "post_link", Comments.Id AS "comment_link", Comments.Score, Comments.Text FROM Comments INNER JOIN Posts ON Posts.Id = Comments.PostId WHERE UserId = @UserId ORDER BY Comments.Score DESC | [
24915,
312,
671,
390,
1993,
418,
16964,
401,
298,
374,
952,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
19502,
13,
7390,
7054,
366,
23893,
62,
8726,
1600,
19502,
13,
26595,
11,
19502,
13,
8206,
16034,
19502,
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... | [
24915,
312,
671,
390,
1993,
418,
16964,
401,
298,
374,
952,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
19502,
13,
7390,
7054,
366,
23893,
62,
8726,
1600,
19502,
13,
26595,
11,
19502,
13,
8206,
16034,
19502,
3268,
21479,
3... |
Name the lfop for 5/11/09 with lfop 1/9/09 of 5% | SELECT "Ifop 5/11/09" FROM table_54871 WHERE "Ifop 1/9/09" = '5%' | [
5376,
262,
300,
69,
404,
329,
642,
14,
1157,
14,
2931,
351,
300,
69,
404,
352,
14,
24,
14,
2931,
286,
642,
4,
46506,
366,
1532,
404,
642,
14,
1157,
14,
2931,
1,
16034,
3084,
62,
49934,
4869,
33411,
366,
1532,
404,
352,
14,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
300,
69,
404,
329,
642,
14,
1157,
14,
2931,
351,
300,
69,
404,
352,
14,
24,
14,
2931,
286,
642,
4,
46506,
366,
1532,
404,
642,
14,
1157,
14,
2931,
1,
16034,
3084,
62,
49934,
4869,
33411,
366,
1532,
404,
352,
14,
24,
... |
A bar chart about what are the ids and details of events that have more than one participants? | SELECT T1.Event_Details, T1.Event_ID FROM Events AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_Details | [
32,
2318,
8262,
546,
644,
389,
262,
220,
2340,
290,
3307,
286,
2995,
326,
423,
517,
621,
530,
6809,
30,
46506,
309,
16,
13,
9237,
62,
24259,
11,
309,
16,
13,
9237,
62,
2389,
16034,
18715,
7054,
309,
16,
32357,
1268,
26122,
62,
259... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
546,
644,
389,
262,
220,
2340,
290,
3307,
286,
2995,
326,
423,
517,
621,
530,
6809,
30,
46506,
309,
16,
13,
9237,
62,
24259,
11,
309,
16,
13,
9237,
62,
2389,
16034,
18715,
7054,
309,
16,
32357,
1268,
26122,
62,
259... |
What was the production code for the episode that debuted October 1, 1993? | SELECT MAX("Production code") FROM table_27048 WHERE "Original air date" = 'October 1, 1993' | [
2061,
373,
262,
3227,
2438,
329,
262,
4471,
326,
26376,
3267,
352,
11,
9656,
30,
46506,
25882,
7203,
35027,
2438,
4943,
16034,
3084,
62,
20233,
2780,
33411,
366,
20556,
1633,
3128,
1,
796,
705,
18517,
352,
11,
9656,
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,
373,
262,
3227,
2438,
329,
262,
4471,
326,
26376,
3267,
352,
11,
9656,
30,
46506,
25882,
7203,
35027,
2438,
4943,
16034,
3084,
62,
20233,
2780,
33411,
366,
20556,
1633,
3128,
1,
796,
705,
18517,
352,
11,
9656,
6
] |
does YX have any flights from MONTREAL to DETROIT | SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((flight.airline_code = 'YX') AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DETROIT' AND flight.to_airport = AIRPORT_SE... | [
22437,
575,
55,
423,
597,
13956,
422,
25000,
51,
2200,
1847,
284,
38267,
13252,
2043,
46506,
360,
8808,
1268,
4177,
18091,
13,
958,
1370,
62,
8189,
16034,
18091,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
575,
55,
423,
597,
13956,
422,
25000,
51,
2200,
1847,
284,
38267,
13252,
2043,
46506,
360,
8808,
1268,
4177,
18091,
13,
958,
1370,
62,
8189,
16034,
18091,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9... |
what flights from WASHINGTON to TORONTO | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'WASHINGTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'TOR... | [
10919,
13956,
422,
370,
19436,
284,
40691,
35830,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
13956,
422,
370,
19436,
284,
40691,
35830,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
2... |
Which webcast was in Spanish contemporary on xhnoe.com? | SELECT "Webcast" FROM table_5392 WHERE "Format" = 'spanish contemporary' AND "Website" = 'xhnoe.com' | [
13828,
3992,
2701,
373,
287,
7897,
11811,
319,
2124,
21116,
2577,
13,
785,
30,
46506,
366,
13908,
2701,
1,
16034,
3084,
62,
20,
32321,
33411,
366,
26227,
1,
796,
705,
2777,
7115,
11811,
6,
5357,
366,
33420,
1,
796,
705,
87,
21116,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3992,
2701,
373,
287,
7897,
11811,
319,
2124,
21116,
2577,
13,
785,
30,
46506,
366,
13908,
2701,
1,
16034,
3084,
62,
20,
32321,
33411,
366,
26227,
1,
796,
705,
2777,
7115,
11811,
6,
5357,
366,
33420,
1,
796,
705,
87,
21116,
2... |
On which date was St Kilda the home team? | SELECT "Date" FROM table_32785 WHERE "Home team" = 'st kilda' | [
2202,
543,
3128,
373,
520,
509,
27281,
262,
1363,
1074,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
34159,
5332,
33411,
366,
16060,
1074,
1,
796,
705,
301,
479,
27281,
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
] | [
2202,
543,
3128,
373,
520,
509,
27281,
262,
1363,
1074,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
34159,
5332,
33411,
366,
16060,
1074,
1,
796,
705,
301,
479,
27281,
6
] |
When the tom watson is playing for the United States and the To par is under 14, what's the total? | SELECT "Total" FROM table_48971 WHERE "Country" = 'united states' AND "To par" < '14' AND "Player" = 'tom watson' | [
2215,
262,
16667,
266,
13506,
318,
2712,
329,
262,
1578,
1829,
290,
262,
1675,
1582,
318,
739,
1478,
11,
644,
338,
262,
2472,
30,
46506,
366,
14957,
1,
16034,
3084,
62,
35890,
4869,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
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,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
262,
16667,
266,
13506,
318,
2712,
329,
262,
1578,
1829,
290,
262,
1675,
1582,
318,
739,
1478,
11,
644,
338,
262,
2472,
30,
46506,
366,
14957,
1,
16034,
3084,
62,
35890,
4869,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6,
53... |
What league is from the United States and a round smaller than 12. | SELECT "College/Junior/Club Team (League)" FROM table_5638 WHERE "Nationality" = 'united states' AND "Round" < '12' | [
2061,
4652,
318,
422,
262,
1578,
1829,
290,
257,
2835,
4833,
621,
1105,
13,
46506,
366,
38951,
14,
22396,
1504,
14,
42350,
4816,
357,
24623,
16725,
16034,
3084,
62,
3980,
2548,
33411,
366,
16186,
414,
1,
796,
705,
41187,
2585,
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
] | [
2061,
4652,
318,
422,
262,
1578,
1829,
290,
257,
2835,
4833,
621,
1105,
13,
46506,
366,
38951,
14,
22396,
1504,
14,
42350,
4816,
357,
24623,
16725,
16034,
3084,
62,
3980,
2548,
33411,
366,
16186,
414,
1,
796,
705,
41187,
2585,
6,
5357... |
Find the names of swimmers who has a result of 'win', and count them by a bar chart, and could you show in desc by the bar? | SELECT name, COUNT(name) FROM swimmer AS t1 JOIN record AS t2 ON t1.ID = t2.Swimmer_ID WHERE Result = 'Win' GROUP BY name ORDER BY name DESC | [
16742,
262,
3891,
286,
1509,
36904,
508,
468,
257,
1255,
286,
705,
5404,
3256,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
714,
345,
905,
287,
1715,
416,
262,
2318,
30,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3891,
286,
1509,
36904,
508,
468,
257,
1255,
286,
705,
5404,
3256,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
714,
345,
905,
287,
1715,
416,
262,
2318,
30,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
9422,
647,
... |
tell me what's the total urine out foley output of patient 90019. | SELECT SUM(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 90019)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'uri... | [
33331,
502,
644,
338,
262,
2472,
18922,
503,
11511,
1636,
5072,
286,
5827,
15897,
1129,
13,
46506,
35683,
7,
448,
79,
1133,
85,
658,
13,
8367,
8,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
62,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
644,
338,
262,
2472,
18922,
503,
11511,
1636,
5072,
286,
5827,
15897,
1129,
13,
46506,
35683,
7,
448,
79,
1133,
85,
658,
13,
8367,
8,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
62,
312,
... |
Which Result has an Attendance larger than 38,354, and a Date of october 23, 1988? | SELECT "Result" FROM table_65007 WHERE "Attendance" > '38,354' AND "Date" = 'october 23, 1988' | [
13828,
25414,
468,
281,
46502,
590,
4025,
621,
4353,
11,
32182,
11,
290,
257,
7536,
286,
19318,
2023,
2242,
11,
12122,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2996,
25816,
33411,
366,
8086,
437,
590,
1,
1875,
705,
2548,
11,
32182,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
25414,
468,
281,
46502,
590,
4025,
621,
4353,
11,
32182,
11,
290,
257,
7536,
286,
19318,
2023,
2242,
11,
12122,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2996,
25816,
33411,
366,
8086,
437,
590,
1,
1875,
705,
2548,
11,
32182,
... |
What is the swimsuit score when the interview was 9.74? | SELECT "Swimsuit" FROM table_72230 WHERE "Interview" = '9.74' | [
2061,
318,
262,
9422,
6063,
4776,
618,
262,
2720,
373,
860,
13,
4524,
30,
46506,
366,
10462,
320,
6063,
1,
16034,
3084,
62,
22,
1828,
1270,
33411,
366,
39945,
1,
796,
705,
24,
13,
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,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9422,
6063,
4776,
618,
262,
2720,
373,
860,
13,
4524,
30,
46506,
366,
10462,
320,
6063,
1,
16034,
3084,
62,
22,
1828,
1270,
33411,
366,
39945,
1,
796,
705,
24,
13,
4524,
6
] |
what was the name of the output patient 002-58943 first had until 257 days ago. | SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-58943')) AND intakeoutput.cellpath LIKE '%output%' AND D... | [
10919,
373,
262,
1438,
286,
262,
5072,
5827,
3571,
17,
12,
44169,
3559,
717,
550,
1566,
36100,
1528,
2084,
13,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1438,
286,
262,
5072,
5827,
3571,
17,
12,
44169,
3559,
717,
550,
1566,
36100,
1528,
2084,
13,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,... |
what were the three most commonly ordered specimen tests for patients who were diagnosed with poison-antipsychotic nec before within 2 months last year? | SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_... | [
10919,
547,
262,
1115,
749,
8811,
6149,
31674,
5254,
329,
3871,
508,
547,
14641,
351,
8764,
12,
415,
541,
2924,
6210,
27576,
878,
1626,
362,
1933,
938,
614,
30,
46506,
256,
18,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
46506,
256,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
547,
262,
1115,
749,
8811,
6149,
31674,
5254,
329,
3871,
508,
547,
14641,
351,
8764,
12,
415,
541,
2924,
6210,
27576,
878,
1626,
362,
1933,
938,
614,
30,
46506,
256,
18,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
46506,
256,
... |
Tell me the sum of rank for when gold is more than 0 and silver less than 23 with total more than 32 | SELECT SUM("Rank") FROM table_55257 WHERE "Gold" > '0' AND "Total" > '32' AND "Silver" < '23' | [
24446,
502,
262,
2160,
286,
4279,
329,
618,
3869,
318,
517,
621,
657,
290,
8465,
1342,
621,
2242,
351,
2472,
517,
621,
3933,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
2816,
28676,
33411,
366,
13306,
1,
1875,
705,
15,
6,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
2160,
286,
4279,
329,
618,
3869,
318,
517,
621,
657,
290,
8465,
1342,
621,
2242,
351,
2472,
517,
621,
3933,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
2816,
28676,
33411,
366,
13306,
1,
1875,
705,
15,
6,
5357,
... |
Which class has a Team of kouros racing team? | SELECT class FROM table_name_34 WHERE team = "kouros racing team" | [
13828,
1398,
468,
257,
4816,
286,
479,
280,
4951,
11717,
1074,
30,
46506,
1398,
16034,
3084,
62,
3672,
62,
2682,
33411,
1074,
796,
366,
74,
280,
4951,
11717,
1074,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1398,
468,
257,
4816,
286,
479,
280,
4951,
11717,
1074,
30,
46506,
1398,
16034,
3084,
62,
3672,
62,
2682,
33411,
1074,
796,
366,
74,
280,
4951,
11717,
1074,
1
] |
What purses had a winners share equal to $428650? | SELECT "Purse ( $ )" FROM table_1206 WHERE "Winners share ($)" = '428650' | [
2061,
8012,
274,
550,
257,
14591,
2648,
4961,
284,
720,
40173,
17544,
30,
46506,
366,
47,
12321,
357,
720,
1267,
1,
16034,
3084,
62,
1065,
3312,
33411,
366,
16643,
2741,
2648,
7198,
16725,
796,
705,
40173,
17544,
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,
8012,
274,
550,
257,
14591,
2648,
4961,
284,
720,
40173,
17544,
30,
46506,
366,
47,
12321,
357,
720,
1267,
1,
16034,
3084,
62,
1065,
3312,
33411,
366,
16643,
2741,
2648,
7198,
16725,
796,
705,
40173,
17544,
6
] |
What is the company that made the chassis for the entrant danka arrows yamaha? | SELECT chassis FROM table_name_19 WHERE entrant = "danka arrows yamaha" | [
2061,
318,
262,
1664,
326,
925,
262,
24587,
329,
262,
920,
5250,
288,
15927,
20507,
331,
321,
12236,
30,
46506,
24587,
16034,
3084,
62,
3672,
62,
1129,
33411,
920,
5250,
796,
366,
67,
15927,
20507,
331,
321,
12236,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1664,
326,
925,
262,
24587,
329,
262,
920,
5250,
288,
15927,
20507,
331,
321,
12236,
30,
46506,
24587,
16034,
3084,
62,
3672,
62,
1129,
33411,
920,
5250,
796,
366,
67,
15927,
20507,
331,
321,
12236,
1
] |
What are the ids of stations that are located in San Francisco and have average bike availability above 10. | SELECT id FROM station WHERE city = "San Francisco" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING AVG(bikes_available) > 10 | [
2061,
389,
262,
220,
2340,
286,
8985,
326,
389,
5140,
287,
2986,
6033,
290,
423,
2811,
7161,
11500,
2029,
838,
13,
46506,
4686,
16034,
4429,
33411,
1748,
796,
366,
15017,
6033,
1,
17828,
4877,
9782,
33493,
4429,
62,
312,
16034,
3722,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
220,
2340,
286,
8985,
326,
389,
5140,
287,
2986,
6033,
290,
423,
2811,
7161,
11500,
2029,
838,
13,
46506,
4686,
16034,
4429,
33411,
1748,
796,
366,
15017,
6033,
1,
17828,
4877,
9782,
33493,
4429,
62,
312,
16034,
3722,
... |
Which OF-5 is in Ghana? | SELECT "OF-5" FROM table_52037 WHERE "Country" = 'ghana' | [
13828,
3963,
12,
20,
318,
287,
32825,
30,
46506,
366,
19238,
12,
20,
1,
16034,
3084,
62,
31211,
2718,
33411,
366,
33921,
1,
796,
705,
456,
2271,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3963,
12,
20,
318,
287,
32825,
30,
46506,
366,
19238,
12,
20,
1,
16034,
3084,
62,
31211,
2718,
33411,
366,
33921,
1,
796,
705,
456,
2271,
6
] |
number of questions on stackoverflow. | SELECT COUNT(*) AS count FROM Posts WHERE PostTypeId = 1 | [
17618,
286,
2683,
319,
8931,
2502,
11125,
13,
46506,
327,
28270,
7,
28104,
7054,
954,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
17618,
286,
2683,
319,
8931,
2502,
11125,
13,
46506,
327,
28270,
7,
28104,
7054,
954,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352
] |
Name the total number of high rebounds for february 10 | SELECT COUNT(high_rebounds) FROM table_17058151_8 WHERE date = "February 10" | [
5376,
262,
2472,
1271,
286,
1029,
18841,
329,
730,
65,
3728,
838,
46506,
327,
28270,
7,
8929,
62,
34806,
3733,
8,
16034,
3084,
62,
1558,
2713,
23,
24309,
62,
23,
33411,
3128,
796,
366,
21816,
838,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
2472,
1271,
286,
1029,
18841,
329,
730,
65,
3728,
838,
46506,
327,
28270,
7,
8929,
62,
34806,
3733,
8,
16034,
3084,
62,
1558,
2713,
23,
24309,
62,
23,
33411,
3128,
796,
366,
21816,
838,
1
] |
What was the record in the game whose first star was J. Oduya? | SELECT record FROM table_27537518_6 WHERE first_star = "J. Oduya" | [
2061,
373,
262,
1700,
287,
262,
983,
3025,
717,
3491,
373,
449,
13,
440,
646,
3972,
30,
46506,
1700,
16034,
3084,
62,
1983,
4310,
2425,
1507,
62,
21,
33411,
717,
62,
7364,
796,
366,
41,
13,
440,
646,
3972,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1700,
287,
262,
983,
3025,
717,
3491,
373,
449,
13,
440,
646,
3972,
30,
46506,
1700,
16034,
3084,
62,
1983,
4310,
2425,
1507,
62,
21,
33411,
717,
62,
7364,
796,
366,
41,
13,
440,
646,
3972,
1
] |
how many patients whose diagnoses long title is other chronic pulmonary heart diseases and lab test fluid is urine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Other chronic pulmonary heart diseases" AND lab.fluid = "Urine" | [
4919,
867,
3871,
3025,
40567,
890,
3670,
318,
584,
10726,
45105,
2612,
10040,
290,
2248,
1332,
11711,
318,
18922,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
4056... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
890,
3670,
318,
584,
10726,
45105,
2612,
10040,
290,
2248,
1332,
11711,
318,
18922,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
4056... |
Who had the time of 22' 09.44 93.840mph on Tuesday August 24th? | SELECT "Rider" FROM table_29198 WHERE "Tues 24 Aug" = '22'' 09.44 93.840mph' | [
8241,
550,
262,
640,
286,
2534,
6,
7769,
13,
2598,
10261,
13,
40675,
23335,
319,
3431,
2932,
1987,
400,
30,
46506,
366,
49,
1304,
1,
16034,
3084,
62,
1959,
22337,
33411,
366,
51,
947,
1987,
2447,
1,
796,
705,
1828,
7061,
7769,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
550,
262,
640,
286,
2534,
6,
7769,
13,
2598,
10261,
13,
40675,
23335,
319,
3431,
2932,
1987,
400,
30,
46506,
366,
49,
1304,
1,
16034,
3084,
62,
1959,
22337,
33411,
366,
51,
947,
1987,
2447,
1,
796,
705,
1828,
7061,
7769,
13,
... |
what paul nix or hal baird coach in 1986 ? | SELECT "coach" FROM table_203_593 WHERE "coach" IN ('paul nix', 'hal baird') AND "tenure" <= 1986 AND "tenure" >= 1986 | [
10919,
279,
2518,
299,
844,
393,
10284,
275,
41620,
3985,
287,
12113,
5633,
46506,
366,
1073,
620,
1,
16034,
3084,
62,
22416,
62,
49051,
33411,
366,
1073,
620,
1,
3268,
19203,
79,
2518,
299,
844,
3256,
705,
14201,
275,
41620,
11537,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
2518,
299,
844,
393,
10284,
275,
41620,
3985,
287,
12113,
5633,
46506,
366,
1073,
620,
1,
16034,
3084,
62,
22416,
62,
49051,
33411,
366,
1073,
620,
1,
3268,
19203,
79,
2518,
299,
844,
3256,
705,
14201,
275,
41620,
11537,
5... |
what were the four most frequent medications prescribed to the patients of the 20s within 2 months after they were diagnosed with mental disor nec oth dis since 3 years ago? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE ... | [
10919,
547,
262,
1440,
749,
10792,
17638,
14798,
284,
262,
3871,
286,
262,
1160,
82,
1626,
362,
1933,
706,
484,
547,
14641,
351,
5110,
595,
273,
27576,
267,
400,
595,
1201,
513,
812,
2084,
30,
46506,
256,
18,
13,
30349,
16034,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1440,
749,
10792,
17638,
14798,
284,
262,
3871,
286,
262,
1160,
82,
1626,
362,
1933,
706,
484,
547,
14641,
351,
5110,
595,
273,
27576,
267,
400,
595,
1201,
513,
812,
2084,
30,
46506,
256,
18,
13,
30349,
16034,
357,
... |
which institution was founded last ? | SELECT "institution" FROM table_203_610 ORDER BY "founded" DESC LIMIT 1 | [
4758,
9901,
373,
9393,
938,
5633,
46506,
366,
8625,
2738,
1,
16034,
3084,
62,
22416,
62,
39132,
38678,
11050,
366,
27060,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
9901,
373,
9393,
938,
5633,
46506,
366,
8625,
2738,
1,
16034,
3084,
62,
22416,
62,
39132,
38678,
11050,
366,
27060,
1,
22196,
34,
27564,
2043,
352
] |
What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type? | SELECT MAX(product_price), MIN(product_price), product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code | [
2061,
389,
262,
4511,
290,
9016,
4536,
286,
3186,
11,
32824,
416,
290,
24830,
1146,
6149,
416,
1720,
2099,
30,
46506,
25882,
7,
11167,
62,
20888,
828,
20625,
7,
11167,
62,
20888,
828,
1720,
62,
4906,
62,
8189,
16034,
3186,
44441,
1105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4511,
290,
9016,
4536,
286,
3186,
11,
32824,
416,
290,
24830,
1146,
6149,
416,
1720,
2099,
30,
46506,
25882,
7,
11167,
62,
20888,
828,
20625,
7,
11167,
62,
20888,
828,
1720,
62,
4906,
62,
8189,
16034,
3186,
44441,
1105... |
What is the nationality of the player in Position C from Round 1? | SELECT "Nationality" FROM table_10390 WHERE "Round" = '1' AND "Position" = 'c' | [
2061,
318,
262,
29835,
286,
262,
2137,
287,
23158,
327,
422,
10485,
352,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
940,
25964,
33411,
366,
22685,
1,
796,
705,
16,
6,
5357,
366,
26545,
1,
796,
705,
66,
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,
29835,
286,
262,
2137,
287,
23158,
327,
422,
10485,
352,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
940,
25964,
33411,
366,
22685,
1,
796,
705,
16,
6,
5357,
366,
26545,
1,
796,
705,
66,
6
] |
Draw a bar chart of investor versus the total number, I want to rank Y from high to low order. | SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC | [
25302,
257,
2318,
8262,
286,
15811,
9051,
262,
2472,
1271,
11,
314,
765,
284,
4279,
575,
422,
1029,
284,
1877,
1502,
13,
46506,
47979,
11,
327,
28270,
7,
28104,
16034,
19500,
44441,
11050,
47979,
38678,
11050,
327,
28270,
7,
28104,
2219... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2318,
8262,
286,
15811,
9051,
262,
2472,
1271,
11,
314,
765,
284,
4279,
575,
422,
1029,
284,
1877,
1502,
13,
46506,
47979,
11,
327,
28270,
7,
28104,
16034,
19500,
44441,
11050,
47979,
38678,
11050,
327,
28270,
7,
28104,
2219... |
how many patients whose age is less than 80 and diagnoses long title is late effects of cerebrovascular disease, hemiplegia affecting unspecified side? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "80" AND diagnoses.long_title = "Late effects of cerebrovascular disease, hemiplegia affecting unspecified side" | [
4919,
867,
3871,
3025,
2479,
318,
1342,
621,
4019,
290,
40567,
890,
3670,
318,
2739,
3048,
286,
6736,
7957,
85,
14767,
4369,
11,
16869,
541,
1455,
544,
13891,
29547,
1735,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
2479,
318,
1342,
621,
4019,
290,
40567,
890,
3670,
318,
2739,
3048,
286,
6736,
7957,
85,
14767,
4369,
11,
16869,
541,
1455,
544,
13891,
29547,
1735,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
327... |
What week that shows a game record of 0 1? | SELECT AVG("Week") FROM table_75551 WHERE "Record" = '0–1' | [
2061,
1285,
326,
2523,
257,
983,
1700,
286,
657,
352,
30,
46506,
35224,
7203,
20916,
4943,
16034,
3084,
62,
2425,
43697,
33411,
366,
23739,
1,
796,
705,
15,
1906,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1285,
326,
2523,
257,
983,
1700,
286,
657,
352,
30,
46506,
35224,
7203,
20916,
4943,
16034,
3084,
62,
2425,
43697,
33411,
366,
23739,
1,
796,
705,
15,
1906,
16,
6
] |
What is the value in 2010 for an airport ranked higher than 3 located in Cluj-Napoca? | SELECT COUNT("2010") FROM table_13911 WHERE "City" = 'cluj-napoca' AND "Rank" > '3' | [
2061,
318,
262,
1988,
287,
3050,
329,
281,
9003,
10307,
2440,
621,
513,
5140,
287,
1012,
23577,
12,
49799,
11216,
30,
46506,
327,
28270,
7203,
10333,
4943,
16034,
3084,
62,
20219,
1157,
33411,
366,
14941,
1,
796,
705,
565,
23577,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1988,
287,
3050,
329,
281,
9003,
10307,
2440,
621,
513,
5140,
287,
1012,
23577,
12,
49799,
11216,
30,
46506,
327,
28270,
7203,
10333,
4943,
16034,
3084,
62,
20219,
1157,
33411,
366,
14941,
1,
796,
705,
565,
23577,
12,
... |
Who are the major users from Australia? | SELECT "Major users" FROM table_31152 WHERE "Country of origin" = 'Australia' | [
8241,
389,
262,
1688,
2985,
422,
4505,
30,
46506,
366,
24206,
2985,
1,
16034,
3084,
62,
36244,
4309,
33411,
366,
33921,
286,
8159,
1,
796,
705,
27429,
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,
389,
262,
1688,
2985,
422,
4505,
30,
46506,
366,
24206,
2985,
1,
16034,
3084,
62,
36244,
4309,
33411,
366,
33921,
286,
8159,
1,
796,
705,
27429,
6
] |
In what Year was Rhode Island the National Champion? | SELECT year FROM table_name_77 WHERE national_champion = "rhode island" | [
818,
644,
6280,
373,
24545,
5451,
262,
2351,
15869,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
3324,
33411,
2260,
62,
354,
6734,
796,
366,
17179,
1098,
7022,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
644,
6280,
373,
24545,
5451,
262,
2351,
15869,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
3324,
33411,
2260,
62,
354,
6734,
796,
366,
17179,
1098,
7022,
1
] |
what is the number of patients on main type of drug prescription who have the diagnoses of other respiratory problems after birth? | 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.long_title = "Other respiratory problems after birth" AND prescriptions.drug_type = "MAIN" | [
10919,
318,
262,
1271,
286,
3871,
319,
1388,
2099,
286,
2563,
15077,
508,
423,
262,
40567,
286,
584,
22949,
2761,
706,
4082,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
3235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
319,
1388,
2099,
286,
2563,
15077,
508,
423,
262,
40567,
286,
584,
22949,
2761,
706,
4082,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
3235... |
List the name and the number of stations for all the cities that have at least 15 stations with a bar chart, and display by the names from high to low. | SELECT city, COUNT(*) FROM station GROUP BY city ORDER BY city DESC | [
8053,
262,
1438,
290,
262,
1271,
286,
8985,
329,
477,
262,
4736,
326,
423,
379,
1551,
1315,
8985,
351,
257,
2318,
8262,
11,
290,
3359,
416,
262,
3891,
422,
1029,
284,
1877,
13,
46506,
1748,
11,
327,
28270,
7,
28104,
16034,
4429,
444... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
290,
262,
1271,
286,
8985,
329,
477,
262,
4736,
326,
423,
379,
1551,
1315,
8985,
351,
257,
2318,
8262,
11,
290,
3359,
416,
262,
3891,
422,
1029,
284,
1877,
13,
46506,
1748,
11,
327,
28270,
7,
28104,
16034,
4429,
444... |
What is the Country of the Player with a Score of 69-71-66=206? | SELECT country FROM table_name_99 WHERE score = 69 - 71 - 66 = 206 | [
2061,
318,
262,
12946,
286,
262,
7853,
351,
257,
15178,
286,
8644,
12,
4869,
12,
2791,
28,
22136,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2079,
33411,
4776,
796,
8644,
532,
9166,
532,
7930,
796,
27253
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12946,
286,
262,
7853,
351,
257,
15178,
286,
8644,
12,
4869,
12,
2791,
28,
22136,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2079,
33411,
4776,
796,
8644,
532,
9166,
532,
7930,
796,
27253
] |
Who is the entrant when the engine is talbot l6 and the driver is pierre levegh? | SELECT entrant FROM table_name_90 WHERE engine = "talbot l6" AND driver = "pierre levegh" | [
8241,
318,
262,
920,
5250,
618,
262,
3113,
318,
3305,
13645,
300,
21,
290,
262,
4639,
318,
17748,
260,
34002,
456,
30,
46506,
920,
5250,
16034,
3084,
62,
3672,
62,
3829,
33411,
3113,
796,
366,
39240,
13645,
300,
21,
1,
5357,
4639,
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
] | [
8241,
318,
262,
920,
5250,
618,
262,
3113,
318,
3305,
13645,
300,
21,
290,
262,
4639,
318,
17748,
260,
34002,
456,
30,
46506,
920,
5250,
16034,
3084,
62,
3672,
62,
3829,
33411,
3113,
796,
366,
39240,
13645,
300,
21,
1,
5357,
4639,
7... |
Return a bar chart about the distribution of Days and the sum of Credits , and group by attribute Days. | SELECT Days, SUM(Credits) FROM Course GROUP BY Days ORDER BY Credits | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
12579,
290,
262,
2160,
286,
29501,
837,
290,
1448,
416,
11688,
12579,
13,
46506,
12579,
11,
35683,
7,
42855,
8,
16034,
20537,
44441,
11050,
12579,
38678,
11050,
29501
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
12579,
290,
262,
2160,
286,
29501,
837,
290,
1448,
416,
11688,
12579,
13,
46506,
12579,
11,
35683,
7,
42855,
8,
16034,
20537,
44441,
11050,
12579,
38678,
11050,
29501
] |
What is the D48 when the D 50 O is d 31? | SELECT "D 48 \u221a" FROM table_52125 WHERE "D 50 O" = 'd 31' | [
2061,
318,
262,
360,
2780,
618,
262,
360,
2026,
440,
318,
288,
3261,
30,
46506,
366,
35,
4764,
3467,
84,
26115,
64,
1,
16034,
3084,
62,
4309,
11623,
33411,
366,
35,
2026,
440,
1,
796,
705,
67,
3261,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
360,
2780,
618,
262,
360,
2026,
440,
318,
288,
3261,
30,
46506,
366,
35,
4764,
3467,
84,
26115,
64,
1,
16034,
3084,
62,
4309,
11623,
33411,
366,
35,
2026,
440,
1,
796,
705,
67,
3261,
6
] |
What is the position of the player from the Ukraine? | SELECT "Position" FROM table_31556 WHERE "Nationality" = 'ukraine' | [
2061,
318,
262,
2292,
286,
262,
2137,
422,
262,
7049,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
27936,
3980,
33411,
366,
16186,
414,
1,
796,
705,
2724,
23440,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2292,
286,
262,
2137,
422,
262,
7049,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
27936,
3980,
33411,
366,
16186,
414,
1,
796,
705,
2724,
23440,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.