instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Which Record label has an Album of rambo? | SELECT "Record label" FROM table_38811 WHERE "Album" = 'rambo' | [
13828,
13266,
6167,
468,
281,
23999,
286,
15770,
2127,
30,
46506,
366,
23739,
6167,
1,
16034,
3084,
62,
30460,
1157,
33411,
366,
2348,
4435,
1,
796,
705,
859,
2127,
6,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] | [
13828,
13266,
6167,
468,
281,
23999,
286,
15770,
2127,
30,
46506,
366,
23739,
6167,
1,
16034,
3084,
62,
30460,
1157,
33411,
366,
2348,
4435,
1,
796,
705,
859,
2127,
6,
50256,
50256,
50256,
50256,
50256,
50256
] |
count the number of patients with lab test item id 50995 who have been hospitalized for more than 29 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "29" AND lab.itemid = "50995" | [
9127,
262,
1271,
286,
3871,
351,
2248,
1332,
2378,
4686,
2026,
33438,
508,
423,
587,
31736,
329,
517,
621,
2808,
1528,
13,
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
] | [
9127,
262,
1271,
286,
3871,
351,
2248,
1332,
2378,
4686,
2026,
33438,
508,
423,
587,
31736,
329,
517,
621,
2808,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8
] |
List all payment methods and number of payments using each payment methods. | SELECT payment_method_code, COUNT(*) FROM Customer_Payments GROUP BY payment_method_code | [
8053,
477,
6074,
5050,
290,
1271,
286,
7524,
1262,
1123,
6074,
5050,
13,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
22092,
62,
19197,
902,
44441,
11050,
6074,
62,
24396,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
6074,
5050,
290,
1271,
286,
7524,
1262,
1123,
6074,
5050,
13,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
22092,
62,
19197,
902,
44441,
11050,
6074,
62,
24396,
62,
8189
] |
Which Last Aired has a Retitled as/Same of classic concentration? | SELECT last_aired FROM table_name_57 WHERE retitled_as_same = "classic concentration" | [
13828,
4586,
317,
1202,
468,
257,
4990,
7803,
355,
14,
30556,
286,
6833,
10368,
30,
46506,
938,
62,
9820,
16034,
3084,
62,
3672,
62,
3553,
33411,
1005,
7803,
62,
292,
62,
31642,
796,
366,
49421,
10368
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4586,
317,
1202,
468,
257,
4990,
7803,
355,
14,
30556,
286,
6833,
10368,
30,
46506,
938,
62,
9820,
16034,
3084,
62,
3672,
62,
3553,
33411,
1005,
7803,
62,
292,
62,
31642,
796,
366,
49421,
10368
] |
What is the number of 2008 values having a 2006 under 17.3, 2010 over 4, and 2011 1H of 20? | SELECT COUNT("2008") FROM table_79287 WHERE "2006" < '17.3' AND "2010" > '4' AND "2011 1H" = '20' | [
2061,
318,
262,
1271,
286,
3648,
3815,
1719,
257,
4793,
739,
1596,
13,
18,
11,
3050,
625,
604,
11,
290,
2813,
352,
39,
286,
1160,
30,
46506,
327,
28270,
7203,
11528,
4943,
16034,
3084,
62,
3720
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
3648,
3815,
1719,
257,
4793,
739,
1596,
13,
18,
11,
3050,
625,
604,
11,
290,
2813,
352,
39,
286,
1160,
30,
46506,
327,
28270,
7203,
11528,
4943,
16034,
3084,
62,
3720
] |
What are the full names and cities of employees who have the letter Z in their first names? | SELECT T1.first_name, T1.last_name, T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%' | [
2061,
389,
262,
1336,
3891,
290,
4736,
286,
4409,
508,
423,
262,
3850,
1168,
287,
511,
717,
3891,
30,
46506,
309,
16,
13,
11085,
62,
3672,
11,
309,
16,
13,
12957,
62,
3672,
11,
309,
18
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
1336,
3891,
290,
4736,
286,
4409,
508,
423,
262,
3850,
1168,
287,
511,
717,
3891,
30,
46506,
309,
16,
13,
11085,
62,
3672,
11,
309,
16,
13,
12957,
62,
3672,
11,
309,
18
] |
Who was the home team at Brunswick Street Oval? | SELECT "Home team" FROM table_52931 WHERE "Venue" = 'brunswick street oval' | [
8241,
373,
262,
1363,
1074,
379,
32211,
3530,
25165,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
49721,
3132,
33411,
366,
37522,
518,
1,
796,
705,
1671,
403,
30961,
4675,
41186,
6,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] | [
8241,
373,
262,
1363,
1074,
379,
32211,
3530,
25165,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
49721,
3132,
33411,
366,
37522,
518,
1,
796,
705,
1671,
403,
30961,
4675,
41186,
6,
50256,
50256,
50256
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of email and department_id in a bar chart, rank in ascending by the X. | SELECT EMAIL, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMAIL | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
546,
262,
6082,
286,
3053,
290,
5011,
62,
312,
287,
257,
2318,
8262,
11
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
546,
262,
6082,
286,
3053,
290,
5011,
62,
312,
287,
257,
2318,
8262,
11
] |
What is the number of patients whose diagnosis icd9 code is 2720 and have lab test category hematology? | 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.icd9_code = "2720" AND lab."CATEGORY" = "Hematology" | [
2061,
318,
262,
1271,
286,
3871,
3025,
13669,
14158,
67,
24,
2438,
318,
2681,
1238,
290,
423,
2248,
1332,
6536,
339,
6759,
1435,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
3871,
3025,
13669,
14158,
67,
24,
2438,
318,
2681,
1238,
290,
423,
2248,
1332,
6536,
339,
6759,
1435,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62
] |
what's district with candidates being curt weldon (r) 61.3% bill spingler (d) 38.7% | SELECT "District" FROM table_18252 WHERE "Candidates" = 'Curt Weldon (R) 61.3% Bill Spingler (D) 38.7%' | [
10919,
338,
4783,
351,
5871,
852,
1090,
83,
356,
25900,
357,
81,
8,
8454,
13,
18,
4,
2855,
599,
278,
1754,
357,
67,
8,
4353,
13,
22,
4,
46506,
366,
44857,
1,
16034,
3084,
62,
1507
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4783,
351,
5871,
852,
1090,
83,
356,
25900,
357,
81,
8,
8454,
13,
18,
4,
2855,
599,
278,
1754,
357,
67,
8,
4353,
13,
22,
4,
46506,
366,
44857,
1,
16034,
3084,
62,
1507
] |
when was the first time of hospital discharge of patient 83358 until 2104? | SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 83358 AND STRFTIME('%y', admissions.dischtime) <= '2104' ORDER BY admissions.dischtime LIMIT 1 | [
12518,
373,
262,
717,
640,
286,
4436,
17655,
286,
5827,
807,
2091,
3365,
1566,
362,
13464,
30,
46506,
25349,
13,
6381,
354,
2435,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
807,
2091,
3365,
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
] | [
12518,
373,
262,
717,
640,
286,
4436,
17655,
286,
5827,
807,
2091,
3365,
1566,
362,
13464,
30,
46506,
25349,
13,
6381,
354,
2435,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
807,
2091,
3365,
5357
] |
Who is the visitor at the axa sports center in round 20? | SELECT "Visitor" FROM table_62913 WHERE "Venue" = 'axa sports center' AND "Round" = '20' | [
8241,
318,
262,
21493,
379,
262,
7877,
64,
5701,
3641,
287,
2835,
1160,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
48602,
1485,
33411,
366,
37522,
518,
1,
796,
705,
897,
64,
5701,
3641,
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
] | [
8241,
318,
262,
21493,
379,
262,
7877,
64,
5701,
3641,
287,
2835,
1160,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
48602,
1485,
33411,
366,
37522,
518,
1,
796,
705,
897,
64,
5701,
3641,
6
] |
What is the result for the first day in a year prior to 2011 when the 4th day's result is bumped Girton? | SELECT "1st day" FROM table_66414 WHERE "Year" < '2011' AND "4th Day" = 'bumped girton' | [
2061,
318,
262,
1255,
329,
262,
717,
1110,
287,
257,
614,
3161,
284,
2813,
618,
262,
604,
400,
1110,
338,
1255,
318,
38034,
23837,
1122,
30,
46506,
366,
16,
301,
1110,
1,
16034,
3084,
62,
21
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1255,
329,
262,
717,
1110,
287,
257,
614,
3161,
284,
2813,
618,
262,
604,
400,
1110,
338,
1255,
318,
38034,
23837,
1122,
30,
46506,
366,
16,
301,
1110,
1,
16034,
3084,
62,
21
] |
What is the lowest played number when goals for is 47, and wins is smaller than 14? | SELECT MIN(played) FROM table_name_48 WHERE goals_for = 47 AND wins < 14 | [
2061,
318,
262,
9016,
2826,
1271,
618,
4661,
329,
318,
6298,
11,
290,
7864,
318,
4833,
621,
1478,
30,
46506,
20625,
7,
21542,
8,
16034,
3084,
62,
3672,
62,
2780,
33411,
4661,
62,
1640,
796,
6298
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
2826,
1271,
618,
4661,
329,
318,
6298,
11,
290,
7864,
318,
4833,
621,
1478,
30,
46506,
20625,
7,
21542,
8,
16034,
3084,
62,
3672,
62,
2780,
33411,
4661,
62,
1640,
796,
6298
] |
List the name and the number of stations for all the cities that have at least 15 stations. | SELECT city, COUNT(*) FROM station GROUP BY city HAVING COUNT(*) >= 15 | [
8053,
262,
1438,
290,
262,
1271,
286,
8985,
329,
477,
262,
4736,
326,
423,
379,
1551,
1315,
8985,
13,
46506,
1748,
11,
327,
28270,
7,
28104,
16034,
4429,
44441,
11050,
1748,
367,
10116,
2751,
327,
28270
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13,
46506,
1748,
11,
327,
28270,
7,
28104,
16034,
4429,
44441,
11050,
1748,
367,
10116,
2751,
327,
28270
] |
What Position does First Elected in 2003 William D. Euille hold ? | SELECT "Position" FROM table_13375 WHERE "First Election" = '2003' AND "Name" = 'william d. euille' | [
2061,
23158,
857,
3274,
5903,
276,
287,
5816,
3977,
360,
13,
412,
84,
8270,
1745,
5633,
46506,
366,
26545,
1,
16034,
3084,
62,
16945,
2425,
33411,
366,
5962,
14219,
1,
796,
705,
16088,
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
] | [
2061,
23158,
857,
3274,
5903,
276,
287,
5816,
3977,
360,
13,
412,
84,
8270,
1745,
5633,
46506,
366,
26545,
1,
16034,
3084,
62,
16945,
2425,
33411,
366,
5962,
14219,
1,
796,
705,
16088,
6,
5357,
366
] |
When the crowd was 8642 what was the away team's score? | SELECT "Away team score" FROM table_20753 WHERE "Crowd" = '8642' | [
2215,
262,
4315,
373,
807,
41290,
644,
373,
262,
1497,
1074,
338,
4776,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
1238,
44550,
33411,
366,
34,
3986,
1,
796,
705,
39570,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
262,
4315,
373,
807,
41290,
644,
373,
262,
1497,
1074,
338,
4776,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
1238,
44550,
33411,
366,
34,
3986,
1,
796,
705,
39570,
17,
6
] |
What is Home Team, when Away Team is 'Brentford'? | SELECT home_team FROM table_name_67 WHERE away_team = "brentford" | [
2061,
318,
5995,
4816,
11,
618,
21986,
4816,
318,
705,
33,
1156,
3841,
30960,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
3134,
33411,
1497,
62,
15097,
796,
366,
65,
1156,
3841,
1,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
2061,
318,
5995,
4816,
11,
618,
21986,
4816,
318,
705,
33,
1156,
3841,
30960,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
3134,
33411,
1497,
62,
15097,
796,
366,
65,
1156,
3841,
1,
50256,
50256
] |
What is the postion when the nhl team is los angeles kings? | SELECT "Position" FROM table_30581 WHERE "NHL team" = 'Los Angeles Kings' | [
2061,
318,
262,
1281,
295,
618,
262,
299,
18519,
1074,
318,
22346,
18304,
274,
21557,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1270,
48630,
33411,
366,
45,
6581,
1074,
1,
796,
705,
28903,
5652,
10578
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1281,
295,
618,
262,
299,
18519,
1074,
318,
22346,
18304,
274,
21557,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1270,
48630,
33411,
366,
45,
6581,
1074,
1,
796,
705,
28903,
5652,
10578
] |
count the number of patients who have admitted before the year 2179 and stayed in the hospital for more than 29 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.days_stay > "29" AND demographic.admityear < "2179" | [
9127,
262,
1271,
286,
3871,
508,
423,
6848,
878,
262,
614,
362,
21738,
290,
9658,
287,
262,
4436,
329,
517,
621,
2808,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9127,
262,
1271,
286,
3871,
508,
423,
6848,
878,
262,
614,
362,
21738,
290,
9658,
287,
262,
4436,
329,
517,
621,
2808,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62
] |
Are there any ULCS courses in the courses I 've taken ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN student_record ON student_record.course_id = course.course_id INNER JOIN program_course ON student_record.course_id = program_course.course_id WHERE program_course.category LIKE '%ULCS%' AND student_record.student_id = 1 | [
8491,
612,
597,
471,
29814,
10902,
287,
262,
10902,
314,
705,
303,
2077,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8491,
612,
597,
471,
29814,
10902,
287,
262,
10902,
314,
705,
303,
2077,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357
] |
When was the general foods pga seniors' championship tournament? | SELECT "Date" FROM table_57441 WHERE "Tournament" = 'general foods pga seniors'' championship' | [
2215,
373,
262,
2276,
9013,
279,
4908,
23481,
6,
12184,
7756,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3553,
39710,
33411,
366,
51,
5138,
1,
796,
705,
24622,
9013,
279,
4908,
23481,
7061,
12184,
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
] | [
2215,
373,
262,
2276,
9013,
279,
4908,
23481,
6,
12184,
7756,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3553,
39710,
33411,
366,
51,
5138,
1,
796,
705,
24622,
9013,
279,
4908,
23481,
7061,
12184,
6
] |
If the product code is 2t6267, who was the director? | SELECT "Directed by" FROM table_21737 WHERE "Production Code" = '2T6267' | [
1532,
262,
1720,
2438,
318,
362,
83,
21,
25674,
11,
508,
373,
262,
3437,
30,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
24591,
2718,
33411,
366,
35027,
6127,
1,
796,
705,
17,
51,
21
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1532,
262,
1720,
2438,
318,
362,
83,
21,
25674,
11,
508,
373,
262,
3437,
30,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
24591,
2718,
33411,
366,
35027,
6127,
1,
796,
705,
17,
51,
21
] |
Which PAL M has a PAL I of 50HZ? | SELECT "PAL M" FROM table_44198 WHERE "PAL I" = '50hz' | [
13828,
40795,
337,
468,
257,
40795,
314,
286,
2026,
39,
57,
30,
46506,
366,
47,
1847,
337,
1,
16034,
3084,
62,
2598,
22337,
33411,
366,
47,
1847,
314,
1,
796,
705,
1120,
32179,
6,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
13828,
40795,
337,
468,
257,
40795,
314,
286,
2026,
39,
57,
30,
46506,
366,
47,
1847,
337,
1,
16034,
3084,
62,
2598,
22337,
33411,
366,
47,
1847,
314,
1,
796,
705,
1120,
32179,
6,
50256,
50256
] |
when womens singles is wang yihan and tour is french super series, what were the men's singles? | SELECT mens_singles FROM table_21001903_2 WHERE womens_singles = "Wang Yihan" AND tour = "French Super Series" | [
12518,
1116,
641,
25287,
318,
266,
648,
331,
4449,
272,
290,
4205,
318,
48718,
2208,
2168,
11,
644,
547,
262,
1450,
338,
25287,
30,
46506,
285,
641,
62,
12215,
829,
16034,
3084,
62,
2481,
405,
1129
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12518,
1116,
641,
25287,
318,
266,
648,
331,
4449,
272,
290,
4205,
318,
48718,
2208,
2168,
11,
644,
547,
262,
1450,
338,
25287,
30,
46506,
285,
641,
62,
12215,
829,
16034,
3084,
62,
2481,
405,
1129
] |
Name the title with termination of mission of april 10, 1939 | SELECT title FROM table_name_24 WHERE termination_of_mission = "april 10, 1939" | [
5376,
262,
3670,
351,
19883,
286,
4365,
286,
46593,
346,
838,
11,
24414,
46506,
3670,
16034,
3084,
62,
3672,
62,
1731,
33411,
19883,
62,
1659,
62,
3411,
796,
366,
499,
22379,
838,
11,
24414,
1,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
5376,
262,
3670,
351,
19883,
286,
4365,
286,
46593,
346,
838,
11,
24414,
46506,
3670,
16034,
3084,
62,
3672,
62,
1731,
33411,
19883,
62,
1659,
62,
3411,
796,
366,
499,
22379,
838,
11,
24414,
1,
50256
] |
What is 2001, when 1996 is '0 / 2'? | SELECT "2001" FROM table_44357 WHERE "1996" = '0 / 2' | [
2061,
318,
5878,
11,
618,
8235,
318,
705,
15,
1220,
362,
30960,
46506,
366,
14585,
1,
16034,
3084,
62,
2598,
27277,
33411,
366,
22288,
1,
796,
705,
15,
1220,
362,
6,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0
] | [
2061,
318,
5878,
11,
618,
8235,
318,
705,
15,
1220,
362,
30960,
46506,
366,
14585,
1,
16034,
3084,
62,
2598,
27277,
33411,
366,
22288,
1,
796,
705,
15,
1220,
362,
6,
50256,
50256,
50256,
50256,
50256
] |
What season had 78 points? | SELECT season FROM table_name_17 WHERE points = 78 | [
2061,
1622,
550,
8699,
2173,
30,
46506,
1622,
16034,
3084,
62,
3672,
62,
1558,
33411,
2173,
796,
8699,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
2061,
1622,
550,
8699,
2173,
30,
46506,
1622,
16034,
3084,
62,
3672,
62,
1558,
33411,
2173,
796,
8699,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the sum of employee_id bin hire_date by weekday, show in desc by the total number. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(EMPLOYEE_ID) DESC | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475
] |
When are all dates with a score of 205 ( 8) in Australia? | SELECT "Dates" FROM table_20001 WHERE "Score" = '205 (–8)' AND "Country" = 'Australia' | [
2215,
389,
477,
9667,
351,
257,
4776,
286,
22538,
357,
807,
8,
287,
4505,
30,
46506,
366,
35,
689,
1,
16034,
3084,
62,
2167,
486,
33411,
366,
26595,
1,
796,
705,
21261,
357,
1906,
23,
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
] | [
2215,
389,
477,
9667,
351,
257,
4776,
286,
22538,
357,
807,
8,
287,
4505,
30,
46506,
366,
35,
689,
1,
16034,
3084,
62,
2167,
486,
33411,
366,
26595,
1,
796,
705,
21261,
357,
1906,
23,
33047
] |
What is the Votes for the Song in Place 9? | SELECT votes FROM table_name_6 WHERE place = "9" | [
2061,
318,
262,
39584,
329,
262,
10940,
287,
8474,
860,
30,
46506,
5690,
16034,
3084,
62,
3672,
62,
21,
33411,
1295,
796,
366,
24,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
2061,
318,
262,
39584,
329,
262,
10940,
287,
8474,
860,
30,
46506,
5690,
16034,
3084,
62,
3672,
62,
21,
33411,
1295,
796,
366,
24,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
has patient 021-221706 made to an admission until 2104? | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '021-221706' AND STRFTIME('%y', patient.hospitaladmittime) <= '2104' | [
10134,
5827,
657,
2481,
12,
1828,
1558,
3312,
925,
284,
281,
13938,
1566,
362,
13464,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
46821,
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
] | [
10134,
5827,
657,
2481,
12,
1828,
1558,
3312,
925,
284,
281,
13938,
1566,
362,
13464,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
46821,
12
] |
Who visited phoenix with a Record of 2 5 0? | SELECT "Visitor" FROM table_56955 WHERE "Home" = 'phoenix' AND "Record" = '2–5–0' | [
8241,
8672,
872,
8538,
351,
257,
13266,
286,
362,
642,
657,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
20,
3388,
2816,
33411,
366,
16060,
1,
796,
705,
746,
8538,
6,
5357,
366,
23739,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8672,
872,
8538,
351,
257,
13266,
286,
362,
642,
657,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
20,
3388,
2816,
33411,
366,
16060,
1,
796,
705,
746,
8538,
6,
5357,
366,
23739,
1
] |
What is the GDP (billion US$) of the country that has a GDP per capita (US$) of 8,861? | SELECT "GDP (billion US$)" FROM table_71305 WHERE "GDP per capita (US$)" = '8,861' | [
2061,
318,
262,
12396,
357,
24540,
1294,
3,
8,
286,
262,
1499,
326,
468,
257,
12396,
583,
21344,
357,
2937,
3,
8,
286,
807,
11,
4521,
16,
30,
46506,
366,
38,
6322,
357,
24540,
1294,
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
] | [
2061,
318,
262,
12396,
357,
24540,
1294,
3,
8,
286,
262,
1499,
326,
468,
257,
12396,
583,
21344,
357,
2937,
3,
8,
286,
807,
11,
4521,
16,
30,
46506,
366,
38,
6322,
357,
24540,
1294,
3
] |
all questions with tag like 'marvel%'. | SELECT p.Body FROM Posts AS p WHERE p.Tags LIKE '%marvel%' | [
439,
2683,
351,
7621,
588,
705,
3876,
626,
4,
4458,
46506,
279,
13,
25842,
16034,
12043,
7054,
279,
33411,
279,
13,
36142,
34178,
705,
4,
3876,
626,
4,
6,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] | [
439,
2683,
351,
7621,
588,
705,
3876,
626,
4,
4458,
46506,
279,
13,
25842,
16034,
12043,
7054,
279,
33411,
279,
13,
36142,
34178,
705,
4,
3876,
626,
4,
6,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
How many championships were there where the score was 4 6, 7 6 (7 5) , [5 10]? | SELECT COUNT("Championship") FROM table_30981 WHERE "Score" = '4–6, 7–6 (7–5) , [5–10]' | [
2437,
867,
27459,
547,
612,
810,
262,
4776,
373,
604,
718,
11,
767,
718,
357,
22,
642,
8,
837,
685,
20,
838,
60,
30,
46506,
327,
28270,
7203,
1925,
4350,
1056,
4943,
16034,
3084,
62,
1270
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27459,
547,
612,
810,
262,
4776,
373,
604,
718,
11,
767,
718,
357,
22,
642,
8,
837,
685,
20,
838,
60,
30,
46506,
327,
28270,
7203,
1925,
4350,
1056,
4943,
16034,
3084,
62,
1270
] |
what is the total number of mills named cheshunt ? | SELECT COUNT(*) FROM table_204_929 WHERE "location" = 'cheshunt' | [
10919,
318,
262,
2472,
1271,
286,
41999,
3706,
269,
956,
35060,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
24,
1959,
33411,
366,
24886,
1,
796,
705,
2052,
35060,
6,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] | [
10919,
318,
262,
2472,
1271,
286,
41999,
3706,
269,
956,
35060,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
24,
1959,
33411,
366,
24886,
1,
796,
705,
2052,
35060,
6,
50256,
50256,
50256
] |
Moderator candidates by last access date. All Users which have the necessary reputation and Badges for
the 2011 Stack Overflow Moderator election: http://stackoverflow.com/election/2 | SELECT Id AS "user_link", Reputation, LastAccessDate FROM Users WHERE Reputation >= 90000 ORDER BY LastAccessDate DESC | [
5841,
263,
1352,
5871,
416,
938,
1895,
3128,
13,
1439,
18987,
543,
423,
262,
3306,
8507,
290,
7772,
3212,
329,
201,
198,
1169,
2813,
23881,
3827,
11125,
35926,
1352,
3071,
25,
2638,
1378,
25558,
2502,
11125
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5841,
263,
1352,
5871,
416,
938,
1895,
3128,
13,
1439,
18987,
543,
423,
262,
3306,
8507,
290,
7772,
3212,
329,
201,
198,
1169,
2813,
23881,
3827,
11125,
35926,
1352,
3071,
25,
2638,
1378,
25558,
2502,
11125
] |
List all the distinct product names ordered by product id? | SELECT DISTINCT product_name FROM product ORDER BY product_id | [
8053,
477,
262,
7310,
1720,
3891,
6149,
416,
1720,
4686,
30,
46506,
360,
8808,
1268,
4177,
1720,
62,
3672,
16034,
1720,
38678,
11050,
1720,
62,
312,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
8053,
477,
262,
7310,
1720,
3891,
6149,
416,
1720,
4686,
30,
46506,
360,
8808,
1268,
4177,
1720,
62,
3672,
16034,
1720,
38678,
11050,
1720,
62,
312,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
What is the percentage of the popular vote when there were 90 seats available? | SELECT _percentage_of_popular_vote FROM table_name_53 WHERE _number_of_seats_available = 90 | [
2061,
318,
262,
5873,
286,
262,
2968,
3015,
618,
612,
547,
4101,
8632,
1695,
30,
46506,
4808,
25067,
496,
62,
1659,
62,
47568,
62,
27257,
16034,
3084,
62,
3672,
62,
4310,
33411,
4808,
17618,
62,
1659
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5873,
286,
262,
2968,
3015,
618,
612,
547,
4101,
8632,
1695,
30,
46506,
4808,
25067,
496,
62,
1659,
62,
47568,
62,
27257,
16034,
3084,
62,
3672,
62,
4310,
33411,
4808,
17618,
62,
1659
] |
How many rounds exist for picks under 5? | SELECT COUNT(rd__number) FROM table_name_21 WHERE pick__number < 5 | [
2437,
867,
9196,
2152,
329,
11103,
739,
642,
30,
46506,
327,
28270,
7,
4372,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
2298,
834,
17618,
1279,
642,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] | [
2437,
867,
9196,
2152,
329,
11103,
739,
642,
30,
46506,
327,
28270,
7,
4372,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
2298,
834,
17618,
1279,
642,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
Who is the shirt sponsor for FC Bunyodkor? | SELECT shirt_sponsor FROM table_25527255_2 WHERE team = "FC Bunyodkor" | [
8241,
318,
262,
10147,
17487,
329,
10029,
28515,
88,
375,
74,
273,
30,
46506,
10147,
62,
20587,
273,
16034,
3084,
62,
13381,
1983,
13381,
62,
17,
33411,
1074,
796,
366,
4851,
28515,
88,
375,
74,
273
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10147,
17487,
329,
10029,
28515,
88,
375,
74,
273,
30,
46506,
10147,
62,
20587,
273,
16034,
3084,
62,
13381,
1983,
13381,
62,
17,
33411,
1074,
796,
366,
4851,
28515,
88,
375,
74,
273
] |
Which competition ended with a score of 58-4? | SELECT "Competition" FROM table_53307 WHERE "Score" = '58-4' | [
13828,
5449,
4444,
351,
257,
4776,
286,
7618,
12,
19,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
4310,
22996,
33411,
366,
26595,
1,
796,
705,
3365,
12,
19,
6,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0
] | [
13828,
5449,
4444,
351,
257,
4776,
286,
7618,
12,
19,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
4310,
22996,
33411,
366,
26595,
1,
796,
705,
3365,
12,
19,
6,
50256,
50256,
50256,
50256,
50256
] |
count the number of patients that received aortcor bypas-4+ cor art within the same hospital visit after having been diagnosed with intermed coronary synd since 2104. | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id 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 d_icd_diagnoses.short_title =... | [
9127,
262,
1271,
286,
3871,
326,
2722,
257,
419,
10215,
416,
44429,
12,
19,
10,
1162,
1242,
1626,
262,
976,
4436,
3187,
706,
1719,
587,
14641,
351,
987,
1150,
37151,
11150,
1201,
362,
13464,
13,
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
] | [
9127,
262,
1271,
286,
3871,
326,
2722,
257,
419,
10215,
416,
44429,
12,
19,
10,
1162,
1242,
1626,
262,
976,
4436,
3187,
706,
1719,
587,
14641,
351,
987,
1150,
37151,
11150,
1201,
362,
13464,
13,
46506
] |
Which First elected has a Incumbent of none (new seat)? | SELECT first_elected FROM table_name_15 WHERE incumbent = "none (new seat)" | [
13828,
3274,
7018,
468,
257,
3457,
2178,
298,
286,
4844,
357,
3605,
5852,
19427,
46506,
717,
62,
28604,
16034,
3084,
62,
3672,
62,
1314,
33411,
23526,
796,
366,
23108,
357,
3605,
5852,
16725,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] | [
13828,
3274,
7018,
468,
257,
3457,
2178,
298,
286,
4844,
357,
3605,
5852,
19427,
46506,
717,
62,
28604,
16034,
3084,
62,
3672,
62,
1314,
33411,
23526,
796,
366,
23108,
357,
3605,
5852,
16725,
50256,
50256,
50256
] |
Name the number air date for 14.20 us viewers | SELECT COUNT("Original air date") FROM table_1494 WHERE "U.S. viewers (millions)" = '14.20' | [
5376,
262,
1271,
1633,
3128,
329,
1478,
13,
1238,
514,
10209,
46506,
327,
28270,
7203,
20556,
1633,
3128,
4943,
16034,
3084,
62,
1415,
5824,
33411,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
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
] | [
5376,
262,
1271,
1633,
3128,
329,
1478,
13,
1238,
514,
10209,
46506,
327,
28270,
7203,
20556,
1633,
3128,
4943,
16034,
3084,
62,
1415,
5824,
33411,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
796
] |
What NHL team has a centre and pick number of 105? | SELECT "NHL team" FROM table_66964 WHERE "Position" = 'centre' AND "Pick #" = '105' | [
2061,
9481,
1074,
468,
257,
7372,
290,
2298,
1271,
286,
13343,
30,
46506,
366,
45,
6581,
1074,
1,
16034,
3084,
62,
36657,
2414,
33411,
366,
26545,
1,
796,
705,
1087,
260,
6,
5357,
366,
31686,
1303
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9481,
1074,
468,
257,
7372,
290,
2298,
1271,
286,
13343,
30,
46506,
366,
45,
6581,
1074,
1,
16034,
3084,
62,
36657,
2414,
33411,
366,
26545,
1,
796,
705,
1087,
260,
6,
5357,
366,
31686,
1303
] |
When was the game played at Princes Park? | SELECT "Date" FROM table_53626 WHERE "Venue" = 'princes park' | [
2215,
373,
262,
983,
2826,
379,
7489,
728,
3250,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
44468,
2075,
33411,
366,
37522,
518,
1,
796,
705,
1050,
17386,
3952,
6,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] | [
2215,
373,
262,
983,
2826,
379,
7489,
728,
3250,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
44468,
2075,
33411,
366,
37522,
518,
1,
796,
705,
1050,
17386,
3952,
6,
50256,
50256,
50256,
50256,
50256,
50256
] |
blood pressure > 130 mmhg ( systolic ) or > 85 mmhg ( diastolic ) or history of diagnosed hypertension | SELECT * FROM table_train_179 WHERE systolic_blood_pressure_sbp > 130 OR diastolic_blood_pressure_dbp > 85 OR hypertension = 1 | [
18041,
3833,
1875,
11323,
8085,
71,
70,
357,
827,
301,
4160,
1267,
393,
1875,
7600,
8085,
71,
70,
357,
2566,
459,
4160,
1267,
393,
2106,
286,
14641,
37454,
46506,
1635,
16034,
3084,
62,
27432,
62,
21738
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
18041,
3833,
1875,
11323,
8085,
71,
70,
357,
827,
301,
4160,
1267,
393,
1875,
7600,
8085,
71,
70,
357,
2566,
459,
4160,
1267,
393,
2106,
286,
14641,
37454,
46506,
1635,
16034,
3084,
62,
27432,
62,
21738
] |
Yards of 45, and a Date of november 8, 1971 is what kicker? | SELECT "Kicker" FROM table_35077 WHERE "Yards" = '45' AND "Date" = 'november 8, 1971' | [
56,
1371,
286,
4153,
11,
290,
257,
7536,
286,
645,
303,
1916,
807,
11,
16382,
318,
644,
38297,
30,
46506,
366,
42,
15799,
1,
16034,
3084,
62,
14877,
3324,
33411,
366,
56,
1371,
1,
796,
705
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
56,
1371,
286,
4153,
11,
290,
257,
7536,
286,
645,
303,
1916,
807,
11,
16382,
318,
644,
38297,
30,
46506,
366,
42,
15799,
1,
16034,
3084,
62,
14877,
3324,
33411,
366,
56,
1371,
1,
796,
705
] |
What was the home team's score at Princes Park? | SELECT "Home team score" FROM table_52547 WHERE "Venue" = 'princes park' | [
2061,
373,
262,
1363,
1074,
338,
4776,
379,
7489,
728,
3250,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
39088,
2857,
33411,
366,
37522,
518,
1,
796,
705,
1050,
17386,
3952,
6,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
2061,
373,
262,
1363,
1074,
338,
4776,
379,
7489,
728,
3250,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
39088,
2857,
33411,
366,
37522,
518,
1,
796,
705,
1050,
17386,
3952,
6,
50256,
50256
] |
What is the batting team with the batting partnets of thilina kandamby and rangana herath? | SELECT batting_team FROM table_11303072_5 WHERE batting_partners = "Thilina Kandamby and Rangana Herath" | [
2061,
318,
262,
23761,
1074,
351,
262,
23761,
636,
45938,
286,
294,
346,
1437,
479,
392,
321,
1525,
290,
28077,
2271,
607,
776,
30,
46506,
23761,
62,
15097,
16034,
3084,
62,
1157,
1270,
1270,
4761,
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
] | [
2061,
318,
262,
23761,
1074,
351,
262,
23761,
636,
45938,
286,
294,
346,
1437,
479,
392,
321,
1525,
290,
28077,
2271,
607,
776,
30,
46506,
23761,
62,
15097,
16034,
3084,
62,
1157,
1270,
1270,
4761,
62
] |
Who is the opponent in game 5? | SELECT opponent FROM table_20745706_1 WHERE _number = "5" | [
8241,
318,
262,
6125,
287,
983,
642,
30,
46506,
6125,
16034,
3084,
62,
22745,
2231,
35402,
62,
16,
33411,
4808,
17618,
796,
366,
20,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
8241,
318,
262,
6125,
287,
983,
642,
30,
46506,
6125,
16034,
3084,
62,
22745,
2231,
35402,
62,
16,
33411,
4808,
17618,
796,
366,
20,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
What is the total number of Distance ( ly ), when Constellation is 'Draco'? | SELECT COUNT("Distance ( ly )") FROM table_60682 WHERE "Constellation" = 'draco' | [
2061,
318,
262,
2472,
1271,
286,
34600,
357,
22404,
10612,
618,
4757,
28828,
318,
705,
6187,
10602,
30960,
46506,
327,
28270,
7203,
45767,
357,
22404,
1267,
4943,
16034,
3084,
62,
1899,
43950,
33411,
366,
34184,
28828
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
34600,
357,
22404,
10612,
618,
4757,
28828,
318,
705,
6187,
10602,
30960,
46506,
327,
28270,
7203,
45767,
357,
22404,
1267,
4943,
16034,
3084,
62,
1899,
43950,
33411,
366,
34184,
28828
] |
What is the title of the episode that aired on december 12, 1953? | SELECT "Title" FROM table_20318 WHERE "Original air date" = 'December 12, 1953' | [
2061,
318,
262,
3670,
286,
262,
4471,
326,
18530,
319,
390,
3273,
1105,
11,
24217,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
22416,
1507,
33411,
366,
20556,
1633,
3128,
1,
796,
705,
20588,
1105,
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
] | [
2061,
318,
262,
3670,
286,
262,
4471,
326,
18530,
319,
390,
3273,
1105,
11,
24217,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
22416,
1507,
33411,
366,
20556,
1633,
3128,
1,
796,
705,
20588,
1105,
11
] |
provide the number of patients whose year of death is less than or equal to 2186 and diagnoses icd9 code is 42613? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2186.0" AND diagnoses.icd9_code = "42613" | [
15234,
485,
262,
1271,
286,
3871,
3025,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
25096,
290,
40567,
14158,
67,
24,
2438,
318,
48065,
1485,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
25096,
290,
40567,
14158,
67,
24,
2438,
318,
48065,
1485,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177
] |
Name the date for when the home/away is away and the opponent is bayhawks | SELECT date FROM table_name_81 WHERE home_away = "away" AND opponent = "bayhawks" | [
5376,
262,
3128,
329,
618,
262,
1363,
14,
8272,
318,
1497,
290,
262,
6125,
318,
15489,
27221,
46506,
3128,
16034,
3084,
62,
3672,
62,
6659,
33411,
1363,
62,
8272,
796,
366,
8272,
1,
5357,
6125,
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
] | [
5376,
262,
3128,
329,
618,
262,
1363,
14,
8272,
318,
1497,
290,
262,
6125,
318,
15489,
27221,
46506,
3128,
16034,
3084,
62,
3672,
62,
6659,
33411,
1363,
62,
8272,
796,
366,
8272,
1,
5357,
6125,
796
] |
What is the away team score when the away team is Essendon? | SELECT "Away team score" FROM table_33178 WHERE "Away team" = 'essendon' | [
2061,
318,
262,
1497,
1074,
4776,
618,
262,
1497,
1074,
318,
11985,
43153,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
2091,
23188,
33411,
366,
32,
1014,
1074,
1,
796,
705,
408,
43153
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1497,
1074,
4776,
618,
262,
1497,
1074,
318,
11985,
43153,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
2091,
23188,
33411,
366,
32,
1014,
1074,
1,
796,
705,
408,
43153
] |
What are the original air date(s) for episodes with production code ipea345a? | SELECT "Original Airdate" FROM table_27281 WHERE "Prod. Code" = 'IPEA345A' | [
2061,
389,
262,
2656,
1633,
3128,
7,
82,
8,
329,
8640,
351,
3227,
2438,
1312,
431,
64,
27712,
64,
30,
46506,
366,
20556,
317,
1447,
378,
1,
16034,
3084,
62,
1983,
30368,
33411,
366,
2964,
67
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2656,
1633,
3128,
7,
82,
8,
329,
8640,
351,
3227,
2438,
1312,
431,
64,
27712,
64,
30,
46506,
366,
20556,
317,
1447,
378,
1,
16034,
3084,
62,
1983,
30368,
33411,
366,
2964,
67
] |
What day does the team play at punt road oval? | SELECT "Date" FROM table_74773 WHERE "Venue" = 'punt road oval' | [
2061,
1110,
857,
262,
1074,
711,
379,
35363,
2975,
41186,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
48882,
4790,
33411,
366,
37522,
518,
1,
796,
705,
79,
2797,
2975,
41186,
6,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] | [
2061,
1110,
857,
262,
1074,
711,
379,
35363,
2975,
41186,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
48882,
4790,
33411,
366,
37522,
518,
1,
796,
705,
79,
2797,
2975,
41186,
6,
50256,
50256,
50256,
50256
] |
Compare the frequency of product names using a bar chart, and list from low to high by the y axis please. | SELECT product_name, COUNT(product_name) FROM Products GROUP BY product_name ORDER BY COUNT(product_name) | [
41488,
262,
8373,
286,
1720,
3891,
1262,
257,
2318,
8262,
11,
290,
1351,
422,
1877,
284,
1029,
416,
262,
331,
16488,
3387,
13,
46506,
1720,
62,
3672,
11,
327,
28270,
7,
11167,
62,
3672,
8,
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
] | [
41488,
262,
8373,
286,
1720,
3891,
1262,
257,
2318,
8262,
11,
290,
1351,
422,
1877,
284,
1029,
416,
262,
331,
16488,
3387,
13,
46506,
1720,
62,
3672,
11,
327,
28270,
7,
11167,
62,
3672,
8,
16034
] |
What is the location of the match against Martinis Knyzelis? | SELECT location FROM table_name_75 WHERE opponent = "martinis knyzelis" | [
2061,
318,
262,
4067,
286,
262,
2872,
1028,
5780,
271,
509,
3281,
17396,
271,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
2425,
33411,
6125,
796,
366,
13822,
16661,
638,
88,
17396,
271,
1,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
2061,
318,
262,
4067,
286,
262,
2872,
1028,
5780,
271,
509,
3281,
17396,
271,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
2425,
33411,
6125,
796,
366,
13822,
16661,
638,
88,
17396,
271,
1,
50256,
50256
] |
What was the score at North Shore Events Centre? | SELECT score FROM table_name_9 WHERE venue = "north shore events centre" | [
2061,
373,
262,
4776,
379,
2258,
25759,
18715,
9072,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
24,
33411,
14359,
796,
366,
43588,
15191,
2995,
7372,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
2061,
373,
262,
4776,
379,
2258,
25759,
18715,
9072,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
24,
33411,
14359,
796,
366,
43588,
15191,
2995,
7372,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
Find answers containing strategy to questions not containing strategy. | SELECT answers.Id AS "post_link", answers.* FROM Posts AS questions INNER JOIN Posts AS answers ON questions.Id = answers.ParentId WHERE questions.PostTypeId = 1 AND answers.PostTypeId = 2 AND answers.Body LIKE '%strategy pattern%' AND NOT questions.Body LIKE '%strategy%' AND questions.Score > 0 AND questions.Tags LIKE... | [
16742,
7429,
7268,
4811,
284,
2683,
407,
7268,
4811,
13,
46506,
7429,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
7429,
15885,
16034,
12043,
7054,
2683,
3268,
21479,
32357,
1268,
12043,
7054,
7429,
6177,
2683,
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
] | [
16742,
7429,
7268,
4811,
284,
2683,
407,
7268,
4811,
13,
46506,
7429,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
7429,
15885,
16034,
12043,
7054,
2683,
3268,
21479,
32357,
1268,
12043,
7054,
7429,
6177,
2683,
13
] |
how many title and source with pal -295- being yes and jp -210- being yes | SELECT COUNT("Title and Source") FROM table_18896 WHERE "PAL -295-" = 'Yes' AND "JP -210-" = 'Yes' | [
4919,
867,
3670,
290,
2723,
351,
6340,
532,
25710,
12,
852,
3763,
290,
474,
79,
532,
21536,
12,
852,
3763,
46506,
327,
28270,
7203,
19160,
290,
8090,
4943,
16034,
3084,
62,
1507,
48712,
33411,
366,
47
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3670,
290,
2723,
351,
6340,
532,
25710,
12,
852,
3763,
290,
474,
79,
532,
21536,
12,
852,
3763,
46506,
327,
28270,
7203,
19160,
290,
8090,
4943,
16034,
3084,
62,
1507,
48712,
33411,
366,
47
] |
Show first name and id for all customers with at least 2 accounts. | SELECT T2.customer_first_name, T1.customer_id FROM accounts AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2 | [
15307,
717,
1438,
290,
4686,
329,
477,
4297,
351,
379,
1551,
362,
5504,
13,
46506,
309,
17,
13,
23144,
263,
62,
11085,
62,
3672,
11,
309,
16,
13,
23144,
263,
62,
312,
16034,
5504,
7054,
309
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
1438,
290,
4686,
329,
477,
4297,
351,
379,
1551,
362,
5504,
13,
46506,
309,
17,
13,
23144,
263,
62,
11085,
62,
3672,
11,
309,
16,
13,
23144,
263,
62,
312,
16034,
5504,
7054,
309
] |
count the number of patients whose gender is m and diagnoses short title is pseudomonas infect nos? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.short_title = "Pseudomonas infect NOS" | [
9127,
262,
1271,
286,
3871,
3025,
5279,
318,
285,
290,
40567,
1790,
3670,
318,
25038,
16698,
292,
7580,
43630,
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
] | [
9127,
262,
1271,
286,
3871,
3025,
5279,
318,
285,
290,
40567,
1790,
3670,
318,
25038,
16698,
292,
7580,
43630,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728
] |
Reutrn a bar chart to bin the year into day of the week interval, and return the total number of times the team Boston Red Stockings won in the postseasons. | SELECT year, SUM(COUNT(*)) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' | [
3041,
315,
35906,
257,
2318,
8262,
284,
9874,
262,
614,
656,
1110,
286,
262,
1285,
16654,
11,
290,
1441,
262,
2472,
1271,
286,
1661,
262,
1074,
6182,
2297,
10500,
654,
1839,
287,
262,
1281,
325,
2812
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3041,
315,
35906,
257,
2318,
8262,
284,
9874,
262,
614,
656,
1110,
286,
262,
1285,
16654,
11,
290,
1441,
262,
2472,
1271,
286,
1661,
262,
1074,
6182,
2297,
10500,
654,
1839,
287,
262,
1281,
325,
2812
] |
Who was the visiting team that played against the Kings? | SELECT "Visitor" FROM table_57286 WHERE "Home" = 'kings' | [
8241,
373,
262,
10013,
1074,
326,
2826,
1028,
262,
10578,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
3553,
27033,
33411,
366,
16060,
1,
796,
705,
74,
654,
6,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] | [
8241,
373,
262,
10013,
1074,
326,
2826,
1028,
262,
10578,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
3553,
27033,
33411,
366,
16060,
1,
796,
705,
74,
654,
6,
50256,
50256,
50256,
50256,
50256,
50256
] |
Which Rank that has a Total Passengers of 15,499,462? | SELECT COUNT("Rank") FROM table_42924 WHERE "Total Passengers" = '15,499,462' | [
13828,
10916,
326,
468,
257,
7472,
6251,
9302,
286,
1315,
11,
28324,
11,
39997,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
11785,
1731,
33411,
366,
14957,
6251,
9302,
1,
796,
705,
1314,
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
] | [
13828,
10916,
326,
468,
257,
7472,
6251,
9302,
286,
1315,
11,
28324,
11,
39997,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
11785,
1731,
33411,
366,
14957,
6251,
9302,
1,
796,
705,
1314,
11
] |
Count of active answerers by week. Count of the users posted at least 3 answers on that week | WITH Raw AS (SELECT Id, DATEADD(day, 7 * (DATEDIFF(day, '1970-01-05', CreationDate) / 7), '1970-01-05') AS Week, OwnerUserId AS UserId FROM Posts WHERE PostTypeId = 2 AND OwnerUserId > 0), Raw2 AS (SELECT Week, UserId, COUNT(*) AS PostCount FROM Raw GROUP BY Week, UserId) SELECT Week, COUNT(*) AS UserCount FROM Raw2 WH... | [
12332,
286,
4075,
2590,
19288,
416,
1285,
13,
2764,
286,
262,
2985,
4481,
379,
1551,
513,
7429,
319,
326,
1285,
54,
10554,
16089,
7054,
357,
46506,
5121,
11,
360,
6158,
29266,
7,
820,
11,
767,
1635
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
4075,
2590,
19288,
416,
1285,
13,
2764,
286,
262,
2985,
4481,
379,
1551,
513,
7429,
319,
326,
1285,
54,
10554,
16089,
7054,
357,
46506,
5121,
11,
360,
6158,
29266,
7,
820,
11,
767,
1635
] |
Give me the comparison about ACC_Percent over the Team_Name . | SELECT Team_Name, ACC_Percent FROM basketball_match | [
23318,
502,
262,
7208,
546,
15859,
62,
31905,
625,
262,
4816,
62,
5376,
764,
46506,
4816,
62,
5376,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
23318,
502,
262,
7208,
546,
15859,
62,
31905,
625,
262,
4816,
62,
5376,
764,
46506,
4816,
62,
5376,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
For those employees whose first name does not contain the letter M, sum their salary by binning the hire date into the day of week interval for visualizing a bar chart. | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' | [
1890,
883,
4409,
3025,
717,
1438,
857,
407,
3994,
262,
3850,
337,
11,
2160,
511,
9588,
416,
9874,
768,
262,
11078,
3128,
656,
262,
1110,
286,
1285,
16654,
329,
5874,
2890,
257,
2318,
8262,
13,
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
] | [
1890,
883,
4409,
3025,
717,
1438,
857,
407,
3994,
262,
3850,
337,
11,
2160,
511,
9588,
416,
9874,
768,
262,
11078,
3128,
656,
262,
1110,
286,
1285,
16654,
329,
5874,
2890,
257,
2318,
8262,
13,
46506
] |
Compare the frequency of product names using a bar chart. | SELECT product_name, COUNT(product_name) FROM Products GROUP BY product_name | [
41488,
262,
8373,
286,
1720,
3891,
1262,
257,
2318,
8262,
13,
46506,
1720,
62,
3672,
11,
327,
28270,
7,
11167,
62,
3672,
8,
16034,
18675,
44441,
11050,
1720,
62,
3672,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] | [
41488,
262,
8373,
286,
1720,
3891,
1262,
257,
2318,
8262,
13,
46506,
1720,
62,
3672,
11,
327,
28270,
7,
11167,
62,
3672,
8,
16034,
18675,
44441,
11050,
1720,
62,
3672,
50256,
50256,
50256,
50256,
50256,
50256
] |
What was the average attendance in week 2? | SELECT AVG(attendance) FROM table_name_61 WHERE week = 2 | [
2061,
373,
262,
2811,
14858,
287,
1285,
362,
30,
46506,
35224,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
5333,
33411,
1285,
796,
362,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
2061,
373,
262,
2811,
14858,
287,
1285,
362,
30,
46506,
35224,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
5333,
33411,
1285,
796,
362,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
What is the Arrival time of the Patna Junction Station? | SELECT "Arrival" FROM table_5091 WHERE "Station Name" = 'patna junction' | [
2061,
318,
262,
27350,
2100,
640,
286,
262,
3208,
2616,
44410,
9327,
30,
46506,
366,
3163,
43171,
1,
16034,
3084,
62,
1120,
6420,
33411,
366,
12367,
6530,
1,
796,
705,
8071,
2616,
35037,
6,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
2061,
318,
262,
27350,
2100,
640,
286,
262,
3208,
2616,
44410,
9327,
30,
46506,
366,
3163,
43171,
1,
16034,
3084,
62,
1120,
6420,
33411,
366,
12367,
6530,
1,
796,
705,
8071,
2616,
35037,
6,
50256,
50256
] |
What is the highest rank in Uzbekistan with a time larger than 11.44? | SELECT MAX(rank) FROM table_name_38 WHERE country = "uzbekistan" AND time > 11.44 | [
2061,
318,
262,
4511,
4279,
287,
42619,
4103,
351,
257,
640,
4025,
621,
1367,
13,
2598,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
1499,
796,
366,
10277,
47083,
4103,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
4279,
287,
42619,
4103,
351,
257,
640,
4025,
621,
1367,
13,
2598,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
1499,
796,
366,
10277,
47083,
4103,
1
] |
Questions with a deleted answer and no other answers. | SELECT Id AS "post_link", CreationDate, Tags FROM Posts WHERE NOT AnswerCount IS NULL AND AnswerCount < 1 ORDER BY CreationDate DESC | [
35741,
351,
257,
13140,
3280,
290,
645,
584,
7429,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
21582,
10430,
11,
44789,
16034,
12043,
33411,
5626,
23998,
12332,
3180,
15697,
5357,
23998,
12332,
1279,
352,
38678
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
35741,
351,
257,
13140,
3280,
290,
645,
584,
7429,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
21582,
10430,
11,
44789,
16034,
12043,
33411,
5626,
23998,
12332,
3180,
15697,
5357,
23998,
12332,
1279,
352,
38678
] |
Which Gold has a Bronze larger than 1, and a Total larger than 80? | SELECT SUM(gold) FROM table_name_92 WHERE bronze > 1 AND total > 80 | [
13828,
3561,
468,
257,
19461,
4025,
621,
352,
11,
290,
257,
7472,
4025,
621,
4019,
30,
46506,
35683,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
5892,
33411,
22101,
1875,
352,
5357,
2472,
1875,
4019,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
13828,
3561,
468,
257,
19461,
4025,
621,
352,
11,
290,
257,
7472,
4025,
621,
4019,
30,
46506,
35683,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
5892,
33411,
22101,
1875,
352,
5357,
2472,
1875,
4019,
50256
] |
Show codes and fates of missions, and names of ships involved. | SELECT T1.Code, T1.Fate, T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID | [
15307,
12416,
290,
277,
689,
286,
10566,
11,
290,
3891,
286,
7937,
2950,
13,
46506,
309,
16,
13,
10669,
11,
309,
16,
13,
37,
378,
11,
309,
17,
13,
5376,
16034,
4365,
7054,
309,
16,
32357
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12416,
290,
277,
689,
286,
10566,
11,
290,
3891,
286,
7937,
2950,
13,
46506,
309,
16,
13,
10669,
11,
309,
16,
13,
37,
378,
11,
309,
17,
13,
5376,
16034,
4365,
7054,
309,
16,
32357
] |
What was the series score when st. louis was away on april 18? | SELECT "Series" FROM table_6096 WHERE "Visitor" = 'st. louis' AND "Date" = 'april 18' | [
2061,
373,
262,
2168,
4776,
618,
336,
13,
21081,
271,
373,
1497,
319,
46593,
346,
1248,
30,
46506,
366,
27996,
1,
16034,
3084,
62,
1899,
4846,
33411,
366,
15854,
2072,
1,
796,
705,
301,
13,
21081
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2168,
4776,
618,
336,
13,
21081,
271,
373,
1497,
319,
46593,
346,
1248,
30,
46506,
366,
27996,
1,
16034,
3084,
62,
1899,
4846,
33411,
366,
15854,
2072,
1,
796,
705,
301,
13,
21081
] |
how many matters have political party as their type ? | SELECT COUNT("matters") FROM table_203_609 WHERE "type" = 'political party' | [
4919,
867,
6067,
423,
1964,
2151,
355,
511,
2099,
5633,
46506,
327,
28270,
7203,
6759,
1010,
4943,
16034,
3084,
62,
22416,
62,
31751,
33411,
366,
4906,
1,
796,
705,
23149,
2151,
6,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] | [
4919,
867,
6067,
423,
1964,
2151,
355,
511,
2099,
5633,
46506,
327,
28270,
7203,
6759,
1010,
4943,
16034,
3084,
62,
22416,
62,
31751,
33411,
366,
4906,
1,
796,
705,
23149,
2151,
6,
50256,
50256,
50256,
50256
] |
A pie chart for finding the number of the name of rooms booked by some customers whose first name contains ROY. | SELECT roomName, COUNT(roomName) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE FirstName LIKE '%ROY%' GROUP BY roomName | [
32,
2508,
8262,
329,
4917,
262,
1271,
286,
262,
1438,
286,
9519,
21765,
416,
617,
4297,
3025,
717,
1438,
4909,
15107,
56,
13,
46506,
2119,
5376,
11,
327,
28270,
7,
3823,
5376,
8,
16034,
40425,
602
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2508,
8262,
329,
4917,
262,
1271,
286,
262,
1438,
286,
9519,
21765,
416,
617,
4297,
3025,
717,
1438,
4909,
15107,
56,
13,
46506,
2119,
5376,
11,
327,
28270,
7,
3823,
5376,
8,
16034,
40425,
602
] |
what is age and death status of subject id 8323? | SELECT demographic.age, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "8323" | [
10919,
318,
2479,
290,
1918,
3722,
286,
2426,
4686,
9698,
1954,
30,
46506,
16728,
13,
496,
11,
16728,
13,
1069,
5111,
62,
32109,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
5999,
1954,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2479,
290,
1918,
3722,
286,
2426,
4686,
9698,
1954,
30,
46506,
16728,
13,
496,
11,
16728,
13,
1069,
5111,
62,
32109,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
5999,
1954,
1
] |
What upper-level classes have 4 credits ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.credits = 4 AND program_course.category LIKE 'ULCS' | [
2061,
6727,
12,
5715,
6097,
423,
604,
10824,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
6727,
12,
5715,
6097,
423,
604,
10824,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177
] |
what is the number of patients whose admission year is less than 2167 and item id is 51300? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2167" AND lab.itemid = "51300" | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
21940,
290,
2378,
4686,
318,
642,
1485,
405,
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
] | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
21940,
290,
2378,
4686,
318,
642,
1485,
405,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8
] |
What was the featured in Engine through rounds 10-13? | SELECT "Engine" FROM table_55779 WHERE "Rounds" = '10-13' | [
2061,
373,
262,
8096,
287,
7117,
832,
9196,
838,
12,
1485,
30,
46506,
366,
13798,
1,
16034,
3084,
62,
2816,
40393,
33411,
366,
49,
3733,
1,
796,
705,
940,
12,
1485,
6,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] | [
2061,
373,
262,
8096,
287,
7117,
832,
9196,
838,
12,
1485,
30,
46506,
366,
13798,
1,
16034,
3084,
62,
2816,
40393,
33411,
366,
49,
3733,
1,
796,
705,
940,
12,
1485,
6,
50256,
50256,
50256,
50256
] |
Tell me the average silver for total more than 1 with bronze of 2 for france and gold more than 0 | SELECT AVG(silver) FROM table_name_62 WHERE total > 1 AND bronze = 2 AND nation = "france" AND gold > 0 | [
24446,
502,
262,
2811,
8465,
329,
2472,
517,
621,
352,
351,
22101,
286,
362,
329,
1216,
590,
290,
3869,
517,
621,
657,
46506,
35224,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
2472,
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
] | [
24446,
502,
262,
2811,
8465,
329,
2472,
517,
621,
352,
351,
22101,
286,
362,
329,
1216,
590,
290,
3869,
517,
621,
657,
46506,
35224,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
2472,
1875
] |
Questions closed as primarily opinion-based. | SELECT p.Id AS "post_link" FROM Posts AS p INNER JOIN PostHistory AS ph ON p.Id = ph.PostId WHERE PostTypeId = 1 AND NOT ClosedDate IS NULL AND PostHistoryTypeId = 10 AND Comment = '105' AND AnswerCount > 0 AND Score >= '##MinScore:int##' ORDER BY p.CreationDate DESC | [
35741,
4838,
355,
7525,
4459,
12,
3106,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
7054,
279,
3268,
21479,
32357,
1268,
2947,
18122,
7054,
872,
6177,
279,
13,
7390,
796,
872
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
35741,
4838,
355,
7525,
4459,
12,
3106,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
7054,
279,
3268,
21479,
32357,
1268,
2947,
18122,
7054,
872,
6177,
279,
13,
7390,
796,
872
] |
what number of days has it been since patient 017-88691 was admitted to the icu? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '017-88691' AND patient.unitdischargetime IS NULL | [
10919,
1271,
286,
1528,
468,
340,
587,
1201,
5827,
5534,
22,
12,
3459,
49541,
373,
6848,
284,
262,
14158,
84,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
1528,
468,
340,
587,
1201,
5827,
5534,
22,
12,
3459,
49541,
373,
6848,
284,
262,
14158,
84,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694
] |
what is the number of patients who are in ward 650 until 2104? | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 650 AND STRFTIME('%y', patient.unitadmittime) <= '2104' | [
10919,
318,
262,
1271,
286,
3871,
508,
389,
287,
15305,
22626,
1566,
362,
13464,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
904
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
389,
287,
15305,
22626,
1566,
362,
13464,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
904
] |
which movie did he act in after he was in lin zexu ? | SELECT "role" FROM table_204_707 WHERE "year" > (SELECT "year" FROM table_204_707 WHERE "role" = 'lin zexu') ORDER BY "year" LIMIT 1 | [
4758,
3807,
750,
339,
719,
287,
706,
339,
373,
287,
9493,
1976,
1069,
84,
5633,
46506,
366,
18090,
1,
16034,
3084,
62,
18638,
62,
24038,
33411,
366,
1941,
1,
1875,
357,
46506,
366,
1941,
1,
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
] | [
4758,
3807,
750,
339,
719,
287,
706,
339,
373,
287,
9493,
1976,
1069,
84,
5633,
46506,
366,
18090,
1,
16034,
3084,
62,
18638,
62,
24038,
33411,
366,
1941,
1,
1875,
357,
46506,
366,
1941,
1,
16034
] |
What is the Tenure of the Officer with a Date of death of 2001-08-31? | SELECT tenure FROM table_name_16 WHERE date_of_death = "2001-08-31" | [
2061,
318,
262,
9368,
495,
286,
262,
10391,
351,
257,
7536,
286,
1918,
286,
5878,
12,
2919,
12,
3132,
30,
46506,
17081,
16034,
3084,
62,
3672,
62,
1433,
33411,
3128,
62,
1659,
62,
22595,
796,
366
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9368,
495,
286,
262,
10391,
351,
257,
7536,
286,
1918,
286,
5878,
12,
2919,
12,
3132,
30,
46506,
17081,
16034,
3084,
62,
3672,
62,
1433,
33411,
3128,
62,
1659,
62,
22595,
796,
366
] |
Non-CW posts with most revisions counting towards limit. | SELECT Posts.Id AS "post_link", COUNT(DISTINCT RevisionGUID) AS Revisions FROM PostHistory JOIN Posts ON PostHistory.PostId = Posts.Id WHERE Posts.CommunityOwnedDate IS NULL AND Posts.OwnerUserId = '##UserId##' AND PostHistory.PostHistoryTypeId IN (1, 2, 3, 4, 5, 6, 7, 8, 9) GROUP BY Posts.Id HAVING COUNT(DISTINCT Revi... | [
15419,
12,
43538,
6851,
351,
749,
33315,
14143,
3371,
4179,
13,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
327,
28270,
7,
35,
8808,
1268,
4177,
46604,
38,
27586,
8,
7054,
5416,
3279,
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
] | [
15419,
12,
43538,
6851,
351,
749,
33315,
14143,
3371,
4179,
13,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
327,
28270,
7,
35,
8808,
1268,
4177,
46604,
38,
27586,
8,
7054,
5416,
3279,
16034
] |
how many party with candidates being john j. phillips (r) 57.6% n. e. west (d) 42.4% | SELECT COUNT(party) FROM table_1342256_6 WHERE candidates = "John J. Phillips (R) 57.6% N. E. West (D) 42.4%" | [
4919,
867,
2151,
351,
5871,
852,
45610,
474,
13,
872,
359,
2419,
357,
81,
8,
7632,
13,
21,
4,
299,
13,
304,
13,
7421,
357,
67,
8,
5433,
13,
19,
4,
46506,
327,
28270,
7,
10608
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2151,
351,
5871,
852,
45610,
474,
13,
872,
359,
2419,
357,
81,
8,
7632,
13,
21,
4,
299,
13,
304,
13,
7421,
357,
67,
8,
5433,
13,
19,
4,
46506,
327,
28270,
7,
10608
] |
What products are available at store named 'Miramichi'? | SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id = t2.product_id JOIN store AS t3 ON t2.store_id = t3.store_id WHERE t3.store_name = "Miramichi" | [
2061,
3186,
389,
1695,
379,
3650,
3706,
705,
27453,
321,
16590,
30960,
46506,
256,
16,
13,
11167,
16034,
1720,
7054,
256,
16,
32357,
1268,
3650,
62,
11167,
7054,
256,
17,
6177,
256,
16,
13,
11167,
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
] | [
2061,
3186,
389,
1695,
379,
3650,
3706,
705,
27453,
321,
16590,
30960,
46506,
256,
16,
13,
11167,
16034,
1720,
7054,
256,
16,
32357,
1268,
3650,
62,
11167,
7054,
256,
17,
6177,
256,
16,
13,
11167,
62
] |
find the number of hispanic/latino-puerto rican ethnic background patients who were hospitalized for more than 23 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND demographic.days_stay > "23" | [
19796,
262,
1271,
286,
465,
35843,
14,
15460,
2879,
12,
19944,
13806,
374,
7490,
9450,
4469,
3871,
508,
547,
31736,
329,
517,
621,
2242,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
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
] | [
19796,
262,
1271,
286,
465,
35843,
14,
15460,
2879,
12,
19944,
13806,
374,
7490,
9450,
4469,
3871,
508,
547,
31736,
329,
517,
621,
2242,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13
] |
What is the First Performance when the status is past and the style was ballet, tap? | SELECT "First Performance" FROM table_67712 WHERE "Status" = 'past' AND "Style" = 'ballet, tap' | [
2061,
318,
262,
3274,
15193,
618,
262,
3722,
318,
1613,
290,
262,
3918,
373,
47735,
11,
9814,
30,
46506,
366,
5962,
15193,
1,
16034,
3084,
62,
40179,
1065,
33411,
366,
19580,
1,
796,
705,
30119,
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,
3274,
15193,
618,
262,
3722,
318,
1613,
290,
262,
3918,
373,
47735,
11,
9814,
30,
46506,
366,
5962,
15193,
1,
16034,
3084,
62,
40179,
1065,
33411,
366,
19580,
1,
796,
705,
30119,
6
] |
How many points did South Melbourne score as the home team? | SELECT home_team AS score FROM table_name_26 WHERE home_team = "south melbourne" | [
2437,
867,
2173,
750,
2520,
14819,
4776,
355,
262,
1363,
1074,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
2075,
33411,
1363,
62,
15097,
796,
366,
35782,
7758,
12544,
1,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
2437,
867,
2173,
750,
2520,
14819,
4776,
355,
262,
1363,
1074,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
2075,
33411,
1363,
62,
15097,
796,
366,
35782,
7758,
12544,
1,
50256,
50256
] |
give me the number of patients whose admission type is urgent and admission year is less than 2190? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.admityear < "2190" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
18039,
290,
13938,
614,
318,
1342,
621,
362,
19782,
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
] | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
18039,
290,
13938,
614,
318,
1342,
621,
362,
19782,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.