instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Name the railway when class is j19 | SELECT "Railway" FROM table_20187 WHERE "Class" = 'J19' | [
5376,
262,
20515,
618,
1398,
318,
474,
1129,
46506,
366,
44631,
1014,
1,
16034,
3084,
62,
1264,
5774,
33411,
366,
9487,
1,
796,
705,
41,
1129,
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
] | [
5376,
262,
20515,
618,
1398,
318,
474,
1129,
46506,
366,
44631,
1014,
1,
16034,
3084,
62,
1264,
5774,
33411,
366,
9487,
1,
796,
705,
41,
1129,
6
] |
Against what opponent did the game end 5-4? | SELECT "Opponent" FROM table_29624 WHERE "Score" = '5-4' | [
39276,
644,
6125,
750,
262,
983,
886,
642,
12,
19,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
27137,
1731,
33411,
366,
26595,
1,
796,
705,
20,
12,
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,
1,
1
] | [
39276,
644,
6125,
750,
262,
983,
886,
642,
12,
19,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
27137,
1731,
33411,
366,
26595,
1,
796,
705,
20,
12,
19,
6
] |
In which subject area have I been given the most A+ 's ? | SELECT DISTINCT DERIVED_TABLEalias0.DERIVED_FIELDalias1 FROM (SELECT AREAalias0.area, COUNT(*) INNER JOIN student_record ON student_record.course_id = AREAalias0.course_id WHERE student_record.grade LIKE 'A+' AND student_record.student_id = 1 GROUP BY AREAalias0.area) AS DERIVED_TABLEalias0 WHERE DERIVED_TABLEalias0.DE... | [
818,
543,
2426,
1989,
423,
314,
587,
1813,
262,
749,
317,
10,
705,
82,
5633,
46506,
360,
8808,
1268,
4177,
360,
1137,
3824,
1961,
62,
38148,
26011,
15,
13,
14418,
3824,
1961,
62,
44603,
26011,
16,
16034,
357,
46506,
15986,
32,
26011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
818,
543,
2426,
1989,
423,
314,
587,
1813,
262,
749,
317,
10,
705,
82,
5633,
46506,
360,
8808,
1268,
4177,
360,
1137,
3824,
1961,
62,
38148,
26011,
15,
13,
14418,
3824,
1961,
62,
44603,
26011,
16,
16034,
357,
46506,
15986,
32,
26011,
... |
What percentage of my answers are accepted? (forked). Returns the total number of answers, the number of accepted answers, and what percentage of answers are accepted. | SELECT COUNT(a.Id) AS "total_answers", SUM(CASE q.AcceptedAnswerId WHEN a.Id THEN 1 ELSE 0 END) AS "accepted_answers", ROUND(SUM(CASE q.AcceptedAnswerId WHEN a.Id THEN 1 ELSE 0 END) * 100.0 / COUNT(a.Id), 1) AS "percentage_accepted" FROM Posts AS a JOIN Posts AS q ON a.ParentId = q.Id WHERE a.OwnerUserId = 11742502 AND... | [
2061,
5873,
286,
616,
7429,
389,
6292,
30,
357,
32523,
276,
737,
16409,
262,
2472,
1271,
286,
7429,
11,
262,
1271,
286,
6292,
7429,
11,
290,
644,
5873,
286,
7429,
389,
6292,
13,
46506,
327,
28270,
7,
64,
13,
7390,
8,
7054,
366,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
5873,
286,
616,
7429,
389,
6292,
30,
357,
32523,
276,
737,
16409,
262,
2472,
1271,
286,
7429,
11,
262,
1271,
286,
6292,
7429,
11,
290,
644,
5873,
286,
7429,
389,
6292,
13,
46506,
327,
28270,
7,
64,
13,
7390,
8,
7054,
366,
23... |
What is the total number of events that Al Geiberger has played with earnings larger than 527,033? | SELECT COUNT(events) FROM table_name_42 WHERE player = "al geiberger" AND earnings___$__ > 527 OFFSET 033 | [
2061,
318,
262,
2472,
1271,
286,
2995,
326,
978,
2269,
1856,
1362,
468,
2826,
351,
12042,
4025,
621,
642,
1983,
11,
44427,
30,
46506,
327,
28270,
7,
31534,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
2137,
796,
366,
282,
4903,
1856,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2995,
326,
978,
2269,
1856,
1362,
468,
2826,
351,
12042,
4025,
621,
642,
1983,
11,
44427,
30,
46506,
327,
28270,
7,
31534,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
2137,
796,
366,
282,
4903,
1856,
... |
What is the launch designation of the satellite with a 2009-001a COSPAR ID? | SELECT "Launch designation" FROM table_56836 WHERE "COSPAR ID SATCAT \u2116" = '2009-001a' | [
2061,
318,
262,
4219,
22566,
286,
262,
11210,
351,
257,
3717,
12,
8298,
64,
327,
2640,
27082,
4522,
30,
46506,
366,
38296,
22566,
1,
16034,
3084,
62,
49211,
2623,
33411,
366,
34,
2640,
27082,
4522,
29020,
34,
1404,
3467,
84,
17,
18298... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4219,
22566,
286,
262,
11210,
351,
257,
3717,
12,
8298,
64,
327,
2640,
27082,
4522,
30,
46506,
366,
38296,
22566,
1,
16034,
3084,
62,
49211,
2623,
33411,
366,
34,
2640,
27082,
4522,
29020,
34,
1404,
3467,
84,
17,
18298... |
How many grid numbers were there for the driver Giancarlo Fisichella? | SELECT COUNT(grid) FROM table_name_3 WHERE driver = "giancarlo fisichella" | [
2437,
867,
10706,
3146,
547,
612,
329,
262,
4639,
30851,
7718,
5439,
376,
271,
14234,
8466,
30,
46506,
327,
28270,
7,
25928,
8,
16034,
3084,
62,
3672,
62,
18,
33411,
4639,
796,
366,
18299,
7718,
5439,
277,
271,
14234,
8466,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10706,
3146,
547,
612,
329,
262,
4639,
30851,
7718,
5439,
376,
271,
14234,
8466,
30,
46506,
327,
28270,
7,
25928,
8,
16034,
3084,
62,
3672,
62,
18,
33411,
4639,
796,
366,
18299,
7718,
5439,
277,
271,
14234,
8466,
1
] |
Return a scatter chart about the correlation between Clean_Jerk and Total . | SELECT Clean_Jerk, Total FROM body_builder | [
13615,
257,
41058,
8262,
546,
262,
16096,
1022,
5985,
62,
41,
9587,
290,
7472,
764,
46506,
5985,
62,
41,
9587,
11,
7472,
16034,
1767,
62,
38272
] | [
1,
1,
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,
41058,
8262,
546,
262,
16096,
1022,
5985,
62,
41,
9587,
290,
7472,
764,
46506,
5985,
62,
41,
9587,
11,
7472,
16034,
1767,
62,
38272
] |
Which part has the least chargeable amount? List the part id and amount. | SELECT part_id, chargeable_amount FROM Parts ORDER BY chargeable_amount LIMIT 1 | [
13828,
636,
468,
262,
1551,
3877,
540,
2033,
30,
7343,
262,
636,
4686,
290,
2033,
13,
46506,
636,
62,
312,
11,
3877,
540,
62,
17287,
16034,
22349,
38678,
11050,
3877,
540,
62,
17287,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
636,
468,
262,
1551,
3877,
540,
2033,
30,
7343,
262,
636,
4686,
290,
2033,
13,
46506,
636,
62,
312,
11,
3877,
540,
62,
17287,
16034,
22349,
38678,
11050,
3877,
540,
62,
17287,
27564,
2043,
352
] |
How many years saw 3 hurricanes wherein the strongest storm was level three? | SELECT COUNT("Year") FROM table_31080 WHERE "Number of hurricanes" = '3' AND "Strongest storm" = 'Three' | [
2437,
867,
812,
2497,
513,
40370,
22881,
262,
12841,
6388,
373,
1241,
1115,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
18,
24045,
33411,
366,
15057,
286,
40370,
1,
796,
705,
18,
6,
5357,
366,
33004,
395,
6388,
1,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
812,
2497,
513,
40370,
22881,
262,
12841,
6388,
373,
1241,
1115,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
18,
24045,
33411,
366,
15057,
286,
40370,
1,
796,
705,
18,
6,
5357,
366,
33004,
395,
6388,
1,
796,
... |
What are the results in 2008 when 2009 is 0, and the ATP Tournaments Won is the tournament? | SELECT 2008 FROM table_name_36 WHERE 2009 = "0" AND tournament = "atp tournaments won" | [
2061,
389,
262,
2482,
287,
3648,
618,
3717,
318,
657,
11,
290,
262,
39046,
309,
16950,
23306,
318,
262,
7756,
30,
46506,
3648,
16034,
3084,
62,
3672,
62,
2623,
33411,
3717,
796,
366,
15,
1,
5357,
7756,
796,
366,
265,
79,
18130,
1839... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2482,
287,
3648,
618,
3717,
318,
657,
11,
290,
262,
39046,
309,
16950,
23306,
318,
262,
7756,
30,
46506,
3648,
16034,
3084,
62,
3672,
62,
2623,
33411,
3717,
796,
366,
15,
1,
5357,
7756,
796,
366,
265,
79,
18130,
1839... |
Which language's launch was in 2006 when then hanzi was ? | SELECT "Language" FROM table_37739 WHERE "Launch" = '2006' AND "Hanzi" = '青海电视台藏语综合频道' | [
13828,
3303,
338,
4219,
373,
287,
4793,
618,
788,
289,
272,
17027,
373,
5633,
46506,
366,
32065,
1,
16034,
3084,
62,
26514,
2670,
33411,
366,
38296,
1,
796,
705,
13330,
6,
5357,
366,
29919,
17027,
1,
796,
705,
165,
251,
240,
38184,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3303,
338,
4219,
373,
287,
4793,
618,
788,
289,
272,
17027,
373,
5633,
46506,
366,
32065,
1,
16034,
3084,
62,
26514,
2670,
33411,
366,
38296,
1,
796,
705,
13330,
6,
5357,
366,
29919,
17027,
1,
796,
705,
165,
251,
240,
38184,
... |
Who was the vacator when the reason for change was failure to elect? | SELECT "Vacator" FROM table_25106 WHERE "Reason for change" = 'Failure to elect' | [
8241,
373,
262,
6658,
1352,
618,
262,
1738,
329,
1487,
373,
5287,
284,
1742,
30,
46506,
366,
53,
330,
1352,
1,
16034,
3084,
62,
1495,
15801,
33411,
366,
45008,
329,
1487,
1,
796,
705,
50015,
284,
1742,
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
] | [
8241,
373,
262,
6658,
1352,
618,
262,
1738,
329,
1487,
373,
5287,
284,
1742,
30,
46506,
366,
53,
330,
1352,
1,
16034,
3084,
62,
1495,
15801,
33411,
366,
45008,
329,
1487,
1,
796,
705,
50015,
284,
1742,
6
] |
What were the Opponents of the team, that made it to the third round, before 2008? | SELECT "Opponents" FROM table_6602 WHERE "Year" < '2008' AND "Progress" = 'third round' | [
2061,
547,
262,
9385,
3906,
286,
262,
1074,
11,
326,
925,
340,
284,
262,
2368,
2835,
11,
878,
3648,
30,
46506,
366,
27524,
3906,
1,
16034,
3084,
62,
21,
31418,
33411,
366,
17688,
1,
1279,
705,
11528,
6,
5357,
366,
32577,
1,
796,
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
] | [
2061,
547,
262,
9385,
3906,
286,
262,
1074,
11,
326,
925,
340,
284,
262,
2368,
2835,
11,
878,
3648,
30,
46506,
366,
27524,
3906,
1,
16034,
3084,
62,
21,
31418,
33411,
366,
17688,
1,
1279,
705,
11528,
6,
5357,
366,
32577,
1,
796,
7... |
What is the highest win for the team Nacional? | SELECT MAX(wins) FROM table_14871601_1 WHERE team = "Nacional" | [
2061,
318,
262,
4511,
1592,
329,
262,
1074,
399,
330,
1538,
30,
46506,
25882,
7,
86,
1040,
8,
16034,
3084,
62,
1415,
5774,
1433,
486,
62,
16,
33411,
1074,
796,
366,
45,
330,
1538,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1592,
329,
262,
1074,
399,
330,
1538,
30,
46506,
25882,
7,
86,
1040,
8,
16034,
3084,
62,
1415,
5774,
1433,
486,
62,
16,
33411,
1074,
796,
366,
45,
330,
1538,
1
] |
Which of the mill names contains the french word 'Moulin'? | SELECT name FROM mill WHERE name LIKE '%Moulin%' | [
13828,
286,
262,
3939,
3891,
4909,
262,
48718,
1573,
705,
44,
280,
2815,
30960,
46506,
1438,
16034,
3939,
33411,
1438,
34178,
705,
4,
44,
280,
2815,
4,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
286,
262,
3939,
3891,
4909,
262,
48718,
1573,
705,
44,
280,
2815,
30960,
46506,
1438,
16034,
3939,
33411,
1438,
34178,
705,
4,
44,
280,
2815,
4,
6
] |
tell me the director of the production code ad1d02. | SELECT "Directed by" FROM table_51869 WHERE "Production code" = 'ad1d02' | [
33331,
502,
262,
3437,
286,
262,
3227,
2438,
512,
16,
67,
2999,
13,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
44085,
3388,
33411,
366,
35027,
2438,
1,
796,
705,
324,
16,
67,
2999,
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
] | [
33331,
502,
262,
3437,
286,
262,
3227,
2438,
512,
16,
67,
2999,
13,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
44085,
3388,
33411,
366,
35027,
2438,
1,
796,
705,
324,
16,
67,
2999,
6
] |
Post University has what nickname? | SELECT nickname FROM table_name_4 WHERE institution = "post university" | [
6307,
2059,
468,
644,
21814,
30,
46506,
21814,
16034,
3084,
62,
3672,
62,
19,
33411,
9901,
796,
366,
7353,
6403,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6307,
2059,
468,
644,
21814,
30,
46506,
21814,
16034,
3084,
62,
3672,
62,
19,
33411,
9901,
796,
366,
7353,
6403,
1
] |
Name the date for faro | SELECT "Date" FROM table_14789 WHERE "Location" = 'faro' | [
5376,
262,
3128,
329,
1290,
78,
46506,
366,
10430,
1,
16034,
3084,
62,
1415,
40401,
33411,
366,
14749,
1,
796,
705,
69,
12022,
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
] | [
5376,
262,
3128,
329,
1290,
78,
46506,
366,
10430,
1,
16034,
3084,
62,
1415,
40401,
33411,
366,
14749,
1,
796,
705,
69,
12022,
6
] |
Who was the winner on a hard surface on the week of November 13? | SELECT winner FROM table_name_30 WHERE surface = "hard" AND week = "november 13" | [
8241,
373,
262,
8464,
319,
257,
1327,
4417,
319,
262,
1285,
286,
3389,
1511,
30,
46506,
8464,
16034,
3084,
62,
3672,
62,
1270,
33411,
4417,
796,
366,
10424,
1,
5357,
1285,
796,
366,
77,
3239,
1511,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8464,
319,
257,
1327,
4417,
319,
262,
1285,
286,
3389,
1511,
30,
46506,
8464,
16034,
3084,
62,
3672,
62,
1270,
33411,
4417,
796,
366,
10424,
1,
5357,
1285,
796,
366,
77,
3239,
1511,
1
] |
What is the Event, when Year is 2002, and when Competition is European Indoor Championships? | SELECT event FROM table_name_6 WHERE year = 2002 AND competition = "european indoor championships" | [
2061,
318,
262,
8558,
11,
618,
6280,
318,
6244,
11,
290,
618,
27348,
318,
3427,
1423,
2675,
24782,
30,
46506,
1785,
16034,
3084,
62,
3672,
62,
21,
33411,
614,
796,
6244,
5357,
5449,
796,
366,
44252,
431,
272,
22639,
27459,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8558,
11,
618,
6280,
318,
6244,
11,
290,
618,
27348,
318,
3427,
1423,
2675,
24782,
30,
46506,
1785,
16034,
3084,
62,
3672,
62,
21,
33411,
614,
796,
6244,
5357,
5449,
796,
366,
44252,
431,
272,
22639,
27459,
1
] |
What is the highest Poles, when Series is Ginetta Championship, and when Season is before 2007? | SELECT MAX("Poles") FROM table_42826 WHERE "Series" = 'ginetta championship' AND "Season" < '2007' | [
2061,
318,
262,
4511,
45631,
11,
618,
7171,
318,
21444,
15253,
10749,
11,
290,
618,
7369,
318,
878,
4343,
30,
46506,
25882,
7203,
47,
4316,
4943,
16034,
3084,
62,
40173,
2075,
33411,
366,
27996,
1,
796,
705,
1655,
15253,
12184,
6,
535... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
45631,
11,
618,
7171,
318,
21444,
15253,
10749,
11,
290,
618,
7369,
318,
878,
4343,
30,
46506,
25882,
7203,
47,
4316,
4943,
16034,
3084,
62,
40173,
2075,
33411,
366,
27996,
1,
796,
705,
1655,
15253,
12184,
6,
535... |
What is Score, when Home is 'marathon'? | SELECT "Score" FROM table_10024 WHERE "Home" = 'marathon' | [
2061,
318,
15178,
11,
618,
5995,
318,
705,
3876,
12938,
30960,
46506,
366,
26595,
1,
16034,
3084,
62,
3064,
1731,
33411,
366,
16060,
1,
796,
705,
3876,
12938,
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
] | [
2061,
318,
15178,
11,
618,
5995,
318,
705,
3876,
12938,
30960,
46506,
366,
26595,
1,
16034,
3084,
62,
3064,
1731,
33411,
366,
16060,
1,
796,
705,
3876,
12938,
6
] |
What position(s) does the player from seton hall play? | SELECT position FROM table_16494599_4 WHERE school_club_team = "Seton Hall" | [
2061,
2292,
7,
82,
8,
857,
262,
2137,
422,
900,
261,
6899,
711,
30,
46506,
2292,
16034,
3084,
62,
1433,
2920,
2231,
2079,
62,
19,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
7248,
261,
4789,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2292,
7,
82,
8,
857,
262,
2137,
422,
900,
261,
6899,
711,
30,
46506,
2292,
16034,
3084,
62,
1433,
2920,
2231,
2079,
62,
19,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
7248,
261,
4789,
1
] |
Find the name and credit score of the customers who have some loans, could you list by the y axis in ascending? | SELECT cust_name, credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_ID = T2.cust_ID ORDER BY credit_score | [
16742,
262,
1438,
290,
3884,
4776,
286,
262,
4297,
508,
423,
617,
10021,
11,
714,
345,
1351,
416,
262,
331,
16488,
287,
41988,
30,
46506,
9378,
62,
3672,
11,
3884,
62,
26675,
16034,
6491,
7054,
309,
16,
32357,
1268,
8063,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
262,
1438,
290,
3884,
4776,
286,
262,
4297,
508,
423,
617,
10021,
11,
714,
345,
1351,
416,
262,
331,
16488,
287,
41988,
30,
46506,
9378,
62,
3672,
11,
3884,
62,
26675,
16034,
6491,
7054,
309,
16,
32357,
1268,
8063,
7054,
309,
... |
show me round trip tickets from NEW YORK to MIAMI | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEW YORK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.cit... | [
12860,
502,
2835,
5296,
8587,
422,
12682,
28154,
284,
15789,
2390,
24352,
16779,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
2835,
5296,
8587,
422,
12682,
28154,
284,
15789,
2390,
24352,
16779,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15... |
On what date was the total 25 45? | SELECT date FROM table_name_50 WHERE total = "25–45" | [
2202,
644,
3128,
373,
262,
2472,
1679,
4153,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1120,
33411,
2472,
796,
366,
1495,
1906,
2231,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
3128,
373,
262,
2472,
1679,
4153,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1120,
33411,
2472,
796,
366,
1495,
1906,
2231,
1
] |
What episode # has govinda & david dhawan as the eliminated contestant? | SELECT episode__number FROM table_name_66 WHERE eliminated_contestant = "govinda & david dhawan" | [
2061,
4471,
1303,
468,
467,
85,
22261,
1222,
21970,
288,
26615,
272,
355,
262,
15254,
44047,
30,
46506,
4471,
834,
17618,
16034,
3084,
62,
3672,
62,
2791,
33411,
15254,
62,
3642,
395,
415,
796,
366,
9567,
22261,
1222,
21970,
288,
26615,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
1303,
468,
467,
85,
22261,
1222,
21970,
288,
26615,
272,
355,
262,
15254,
44047,
30,
46506,
4471,
834,
17618,
16034,
3084,
62,
3672,
62,
2791,
33411,
15254,
62,
3642,
395,
415,
796,
366,
9567,
22261,
1222,
21970,
288,
26615,... |
For those employees who was hired before 2002-06-21, a bar chart shows the distribution of job_id and the amount of job_id , and group by attribute job_id, order from low to high by the total number. | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY COUNT(JOB_ID) | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
1693,
62,
312,
290,
262,
2033,
286,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
1502,
422,
1877,
284,
102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
1693,
62,
312,
290,
262,
2033,
286,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
1502,
422,
1877,
284,
102... |
For those employees who was hired before 2002-06-21, find job_id and the average of employee_id , and group by attribute job_id, and visualize them by a bar chart, and display y-axis in asc order. | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY AVG(EMPLOYEE_ID) | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1064,
1693,
62,
312,
290,
262,
2811,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
3359,
331,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1064,
1693,
62,
312,
290,
262,
2811,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
3359,
331,... |
Which Round has a Year later than 2011? | SELECT round FROM table_name_54 WHERE year > 2011 | [
13828,
10485,
468,
257,
6280,
1568,
621,
2813,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
4051,
33411,
614,
1875,
2813
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
10485,
468,
257,
6280,
1568,
621,
2813,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
4051,
33411,
614,
1875,
2813
] |
When 'speed metal' is the episode title what is the lowest number? | SELECT MIN("No.") FROM table_31160 WHERE "Episode title" = 'Speed Metal' | [
2215,
705,
12287,
6147,
6,
318,
262,
4471,
3670,
644,
318,
262,
9016,
1271,
30,
46506,
20625,
7203,
2949,
19570,
16034,
3084,
62,
36244,
1899,
33411,
366,
23758,
3670,
1,
796,
705,
22785,
12136,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
705,
12287,
6147,
6,
318,
262,
4471,
3670,
644,
318,
262,
9016,
1271,
30,
46506,
20625,
7203,
2949,
19570,
16034,
3084,
62,
36244,
1899,
33411,
366,
23758,
3670,
1,
796,
705,
22785,
12136,
6
] |
The less valued post by tag. Enter the tag which you are interested in | SELECT p.Id AS "post_link", Score FROM Posts AS p WHERE Tags LIKE '<' + '##tag:string##' + '>' ORDER BY p.Score LIMIT 50 | [
464,
1342,
17560,
1281,
416,
7621,
13,
6062,
262,
7621,
543,
345,
389,
4609,
287,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
15178,
16034,
12043,
7054,
279,
33411,
44789,
34178,
705,
27,
6,
1343,
705,
2235,
12985,
25,
8841... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
464,
1342,
17560,
1281,
416,
7621,
13,
6062,
262,
7621,
543,
345,
389,
4609,
287,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
15178,
16034,
12043,
7054,
279,
33411,
44789,
34178,
705,
27,
6,
1343,
705,
2235,
12985,
25,
8841... |
What is L2 Cache, when Model Number is Atom Z625? | SELECT l2_cache FROM table_name_60 WHERE model_number = "atom z625" | [
2061,
318,
406,
17,
34088,
11,
618,
9104,
7913,
318,
33102,
1168,
26704,
30,
46506,
300,
17,
62,
23870,
16034,
3084,
62,
3672,
62,
1899,
33411,
2746,
62,
17618,
796,
366,
37696,
1976,
26704,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
406,
17,
34088,
11,
618,
9104,
7913,
318,
33102,
1168,
26704,
30,
46506,
300,
17,
62,
23870,
16034,
3084,
62,
3672,
62,
1899,
33411,
2746,
62,
17618,
796,
366,
37696,
1976,
26704,
1
] |
Who is the champion with a 200,000,000 purse? | SELECT champion FROM table_name_96 WHERE purse = "¥200,000,000" | [
8241,
318,
262,
8783,
351,
257,
939,
11,
830,
11,
830,
27517,
30,
46506,
8783,
16034,
3084,
62,
3672,
62,
4846,
33411,
27517,
796,
366,
126,
98,
2167,
11,
830,
11,
830,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8783,
351,
257,
939,
11,
830,
11,
830,
27517,
30,
46506,
8783,
16034,
3084,
62,
3672,
62,
4846,
33411,
27517,
796,
366,
126,
98,
2167,
11,
830,
11,
830,
1
] |
Which largest average had 1229 yards? | SELECT MAX("Avg.") FROM table_52703 WHERE "Yards" = '1229' | [
13828,
4387,
2811,
550,
1105,
1959,
5695,
30,
46506,
25882,
7203,
48997,
19570,
16034,
3084,
62,
20,
1983,
3070,
33411,
366,
56,
1371,
1,
796,
705,
1065,
1959,
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
] | [
13828,
4387,
2811,
550,
1105,
1959,
5695,
30,
46506,
25882,
7203,
48997,
19570,
16034,
3084,
62,
20,
1983,
3070,
33411,
366,
56,
1371,
1,
796,
705,
1065,
1959,
6
] |
For Winter Other classes who is the professor ? | SELECT DISTINCT instructor.name FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instr... | [
1890,
10633,
3819,
6097,
508,
318,
262,
6240,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
10633,
3819,
6097,
508,
318,
262,
6240,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
... |
what were the top four most frequent medications that followed during the same hospital visit for patients that were prescribed sodium chloride 0.9% 500 ml lvp until 1 year ago? | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime, patient.patienthealthsystemstayid FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'sodium chloride ... | [
10919,
547,
262,
1353,
1440,
749,
10792,
17638,
326,
3940,
1141,
262,
976,
4436,
3187,
329,
3871,
326,
547,
14798,
21072,
44921,
657,
13,
24,
4,
5323,
25962,
300,
36133,
1566,
352,
614,
2084,
30,
46506,
256,
18,
13,
30349,
3672,
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,
1,
1,
1,
1... | [
10919,
547,
262,
1353,
1440,
749,
10792,
17638,
326,
3940,
1141,
262,
976,
4436,
3187,
329,
3871,
326,
547,
14798,
21072,
44921,
657,
13,
24,
4,
5323,
25962,
300,
36133,
1566,
352,
614,
2084,
30,
46506,
256,
18,
13,
30349,
3672,
16034... |
what are the four most frequent drugs prescribed for patients who were also prescribed with vasopressin 60 units in 100 ml ns 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 = 'vasopressin 60 units in 100 ml ns' AND DATETIME(med... | [
10919,
389,
262,
1440,
749,
10792,
5010,
14798,
329,
3871,
508,
547,
635,
14798,
351,
34439,
404,
601,
259,
3126,
4991,
287,
1802,
25962,
36545,
379,
262,
976,
640,
1201,
642,
812,
2084,
30,
46506,
256,
18,
13,
30349,
3672,
16034,
357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
1440,
749,
10792,
5010,
14798,
329,
3871,
508,
547,
635,
14798,
351,
34439,
404,
601,
259,
3126,
4991,
287,
1802,
25962,
36545,
379,
262,
976,
640,
1201,
642,
812,
2084,
30,
46506,
256,
18,
13,
30349,
3672,
16034,
357... |
Which E. coli has a human value of HNEIL1? | SELECT "E. coli" FROM table_49141 WHERE "Human" = 'hneil1' | [
13828,
412,
13,
40395,
468,
257,
1692,
1988,
286,
367,
12161,
4146,
16,
30,
46506,
366,
36,
13,
40395,
1,
16034,
3084,
62,
2920,
23756,
33411,
366,
20490,
1,
796,
705,
71,
710,
346,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
412,
13,
40395,
468,
257,
1692,
1988,
286,
367,
12161,
4146,
16,
30,
46506,
366,
36,
13,
40395,
1,
16034,
3084,
62,
2920,
23756,
33411,
366,
20490,
1,
796,
705,
71,
710,
346,
16,
6
] |
What was the final score for the game at giants stadium when the indianapolis colts were the visiting team? | SELECT "Final Score" FROM table_51363 WHERE "Visiting Team" = 'indianapolis colts' AND "Stadium" = 'giants stadium' | [
2061,
373,
262,
2457,
4776,
329,
262,
983,
379,
20178,
10308,
618,
262,
773,
666,
11174,
951,
912,
547,
262,
10013,
1074,
30,
46506,
366,
19006,
15178,
1,
16034,
3084,
62,
48645,
5066,
33411,
366,
15854,
1780,
4816,
1,
796,
705,
521,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2457,
4776,
329,
262,
983,
379,
20178,
10308,
618,
262,
773,
666,
11174,
951,
912,
547,
262,
10013,
1074,
30,
46506,
366,
19006,
15178,
1,
16034,
3084,
62,
48645,
5066,
33411,
366,
15854,
1780,
4816,
1,
796,
705,
521,
... |
What is the 2005 value with 1r in 2013 and q2 in 2011? | SELECT 2005 FROM table_name_73 WHERE 2013 = "1r" AND 2011 = "q2" | [
2061,
318,
262,
5075,
1988,
351,
352,
81,
287,
2211,
290,
10662,
17,
287,
2813,
30,
46506,
5075,
16034,
3084,
62,
3672,
62,
4790,
33411,
2211,
796,
366,
16,
81,
1,
5357,
2813,
796,
366,
80,
17,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
5075,
1988,
351,
352,
81,
287,
2211,
290,
10662,
17,
287,
2813,
30,
46506,
5075,
16034,
3084,
62,
3672,
62,
4790,
33411,
2211,
796,
366,
16,
81,
1,
5357,
2813,
796,
366,
80,
17,
1
] |
What is the total number of losses for years with fewer than 9 wins? | SELECT COUNT(losses) FROM table_name_82 WHERE wins < 9 | [
2061,
318,
262,
2472,
1271,
286,
9089,
329,
812,
351,
7380,
621,
860,
7864,
30,
46506,
327,
28270,
7,
22462,
274,
8,
16034,
3084,
62,
3672,
62,
6469,
33411,
7864,
1279,
860
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
9089,
329,
812,
351,
7380,
621,
860,
7864,
30,
46506,
327,
28270,
7,
22462,
274,
8,
16034,
3084,
62,
3672,
62,
6469,
33411,
7864,
1279,
860
] |
What is the since year for the player with more than 3 goals and a transfer fee of 400k? | SELECT since FROM table_name_24 WHERE goals > 3 AND transfer_fee = "£400k" | [
2061,
318,
262,
1201,
614,
329,
262,
2137,
351,
517,
621,
513,
4661,
290,
257,
4351,
6838,
286,
7337,
74,
30,
46506,
1201,
16034,
3084,
62,
3672,
62,
1731,
33411,
4661,
1875,
513,
5357,
4351,
62,
39071,
796,
366,
14988,
7029,
74,
1
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
614,
329,
262,
2137,
351,
517,
621,
513,
4661,
290,
257,
4351,
6838,
286,
7337,
74,
30,
46506,
1201,
16034,
3084,
62,
3672,
62,
1731,
33411,
4661,
1875,
513,
5357,
4351,
62,
39071,
796,
366,
14988,
7029,
74,
1
... |
Who won men's singles when petya nedelcheva diana dimova won women's doubles and vladimir metodiev krasimir yankov won men's doubles? | SELECT "Men's singles" FROM table_36706 WHERE "Women's doubles" = 'petya nedelcheva diana dimova' AND "Men's doubles" = 'vladimir metodiev krasimir yankov' | [
8241,
1839,
1450,
338,
25287,
618,
279,
2963,
64,
299,
276,
417,
2395,
6862,
288,
7484,
5391,
10071,
1839,
1466,
338,
21938,
290,
410,
9435,
13057,
1138,
375,
11203,
479,
8847,
13057,
331,
962,
709,
1839,
1450,
338,
21938,
30,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8241,
1839,
1450,
338,
25287,
618,
279,
2963,
64,
299,
276,
417,
2395,
6862,
288,
7484,
5391,
10071,
1839,
1466,
338,
21938,
290,
410,
9435,
13057,
1138,
375,
11203,
479,
8847,
13057,
331,
962,
709,
1839,
1450,
338,
21938,
30,
46506,
... |
How many rides did it take to get less than 3 bonus pts in no more than 7 matches? | SELECT MIN("Rides") FROM table_70847 WHERE "Bonus Pts" < '3' AND "Matches" < '7' | [
2437,
867,
17445,
750,
340,
1011,
284,
651,
1342,
621,
513,
7202,
43344,
287,
645,
517,
621,
767,
7466,
30,
46506,
20625,
7203,
49,
1460,
4943,
16034,
3084,
62,
32583,
2857,
33411,
366,
29435,
350,
912,
1,
1279,
705,
18,
6,
5357,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
17445,
750,
340,
1011,
284,
651,
1342,
621,
513,
7202,
43344,
287,
645,
517,
621,
767,
7466,
30,
46506,
20625,
7203,
49,
1460,
4943,
16034,
3084,
62,
32583,
2857,
33411,
366,
29435,
350,
912,
1,
1279,
705,
18,
6,
5357,
36... |
what is patient 2004's minimum sodium, urine value until 09/2105? | SELECT MIN(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2004) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'sodium, urine') AND STRFTIME('%y-%m', labevents.charttime) <= '2105-09' | [
10919,
318,
5827,
5472,
338,
5288,
21072,
11,
18922,
1988,
1566,
7769,
14,
17,
13348,
30,
46506,
20625,
7,
23912,
31534,
13,
2100,
84,
44709,
8,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
5472,
338,
5288,
21072,
11,
18922,
1988,
1566,
7769,
14,
17,
13348,
30,
46506,
20625,
7,
23912,
31534,
13,
2100,
84,
44709,
8,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
... |
On what circuit was the i mexican grand prix held? | SELECT "Circuit" FROM table_10148 WHERE "Race Name" = 'i mexican grand prix' | [
2202,
644,
10349,
373,
262,
1312,
502,
87,
7490,
4490,
1293,
87,
2714,
30,
46506,
366,
31560,
5013,
1,
16034,
3084,
62,
8784,
2780,
33411,
366,
35157,
6530,
1,
796,
705,
72,
502,
87,
7490,
4490,
1293,
87,
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
] | [
2202,
644,
10349,
373,
262,
1312,
502,
87,
7490,
4490,
1293,
87,
2714,
30,
46506,
366,
31560,
5013,
1,
16034,
3084,
62,
8784,
2780,
33411,
366,
35157,
6530,
1,
796,
705,
72,
502,
87,
7490,
4490,
1293,
87,
6
] |
what are all the type where station number is c08 | SELECT "Type" FROM table_17252 WHERE "Station Number" = 'C08' | [
10919,
389,
477,
262,
2099,
810,
4429,
1271,
318,
269,
2919,
46506,
366,
6030,
1,
16034,
3084,
62,
1558,
22800,
33411,
366,
12367,
7913,
1,
796,
705,
34,
2919,
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,
389,
477,
262,
2099,
810,
4429,
1271,
318,
269,
2919,
46506,
366,
6030,
1,
16034,
3084,
62,
1558,
22800,
33411,
366,
12367,
7913,
1,
796,
705,
34,
2919,
6
] |
in their current hospital visit what was the first procedure time for patient 011-55642? | SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-55642' AND patient.hospitaldischargetime IS NULL)) ORDER BY t... | [
259,
511,
1459,
4436,
3187,
644,
373,
262,
717,
8771,
640,
329,
5827,
5534,
16,
12,
2816,
41290,
30,
46506,
3513,
13,
42487,
2435,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
511,
1459,
4436,
3187,
644,
373,
262,
717,
8771,
640,
329,
5827,
5534,
16,
12,
2816,
41290,
30,
46506,
3513,
13,
42487,
2435,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
... |
how many total tournaments has he won ? | SELECT COUNT(*) FROM table_203_151 | [
4919,
867,
2472,
18130,
468,
339,
1839,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
24309
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
2472,
18130,
468,
339,
1839,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
24309
] |
When was the last game that had a time of 2:46 and attendance of more than 57,533? | SELECT MAX(game) FROM table_name_27 WHERE time = "2:46" AND attendance > 57 OFFSET 533 | [
2215,
373,
262,
938,
983,
326,
550,
257,
640,
286,
362,
25,
3510,
290,
14858,
286,
517,
621,
7632,
11,
44994,
30,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
1983,
33411,
640,
796,
366,
17,
25,
3510,
1,
5357,
14858,
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,
1,
1,
1,
1
] | [
2215,
373,
262,
938,
983,
326,
550,
257,
640,
286,
362,
25,
3510,
290,
14858,
286,
517,
621,
7632,
11,
44994,
30,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
1983,
33411,
640,
796,
366,
17,
25,
3510,
1,
5357,
14858,
1875,... |
Who is the player with 140,000? | SELECT "Player" FROM table_60949 WHERE "Money ( \u00a3 )" = '140,000' | [
8241,
318,
262,
2137,
351,
12713,
11,
830,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
31751,
2920,
33411,
366,
26788,
357,
3467,
84,
405,
64,
18,
1267,
1,
796,
705,
15187,
11,
830,
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
] | [
8241,
318,
262,
2137,
351,
12713,
11,
830,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
31751,
2920,
33411,
366,
26788,
357,
3467,
84,
405,
64,
18,
1267,
1,
796,
705,
15187,
11,
830,
6
] |
How much 1991-1992 has a Team of gimnasia de la plata, and more than 113 points? | SELECT COUNT("1991-1992") FROM table_78876 WHERE "Team" = 'gimnasia de la plata' AND "Points" > '113' | [
2437,
881,
10249,
12,
23847,
468,
257,
4816,
286,
308,
320,
77,
23218,
390,
8591,
458,
1045,
11,
290,
517,
621,
17318,
2173,
30,
46506,
327,
28270,
7203,
24529,
12,
23847,
4943,
16034,
3084,
62,
22,
3459,
4304,
33411,
366,
15592,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
881,
10249,
12,
23847,
468,
257,
4816,
286,
308,
320,
77,
23218,
390,
8591,
458,
1045,
11,
290,
517,
621,
17318,
2173,
30,
46506,
327,
28270,
7203,
24529,
12,
23847,
4943,
16034,
3084,
62,
22,
3459,
4304,
33411,
366,
15592,
1,
... |
Which Bore has a Name of 9 adr? | SELECT "Bore" FROM table_44523 WHERE "Name" = '9 adr' | [
13828,
45409,
468,
257,
6530,
286,
860,
512,
81,
30,
46506,
366,
33,
382,
1,
16034,
3084,
62,
43489,
1954,
33411,
366,
5376,
1,
796,
705,
24,
512,
81,
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
] | [
13828,
45409,
468,
257,
6530,
286,
860,
512,
81,
30,
46506,
366,
33,
382,
1,
16034,
3084,
62,
43489,
1954,
33411,
366,
5376,
1,
796,
705,
24,
512,
81,
6
] |
on 8 30 i would like a flight from DENVER to SAN FRANCISCO in the early am | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND date_day.day_number = 30 AND date_day.month_number = ... | [
261,
807,
1542,
1312,
561,
588,
257,
5474,
422,
37692,
5959,
284,
37376,
8782,
20940,
1797,
8220,
287,
262,
1903,
716,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
261,
807,
1542,
1312,
561,
588,
257,
5474,
422,
37692,
5959,
284,
37376,
8782,
20940,
1797,
8220,
287,
262,
1903,
716,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,... |
how many patients whose lab test chart time is 2154-10-11 16:00:00? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.charttime = "2154-10-11 16:00:00" | [
4919,
867,
3871,
3025,
2248,
1332,
8262,
640,
318,
362,
21526,
12,
940,
12,
1157,
1467,
25,
405,
25,
405,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2248,
1332,
8262,
640,
318,
362,
21526,
12,
940,
12,
1157,
1467,
25,
405,
25,
405,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
61... |
what are the total number of races that took place in fort worth ? | SELECT COUNT("race title") FROM table_204_508 WHERE "track" = 'fort worth' | [
10919,
389,
262,
2472,
1271,
286,
9558,
326,
1718,
1295,
287,
6285,
2861,
5633,
46506,
327,
28270,
7203,
16740,
3670,
4943,
16034,
3084,
62,
18638,
62,
33042,
33411,
366,
11659,
1,
796,
705,
3319,
2861,
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,
389,
262,
2472,
1271,
286,
9558,
326,
1718,
1295,
287,
6285,
2861,
5633,
46506,
327,
28270,
7203,
16740,
3670,
4943,
16034,
3084,
62,
18638,
62,
33042,
33411,
366,
11659,
1,
796,
705,
3319,
2861,
6
] |
what was the number of visitors in 2009 at hiidenportti ? | SELECT "visitation (2009)" FROM table_204_143 WHERE "national park" = 'hiidenportti' | [
10919,
373,
262,
1271,
286,
9692,
287,
3717,
379,
23105,
14029,
634,
20259,
5633,
46506,
366,
4703,
3780,
357,
10531,
16725,
16034,
3084,
62,
18638,
62,
21139,
33411,
366,
14648,
3952,
1,
796,
705,
5303,
14029,
634,
20259,
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
] | [
10919,
373,
262,
1271,
286,
9692,
287,
3717,
379,
23105,
14029,
634,
20259,
5633,
46506,
366,
4703,
3780,
357,
10531,
16725,
16034,
3084,
62,
18638,
62,
21139,
33411,
366,
14648,
3952,
1,
796,
705,
5303,
14029,
634,
20259,
6
] |
Which letter has the British a ? | SELECT "Letter" FROM table_61410 WHERE "British" = 'aɪ' | [
13828,
3850,
468,
262,
3517,
257,
5633,
46506,
366,
45708,
1,
16034,
3084,
62,
46841,
940,
33411,
366,
25631,
1,
796,
705,
64,
133,
103,
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
] | [
13828,
3850,
468,
262,
3517,
257,
5633,
46506,
366,
45708,
1,
16034,
3084,
62,
46841,
940,
33411,
366,
25631,
1,
796,
705,
64,
133,
103,
6
] |
Find the first and last name of all the students of age 18 who have vice president votes. | SELECT DISTINCT T1.fname, T1.lname FROM student AS T1 JOIN voting_record AS T2 ON T1.stuid = T2.vice_president_vote WHERE T1.age = 18 | [
16742,
262,
717,
290,
938,
1438,
286,
477,
262,
2444,
286,
2479,
1248,
508,
423,
7927,
1893,
5690,
13,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
69,
3672,
11,
309,
16,
13,
75,
3672,
16034,
3710,
7054,
309,
16,
32357,
1268,
6709,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
262,
717,
290,
938,
1438,
286,
477,
262,
2444,
286,
2479,
1248,
508,
423,
7927,
1893,
5690,
13,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
69,
3672,
11,
309,
16,
13,
75,
3672,
16034,
3710,
7054,
309,
16,
32357,
1268,
6709,
... |
is patient 027-4674 ever diagnosed with anything during the last year? | SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-4674')) AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIM... | [
271,
5827,
657,
1983,
12,
24669,
19,
1683,
14641,
351,
1997,
1141,
262,
938,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
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... | [
271,
5827,
657,
1983,
12,
24669,
19,
1683,
14641,
351,
1997,
1141,
262,
938,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312... |
Which province has Michael Kirby? | SELECT province FROM table_name_39 WHERE name = "michael kirby" | [
13828,
8473,
468,
3899,
23965,
30,
46506,
8473,
16034,
3084,
62,
3672,
62,
2670,
33411,
1438,
796,
366,
76,
40302,
479,
343,
1525,
1
] | [
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,
8473,
468,
3899,
23965,
30,
46506,
8473,
16034,
3084,
62,
3672,
62,
2670,
33411,
1438,
796,
366,
76,
40302,
479,
343,
1525,
1
] |
what is the number of patients who stayed in hospital for more than a day and were discharged to skilled nursing facility? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND demographic.days_stay > "1" | [
10919,
318,
262,
1271,
286,
3871,
508,
9658,
287,
4436,
329,
517,
621,
257,
1110,
290,
547,
26476,
284,
14297,
19167,
6841,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
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... | [
10919,
318,
262,
1271,
286,
3871,
508,
9658,
287,
4436,
329,
517,
621,
257,
1110,
290,
547,
26476,
284,
14297,
19167,
6841,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
... |
how many hours has it been since the last time in the current hospital encounter that patient 030-42006 has been diagnosed with lower urinary tract infection - with in-dwelling catheter? | 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 = '030-42006... | [
4919,
867,
2250,
468,
340,
587,
1201,
262,
938,
640,
287,
262,
1459,
4436,
8791,
326,
5827,
657,
1270,
12,
19,
13330,
468,
587,
14641,
351,
2793,
38628,
14998,
10280,
532,
351,
287,
12,
67,
4053,
278,
3797,
43332,
30,
46506,
1987,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2250,
468,
340,
587,
1201,
262,
938,
640,
287,
262,
1459,
4436,
8791,
326,
5827,
657,
1270,
12,
19,
13330,
468,
587,
14641,
351,
2793,
38628,
14998,
10280,
532,
351,
287,
12,
67,
4053,
278,
3797,
43332,
30,
46506,
1987,
1... |
what is the home team when the opposition is east coast? | SELECT home_team FROM table_26847237_3 WHERE opposition = "East Coast" | [
10919,
318,
262,
1363,
1074,
618,
262,
5471,
318,
7627,
7051,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
25022,
2857,
24693,
62,
18,
33411,
5471,
796,
366,
25234,
8545,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
1363,
1074,
618,
262,
5471,
318,
7627,
7051,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
25022,
2857,
24693,
62,
18,
33411,
5471,
796,
366,
25234,
8545,
1
] |
Which From club has a Date of 20 oct. 2008? | SELECT "From club" FROM table_48851 WHERE "Date" = '20 oct. 2008' | [
13828,
3574,
3430,
468,
257,
7536,
286,
1160,
19318,
13,
3648,
30,
46506,
366,
4863,
3430,
1,
16034,
3084,
62,
33646,
4349,
33411,
366,
10430,
1,
796,
705,
1238,
19318,
13,
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
] | [
13828,
3574,
3430,
468,
257,
7536,
286,
1160,
19318,
13,
3648,
30,
46506,
366,
4863,
3430,
1,
16034,
3084,
62,
33646,
4349,
33411,
366,
10430,
1,
796,
705,
1238,
19318,
13,
3648,
6
] |
What is the normal 2002 that has a Country of Peru, and 2007 bigger than 1,200? | SELECT AVG("2002") FROM table_50453 WHERE "Country" = 'peru' AND "2007" > '1,200' | [
2061,
318,
262,
3487,
6244,
326,
468,
257,
12946,
286,
25768,
11,
290,
4343,
5749,
621,
352,
11,
2167,
30,
46506,
35224,
7203,
16942,
4943,
16034,
3084,
62,
1120,
36625,
33411,
366,
33921,
1,
796,
705,
525,
84,
6,
5357,
366,
12726,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3487,
6244,
326,
468,
257,
12946,
286,
25768,
11,
290,
4343,
5749,
621,
352,
11,
2167,
30,
46506,
35224,
7203,
16942,
4943,
16034,
3084,
62,
1120,
36625,
33411,
366,
33921,
1,
796,
705,
525,
84,
6,
5357,
366,
12726,
... |
Show the number of courses each instructor taught in a stacked bar chart The x-axis is the instructor's first name and group by course code, show y axis in descending order. | SELECT EMP_FNAME, COUNT(EMP_FNAME) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM GROUP BY CRS_CODE, EMP_FNAME ORDER BY COUNT(EMP_FNAME) DESC | [
15307,
262,
1271,
286,
10902,
1123,
21187,
7817,
287,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
262,
21187,
338,
717,
1438,
290,
1448,
416,
1781,
2438,
11,
905,
331,
16488,
287,
31491,
1502,
13,
46506,
38144,
62,
37,
20608,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
262,
1271,
286,
10902,
1123,
21187,
7817,
287,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
262,
21187,
338,
717,
1438,
290,
1448,
416,
1781,
2438,
11,
905,
331,
16488,
287,
31491,
1502,
13,
46506,
38144,
62,
37,
20608,
1... |
How many total games drawn for club tylorstown rfc? | SELECT "Drawn" FROM table_18840 WHERE "Club" = 'Tylorstown RFC' | [
2437,
867,
2472,
1830,
7428,
329,
3430,
1259,
4685,
27928,
374,
16072,
30,
46506,
366,
35,
5791,
1,
16034,
3084,
62,
20356,
1821,
33411,
366,
42350,
1,
796,
705,
51,
2645,
273,
27928,
30978,
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,
2472,
1830,
7428,
329,
3430,
1259,
4685,
27928,
374,
16072,
30,
46506,
366,
35,
5791,
1,
16034,
3084,
62,
20356,
1821,
33411,
366,
42350,
1,
796,
705,
51,
2645,
273,
27928,
30978,
6
] |
Which september 26 28, 2011 polling firm had a Link of html, less than 36 liberals, and less than 8 green? | SELECT polling_firm FROM table_name_96 WHERE link = "html" AND liberal < 36 AND green < 8 AND date_of_polling = "september 26–28, 2011" | [
13828,
384,
457,
1491,
2608,
2579,
11,
2813,
13985,
4081,
550,
257,
7502,
286,
27711,
11,
1342,
621,
4570,
17194,
11,
290,
1342,
621,
807,
4077,
30,
46506,
13985,
62,
69,
2533,
16034,
3084,
62,
3672,
62,
4846,
33411,
2792,
796,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
384,
457,
1491,
2608,
2579,
11,
2813,
13985,
4081,
550,
257,
7502,
286,
27711,
11,
1342,
621,
4570,
17194,
11,
290,
1342,
621,
807,
4077,
30,
46506,
13985,
62,
69,
2533,
16034,
3084,
62,
3672,
62,
4846,
33411,
2792,
796,
366,
... |
For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of job_id and the amount of job_id , and group by attribute job_id. | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2033,
286,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
13,
46506,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2033,
286,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
13,
46506,
44... |
Who was the opponent with the 20-12 record? | SELECT "Opponent" FROM table_9890 WHERE "Record" = '20-12' | [
8241,
373,
262,
6125,
351,
262,
1160,
12,
1065,
1700,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
4089,
3829,
33411,
366,
23739,
1,
796,
705,
1238,
12,
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
] | [
8241,
373,
262,
6125,
351,
262,
1160,
12,
1065,
1700,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
4089,
3829,
33411,
366,
23739,
1,
796,
705,
1238,
12,
1065,
6
] |
Who is the 1st member of the parliament assembled on 5 April 1614? | SELECT 1 AS st_member FROM table_name_41 WHERE assembled = "5 april 1614" | [
8241,
318,
262,
352,
301,
2888,
286,
262,
8540,
16030,
319,
642,
3035,
1467,
1415,
30,
46506,
352,
7054,
336,
62,
19522,
16034,
3084,
62,
3672,
62,
3901,
33411,
16030,
796,
366,
20,
46593,
346,
1467,
1415,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
352,
301,
2888,
286,
262,
8540,
16030,
319,
642,
3035,
1467,
1415,
30,
46506,
352,
7054,
336,
62,
19522,
16034,
3084,
62,
3672,
62,
3901,
33411,
16030,
796,
366,
20,
46593,
346,
1467,
1415,
1
] |
provide the number of patients whose discharge location is dead/expired and procedure short title is ven cath renal dialysis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "DEAD/EXPIRED" AND procedures.short_title = "Ven cath renal dialysis" | [
15234,
485,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
2636,
14,
1069,
6474,
290,
8771,
1790,
3670,
318,
8710,
32171,
44375,
5980,
3097,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
2636,
14,
1069,
6474,
290,
8771,
1790,
3670,
318,
8710,
32171,
44375,
5980,
3097,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
32... |
what is the number of patients whose discharge location is home and days of hospital stay is greater than 10? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME" AND demographic.days_stay > "10" | [
10919,
318,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1363,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
838,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
6381,
10136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17655,
4067,
318,
1363,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
838,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
6381,
10136... |
how many games had an attendance of more than 10,000 ? | SELECT COUNT(*) FROM table_204_495 WHERE "attendance" > 10000 | [
4919,
867,
1830,
550,
281,
14858,
286,
517,
621,
838,
11,
830,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
33781,
33411,
366,
1078,
437,
590,
1,
1875,
33028
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1830,
550,
281,
14858,
286,
517,
621,
838,
11,
830,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
33781,
33411,
366,
1078,
437,
590,
1,
1875,
33028
] |
Which Format has a Catalog of 561 445-1? | SELECT format FROM table_name_81 WHERE catalog = "561 445-1" | [
13828,
18980,
468,
257,
44515,
286,
642,
5333,
48655,
12,
16,
30,
46506,
5794,
16034,
3084,
62,
3672,
62,
6659,
33411,
18388,
796,
366,
47915,
48655,
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
] | [
13828,
18980,
468,
257,
44515,
286,
642,
5333,
48655,
12,
16,
30,
46506,
5794,
16034,
3084,
62,
3672,
62,
6659,
33411,
18388,
796,
366,
47915,
48655,
12,
16,
1
] |
Name the original air date for 7 1-07 | SELECT "Original airdate" FROM table_26685 WHERE "Episode number Production number" = '7 1-07' | [
5376,
262,
2656,
1633,
3128,
329,
767,
352,
12,
2998,
46506,
366,
20556,
257,
1447,
378,
1,
16034,
3084,
62,
2075,
35978,
33411,
366,
23758,
1271,
19174,
1271,
1,
796,
705,
22,
352,
12,
2998,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
2656,
1633,
3128,
329,
767,
352,
12,
2998,
46506,
366,
20556,
257,
1447,
378,
1,
16034,
3084,
62,
2075,
35978,
33411,
366,
23758,
1271,
19174,
1271,
1,
796,
705,
22,
352,
12,
2998,
6
] |
What is the position for Oleksandr Vorobiov ( ukr ), when the total was larger than 16.25? | SELECT COUNT("Position") FROM table_64180 WHERE "Gymnast" = 'oleksandr vorobiov ( ukr )' AND "Total" > '16.25' | [
2061,
318,
262,
2292,
329,
30093,
591,
46273,
44143,
13411,
709,
357,
334,
38584,
10612,
618,
262,
2472,
373,
4025,
621,
1467,
13,
1495,
30,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
2414,
15259,
33411,
366,
38,
4948,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
2292,
329,
30093,
591,
46273,
44143,
13411,
709,
357,
334,
38584,
10612,
618,
262,
2472,
373,
4025,
621,
1467,
13,
1495,
30,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
2414,
15259,
33411,
366,
38,
4948,
77,
... |
Show the transaction types and the total amount of transactions, rank transaction_type from high to low order please. | SELECT transaction_type, SUM(transaction_amount) FROM Financial_Transactions GROUP BY transaction_type ORDER BY transaction_type DESC | [
15307,
262,
8611,
3858,
290,
262,
2472,
2033,
286,
8945,
11,
4279,
8611,
62,
4906,
422,
1029,
284,
1877,
1502,
3387,
13,
46506,
8611,
62,
4906,
11,
35683,
7,
7645,
2673,
62,
17287,
8,
16034,
11302,
62,
8291,
4658,
44441,
11050,
8611,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
8611,
3858,
290,
262,
2472,
2033,
286,
8945,
11,
4279,
8611,
62,
4906,
422,
1029,
284,
1877,
1502,
3387,
13,
46506,
8611,
62,
4906,
11,
35683,
7,
7645,
2673,
62,
17287,
8,
16034,
11302,
62,
8291,
4658,
44441,
11050,
8611,
... |
Name the Player who has a Place of t7 in Country of united states? | SELECT "Player" FROM table_77085 WHERE "Place" = 't7' AND "Country" = 'united states' | [
5376,
262,
7853,
508,
468,
257,
8474,
286,
256,
22,
287,
12946,
286,
16503,
2585,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
41820,
5332,
33411,
366,
27271,
1,
796,
705,
83,
22,
6,
5357,
366,
33921,
1,
796,
705,
41187,
2585,
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
] | [
5376,
262,
7853,
508,
468,
257,
8474,
286,
256,
22,
287,
12946,
286,
16503,
2585,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
41820,
5332,
33411,
366,
27271,
1,
796,
705,
83,
22,
6,
5357,
366,
33921,
1,
796,
705,
41187,
2585,
6
] |
Draw a scatter chart about the correlation between Team_ID and School_ID , and group by attribute ACC_Home. | SELECT Team_ID, School_ID FROM basketball_match GROUP BY ACC_Home | [
25302,
257,
41058,
8262,
546,
262,
16096,
1022,
4816,
62,
2389,
290,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
16060,
13,
46506,
4816,
62,
2389,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
44441,
11050,
15859,
62,
16060
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
41058,
8262,
546,
262,
16096,
1022,
4816,
62,
2389,
290,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
16060,
13,
46506,
4816,
62,
2389,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
44441,
11050,
15859,
62,
16060
] |
count the number of patients who had taken a mode test. | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'mode') | [
9127,
262,
1271,
286,
3871,
508,
550,
2077,
257,
4235,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
2248,
13,
26029,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
2077,
257,
4235,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
2248,
13,
26029,
... |
Create a bar chart showing manager_id across last name, and sort in asc by the MANAGER_ID. | SELECT LAST_NAME, MANAGER_ID FROM employees ORDER BY MANAGER_ID | [
16447,
257,
2318,
8262,
4478,
4706,
62,
312,
1973,
938,
1438,
11,
290,
3297,
287,
10570,
416,
262,
17254,
4760,
1137,
62,
2389,
13,
46506,
41894,
62,
20608,
11,
17254,
4760,
1137,
62,
2389,
16034,
4409,
38678,
11050,
17254,
4760,
1137,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16447,
257,
2318,
8262,
4478,
4706,
62,
312,
1973,
938,
1438,
11,
290,
3297,
287,
10570,
416,
262,
17254,
4760,
1137,
62,
2389,
13,
46506,
41894,
62,
20608,
11,
17254,
4760,
1137,
62,
2389,
16034,
4409,
38678,
11050,
17254,
4760,
1137,
... |
What is the country of Palmers Shipbuilding and Iron Company? | SELECT country FROM table_name_96 WHERE builder = "palmers shipbuilding and iron company" | [
2061,
318,
262,
1499,
286,
3175,
11056,
16656,
16894,
290,
7931,
5834,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
4846,
33411,
27098,
796,
366,
18596,
11056,
4074,
16894,
290,
6953,
1664,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
3175,
11056,
16656,
16894,
290,
7931,
5834,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
4846,
33411,
27098,
796,
366,
18596,
11056,
4074,
16894,
290,
6953,
1664,
1
] |
The man who received 87,676 votes in Queens won what percentage of the total for the election? | SELECT "%" FROM table_138 WHERE "Queens" = '87,676' | [
464,
582,
508,
2722,
10083,
11,
42548,
5690,
287,
14045,
1839,
644,
5873,
286,
262,
2472,
329,
262,
3071,
30,
46506,
36521,
1,
16034,
3084,
62,
20107,
33411,
366,
15681,
641,
1,
796,
705,
5774,
11,
42548,
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
] | [
464,
582,
508,
2722,
10083,
11,
42548,
5690,
287,
14045,
1839,
644,
5873,
286,
262,
2472,
329,
262,
3071,
30,
46506,
36521,
1,
16034,
3084,
62,
20107,
33411,
366,
15681,
641,
1,
796,
705,
5774,
11,
42548,
6
] |
What is the largest silver with a Total smaller than 2, a Bronze smaller than 1, and a Nation of yugoslavia? | SELECT MAX(silver) FROM table_name_79 WHERE total < 2 AND bronze < 1 AND nation = "yugoslavia" | [
2061,
318,
262,
4387,
8465,
351,
257,
7472,
4833,
621,
362,
11,
257,
19461,
4833,
621,
352,
11,
290,
257,
8741,
286,
331,
1018,
26388,
544,
30,
46506,
25882,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
3720,
33411,
2472,
1279,
362,
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
] | [
2061,
318,
262,
4387,
8465,
351,
257,
7472,
4833,
621,
362,
11,
257,
19461,
4833,
621,
352,
11,
290,
257,
8741,
286,
331,
1018,
26388,
544,
30,
46506,
25882,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
3720,
33411,
2472,
1279,
362,
5357... |
what is the top five of the frequent input event in 2105? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT inputevents_cv.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM inputevents_cv WHERE STRFTIME('%y', inputevents_cv.charttime) = '2105' GROUP BY inputevents_cv.itemid) AS t1 WHERE t1.c1 <= 5) | [
10919,
318,
262,
1353,
1936,
286,
262,
10792,
5128,
1785,
287,
362,
13348,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186,
312,
16034,
357,
46506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1353,
1936,
286,
262,
10792,
5128,
1785,
287,
362,
13348,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186,
312,
16034,
357,
46506,... |
What was the 2nd leg when Team 1 was Chicago Croatian? | SELECT 2 AS nd_leg FROM table_name_57 WHERE team_1 = "chicago croatian" | [
2061,
373,
262,
362,
358,
1232,
618,
4816,
352,
373,
4842,
48853,
30,
46506,
362,
7054,
299,
67,
62,
1455,
16034,
3084,
62,
3672,
62,
3553,
33411,
1074,
62,
16,
796,
366,
354,
4549,
6763,
265,
666,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
362,
358,
1232,
618,
4816,
352,
373,
4842,
48853,
30,
46506,
362,
7054,
299,
67,
62,
1455,
16034,
3084,
62,
3672,
62,
3553,
33411,
1074,
62,
16,
796,
366,
354,
4549,
6763,
265,
666,
1
] |
find the maximum days of hospital stay for patients who were admitted in the year 2176 or later. | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.admityear >= "2176" | [
19796,
262,
5415,
1528,
286,
4436,
2652,
329,
3871,
508,
547,
6848,
287,
262,
614,
362,
24096,
393,
1568,
13,
46506,
25882,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
324,
76,
414,
451,
18189,
366,
17,
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
] | [
19796,
262,
5415,
1528,
286,
4436,
2652,
329,
3871,
508,
547,
6848,
287,
262,
614,
362,
24096,
393,
1568,
13,
46506,
25882,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
324,
76,
414,
451,
18189,
366,
17,
2... |
who is the only ambassadors to honduras appointed by barack obama ? | SELECT "representative" FROM table_203_778 WHERE "appointed by" = 'barack obama' | [
8727,
318,
262,
691,
41702,
284,
289,
623,
17786,
9899,
416,
2318,
441,
909,
1689,
5633,
46506,
366,
15603,
876,
1,
16034,
3084,
62,
22416,
62,
39761,
33411,
366,
32924,
416,
1,
796,
705,
5657,
441,
909,
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
] | [
8727,
318,
262,
691,
41702,
284,
289,
623,
17786,
9899,
416,
2318,
441,
909,
1689,
5633,
46506,
366,
15603,
876,
1,
16034,
3084,
62,
22416,
62,
39761,
33411,
366,
32924,
416,
1,
796,
705,
5657,
441,
909,
1689,
6
] |
what is average age of patients whose primary disease is squamous cell carcinoma oral tongue/sda and days of hospital stay is 5? | SELECT AVG(demographic.age) FROM demographic WHERE demographic.diagnosis = "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA" AND demographic.days_stay = "5" | [
10919,
318,
2811,
2479,
286,
3871,
3025,
4165,
4369,
318,
2809,
10877,
2685,
28164,
6086,
12886,
11880,
14,
82,
6814,
290,
1528,
286,
4436,
2652,
318,
642,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
2811,
2479,
286,
3871,
3025,
4165,
4369,
318,
2809,
10877,
2685,
28164,
6086,
12886,
11880,
14,
82,
6814,
290,
1528,
286,
4436,
2652,
318,
642,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
4... |
how many patients until 2104 had an intake of nepro? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT icustays.hadm_id FROM icustays WHERE icustays.icustay_id IN (SELECT inputevents_cv.icustay_id FROM inputevents_cv WHERE inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'nepro' AND d_items.... | [
4919,
867,
3871,
1566,
362,
13464,
550,
281,
10337,
286,
497,
1676,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
14158,
436,
592,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1566,
362,
13464,
550,
281,
10337,
286,
497,
1676,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
14158,
436,
592,
... |
Show me school_id by all road in a histogram, and I want to list from low to high by the x axis. | SELECT All_Road, School_ID FROM basketball_match ORDER BY All_Road | [
15307,
502,
1524,
62,
312,
416,
477,
2975,
287,
257,
1554,
21857,
11,
290,
314,
765,
284,
1351,
422,
1877,
284,
1029,
416,
262,
2124,
16488,
13,
46506,
1439,
62,
29197,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
38678,
11050,
1439,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1524,
62,
312,
416,
477,
2975,
287,
257,
1554,
21857,
11,
290,
314,
765,
284,
1351,
422,
1877,
284,
1029,
416,
262,
2124,
16488,
13,
46506,
1439,
62,
29197,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
38678,
11050,
1439,
... |
Visualize a pie chart about the proportion of Team_Name and Team_ID. | SELECT Team_Name, Team_ID FROM basketball_match | [
36259,
1096,
257,
2508,
8262,
546,
262,
9823,
286,
4816,
62,
5376,
290,
4816,
62,
2389,
13,
46506,
4816,
62,
5376,
11,
4816,
62,
2389,
16034,
9669,
62,
15699
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36259,
1096,
257,
2508,
8262,
546,
262,
9823,
286,
4816,
62,
5376,
290,
4816,
62,
2389,
13,
46506,
4816,
62,
5376,
11,
4816,
62,
2389,
16034,
9669,
62,
15699
] |
List all the image name and URLs in the order of their names. | SELECT image_name, image_url FROM images ORDER BY image_name | [
8053,
477,
262,
2939,
1438,
290,
32336,
287,
262,
1502,
286,
511,
3891,
13,
46506,
2939,
62,
3672,
11,
2939,
62,
6371,
16034,
4263,
38678,
11050,
2939,
62,
3672
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
477,
262,
2939,
1438,
290,
32336,
287,
262,
1502,
286,
511,
3891,
13,
46506,
2939,
62,
3672,
11,
2939,
62,
6371,
16034,
4263,
38678,
11050,
2939,
62,
3672
] |
What is the ratio of Republicans to Democrats in South Carolina? | SELECT republican__democratic FROM table_name_91 WHERE state_ranked_in_partisan_order = "south carolina" | [
2061,
318,
262,
8064,
286,
4734,
284,
4956,
287,
2520,
5913,
30,
46506,
41477,
834,
41232,
16034,
3084,
62,
3672,
62,
6420,
33411,
1181,
62,
28282,
62,
259,
62,
28226,
62,
2875,
796,
366,
35782,
1097,
47196,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8064,
286,
4734,
284,
4956,
287,
2520,
5913,
30,
46506,
41477,
834,
41232,
16034,
3084,
62,
3672,
62,
6420,
33411,
1181,
62,
28282,
62,
259,
62,
28226,
62,
2875,
796,
366,
35782,
1097,
47196,
1
] |
Which Color commentator has a Channel of fsn new england, and a Year of 2004-05? | SELECT color_commentator_s_ FROM table_name_41 WHERE channel = "fsn new england" AND year = "2004-05" | [
13828,
5315,
28823,
468,
257,
11102,
286,
277,
16184,
649,
1786,
1044,
11,
290,
257,
6280,
286,
5472,
12,
2713,
30,
46506,
3124,
62,
23893,
1352,
62,
82,
62,
16034,
3084,
62,
3672,
62,
3901,
33411,
6518,
796,
366,
9501,
77,
649,
178... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5315,
28823,
468,
257,
11102,
286,
277,
16184,
649,
1786,
1044,
11,
290,
257,
6280,
286,
5472,
12,
2713,
30,
46506,
3124,
62,
23893,
1352,
62,
82,
62,
16034,
3084,
62,
3672,
62,
3901,
33411,
6518,
796,
366,
9501,
77,
649,
178... |
In what years was the conference record 18-15? | SELECT "Years" FROM table_33719 WHERE "Conference Record" = '18-15' | [
818,
644,
812,
373,
262,
4495,
1700,
1248,
12,
1314,
30,
46506,
366,
40630,
1,
16034,
3084,
62,
31496,
1129,
33411,
366,
3103,
4288,
13266,
1,
796,
705,
1507,
12,
1314,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
644,
812,
373,
262,
4495,
1700,
1248,
12,
1314,
30,
46506,
366,
40630,
1,
16034,
3084,
62,
31496,
1129,
33411,
366,
3103,
4288,
13266,
1,
796,
705,
1507,
12,
1314,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.