instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What is the score when the record is 5-4-1? | SELECT score FROM table_name_52 WHERE record = "5-4-1" | [
2061,
318,
262,
4776,
618,
262,
1700,
318,
642,
12,
19,
12,
16,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4309,
33411,
1700,
796,
366,
20,
12,
19,
12,
16,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4776,
618,
262,
1700,
318,
642,
12,
19,
12,
16,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4309,
33411,
1700,
796,
366,
20,
12,
19,
12,
16,
1
] |
What is the most silver when bronze is more than 1 and total is more than 48? | SELECT MAX("Silver") FROM table_63780 WHERE "Bronze" > '1' AND "Total" > '48' | [
2061,
318,
262,
749,
8465,
618,
22101,
318,
517,
621,
352,
290,
2472,
318,
517,
621,
4764,
30,
46506,
25882,
7203,
26766,
4943,
16034,
3084,
62,
21,
2718,
1795,
33411,
366,
18760,
2736,
1,
1875,
705,
16,
6,
5357,
366,
14957,
1,
1875... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
749,
8465,
618,
22101,
318,
517,
621,
352,
290,
2472,
318,
517,
621,
4764,
30,
46506,
25882,
7203,
26766,
4943,
16034,
3084,
62,
21,
2718,
1795,
33411,
366,
18760,
2736,
1,
1875,
705,
16,
6,
5357,
366,
14957,
1,
1875... |
What venue hosted a match with a 3-0 score on December 7, 2002? | SELECT venue FROM table_name_31 WHERE score = "3-0" AND date = "december 7, 2002" | [
2061,
14359,
12007,
257,
2872,
351,
257,
513,
12,
15,
4776,
319,
3426,
767,
11,
6244,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
3132,
33411,
4776,
796,
366,
18,
12,
15,
1,
5357,
3128,
796,
366,
2934,
3273,
767,
11,
6244,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
14359,
12007,
257,
2872,
351,
257,
513,
12,
15,
4776,
319,
3426,
767,
11,
6244,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
3132,
33411,
4776,
796,
366,
18,
12,
15,
1,
5357,
3128,
796,
366,
2934,
3273,
767,
11,
6244,
1
] |
what is the original air date of the episode no in season 9? | SELECT "Original air date" FROM table_16203 WHERE "No. in season" = '9' | [
10919,
318,
262,
2656,
1633,
3128,
286,
262,
4471,
645,
287,
1622,
860,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
1433,
22416,
33411,
366,
2949,
13,
287,
1622,
1,
796,
705,
24,
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
] | [
10919,
318,
262,
2656,
1633,
3128,
286,
262,
4471,
645,
287,
1622,
860,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
1433,
22416,
33411,
366,
2949,
13,
287,
1622,
1,
796,
705,
24,
6
] |
Which Drawn has a Team of internacional-sp? | SELECT SUM("Drawn") FROM table_38553 WHERE "Team" = 'internacional-sp' | [
13828,
50061,
468,
257,
4816,
286,
1788,
330,
1538,
12,
2777,
30,
46506,
35683,
7203,
35,
5791,
4943,
16034,
3084,
62,
2548,
48096,
33411,
366,
15592,
1,
796,
705,
23124,
330,
1538,
12,
2777,
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
] | [
13828,
50061,
468,
257,
4816,
286,
1788,
330,
1538,
12,
2777,
30,
46506,
35683,
7203,
35,
5791,
4943,
16034,
3084,
62,
2548,
48096,
33411,
366,
15592,
1,
796,
705,
23124,
330,
1538,
12,
2777,
6
] |
Which stage had tabriz petrochemical team in the team classification? | SELECT "Stage" FROM table_38701 WHERE "Team classification" = 'tabriz petrochemical team' | [
13828,
3800,
550,
7400,
47847,
4273,
305,
31379,
1074,
287,
262,
1074,
17923,
30,
46506,
366,
29391,
1,
16034,
3084,
62,
32220,
486,
33411,
366,
15592,
17923,
1,
796,
705,
8658,
47847,
4273,
305,
31379,
1074,
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
] | [
13828,
3800,
550,
7400,
47847,
4273,
305,
31379,
1074,
287,
262,
1074,
17923,
30,
46506,
366,
29391,
1,
16034,
3084,
62,
32220,
486,
33411,
366,
15592,
17923,
1,
796,
705,
8658,
47847,
4273,
305,
31379,
1074,
6
] |
How many games had 22 goals before 1935? | SELECT SUM(games) FROM table_name_23 WHERE goals = 22 AND debut_year < 1935 | [
2437,
867,
1830,
550,
2534,
4661,
878,
30704,
30,
46506,
35683,
7,
19966,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
4661,
796,
2534,
5357,
8886,
62,
1941,
1279,
30704
] | [
1,
1,
1,
1,
1,
1,
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,
1830,
550,
2534,
4661,
878,
30704,
30,
46506,
35683,
7,
19966,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
4661,
796,
2534,
5357,
8886,
62,
1941,
1279,
30704
] |
Which season did Tich Freeman play against opponent V Warwickshire? | SELECT "Season" FROM table_57486 WHERE "Player" = 'tich freeman' AND "Opponent" = 'v warwickshire' | [
13828,
1622,
750,
309,
488,
22394,
711,
1028,
6125,
569,
1810,
86,
3378,
10695,
30,
46506,
366,
18960,
1,
16034,
3084,
62,
3553,
34251,
33411,
366,
14140,
1,
796,
705,
83,
488,
2030,
8463,
6,
5357,
366,
27524,
3471,
1,
796,
705,
85,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1622,
750,
309,
488,
22394,
711,
1028,
6125,
569,
1810,
86,
3378,
10695,
30,
46506,
366,
18960,
1,
16034,
3084,
62,
3553,
34251,
33411,
366,
14140,
1,
796,
705,
83,
488,
2030,
8463,
6,
5357,
366,
27524,
3471,
1,
796,
705,
85,... |
how many patients whose diagnoses short title is twin-mate lb-in hos w cs and lab test abnormal status is abnormal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Twin-mate lb-in hos w cs" AND lab.flag = "abnormal" | [
4919,
867,
3871,
3025,
40567,
1790,
3670,
318,
15203,
12,
9830,
18360,
12,
259,
289,
418,
266,
50115,
290,
2248,
1332,
18801,
3722,
318,
18801,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
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,
1790,
3670,
318,
15203,
12,
9830,
18360,
12,
259,
289,
418,
266,
50115,
290,
2248,
1332,
18801,
3722,
318,
18801,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728... |
What day did the VFL play Punt Road Oval? | SELECT "Date" FROM table_58120 WHERE "Venue" = 'punt road oval' | [
2061,
1110,
750,
262,
569,
3697,
711,
350,
2797,
5567,
25165,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3365,
10232,
33411,
366,
37522,
518,
1,
796,
705,
79,
2797,
2975,
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,
1,
1
] | [
2061,
1110,
750,
262,
569,
3697,
711,
350,
2797,
5567,
25165,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3365,
10232,
33411,
366,
37522,
518,
1,
796,
705,
79,
2797,
2975,
41186,
6
] |
what is the last intersecting road on the chart ? | SELECT "intersecting road" FROM table_204_763 ORDER BY id DESC LIMIT 1 | [
10919,
318,
262,
938,
36177,
278,
2975,
319,
262,
8262,
5633,
46506,
366,
3849,
8831,
278,
2975,
1,
16034,
3084,
62,
18638,
62,
49641,
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,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
938,
36177,
278,
2975,
319,
262,
8262,
5633,
46506,
366,
3849,
8831,
278,
2975,
1,
16034,
3084,
62,
18638,
62,
49641,
38678,
11050,
4686,
22196,
34,
27564,
2043,
352
] |
What is the highest Year, when Extra is Pentathlon? | SELECT MAX("Year") FROM table_48392 WHERE "Extra" = 'pentathlon' | [
2061,
318,
262,
4511,
6280,
11,
618,
17221,
318,
9696,
50236,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
2780,
32321,
33411,
366,
27726,
1,
796,
705,
16923,
50236,
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,
318,
262,
4511,
6280,
11,
618,
17221,
318,
9696,
50236,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
2780,
32321,
33411,
366,
27726,
1,
796,
705,
16923,
50236,
6
] |
Show me a scatter plot of account id and account_details for . | SELECT Account_ID, Account_Details FROM Accounts | [
15307,
502,
257,
41058,
7110,
286,
1848,
4686,
290,
1848,
62,
36604,
329,
764,
46506,
10781,
62,
2389,
11,
10781,
62,
24259,
16034,
35584
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
502,
257,
41058,
7110,
286,
1848,
4686,
290,
1848,
62,
36604,
329,
764,
46506,
10781,
62,
2389,
11,
10781,
62,
24259,
16034,
35584
] |
What was the outcome of the match with score 4 6, 3 6, 2 6? | SELECT outcome FROM table_22839669_1 WHERE score_in_the_final = "4–6, 3–6, 2–6" | [
2061,
373,
262,
8055,
286,
262,
2872,
351,
4776,
604,
718,
11,
513,
718,
11,
362,
718,
30,
46506,
8055,
16034,
3084,
62,
23815,
2670,
36657,
62,
16,
33411,
4776,
62,
259,
62,
1169,
62,
20311,
796,
366,
19,
1906,
21,
11,
513,
1906,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8055,
286,
262,
2872,
351,
4776,
604,
718,
11,
513,
718,
11,
362,
718,
30,
46506,
8055,
16034,
3084,
62,
23815,
2670,
36657,
62,
16,
33411,
4776,
62,
259,
62,
1169,
62,
20311,
796,
366,
19,
1906,
21,
11,
513,
1906,... |
find the number of hispanic or latino patients who have procedure icd9 code 8191. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND procedures.icd9_code = "8191" | [
19796,
262,
1271,
286,
465,
35843,
393,
3042,
2879,
3871,
508,
423,
8771,
14158,
67,
24,
2438,
807,
26492,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
617... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19796,
262,
1271,
286,
465,
35843,
393,
3042,
2879,
3871,
508,
423,
8771,
14158,
67,
24,
2438,
807,
26492,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
617... |
provide the number of patients whose diagnoses short title is peritonitis (acute) gen and drug route is ih? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Peritonitis (acute) gen" AND prescriptions.route = "IH" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
583,
37752,
11815,
357,
330,
1133,
8,
2429,
290,
2563,
6339,
318,
1312,
71,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
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... | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
583,
37752,
11815,
357,
330,
1133,
8,
2429,
290,
2563,
6339,
318,
1312,
71,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
... |
How many districts in Baltimore City does Cheryl Glenn dictate? | SELECT COUNT("District") FROM table_56931 WHERE "Place of Birth" = 'baltimore city' AND "Delegate" = 'cheryl glenn' | [
2437,
867,
12815,
287,
10346,
2254,
857,
37958,
17551,
27861,
30,
46506,
327,
28270,
7203,
44857,
4943,
16034,
3084,
62,
20,
3388,
3132,
33411,
366,
27271,
286,
17647,
1,
796,
705,
65,
2501,
9401,
1748,
6,
5357,
366,
5005,
34637,
1,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
12815,
287,
10346,
2254,
857,
37958,
17551,
27861,
30,
46506,
327,
28270,
7203,
44857,
4943,
16034,
3084,
62,
20,
3388,
3132,
33411,
366,
27271,
286,
17647,
1,
796,
705,
65,
2501,
9401,
1748,
6,
5357,
366,
5005,
34637,
1,
7... |
what is the total number of wins ? | SELECT COUNT(*) FROM table_203_790 WHERE "result" = 'w' | [
10919,
318,
262,
2472,
1271,
286,
7864,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
37750,
33411,
366,
20274,
1,
796,
705,
86,
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
] | [
10919,
318,
262,
2472,
1271,
286,
7864,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
37750,
33411,
366,
20274,
1,
796,
705,
86,
6
] |
give me the number of patients whose gender is f and item id is 51352? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.itemid = "51352" | [
26535,
502,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
2378,
4686,
318,
642,
1485,
4309,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5279,
318,
277,
290,
2378,
4686,
318,
642,
1485,
4309,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13... |
For those records from the products and each product's manufacturer, visualize a scatter chart about the correlation between code and revenue , and group by attribute headquarter. | SELECT T1.Code, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
38350,
257,
41058,
8262,
546,
262,
16096,
1022,
2438,
290,
6426,
837,
290,
1448,
416,
11688,
1182,
24385,
13,
46506,
309,
16,
13,
10669,
11,
309,
17,
13,
3041,
4080,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
38350,
257,
41058,
8262,
546,
262,
16096,
1022,
2438,
290,
6426,
837,
290,
1448,
416,
11688,
1182,
24385,
13,
46506,
309,
16,
13,
10669,
11,
309,
17,
13,
3041,
4080,
... |
How many of the patients admitted before the year 2197 had st elevated myocardial infarction\cardiac cath as their primary disease? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ST ELEVATED MYOCARDIAL INFARCTION\CARDIAC CATH" AND demographic.admityear < "2197" | [
2437,
867,
286,
262,
3871,
6848,
878,
262,
614,
362,
24991,
550,
336,
15321,
616,
44412,
498,
1167,
283,
596,
59,
9517,
9607,
32171,
355,
511,
4165,
4369,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
286,
262,
3871,
6848,
878,
262,
614,
362,
24991,
550,
336,
15321,
616,
44412,
498,
1167,
283,
596,
59,
9517,
9607,
32171,
355,
511,
4165,
4369,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,... |
tell me the cost of a upper respiratory obstruction diagnosis? | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 'upper respiratory obstruction') | [
33331,
502,
262,
1575,
286,
257,
6727,
22949,
28118,
13669,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
47356,
5958,
6,
5357,
1575,
13,
15596,
312,
3268,
357,
46506,
13669,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
33331,
502,
262,
1575,
286,
257,
6727,
22949,
28118,
13669,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
47356,
5958,
6,
5357,
1575,
13,
15596,
312,
3268,
357,
46506,
13669,
13,... |
who had the lowest lap time ? | SELECT "rider" FROM table_204_603 WHERE "pos" = 1 | [
8727,
550,
262,
9016,
14779,
640,
5633,
46506,
366,
49449,
1,
16034,
3084,
62,
18638,
62,
35642,
33411,
366,
1930,
1,
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
] | [
8727,
550,
262,
9016,
14779,
640,
5633,
46506,
366,
49449,
1,
16034,
3084,
62,
18638,
62,
35642,
33411,
366,
1930,
1,
796,
352
] |
What is Team, when Date of Appointment is '10 November 2008'? | SELECT "Team" FROM table_45752 WHERE "Date of appointment" = '10 november 2008' | [
2061,
318,
4816,
11,
618,
7536,
286,
2034,
49805,
318,
705,
940,
3389,
3648,
30960,
46506,
366,
15592,
1,
16034,
3084,
62,
2231,
43665,
33411,
366,
10430,
286,
12557,
1,
796,
705,
940,
645,
303,
1916,
3648,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
4816,
11,
618,
7536,
286,
2034,
49805,
318,
705,
940,
3389,
3648,
30960,
46506,
366,
15592,
1,
16034,
3084,
62,
2231,
43665,
33411,
366,
10430,
286,
12557,
1,
796,
705,
940,
645,
303,
1916,
3648,
6
] |
Count the number of captains that have each rank. Show the proportion. | SELECT Rank, COUNT(*) FROM captain GROUP BY Rank | [
12332,
262,
1271,
286,
37551,
326,
423,
1123,
4279,
13,
5438,
262,
9823,
13,
46506,
10916,
11,
327,
28270,
7,
28104,
16034,
10654,
44441,
11050,
10916
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12332,
262,
1271,
286,
37551,
326,
423,
1123,
4279,
13,
5438,
262,
9823,
13,
46506,
10916,
11,
327,
28270,
7,
28104,
16034,
10654,
44441,
11050,
10916
] |
A bar chart shows the distribution of ACC_Road and the average of School_ID , and group by attribute ACC_Road, and order X-axis in descending order please. | SELECT ACC_Road, AVG(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY ACC_Road DESC | [
32,
2318,
8262,
2523,
262,
6082,
286,
15859,
62,
29197,
290,
262,
2811,
286,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
11,
290,
1502,
1395,
12,
22704,
287,
31491,
1502,
3387,
13,
46506,
15859,
62,
29197,
11,
35224,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2523,
262,
6082,
286,
15859,
62,
29197,
290,
262,
2811,
286,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
11,
290,
1502,
1395,
12,
22704,
287,
31491,
1502,
3387,
13,
46506,
15859,
62,
29197,
11,
35224,... |
How many marks did he get in 2005? | SELECT "Marks" FROM table_48975 WHERE "Season" = '2005' | [
2437,
867,
8849,
750,
339,
651,
287,
5075,
30,
46506,
366,
44,
5558,
1,
16034,
3084,
62,
35890,
2425,
33411,
366,
18960,
1,
796,
705,
14315,
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
] | [
2437,
867,
8849,
750,
339,
651,
287,
5075,
30,
46506,
366,
44,
5558,
1,
16034,
3084,
62,
35890,
2425,
33411,
366,
18960,
1,
796,
705,
14315,
6
] |
Return each apartment type code with the number of apartments having that apartment type, in ascending order of the number of apartments. | SELECT apt_type_code, COUNT(*) FROM apartments GROUP BY apt_type_code ORDER BY COUNT(*) | [
13615,
1123,
7962,
2099,
2438,
351,
262,
1271,
286,
19592,
1719,
326,
7962,
2099,
11,
287,
41988,
1502,
286,
262,
1271,
286,
19592,
13,
46506,
15409,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
19592,
44441,
11050,
15409,
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
] | [
13615,
1123,
7962,
2099,
2438,
351,
262,
1271,
286,
19592,
1719,
326,
7962,
2099,
11,
287,
41988,
1502,
286,
262,
1271,
286,
19592,
13,
46506,
15409,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
19592,
44441,
11050,
15409,
62,
... |
Name the post poles for 4 podiums | SELECT MAX("Poles") FROM table_29650 WHERE "Podiums" = '4' | [
5376,
262,
1281,
24971,
329,
604,
27941,
82,
46506,
25882,
7203,
47,
4316,
4943,
16034,
3084,
62,
1959,
17544,
33411,
366,
47,
12664,
82,
1,
796,
705,
19,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1281,
24971,
329,
604,
27941,
82,
46506,
25882,
7203,
47,
4316,
4943,
16034,
3084,
62,
1959,
17544,
33411,
366,
47,
12664,
82,
1,
796,
705,
19,
6
] |
What is the easiest class I can take to meet the Other requirement ? | SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%Other%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_c... | [
2061,
318,
262,
16638,
1398,
314,
460,
1011,
284,
1826,
262,
3819,
9079,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
11,
1430,
62,
17319,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
16638,
1398,
314,
460,
1011,
284,
1826,
262,
3819,
9079,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
11,
1430,
62,
17319,
1... |
WHICH State/country that has ray roberts? | SELECT "State/country" FROM table_36479 WHERE "Skipper" = 'ray roberts' | [
12418,
20739,
1812,
14,
19315,
326,
468,
26842,
686,
527,
912,
30,
46506,
366,
9012,
14,
19315,
1,
16034,
3084,
62,
26780,
3720,
33411,
366,
50,
4106,
2848,
1,
796,
705,
2433,
686,
527,
912,
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
] | [
12418,
20739,
1812,
14,
19315,
326,
468,
26842,
686,
527,
912,
30,
46506,
366,
9012,
14,
19315,
1,
16034,
3084,
62,
26780,
3720,
33411,
366,
50,
4106,
2848,
1,
796,
705,
2433,
686,
527,
912,
6
] |
What is the release date when the location is Europe? | SELECT release_date FROM table_name_37 WHERE location = "europe" | [
2061,
318,
262,
2650,
3128,
618,
262,
4067,
318,
2031,
30,
46506,
2650,
62,
4475,
16034,
3084,
62,
3672,
62,
2718,
33411,
4067,
796,
366,
44252,
431,
1
] | [
1,
1,
1,
1,
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,
2650,
3128,
618,
262,
4067,
318,
2031,
30,
46506,
2650,
62,
4475,
16034,
3084,
62,
3672,
62,
2718,
33411,
4067,
796,
366,
44252,
431,
1
] |
What is College, when Round is greater than 1, and when Pick is greater than 163? | SELECT "College" FROM table_46735 WHERE "Round" > '1' AND "Pick" > '163' | [
2061,
318,
5535,
11,
618,
10485,
318,
3744,
621,
352,
11,
290,
618,
12346,
318,
3744,
621,
26826,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
24669,
2327,
33411,
366,
22685,
1,
1875,
705,
16,
6,
5357,
366,
31686,
1,
1875,
705,
24136,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5535,
11,
618,
10485,
318,
3744,
621,
352,
11,
290,
618,
12346,
318,
3744,
621,
26826,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
24669,
2327,
33411,
366,
22685,
1,
1875,
705,
16,
6,
5357,
366,
31686,
1,
1875,
705,
24136,... |
what was the score on june 29 when the devil rays los? | SELECT "Score" FROM table_78107 WHERE "Losing Team" = 'devil rays' AND "Date" = 'june 29' | [
10919,
373,
262,
4776,
319,
474,
1726,
2808,
618,
262,
17118,
24823,
22346,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3695,
15982,
33411,
366,
43,
2752,
4816,
1,
796,
705,
7959,
346,
24823,
6,
5357,
366,
10430,
1,
796,
705,
73,
172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4776,
319,
474,
1726,
2808,
618,
262,
17118,
24823,
22346,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3695,
15982,
33411,
366,
43,
2752,
4816,
1,
796,
705,
7959,
346,
24823,
6,
5357,
366,
10430,
1,
796,
705,
73,
172... |
what's the minimum tasmania value | SELECT MIN("Tasmania") FROM table_62 | [
10919,
338,
262,
5288,
256,
292,
45733,
1988,
46506,
20625,
7203,
51,
292,
45733,
4943,
16034,
3084,
62,
5237
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
5288,
256,
292,
45733,
1988,
46506,
20625,
7203,
51,
292,
45733,
4943,
16034,
3084,
62,
5237
] |
Name the most ceiling temperature for very extra high | SELECT maximum_ceiling_temperature FROM table_1538516_1 WHERE temperature_classification = "Very Extra High" | [
5376,
262,
749,
13387,
5951,
329,
845,
3131,
1029,
46506,
5415,
62,
344,
4386,
62,
11498,
21069,
16034,
3084,
62,
1314,
27203,
1433,
62,
16,
33411,
5951,
62,
4871,
2649,
796,
366,
16371,
17221,
3334,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
749,
13387,
5951,
329,
845,
3131,
1029,
46506,
5415,
62,
344,
4386,
62,
11498,
21069,
16034,
3084,
62,
1314,
27203,
1433,
62,
16,
33411,
5951,
62,
4871,
2649,
796,
366,
16371,
17221,
3334,
1
] |
What was the Against when the Opposing Team was sheffield wednesday? | SELECT against FROM table_name_24 WHERE opposing_team = "sheffield wednesday" | [
2061,
373,
262,
12914,
618,
262,
9385,
2752,
4816,
373,
673,
31374,
29445,
3462,
30,
46506,
1028,
16034,
3084,
62,
3672,
62,
1731,
33411,
12330,
62,
15097,
796,
366,
7091,
31374,
29445,
3462,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12914,
618,
262,
9385,
2752,
4816,
373,
673,
31374,
29445,
3462,
30,
46506,
1028,
16034,
3084,
62,
3672,
62,
1731,
33411,
12330,
62,
15097,
796,
366,
7091,
31374,
29445,
3462,
1
] |
let's count the number of times patient 005-77687 has had a endotracheal tube removal procedure this year. | SELECT COUNT(*) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-77687')) AND treatment.treatmentname = 'endotracheal tube removal' AND DATET... | [
1616,
338,
954,
262,
1271,
286,
1661,
5827,
3571,
20,
12,
3324,
39925,
468,
550,
257,
46710,
81,
4891,
282,
12403,
9934,
8771,
428,
614,
13,
46506,
327,
28270,
7,
28104,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
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... | [
1616,
338,
954,
262,
1271,
286,
1661,
5827,
3571,
20,
12,
3324,
39925,
468,
550,
257,
46710,
81,
4891,
282,
12403,
9934,
8771,
428,
614,
13,
46506,
327,
28270,
7,
28104,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
35... |
What's the total population when the Asian American population is less than 60,072, the Indian American population is more than 14,696 and is 4.2% Indian American? | SELECT SUM("Total Population (2010)") FROM table_79594 WHERE "Asian American Population (2010)" < '60,072' AND "Indian American Population (2010)" > '14,696' AND "% Indian American" = '4.2' | [
2061,
338,
262,
2472,
3265,
618,
262,
7740,
1605,
3265,
318,
1342,
621,
3126,
11,
2998,
17,
11,
262,
3942,
1605,
3265,
318,
517,
621,
1478,
11,
38205,
290,
318,
604,
13,
17,
4,
3942,
1605,
30,
46506,
35683,
7203,
14957,
20133,
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... | [
2061,
338,
262,
2472,
3265,
618,
262,
7740,
1605,
3265,
318,
1342,
621,
3126,
11,
2998,
17,
11,
262,
3942,
1605,
3265,
318,
517,
621,
1478,
11,
38205,
290,
318,
604,
13,
17,
4,
3942,
1605,
30,
46506,
35683,
7203,
14957,
20133,
357,
... |
how many patients whose admission type is elective and diagnoses long title is personal history of surgery to other organs? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND diagnoses.long_title = "Personal history of surgery to other organs" | [
4919,
867,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
40567,
890,
3670,
318,
2614,
2106,
286,
8185,
284,
584,
16613,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
40567,
890,
3670,
318,
2614,
2106,
286,
8185,
284,
584,
16613,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
12... |
A bar chart for finding the number of the names of Japanese constructors that have once earned more than 5 points?, and display in asc by the names. | SELECT name, COUNT(name) FROM constructors AS T1 JOIN constructorStandings AS T2 ON T1.constructorId = T2.constructorId WHERE T1.nationality = "Japanese" AND T2.points > 5 GROUP BY name ORDER BY name | [
32,
2318,
8262,
329,
4917,
262,
1271,
286,
262,
3891,
286,
4960,
5678,
669,
326,
423,
1752,
7366,
517,
621,
642,
2173,
21747,
290,
3359,
287,
10570,
416,
262,
3891,
13,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
5678,
669,
7054... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32,
2318,
8262,
329,
4917,
262,
1271,
286,
262,
3891,
286,
4960,
5678,
669,
326,
423,
1752,
7366,
517,
621,
642,
2173,
21747,
290,
3359,
287,
10570,
416,
262,
3891,
13,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
5678,
669,
7054... |
how many films were there in 1990 ? | SELECT COUNT("title") FROM table_203_98 WHERE "year" = 1990 | [
4919,
867,
7328,
547,
612,
287,
6303,
5633,
46506,
327,
28270,
7203,
7839,
4943,
16034,
3084,
62,
22416,
62,
4089,
33411,
366,
1941,
1,
796,
6303
] | [
1,
1,
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,
7328,
547,
612,
287,
6303,
5633,
46506,
327,
28270,
7203,
7839,
4943,
16034,
3084,
62,
22416,
62,
4089,
33411,
366,
1941,
1,
796,
6303
] |
What is the amount of 000s from 1996? | SELECT SUM(total__000s_) FROM table_name_20 WHERE year = "1996" | [
2061,
318,
262,
2033,
286,
12877,
82,
422,
8235,
30,
46506,
35683,
7,
23350,
834,
830,
82,
62,
8,
16034,
3084,
62,
3672,
62,
1238,
33411,
614,
796,
366,
22288,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
2033,
286,
12877,
82,
422,
8235,
30,
46506,
35683,
7,
23350,
834,
830,
82,
62,
8,
16034,
3084,
62,
3672,
62,
1238,
33411,
614,
796,
366,
22288,
1
] |
HOW MANY GAMES WERE LOST BY 12 POINTS? | SELECT COUNT("Points for") FROM table_17823 WHERE "Lost" = '12' | [
37181,
17254,
56,
402,
29559,
370,
9338,
406,
10892,
11050,
1105,
19922,
1268,
4694,
30,
46506,
327,
28270,
7203,
40710,
329,
4943,
16034,
3084,
62,
23188,
1954,
33411,
366,
31042,
1,
796,
705,
1065,
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
] | [
37181,
17254,
56,
402,
29559,
370,
9338,
406,
10892,
11050,
1105,
19922,
1268,
4694,
30,
46506,
327,
28270,
7203,
40710,
329,
4943,
16034,
3084,
62,
23188,
1954,
33411,
366,
31042,
1,
796,
705,
1065,
6
] |
Pick # smaller than 46, and a Round of 5, and a Position of defensive tackle involves which college? | SELECT college FROM table_name_72 WHERE pick__number < 46 AND round = 5 AND position = "defensive tackle" | [
31686,
1303,
4833,
621,
6337,
11,
290,
257,
10485,
286,
642,
11,
290,
257,
23158,
286,
6110,
9761,
9018,
543,
4152,
30,
46506,
4152,
16034,
3084,
62,
3672,
62,
4761,
33411,
2298,
834,
17618,
1279,
6337,
5357,
2835,
796,
642,
5357,
229... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
31686,
1303,
4833,
621,
6337,
11,
290,
257,
10485,
286,
642,
11,
290,
257,
23158,
286,
6110,
9761,
9018,
543,
4152,
30,
46506,
4152,
16034,
3084,
62,
3672,
62,
4761,
33411,
2298,
834,
17618,
1279,
6337,
5357,
2835,
796,
642,
5357,
229... |
What is Robert Allenby's average to par score? | SELECT AVG("To par") FROM table_60381 WHERE "Player" = 'robert allenby' | [
2061,
318,
5199,
9659,
1525,
338,
2811,
284,
1582,
4776,
30,
46506,
35224,
7203,
2514,
1582,
4943,
16034,
3084,
62,
1899,
36626,
33411,
366,
14140,
1,
796,
705,
305,
4835,
477,
268,
1525,
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,
5199,
9659,
1525,
338,
2811,
284,
1582,
4776,
30,
46506,
35224,
7203,
2514,
1582,
4943,
16034,
3084,
62,
1899,
36626,
33411,
366,
14140,
1,
796,
705,
305,
4835,
477,
268,
1525,
6
] |
what's the record with result being w 21 7 | SELECT "Record" FROM table_1141 WHERE "Result" = 'W 21–7' | [
10919,
338,
262,
1700,
351,
1255,
852,
266,
2310,
767,
46506,
366,
23739,
1,
16034,
3084,
62,
1157,
3901,
33411,
366,
23004,
1,
796,
705,
54,
2310,
1906,
22,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
1700,
351,
1255,
852,
266,
2310,
767,
46506,
366,
23739,
1,
16034,
3084,
62,
1157,
3901,
33411,
366,
23004,
1,
796,
705,
54,
2310,
1906,
22,
6
] |
When the time is 1:36.30 what shows as winner? | SELECT "Winner/2nd" FROM table_18866 WHERE "Time" = '1:36.30' | [
2215,
262,
640,
318,
352,
25,
2623,
13,
1270,
644,
2523,
355,
8464,
30,
46506,
366,
48056,
14,
17,
358,
1,
16034,
3084,
62,
20356,
2791,
33411,
366,
7575,
1,
796,
705,
16,
25,
2623,
13,
1270,
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
] | [
2215,
262,
640,
318,
352,
25,
2623,
13,
1270,
644,
2523,
355,
8464,
30,
46506,
366,
48056,
14,
17,
358,
1,
16034,
3084,
62,
20356,
2791,
33411,
366,
7575,
1,
796,
705,
16,
25,
2623,
13,
1270,
6
] |
What is No. 3, when No. 7 is Abigail, and when No. 4 is Ava? | SELECT no_3 FROM table_name_79 WHERE no_7 = "abigail" AND no_4 = "ava" | [
2061,
318,
1400,
13,
513,
11,
618,
1400,
13,
767,
318,
2275,
328,
603,
11,
290,
618,
1400,
13,
604,
318,
5184,
64,
30,
46506,
645,
62,
18,
16034,
3084,
62,
3672,
62,
3720,
33411,
645,
62,
22,
796,
366,
397,
328,
603,
1,
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
] | [
2061,
318,
1400,
13,
513,
11,
618,
1400,
13,
767,
318,
2275,
328,
603,
11,
290,
618,
1400,
13,
604,
318,
5184,
64,
30,
46506,
645,
62,
18,
16034,
3084,
62,
3672,
62,
3720,
33411,
645,
62,
22,
796,
366,
397,
328,
603,
1,
5357,
... |
What is the title of the episode that aired on december 12, 1953? | SELECT title FROM table_15824796_3 WHERE original_air_date = "December 12, 1953" | [
2061,
318,
262,
3670,
286,
262,
4471,
326,
18530,
319,
390,
3273,
1105,
11,
24217,
30,
46506,
3670,
16034,
3084,
62,
21273,
1731,
41060,
62,
18,
33411,
2656,
62,
958,
62,
4475,
796,
366,
20588,
1105,
11,
24217,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3670,
286,
262,
4471,
326,
18530,
319,
390,
3273,
1105,
11,
24217,
30,
46506,
3670,
16034,
3084,
62,
21273,
1731,
41060,
62,
18,
33411,
2656,
62,
958,
62,
4475,
796,
366,
20588,
1105,
11,
24217,
1
] |
what is subject name and admission time of subject id 2560? | SELECT demographic.name, demographic.admittime FROM demographic WHERE demographic.subject_id = "2560" | [
10919,
318,
2426,
1438,
290,
13938,
640,
286,
2426,
4686,
1679,
1899,
30,
46506,
16728,
13,
3672,
11,
16728,
13,
324,
20124,
524,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1495,
1899,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2426,
1438,
290,
13938,
640,
286,
2426,
4686,
1679,
1899,
30,
46506,
16728,
13,
3672,
11,
16728,
13,
324,
20124,
524,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1495,
1899,
1
] |
Which name has a Lane smaller than 3, a Heat larger than 4, and a Time of 2:00.80? | SELECT "Name" FROM table_15622 WHERE "Lane" < '3' AND "Heat" > '4' AND "Time" = '2:00.80' | [
13828,
1438,
468,
257,
15016,
4833,
621,
513,
11,
257,
12308,
4025,
621,
604,
11,
290,
257,
3862,
286,
362,
25,
405,
13,
1795,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
21599,
1828,
33411,
366,
43,
1531,
1,
1279,
705,
18,
6,
5357,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1438,
468,
257,
15016,
4833,
621,
513,
11,
257,
12308,
4025,
621,
604,
11,
290,
257,
3862,
286,
362,
25,
405,
13,
1795,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
21599,
1828,
33411,
366,
43,
1531,
1,
1279,
705,
18,
6,
5357,... |
How many people attended the green bay packers game? | SELECT SUM("Attendance") FROM table_46371 WHERE "Opponent" = 'green bay packers' | [
2437,
867,
661,
9141,
262,
4077,
15489,
2353,
364,
983,
30,
46506,
35683,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
3510,
38056,
33411,
366,
27524,
3471,
1,
796,
705,
14809,
15489,
2353,
364,
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
] | [
2437,
867,
661,
9141,
262,
4077,
15489,
2353,
364,
983,
30,
46506,
35683,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
3510,
38056,
33411,
366,
27524,
3471,
1,
796,
705,
14809,
15489,
2353,
364,
6
] |
When the winning team of mathiasen motorsports has a pole position of jonathan bomarito, who has the fastest lap? | SELECT fastest_lap FROM table_name_97 WHERE winning_team = "mathiasen motorsports" AND pole_position = "jonathan bomarito" | [
2215,
262,
5442,
1074,
286,
10688,
4448,
268,
24699,
3742,
468,
257,
16825,
2292,
286,
474,
261,
6696,
8626,
283,
10094,
11,
508,
468,
262,
14162,
14779,
30,
46506,
14162,
62,
37796,
16034,
3084,
62,
3672,
62,
5607,
33411,
5442,
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
] | [
2215,
262,
5442,
1074,
286,
10688,
4448,
268,
24699,
3742,
468,
257,
16825,
2292,
286,
474,
261,
6696,
8626,
283,
10094,
11,
508,
468,
262,
14162,
14779,
30,
46506,
14162,
62,
37796,
16034,
3084,
62,
3672,
62,
5607,
33411,
5442,
62,
1... |
How many laps for ukyo katayama with a grid under 16? | SELECT COUNT("Laps") FROM table_11086 WHERE "Driver" = 'ukyo katayama' AND "Grid" < '16' | [
2437,
867,
24590,
329,
334,
2584,
78,
479,
265,
323,
1689,
351,
257,
10706,
739,
1467,
30,
46506,
327,
28270,
7203,
43,
1686,
4943,
16034,
3084,
62,
11442,
4521,
33411,
366,
32103,
1,
796,
705,
84,
2584,
78,
479,
265,
323,
1689,
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
] | [
2437,
867,
24590,
329,
334,
2584,
78,
479,
265,
323,
1689,
351,
257,
10706,
739,
1467,
30,
46506,
327,
28270,
7203,
43,
1686,
4943,
16034,
3084,
62,
11442,
4521,
33411,
366,
32103,
1,
796,
705,
84,
2584,
78,
479,
265,
323,
1689,
6,
... |
give me the number of patients whose discharge location is home and procedure icd9 code is 14? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME" AND procedures.icd9_code = "14" | [
26535,
502,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1363,
290,
8771,
14158,
67,
24,
2438,
318,
1478,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
617... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17655,
4067,
318,
1363,
290,
8771,
14158,
67,
24,
2438,
318,
1478,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
617... |
What is the average opened year of Mini Estadi stadium in Barcelona, Spain? | SELECT AVG(opened) FROM table_name_62 WHERE city = "barcelona, spain" AND stadium = "mini estadi" | [
2061,
318,
262,
2811,
4721,
614,
286,
12558,
10062,
9189,
10308,
287,
15142,
11,
8602,
30,
46506,
35224,
7,
26350,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
1748,
796,
366,
5657,
14308,
11,
599,
391,
1,
5357,
10308,
796,
366,
45313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4721,
614,
286,
12558,
10062,
9189,
10308,
287,
15142,
11,
8602,
30,
46506,
35224,
7,
26350,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
1748,
796,
366,
5657,
14308,
11,
599,
391,
1,
5357,
10308,
796,
366,
45313,
... |
What was the production code of the episode no. 55 in the series? | SELECT "Production code" FROM table_29977 WHERE "No. in series" = '55' | [
2061,
373,
262,
3227,
2438,
286,
262,
4471,
645,
13,
5996,
287,
262,
2168,
30,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
22579,
3324,
33411,
366,
2949,
13,
287,
2168,
1,
796,
705,
2816,
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,
373,
262,
3227,
2438,
286,
262,
4471,
645,
13,
5996,
287,
262,
2168,
30,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
22579,
3324,
33411,
366,
2949,
13,
287,
2168,
1,
796,
705,
2816,
6
] |
Name the location for democratic m ga-plex taschereau imax | SELECT "Location" FROM table_3098 WHERE "Theatre name" = 'Méga-Plex Taschereau IMAX' | [
5376,
262,
4067,
329,
10518,
285,
31986,
12,
11141,
256,
3372,
1456,
559,
545,
897,
46506,
366,
14749,
1,
16034,
3084,
62,
1270,
4089,
33411,
366,
464,
10562,
1438,
1,
796,
705,
44,
2634,
4908,
12,
46383,
309,
3372,
1456,
559,
314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
4067,
329,
10518,
285,
31986,
12,
11141,
256,
3372,
1456,
559,
545,
897,
46506,
366,
14749,
1,
16034,
3084,
62,
1270,
4089,
33411,
366,
464,
10562,
1438,
1,
796,
705,
44,
2634,
4908,
12,
46383,
309,
3372,
1456,
559,
314,
... |
what is procedure short title of subject id 6983? | SELECT procedures.short_title FROM procedures WHERE procedures.subject_id = "6983" | [
10919,
318,
8771,
1790,
3670,
286,
2426,
4686,
39861,
18,
30,
46506,
9021,
13,
19509,
62,
7839,
16034,
9021,
33411,
9021,
13,
32796,
62,
312,
796,
366,
3388,
5999,
1
] | [
1,
1,
1,
1,
1,
1,
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,
8771,
1790,
3670,
286,
2426,
4686,
39861,
18,
30,
46506,
9021,
13,
19509,
62,
7839,
16034,
9021,
33411,
9021,
13,
32796,
62,
312,
796,
366,
3388,
5999,
1
] |
How many players hometown was Cincinnati, Ohio? | SELECT COUNT(player) FROM table_11677691_4 WHERE hometown = "Cincinnati, Ohio" | [
2437,
867,
1938,
20994,
373,
16137,
11,
6835,
30,
46506,
327,
28270,
7,
7829,
8,
16034,
3084,
62,
1157,
40179,
49541,
62,
19,
33411,
20994,
796,
366,
34,
15130,
11,
6835,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1938,
20994,
373,
16137,
11,
6835,
30,
46506,
327,
28270,
7,
7829,
8,
16034,
3084,
62,
1157,
40179,
49541,
62,
19,
33411,
20994,
796,
366,
34,
15130,
11,
6835,
1
] |
what was the name of the first medication that was prescribed to patient 27451 until 63 months ago? | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27451) AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-63 month') ORDER BY prescriptions.startdate LIMIT 1 | [
10919,
373,
262,
1438,
286,
262,
717,
14103,
326,
373,
14798,
284,
5827,
2681,
36330,
1566,
8093,
1933,
2084,
30,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1438,
286,
262,
717,
14103,
326,
373,
14798,
284,
5827,
2681,
36330,
1566,
8093,
1933,
2084,
30,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
... |
What type of state was Lu, when Yi was the ruler from the royal house of Ji? | SELECT type FROM table_name_39 WHERE royal_house = "ji" AND name = "yi" AND state = "lu" | [
2061,
2099,
286,
1181,
373,
6026,
11,
618,
26463,
373,
262,
22740,
422,
262,
15100,
2156,
286,
29380,
30,
46506,
2099,
16034,
3084,
62,
3672,
62,
2670,
33411,
15100,
62,
4803,
796,
366,
7285,
1,
5357,
1438,
796,
366,
48111,
1,
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
] | [
2061,
2099,
286,
1181,
373,
6026,
11,
618,
26463,
373,
262,
22740,
422,
262,
15100,
2156,
286,
29380,
30,
46506,
2099,
16034,
3084,
62,
3672,
62,
2670,
33411,
15100,
62,
4803,
796,
366,
7285,
1,
5357,
1438,
796,
366,
48111,
1,
5357,
... |
Who was the high point scorer in game number 68? | SELECT high_points FROM table_15869204_8 WHERE game = 68 | [
8241,
373,
262,
1029,
966,
30664,
287,
983,
1271,
8257,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
21273,
3388,
18638,
62,
23,
33411,
983,
796,
8257
] | [
1,
1,
1,
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,
1029,
966,
30664,
287,
983,
1271,
8257,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
21273,
3388,
18638,
62,
23,
33411,
983,
796,
8257
] |
What is the density of yushan county? | SELECT COUNT(density) FROM table_1300525_1 WHERE english_name = "Yushan County" | [
2061,
318,
262,
12109,
286,
331,
1530,
272,
7968,
30,
46506,
327,
28270,
7,
43337,
8,
16034,
3084,
62,
1485,
22544,
1495,
62,
16,
33411,
46932,
62,
3672,
796,
366,
56,
1530,
272,
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
] | [
2061,
318,
262,
12109,
286,
331,
1530,
272,
7968,
30,
46506,
327,
28270,
7,
43337,
8,
16034,
3084,
62,
1485,
22544,
1495,
62,
16,
33411,
46932,
62,
3672,
796,
366,
56,
1530,
272,
3418,
1
] |
What was their record when the attendance was 26,827? | SELECT "Record" FROM table_69248 WHERE "Attendance" = '26,827' | [
2061,
373,
511,
1700,
618,
262,
14858,
373,
2608,
11,
23,
1983,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3388,
23045,
33411,
366,
8086,
437,
590,
1,
796,
705,
2075,
11,
23,
1983,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
511,
1700,
618,
262,
14858,
373,
2608,
11,
23,
1983,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3388,
23045,
33411,
366,
8086,
437,
590,
1,
796,
705,
2075,
11,
23,
1983,
6
] |
WHAT WAS THE SCORE FOR GAME 31? | SELECT score FROM table_15869204_6 WHERE game = 31 | [
32971,
21725,
3336,
6374,
6965,
7473,
30517,
3261,
30,
46506,
4776,
16034,
3084,
62,
21273,
3388,
18638,
62,
21,
33411,
983,
796,
3261
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32971,
21725,
3336,
6374,
6965,
7473,
30517,
3261,
30,
46506,
4776,
16034,
3084,
62,
21273,
3388,
18638,
62,
21,
33411,
983,
796,
3261
] |
What is the total with a 74 rank by average for 8th place? | SELECT total FROM table_name_70 WHERE rank_by_average = "74" AND place = "8th" | [
2061,
318,
262,
2472,
351,
257,
8915,
4279,
416,
2811,
329,
807,
400,
1295,
30,
46506,
2472,
16034,
3084,
62,
3672,
62,
2154,
33411,
4279,
62,
1525,
62,
23913,
796,
366,
4524,
1,
5357,
1295,
796,
366,
23,
400,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
351,
257,
8915,
4279,
416,
2811,
329,
807,
400,
1295,
30,
46506,
2472,
16034,
3084,
62,
3672,
62,
2154,
33411,
4279,
62,
1525,
62,
23913,
796,
366,
4524,
1,
5357,
1295,
796,
366,
23,
400,
1
] |
What was the title for the label mother / mvp / polydor? | SELECT "Title" FROM table_14243 WHERE "Label" = 'mother / mvp / polydor' | [
2061,
373,
262,
3670,
329,
262,
6167,
2802,
1220,
285,
36133,
1220,
7514,
40180,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
1415,
26660,
33411,
366,
33986,
1,
796,
705,
13552,
1220,
285,
36133,
1220,
7514,
40180,
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,
373,
262,
3670,
329,
262,
6167,
2802,
1220,
285,
36133,
1220,
7514,
40180,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
1415,
26660,
33411,
366,
33986,
1,
796,
705,
13552,
1220,
285,
36133,
1220,
7514,
40180,
6
] |
What team did the home team play on September 4? | SELECT "Opponent" FROM table_6101 WHERE "Date" = 'september 4' | [
2061,
1074,
750,
262,
1363,
1074,
711,
319,
2693,
604,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
5333,
486,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
604,
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,
1074,
750,
262,
1363,
1074,
711,
319,
2693,
604,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
5333,
486,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
604,
6
] |
Which time contains the jockery of isaac murphy as well as the winner of kingman? | SELECT "Time" FROM table_49175 WHERE "Jockey" = 'isaac murphy' AND "Winner" = 'kingman' | [
13828,
640,
4909,
262,
474,
735,
1924,
286,
318,
64,
330,
4636,
6883,
355,
880,
355,
262,
8464,
286,
5822,
805,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
2920,
17430,
33411,
366,
41,
8337,
1,
796,
705,
9160,
330,
4636,
6883,
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
] | [
13828,
640,
4909,
262,
474,
735,
1924,
286,
318,
64,
330,
4636,
6883,
355,
880,
355,
262,
8464,
286,
5822,
805,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
2920,
17430,
33411,
366,
41,
8337,
1,
796,
705,
9160,
330,
4636,
6883,
6,
53... |
What is the full amount of Total for Austria when the number of gold is less than 0? | SELECT SUM(total) FROM table_name_45 WHERE nation = "austria" AND gold < 0 | [
2061,
318,
262,
1336,
2033,
286,
7472,
329,
17322,
618,
262,
1271,
286,
3869,
318,
1342,
621,
657,
30,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
2231,
33411,
3277,
796,
366,
64,
436,
7496,
1,
5357,
3869,
1279,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1336,
2033,
286,
7472,
329,
17322,
618,
262,
1271,
286,
3869,
318,
1342,
621,
657,
30,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
2231,
33411,
3277,
796,
366,
64,
436,
7496,
1,
5357,
3869,
1279,
657
] |
How many apartment bookings in each day? Show me a line chart grouping by booking end date, and I want to sort by the x axis in asc. | SELECT booking_end_date, COUNT(booking_end_date) FROM Apartment_Bookings GROUP BY booking_end_date ORDER BY booking_end_date | [
2437,
867,
7962,
1492,
654,
287,
1123,
1110,
30,
5438,
502,
257,
1627,
8262,
36115,
416,
25452,
886,
3128,
11,
290,
314,
765,
284,
3297,
416,
262,
2124,
16488,
287,
10570,
13,
46506,
25452,
62,
437,
62,
4475,
11,
327,
28270,
7,
2070... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7962,
1492,
654,
287,
1123,
1110,
30,
5438,
502,
257,
1627,
8262,
36115,
416,
25452,
886,
3128,
11,
290,
314,
765,
284,
3297,
416,
262,
2124,
16488,
287,
10570,
13,
46506,
25452,
62,
437,
62,
4475,
11,
327,
28270,
7,
2070... |
Show all flight numbers with aircraft Airbus A340-300. | SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = "Airbus A340-300" | [
15307,
477,
5474,
3146,
351,
6215,
39173,
317,
23601,
12,
6200,
13,
46506,
309,
16,
13,
2704,
3919,
16034,
13365,
7054,
309,
16,
32357,
1268,
30767,
7054,
309,
17,
6177,
309,
16,
13,
1698,
796,
309,
17,
13,
1698,
33411,
309,
17,
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,
1,
1,
1,
1
] | [
15307,
477,
5474,
3146,
351,
6215,
39173,
317,
23601,
12,
6200,
13,
46506,
309,
16,
13,
2704,
3919,
16034,
13365,
7054,
309,
16,
32357,
1268,
30767,
7054,
309,
17,
6177,
309,
16,
13,
1698,
796,
309,
17,
13,
1698,
33411,
309,
17,
13,... |
Who is no.3 when Claudio Sylvie is no.1? | SELECT no3 FROM table_name_62 WHERE no1 = "claudio sylvie" | [
8241,
318,
645,
13,
18,
618,
1012,
24051,
24286,
494,
318,
645,
13,
16,
30,
46506,
645,
18,
16034,
3084,
62,
3672,
62,
5237,
33411,
645,
16,
796,
366,
565,
24051,
827,
6780,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
645,
13,
18,
618,
1012,
24051,
24286,
494,
318,
645,
13,
16,
30,
46506,
645,
18,
16034,
3084,
62,
3672,
62,
5237,
33411,
645,
16,
796,
366,
565,
24051,
827,
6780,
494,
1
] |
What are the ranks of captains that have no captain that are in the Third-rate ship of the line class? | SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE class = 'Third-rate ship of the line' | [
2061,
389,
262,
9803,
286,
37551,
326,
423,
645,
10654,
326,
389,
287,
262,
10467,
12,
4873,
4074,
286,
262,
1627,
1398,
30,
46506,
4279,
16034,
10654,
7788,
42006,
33493,
4279,
16034,
10654,
33411,
1398,
796,
705,
22747,
12,
4873,
4074... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9803,
286,
37551,
326,
423,
645,
10654,
326,
389,
287,
262,
10467,
12,
4873,
4074,
286,
262,
1627,
1398,
30,
46506,
4279,
16034,
10654,
7788,
42006,
33493,
4279,
16034,
10654,
33411,
1398,
796,
705,
22747,
12,
4873,
4074... |
is the glucose of patient 20066's last measured on the last hospital visit greater than second to last measured on the last hospital visit? | SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20066 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.l... | [
271,
262,
15701,
286,
5827,
939,
2791,
338,
938,
8630,
319,
262,
938,
4436,
3187,
3744,
621,
1218,
284,
938,
8630,
319,
262,
938,
4436,
3187,
30,
46506,
357,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
271,
262,
15701,
286,
5827,
939,
2791,
338,
938,
8630,
319,
262,
938,
4436,
3187,
3744,
621,
1218,
284,
938,
8630,
319,
262,
938,
4436,
3187,
30,
46506,
357,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31... |
List all club names in ascending order of start year. | SELECT name FROM club ORDER BY Start_year | [
8053,
477,
3430,
3891,
287,
41988,
1502,
286,
923,
614,
13,
46506,
1438,
16034,
3430,
38678,
11050,
7253,
62,
1941
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
477,
3430,
3891,
287,
41988,
1502,
286,
923,
614,
13,
46506,
1438,
16034,
3430,
38678,
11050,
7253,
62,
1941
] |
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, show me about the distribution of hire_date and the average of manager_id bin hire_date by time in a bar chart, order from high to low by the Y-axis. | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(MANAGER_ID) DESC | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
4706,
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... | [
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,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
4706,
62,
... |
body mass index 25 _ 39.9 kg / m2 | SELECT * FROM table_train_244 WHERE body_mass_index_bmi >= 25 AND body_mass_index_bmi <= 39.9 | [
2618,
2347,
6376,
1679,
4808,
5014,
13,
24,
14211,
1220,
285,
17,
46506,
1635,
16034,
3084,
62,
27432,
62,
25707,
33411,
1767,
62,
22208,
62,
9630,
62,
65,
11632,
18189,
1679,
5357,
1767,
62,
22208,
62,
9630,
62,
65,
11632,
19841,
501... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2618,
2347,
6376,
1679,
4808,
5014,
13,
24,
14211,
1220,
285,
17,
46506,
1635,
16034,
3084,
62,
27432,
62,
25707,
33411,
1767,
62,
22208,
62,
9630,
62,
65,
11632,
18189,
1679,
5357,
1767,
62,
22208,
62,
9630,
62,
65,
11632,
19841,
501... |
What is the place result of the downhill race before the 1996 season on 11-Mar-1995? | SELECT "Place" FROM table_68436 WHERE "Race" = 'downhill' AND "Season" < '1996' AND "Date" = '11-mar-1995' | [
2061,
318,
262,
1295,
1255,
286,
262,
35390,
3234,
878,
262,
8235,
1622,
319,
1367,
12,
7676,
12,
21908,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
41580,
2623,
33411,
366,
35157,
1,
796,
705,
2902,
12639,
6,
5357,
366,
18960,
1,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1295,
1255,
286,
262,
35390,
3234,
878,
262,
8235,
1622,
319,
1367,
12,
7676,
12,
21908,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
41580,
2623,
33411,
366,
35157,
1,
796,
705,
2902,
12639,
6,
5357,
366,
18960,
1,
12... |
On what date did Mike Hawthorn have the fastest lap for the E Tyre of the Silverstone Circuit? | SELECT date FROM table_name_36 WHERE fastest_lap = "mike hawthorn" AND tyre = "e" AND circuit = "silverstone" | [
2202,
644,
3128,
750,
4995,
41457,
1211,
423,
262,
14162,
14779,
329,
262,
412,
7039,
260,
286,
262,
7698,
6440,
13588,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2623,
33411,
14162,
62,
37796,
796,
366,
76,
522,
23185,
400,
1211,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
3128,
750,
4995,
41457,
1211,
423,
262,
14162,
14779,
329,
262,
412,
7039,
260,
286,
262,
7698,
6440,
13588,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2623,
33411,
14162,
62,
37796,
796,
366,
76,
522,
23185,
400,
1211,
1,... |
What is the nickname of staff with first name as Janessa and last name as Sawayn? | SELECT nickname FROM staff WHERE first_name = "Janessa" AND last_name = "Sawayn" | [
2061,
318,
262,
21814,
286,
3085,
351,
717,
1438,
355,
2365,
21411,
290,
938,
1438,
355,
311,
8272,
77,
30,
46506,
21814,
16034,
3085,
33411,
717,
62,
3672,
796,
366,
12128,
21411,
1,
5357,
938,
62,
3672,
796,
366,
50,
8272,
77,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21814,
286,
3085,
351,
717,
1438,
355,
2365,
21411,
290,
938,
1438,
355,
311,
8272,
77,
30,
46506,
21814,
16034,
3085,
33411,
717,
62,
3672,
796,
366,
12128,
21411,
1,
5357,
938,
62,
3672,
796,
366,
50,
8272,
77,
1
] |
What nation has a time of 51.35 in the final heat? | SELECT "Nation" FROM table_64703 WHERE "Time" = '51.35' AND "Heat/Semifinal/Final" = 'final' | [
2061,
3277,
468,
257,
640,
286,
6885,
13,
2327,
287,
262,
2457,
4894,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
2414,
36809,
33411,
366,
7575,
1,
796,
705,
4349,
13,
2327,
6,
5357,
366,
39596,
14,
13900,
361,
1292,
14,
19006,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3277,
468,
257,
640,
286,
6885,
13,
2327,
287,
262,
2457,
4894,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
2414,
36809,
33411,
366,
7575,
1,
796,
705,
4349,
13,
2327,
6,
5357,
366,
39596,
14,
13900,
361,
1292,
14,
19006,
1,
... |
What is the time for the bike (40km) when the swim (1.5km) is 19:56? | SELECT "Bike (40km)" FROM table_48281 WHERE "Swim (1.5km)" = '19:56' | [
2061,
318,
262,
640,
329,
262,
7161,
357,
1821,
13276,
8,
618,
262,
9422,
357,
16,
13,
20,
13276,
8,
318,
678,
25,
3980,
30,
46506,
366,
33,
522,
357,
1821,
13276,
16725,
16034,
3084,
62,
2780,
30368,
33411,
366,
10462,
320,
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
] | [
2061,
318,
262,
640,
329,
262,
7161,
357,
1821,
13276,
8,
618,
262,
9422,
357,
16,
13,
20,
13276,
8,
318,
678,
25,
3980,
30,
46506,
366,
33,
522,
357,
1821,
13276,
16725,
16034,
3084,
62,
2780,
30368,
33411,
366,
10462,
320,
357,
... |
could you please find me a nonstop flight from ATLANTA to BALTIMORE on a BOEING 757 arriving at 7pm | SELECT DISTINCT flight.flight_id FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, equipment_sequence, flight WHERE ((((flight.arrival_time <= 1930 AND flight.arrival_time >= 1830) AND aircraft.basic_type = '757' AND aircraft.manufacturer = 'BOEIN... | [
24089,
345,
3387,
1064,
502,
257,
1729,
11338,
5474,
422,
5161,
25697,
5603,
284,
347,
31429,
3955,
6965,
319,
257,
16494,
36,
2751,
767,
3553,
14820,
379,
767,
4426,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
6215,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
24089,
345,
3387,
1064,
502,
257,
1729,
11338,
5474,
422,
5161,
25697,
5603,
284,
347,
31429,
3955,
6965,
319,
257,
16494,
36,
2751,
767,
3553,
14820,
379,
767,
4426,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
6215,
... |
Longest answers by user with votes and chars-per-vote. | SELECT p.Id AS "post_link", LENGTH(p.Body) AS Length FROM Users AS u, Posts AS p WHERE p.OwnerUserId = '##UserId##' AND u.Id = p.OwnerUserId AND p.PostTypeId = 2 AND Score >= 0 | [
14617,
395,
7429,
416,
2836,
351,
5690,
290,
34534,
12,
525,
12,
27257,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
406,
49494,
7,
79,
13,
25842,
8,
7054,
22313,
16034,
18987,
7054,
334,
11,
12043,
7054,
279,
33411,
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... | [
14617,
395,
7429,
416,
2836,
351,
5690,
290,
34534,
12,
525,
12,
27257,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
406,
49494,
7,
79,
13,
25842,
8,
7054,
22313,
16034,
18987,
7054,
334,
11,
12043,
7054,
279,
33411,
2... |
what's the maximum total cost of a hospital that includes a laboratory ntprobnp test? | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'ntprobnp')) GROUP BY cost.hadm_id) AS t1 | [
10919,
338,
262,
5415,
2472,
1575,
286,
257,
4436,
326,
3407,
257,
14010,
299,
83,
1676,
9374,
79,
1332,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5415,
2472,
1575,
286,
257,
4436,
326,
3407,
257,
14010,
299,
83,
1676,
9374,
79,
1332,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
334... |
What is the average Decile with a state authority and a Name of mapiu school? | SELECT AVG(decile) FROM table_name_16 WHERE authority = "state" AND name = "mapiu school" | [
2061,
318,
262,
2811,
4280,
576,
351,
257,
1181,
4934,
290,
257,
6530,
286,
3975,
16115,
1524,
30,
46506,
35224,
7,
12501,
576,
8,
16034,
3084,
62,
3672,
62,
1433,
33411,
4934,
796,
366,
5219,
1,
5357,
1438,
796,
366,
8899,
16115,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4280,
576,
351,
257,
1181,
4934,
290,
257,
6530,
286,
3975,
16115,
1524,
30,
46506,
35224,
7,
12501,
576,
8,
16034,
3084,
62,
3672,
62,
1433,
33411,
4934,
796,
366,
5219,
1,
5357,
1438,
796,
366,
8899,
16115,
1... |
What is the country with a 70-74-69=213 score? | SELECT country FROM table_name_65 WHERE score = 70 - 74 - 69 = 213 | [
2061,
318,
262,
1499,
351,
257,
4317,
12,
4524,
12,
3388,
28,
26427,
4776,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2996,
33411,
4776,
796,
4317,
532,
8915,
532,
8644,
796,
28658
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1499,
351,
257,
4317,
12,
4524,
12,
3388,
28,
26427,
4776,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2996,
33411,
4776,
796,
4317,
532,
8915,
532,
8644,
796,
28658
] |
who is the vacator whre the district is new jersey 2nd? | SELECT "Vacator" FROM table_20874 WHERE "District" = 'New Jersey 2nd' | [
8727,
318,
262,
6658,
1352,
348,
260,
262,
4783,
318,
649,
22383,
362,
358,
30,
46506,
366,
53,
330,
1352,
1,
16034,
3084,
62,
21315,
4524,
33411,
366,
44857,
1,
796,
705,
3791,
8221,
362,
358,
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
] | [
8727,
318,
262,
6658,
1352,
348,
260,
262,
4783,
318,
649,
22383,
362,
358,
30,
46506,
366,
53,
330,
1352,
1,
16034,
3084,
62,
21315,
4524,
33411,
366,
44857,
1,
796,
705,
3791,
8221,
362,
358,
6
] |
Return a histogram on what are the different card types, and how many cards are there of each?, and sort from low to high by the Y. | SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code ORDER BY COUNT(*) | [
13615,
257,
1554,
21857,
319,
644,
389,
262,
1180,
2657,
3858,
11,
290,
703,
867,
4116,
389,
612,
286,
1123,
21747,
290,
3297,
422,
1877,
284,
1029,
416,
262,
575,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1554,
21857,
319,
644,
389,
262,
1180,
2657,
3858,
11,
290,
703,
867,
4116,
389,
612,
286,
1123,
21747,
290,
3297,
422,
1877,
284,
1029,
416,
262,
575,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034... |
what is the number of hours that has been since patient 035-24054 was first diagnosed with drug withdrawal syndrome - alcohol during the current hospital encounter? | SELECT 24 * (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 = '035-24054... | [
10919,
318,
262,
1271,
286,
2250,
326,
468,
587,
1201,
5827,
657,
2327,
12,
1731,
2713,
19,
373,
717,
14641,
351,
2563,
15220,
14027,
532,
5548,
1141,
262,
1459,
4436,
8791,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
2250,
326,
468,
587,
1201,
5827,
657,
2327,
12,
1731,
2713,
19,
373,
717,
14641,
351,
2563,
15220,
14027,
532,
5548,
1141,
262,
1459,
4436,
8791,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73... |
181 is being taught by Prof. Christopher Monk next semester ? | SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 181 AND instructor.name LIKE '%Christopher Monk%' AND offering_instructor.instructor_id = instructor.instructor_id AND offerin... | [
27057,
318,
852,
7817,
416,
4415,
13,
12803,
28854,
1306,
24878,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
11,
24878,
33411,
1781,
13,
17319,
62,
312,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
27057,
318,
852,
7817,
416,
4415,
13,
12803,
28854,
1306,
24878,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
11,
24878,
33411,
1781,
13,
17319,
62,
312,... |
I want to see trend the total number over year by semester, and show from high to low by the X-axis. | SELECT year, COUNT(*) FROM section GROUP BY semester, year ORDER BY year DESC | [
40,
765,
284,
766,
5182,
262,
2472,
1271,
625,
614,
416,
24878,
11,
290,
905,
422,
1029,
284,
1877,
416,
262,
1395,
12,
22704,
13,
46506,
614,
11,
327,
28270,
7,
28104,
16034,
2665,
44441,
11050,
24878,
11,
614,
38678,
11050,
614,
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
] | [
40,
765,
284,
766,
5182,
262,
2472,
1271,
625,
614,
416,
24878,
11,
290,
905,
422,
1029,
284,
1877,
416,
262,
1395,
12,
22704,
13,
46506,
614,
11,
327,
28270,
7,
28104,
16034,
2665,
44441,
11050,
24878,
11,
614,
38678,
11050,
614,
2... |
what is the average age for a male in each job? | SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job | [
10919,
318,
262,
2811,
2479,
329,
257,
4257,
287,
1123,
1693,
30,
46506,
1693,
11,
35224,
7,
496,
8,
16034,
7755,
33411,
5279,
796,
705,
22606,
6,
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,
1,
1,
1
] | [
10919,
318,
262,
2811,
2479,
329,
257,
4257,
287,
1123,
1693,
30,
46506,
1693,
11,
35224,
7,
496,
8,
16034,
7755,
33411,
5279,
796,
705,
22606,
6,
44441,
11050,
1693
] |
Total score of one's answers. | SELECT SUM(p.Score) FROM Posts AS p WHERE (p.OwnerUserId = '##UserID##' AND p.PostTypeId = 1) | [
14957,
4776,
286,
530,
338,
7429,
13,
46506,
35683,
7,
79,
13,
26595,
8,
16034,
12043,
7054,
279,
33411,
357,
79,
13,
42419,
12982,
7390,
796,
705,
2235,
12982,
2389,
2235,
6,
5357,
279,
13,
6307,
6030,
7390,
796,
352,
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
] | [
14957,
4776,
286,
530,
338,
7429,
13,
46506,
35683,
7,
79,
13,
26595,
8,
16034,
12043,
7054,
279,
33411,
357,
79,
13,
42419,
12982,
7390,
796,
705,
2235,
12982,
2389,
2235,
6,
5357,
279,
13,
6307,
6030,
7390,
796,
352,
8
] |
in this hospital visit, was there a microbiological test of patient 031-3355's blood, venipuncture? | SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355' AND patient.hospitaldischargetime IS NULL)) AND microlab.culturesite = '... | [
259,
428,
4436,
3187,
11,
373,
612,
257,
24559,
2770,
1332,
286,
5827,
657,
3132,
12,
2091,
2816,
338,
2910,
11,
8710,
541,
39187,
30,
46506,
327,
28270,
7,
28104,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
259,
428,
4436,
3187,
11,
373,
612,
257,
24559,
2770,
1332,
286,
5827,
657,
3132,
12,
2091,
2816,
338,
2910,
11,
8710,
541,
39187,
30,
46506,
327,
28270,
7,
28104,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
312,
... |
what were the three most frequent prescriptions of medications for patients who were also prescribed diazepam at the same time since 5 years ago? | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'diazepam' AND DATETIME(medication.drugstarttime) >=... | [
10919,
547,
262,
1115,
749,
10792,
34092,
286,
17638,
329,
3871,
508,
547,
635,
14798,
288,
48826,
321,
379,
262,
976,
640,
1201,
642,
812,
2084,
30,
46506,
256,
18,
13,
30349,
3672,
16034,
357,
46506,
256,
17,
13,
30349,
3672,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
547,
262,
1115,
749,
10792,
34092,
286,
17638,
329,
3871,
508,
547,
635,
14798,
288,
48826,
321,
379,
262,
976,
640,
1201,
642,
812,
2084,
30,
46506,
256,
18,
13,
30349,
3672,
16034,
357,
46506,
256,
17,
13,
30349,
3672,
11,
... |
patient 28484 visited an emergency room until 3 years ago? | SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 28484 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-3 year') | [
26029,
2579,
34137,
8672,
281,
6334,
2119,
1566,
513,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
2579,
34137,
5357,
25349,
13,
324,
3411,
62,
24886,
796,
705,
24677,
4949,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26029,
2579,
34137,
8672,
281,
6334,
2119,
1566,
513,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
2579,
34137,
5357,
25349,
13,
324,
3411,
62,
24886,
796,
705,
24677,
4949,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.