instruction stringlengths 0 1.06k | input stringlengths 33 7.14k | response stringlengths 2 4.44k | source stringclasses 25
values | prompt listlengths 1 1 | input_ids listlengths 1 1 | label_ids listlengths 1 1 |
|---|---|---|---|---|---|---|
What time (cst) has and NFL recap of recap with october 19, 2008 as the date? | CREATE TABLE table_41823 (
"Week" real,
"Date" text,
"Time (CST)" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"NFL Recap" text
) | SELECT "Time (CST)" FROM table_41823 WHERE "NFL Recap" = 'recap' AND "Date" = 'october 19, 2008' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the fastest lap(s) when stefan wilson had the pole? | CREATE TABLE table_74411 (
"Rd." text,
"Race" text,
"Pole position" text,
"Fastest lap" text,
"Most laps led" text,
"Winning driver" text,
"Winning team" text
) | SELECT "Fastest lap" FROM table_74411 WHERE "Pole position" = 'Stefan Wilson' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's Trina Gulliver's high checkout? | CREATE TABLE table_20351295_2 (
high_checkout VARCHAR,
player VARCHAR
) | SELECT high_checkout FROM table_20351295_2 WHERE player = "Trina Gulliver" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Score, when Place is 'T9', and when Player is 'Jeff Sluman'? | CREATE TABLE table_name_39 (
score VARCHAR,
place VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_39 WHERE place = "t9" AND player = "jeff sluman" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many car numbers were recorded when the time/retired is +4.0019? | CREATE TABLE table_17319931_1 (
car_no VARCHAR,
time_retired VARCHAR
) | SELECT COUNT(car_no) FROM table_17319931_1 WHERE time_retired = "+4.0019" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the swimsuit score when the semifinal average score is 8.367 (10)? | CREATE TABLE table_7808 (
"State" text,
"Preliminary Average" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Semifinal Average" text
) | SELECT "Swimsuit" FROM table_7808 WHERE "Semifinal Average" = '8.367 (10)' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many current drivers, as of March 20, 2010 does Denmark have? | CREATE TABLE table_19487922_2 (
current_march_20 VARCHAR,
_2010 VARCHAR,
country VARCHAR
) | SELECT current_march_20, _2010 FROM table_19487922_2 WHERE country = "Denmark" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many marks did he get in 2005? | CREATE TABLE table_name_89 (
marks VARCHAR,
season VARCHAR
) | SELECT marks FROM table_name_89 WHERE season = "2005" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What longitude is tatman township? | CREATE TABLE table_18600760_20 (
longitude VARCHAR,
township VARCHAR
) | SELECT longitude FROM table_18600760_20 WHERE township = "Tatman" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the Adelaide for Sydney of yes and Perth of yes | CREATE TABLE table_67953 (
"Sydney" text,
"Melbourne" text,
"Perth" text,
"Adelaide" text,
"Gold Coast" text,
"Auckland" text
) | SELECT "Adelaide" FROM table_67953 WHERE "Sydney" = 'yes' AND "Perth" = 'yes' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2nd (m) value for Gregor Schlierenzauer? | CREATE TABLE table_34345 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"2nd (m)" real,
"Points" real,
"Overall WC points (Rank)" text
) | SELECT MIN("2nd (m)") FROM table_34345 WHERE "Name" = 'gregor schlierenzauer' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
when has patient 14836 first received the urine microbiology test in the first hospital visit? | CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
... | SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14836 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND microbiologyevents.spec_type_desc = 'urine' ORDER BY microbiology... | mimic_iii | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In which state did Marquis Li rule? | CREATE TABLE table_46862 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
) | SELECT "State" FROM table_46862 WHERE "Name" = 'li' AND "Title" = 'marquis' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the mill located on Anawan Street with a reference number larger than 8? | CREATE TABLE table_64816 (
"Ref#" real,
"Name" text,
"Built" real,
"Location" text,
"Construction" text
) | SELECT "Name" FROM table_64816 WHERE "Ref#" > '8' AND "Location" = 'anawan street' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the to par of the player from the United States with a t1 place? | CREATE TABLE table_60502 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" text
) | SELECT "To par" FROM table_60502 WHERE "Country" = 'united states' AND "Place" = 't1' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name and partition id for users who tweeted less than twice. | CREATE TABLE user_profiles (
uid number,
name text,
email text,
partitionid number,
followers number
)
CREATE TABLE tweets (
id number,
uid number,
text text,
createdate time
)
CREATE TABLE follows (
f1 number,
f2 number
) | SELECT T1.name, T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) < 2 | spider | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many schools are only charter ? | CREATE TABLE table_203_416 (
id number,
"school name" text,
"city" text,
"grades" text,
"establishment" number,
"charter" text
) | SELECT COUNT("school name") FROM table_203_416 WHERE "charter" = 'charter' | squall | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of birth of the player that has 11 caps and plays the prop position? | CREATE TABLE table_name_41 (
date_of_birth__age_ VARCHAR,
caps VARCHAR,
position VARCHAR
) | SELECT date_of_birth__age_ FROM table_name_41 WHERE caps = 11 AND position = "prop" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which is the easiest class that fulfills the PreMajor requirement ? | CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
g... | SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%PreMajor%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM progra... | advising | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which NFL team has a player that came from a college in Washington? | CREATE TABLE table_name_33 (
nfl_team VARCHAR,
college VARCHAR
) | SELECT nfl_team FROM table_name_33 WHERE college = "washington" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Before 2007, how many wins were there when the point total was 48? | CREATE TABLE table_33457 (
"Year" real,
"Drivers" text,
"Wins" real,
"Points" text,
"D.C." text
) | SELECT SUM("Wins") FROM table_33457 WHERE "Points" = '48' AND "Year" < '2007' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What chassis has patrick racing as an entrant, with a start greater than 6? | CREATE TABLE table_42846 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" real,
"Finish" real,
"Entrant" text
) | SELECT "Chassis" FROM table_42846 WHERE "Entrant" = 'patrick racing' AND "Start" > '6' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the least amount of silver medals a team with less than 0 gold medals has? | CREATE TABLE table_54758 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Silver") FROM table_54758 WHERE "Gold" < '0' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the became consort for christian ix spouse | CREATE TABLE table_68308 (
"Name" text,
"Birth" text,
"Marriage" text,
"Became Consort" text,
"Ceased to be Consort" text,
"Spouse" text
) | SELECT "Became Consort" FROM table_68308 WHERE "Spouse" = 'christian ix' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the infinitive stem that has a subjunctive present of ou? | CREATE TABLE table_name_10 (
inf_stem VARCHAR,
subj_pres VARCHAR
) | SELECT inf_stem FROM table_name_10 WHERE subj_pres = "ou" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many weeks have a Date of december 4, 1976, and an Attendance larger than 57,366? | CREATE TABLE table_name_30 (
week INTEGER,
date VARCHAR,
attendance VARCHAR
) | SELECT SUM(week) FROM table_name_30 WHERE date = "december 4, 1976" AND attendance > 57 OFFSET 366 | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of played for the goals against over 44 and a goal difference of 11? | CREATE TABLE table_43629 (
"Position" real,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT COUNT("Played") FROM table_43629 WHERE "Goal Difference" = '11' AND "Goals against" > '44' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the number of assets and group by asset make in a bar chart, and display in desc by the asset_make. | CREATE TABLE Part_Faults (
part_fault_id INTEGER,
part_id INTEGER,
fault_short_name VARCHAR(20),
fault_description VARCHAR(255),
other_fault_details VARCHAR(255)
)
CREATE TABLE Fault_Log (
fault_log_entry_id INTEGER,
asset_id INTEGER,
recorded_by_staff_id INTEGER,
fault_log_entry_da... | SELECT asset_make, COUNT(asset_make) FROM Assets GROUP BY asset_make ORDER BY asset_make DESC | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many settings where there for episode 29 of the season? | CREATE TABLE table_10413597_5 (
setting VARCHAR,
no_in_series VARCHAR
) | SELECT COUNT(setting) FROM table_10413597_5 WHERE no_in_series = 29 | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average crowd size for Brunswick street oval? | CREATE TABLE table_57312 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT AVG("Crowd") FROM table_57312 WHERE "Venue" = 'brunswick street oval' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
list flights between BOSTON and SAN FRANCISCO that serve BREAKFAST | CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight, food_service WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code AND f... | atis | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name of sue bird that involves what team? | CREATE TABLE table_name_27 (
team VARCHAR,
name VARCHAR
) | SELECT team FROM table_name_27 WHERE name = "sue bird" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For all employees who have the letters D or S in their first name, return a bar chart about the distribution of job_id and the average of salary , and group by attribute job_id, show y-axis in asc order. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(4... | SELECT JOB_ID, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY AVG(SALARY) | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the winning % when there were 322 goals? | CREATE TABLE table_2259285_1 (
winning_pct__percentage VARCHAR,
goals_for VARCHAR
) | SELECT winning_pct__percentage FROM table_2259285_1 WHERE goals_for = 322 | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which formula had a driver of John Moore-Brabazon? | CREATE TABLE table_65993 (
"Year" real,
"Formula" text,
"Driver" text,
"Constructor" text,
"Location" text,
"Report" text
) | SELECT "Formula" FROM table_65993 WHERE "Driver" = 'john moore-brabazon' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
calculate the average age of urgent hospital admission patients who were admitted on or after 2179. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.admityear >= "2179" | mimicsql_data | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country has player Nick Faldo? | CREATE TABLE table_61491 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" real
) | SELECT "Country" FROM table_61491 WHERE "Player" = 'nick faldo' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return a histogram on how many professors have a Ph.D. in each department? | CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10),
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4)
)
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
... | SELECT DEPT_CODE, COUNT(*) FROM PROFESSOR WHERE PROF_HIGH_DEGREE = 'Ph.D.' GROUP BY DEPT_CODE | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Indians were admitted in 2001? | CREATE TABLE table_21407 (
"Year" real,
"Indians admitted" real,
"Pakistanis admitted" real,
"Sri Lankans admitted" real,
"Bangladeshis admitted" real,
"Nepalis admitted" real
) | SELECT "Indians admitted" FROM table_21407 WHERE "Year" = '2001' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
when was patient 65582 tested for magnesium for the last time this month? | CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
char... | SELECT labevents.charttime FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'magnesium') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65582) AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURR... | mimic_iii | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which High rebounds has a Score of w 81-69? | CREATE TABLE table_name_62 (
high_rebounds VARCHAR,
score VARCHAR
) | SELECT high_rebounds FROM table_name_62 WHERE score = "w 81-69" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many viewers watched the episode with a story by david simon & mari kornhauser? | CREATE TABLE table_29122 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Story by" text,
"Teleplay by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "U.S. viewers (millions)" FROM table_29122 WHERE "Story by" = 'David Simon & Mari Kornhauser' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the result of the match with clyde as the opponent in the h venue? | CREATE TABLE table_name_27 (
result VARCHAR,
opponent VARCHAR,
venue VARCHAR
) | SELECT result FROM table_name_27 WHERE opponent = "clyde" AND venue = "h" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many boats costed less than # 20m to build ? | CREATE TABLE table_204_568 (
id number,
"pennant" text,
"name" text,
"hull builder" text,
"ordered" text,
"laid down" text,
"launched" text,
"accepted into service" text,
"commissioned" text,
"est. building cost" text,
"fate" text
) | SELECT COUNT(*) FROM table_204_568 WHERE "est. building cost" < 20 | squall | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which staff handled least number of payments? List the full name and the id. | CREATE TABLE payment (
staff_id VARCHAR
)
CREATE TABLE staff (
first_name VARCHAR,
last_name VARCHAR,
staff_id VARCHAR
) | SELECT T1.first_name, T1.last_name, T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY COUNT(*) LIMIT 1 | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what award show was Bad Girls nominated for Best Loved Drama in 2002? | CREATE TABLE table_name_53 (
award_show VARCHAR,
category VARCHAR,
year VARCHAR
) | SELECT award_show FROM table_name_53 WHERE category = "best loved drama" AND year = 2002 | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Party, when Results is 'Re-Elected', and when District is 'Louisiana 5'? | CREATE TABLE table_name_76 (
party VARCHAR,
results VARCHAR,
district VARCHAR
) | SELECT party FROM table_name_76 WHERE results = "re-elected" AND district = "louisiana 5" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What company is numbered larger than 5 and priced at $389M? | CREATE TABLE table_name_84 (
company VARCHAR,
number VARCHAR,
price VARCHAR
) | SELECT company FROM table_name_84 WHERE number > 5 AND price = "$389m" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Mean attendance for December 22, 1980? | CREATE TABLE table_40300 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT AVG("Attendance") FROM table_40300 WHERE "Date" = 'december 22, 1980' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the reason for change for jonathan jennings | CREATE TABLE table_2628 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) | SELECT COUNT("Reason for change") FROM table_2628 WHERE "Successor" = 'Jonathan Jennings' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who are the player's who weighed 170? | CREATE TABLE table_25382 (
"No." real,
"Player" text,
"Position" text,
"Height" text,
"Weight" real,
"Class" text,
"Hometown" text
) | SELECT "Player" FROM table_25382 WHERE "Weight" = '170' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average credit score for customers who have taken a loan? | CREATE TABLE loan (
loan_id text,
loan_type text,
cust_id text,
branch_id text,
amount number
)
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
acc_bal number,
no_of_loans number,
credit_score number,
branch_id number,
state text
)
CREATE TABLE ... | SELECT AVG(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan) | spider | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me a pie to show team_id from different acc regular season. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT ACC_Regular_Season, Team_ID FROM basketball_match | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the capacity of Band rma Banvit? | CREATE TABLE table_name_28 (
capacity INTEGER,
club VARCHAR
) | SELECT AVG(capacity) FROM table_name_28 WHERE club = "bandırma banvit" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the school/club team/country for the player that is 6-5 ft | CREATE TABLE table_56338 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"School/Club Team/Country" text
) | SELECT "School/Club Team/Country" FROM table_56338 WHERE "Height in Ft." = '6-5' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Are there any courses that are worth 6 credits ? | CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
star... | SELECT DISTINCT name, number FROM course WHERE credits = 6 AND department = 'EECS' | advising | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the first time that patient 28443 had the maximum value of the arterial bp mean on this month/18? | CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
... | SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28443)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial... | mimic_iii | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What languages are spoken when call sign XEJAM is used? | CREATE TABLE table_14670060_1 (
languages VARCHAR,
call_sign VARCHAR
) | SELECT languages FROM table_14670060_1 WHERE call_sign = "XEJAM" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many years is the chart for ? | CREATE TABLE table_204_88 (
id number,
"year" number,
"english title" text,
"japanese" text,
"romanization" text,
"type" text
) | SELECT MAX("year") - MIN("year") + 1 FROM table_204_88 | squall | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which TV network is a spanish commercial network with greater than 53,674,000 households viewable and place lower than 1? | CREATE TABLE table_10111 (
"Place" real,
"TV network" text,
"% of US households reached" text,
"Number of households viewable" real,
"Type of Television Network" text
) | SELECT "TV network" FROM table_10111 WHERE "Type of Television Network" = 'spanish commercial' AND "Number of households viewable" > '53,674,000' AND "Place" > '1' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of courses which are being taught by more than 2 professors ? | CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varch... | SELECT COUNT(DISTINCT course_offering.course_id) FROM course, course_offering, offering_instructor AS OFFERING_INSTRUCTOR_0, offering_instructor AS OFFERING_INSTRUCTOR_1, offering_instructor AS OFFERING_INSTRUCTOR_2 WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND OFFERING_INSTRUCTO... | advising | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Goals Against have a Position of 4? | CREATE TABLE table_60196 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" text
) | SELECT COUNT("Goals Against") FROM table_60196 WHERE "Position" = '4' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the id and trade name of the medicines can interact with at least 3 enzymes?, I want to list in descending by the y axis. | CREATE TABLE medicine (
id int,
name text,
Trade_Name text,
FDA_approved text
)
CREATE TABLE enzyme (
id int,
name text,
Location text,
Product text,
Chromosome text,
OMIM int,
Porphyria text
)
CREATE TABLE medicine_enzyme_interaction (
enzyme_id int,
medicine_id in... | SELECT Trade_Name, id FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id ORDER BY id DESC | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Users by total number of favorites on their posts. | CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDispl... | SELECT RANK() OVER (ORDER BY SUM(Posts.FavoriteCount) DESC) AS "no.", Posts.OwnerUserId AS "user_link", Users.Reputation, SUM(Posts.FavoriteCount) AS "TotalFavorites", COUNT(*) AS "Posts with favorites" FROM Posts JOIN Users ON Users.Id = Posts.OwnerUserId WHERE NOT Posts.OwnerUserId IS NULL AND Posts.FavoriteCount > 0... | sede | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which paper should I read about Dependent type ? | CREATE TABLE field (
fieldid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
C... | SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'Dependent type' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid | scholar | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Nickname that had a No. 0, and Years in Competition of 1982-2003? | CREATE TABLE table_name_26 (
nickname VARCHAR,
no_of_premierships VARCHAR,
years_in_competition VARCHAR
) | SELECT nickname FROM table_name_26 WHERE no_of_premierships = 0 AND years_in_competition = "1982-2003" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the visitors when the Atlanta Falcons were the home team? | CREATE TABLE table_name_42 (
designated_visitors VARCHAR,
designated_home VARCHAR
) | SELECT designated_visitors FROM table_name_42 WHERE designated_home = "atlanta falcons" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which cornerback round has a pick number lower than 26 and an overall higher than 41? | CREATE TABLE table_name_36 (
round INTEGER,
overall VARCHAR,
pick__number VARCHAR,
position VARCHAR
) | SELECT SUM(round) FROM table_name_36 WHERE pick__number < 26 AND position = "cornerback" AND overall > 41 | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What school is the player who has a hometown of Chicago, IL from? | CREATE TABLE table_52465 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "School" FROM table_52465 WHERE "Hometown" = 'chicago, il' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where does Geelong play their home game? | CREATE TABLE table_name_7 (
venue VARCHAR,
home_team VARCHAR
) | SELECT venue FROM table_name_7 WHERE home_team = "geelong" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what were the three most frequently given diagnoses for patients who received ins nondrug elut cor st previously within 2 months until 2104? | CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE icustays (
row_id number,
subj... | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissi... | mimic_iii | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show different occupations along with the number of players in each occupation with a bar chart, could you order by the names from high to low? | CREATE TABLE player (
Player_ID int,
Sponsor_name text,
Player_name text,
Gender text,
Residence text,
Occupation text,
Votes int,
Rank text
)
CREATE TABLE player_coach (
Player_ID int,
Coach_ID int,
Starting_year int
)
CREATE TABLE coach (
Coach_ID int,
Coach_name ... | SELECT Occupation, COUNT(*) FROM player GROUP BY Occupation ORDER BY Occupation DESC | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the admission location and discharge time of subject id 52118? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT demographic.admission_location, demographic.dischtime FROM demographic WHERE demographic.subject_id = "52118" | mimicsql_data | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Assists that has a Blocks of 2 tied (1) with a Year larger than 1995 | CREATE TABLE table_70811 (
"Year" real,
"Points" text,
"Rebounds" text,
"Assists" text,
"Steals" text,
"Blocks" text
) | SELECT "Assists" FROM table_70811 WHERE "Blocks" = '2 tied (1)' AND "Year" > '1995' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many total games associated with the Pac-12 of california and 117 years? | CREATE TABLE table_name_84 (
total_games VARCHAR,
years VARCHAR,
pac_12 VARCHAR
) | SELECT total_games FROM table_name_84 WHERE years = 117 AND pac_12 = "california" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year had the Finish of 12? | CREATE TABLE table_name_65 (
year VARCHAR,
finish VARCHAR
) | SELECT year FROM table_name_65 WHERE finish = "12" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest decile value with a roll greater than 301 in Hauraki? | CREATE TABLE table_name_46 (
decile INTEGER,
roll VARCHAR,
area VARCHAR
) | SELECT MAX(decile) FROM table_name_46 WHERE roll > 301 AND area = "hauraki" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many platforms have nanaly fletch as the character? | CREATE TABLE table_30346 (
"Character" text,
"Game" text,
"Platform" text,
"Status" text,
"Mystic Arte" text,
"Character Voice" text
) | SELECT COUNT("Platform") FROM table_30346 WHERE "Character" = 'Nanaly Fletch' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the developer of Wii? | CREATE TABLE table_65635 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
) | SELECT "Developer(s)" FROM table_65635 WHERE "Platform(s)" = 'wii' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Each week 483 usually has 2 or 3 lectures ? | CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,... | SELECT DISTINCT course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday, semester.semester, semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND c... | advising | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many users have answered more than N questions. | CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
Owne... | SELECT CommentCount, COUNT(*) FROM Posts WHERE PostTypeId = 1 AND CreationDate > DATEADD(DAY, -90, CURRENT_TIMESTAMP()) AND AnswerCount = 0 GROUP BY CommentCount | sede | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what country won the least amount of gold medals ? | CREATE TABLE table_203_707 (
id number,
"rank" number,
"npc" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "npc" FROM table_203_707 ORDER BY "gold" LIMIT 1 | squall | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the crowd with a Home team score of 8.17 (65)? | CREATE TABLE table_58278 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT AVG("Crowd") FROM table_58278 WHERE "Home team score" = '8.17 (65)' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the id of the most recent order? | CREATE TABLE orders (
order_id VARCHAR,
date_order_placed VARCHAR
) | SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1 | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name where bethany college is | CREATE TABLE table_262476_1 (
location VARCHAR,
institution VARCHAR
) | SELECT location FROM table_262476_1 WHERE institution = "Bethany College" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of appointment when the date of vacancy is 15 march 2011? | CREATE TABLE table_26998135_2 (
date_of_appointment VARCHAR,
date_of_vacancy VARCHAR
) | SELECT date_of_appointment FROM table_26998135_2 WHERE date_of_vacancy = "15 March 2011" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Percentage of Users with 10K or 20K rep out of 'real users' (>100 rep). | CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number... | SELECT (((SELECT CAST(COUNT(*) AS FLOAT) FROM Users WHERE Reputation > 10000) / (SELECT CAST(COUNT(*) AS FLOAT) FROM Users WHERE LastAccessDate > GETUTCDATE() - 30 AND Reputation > 200 AND (UpVotes + DownVotes) > 0)) * 100) AS PercentageOver10k, (((SELECT CAST(COUNT(*) AS FLOAT) FROM Users WHERE Reputation > 20000) / (... | sede | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the rider with a 399cc Kawasaki? | CREATE TABLE table_name_94 (
rider VARCHAR,
team VARCHAR
) | SELECT rider FROM table_name_94 WHERE team = "399cc kawasaki" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what are the top four common diagnosis of patients aged 50s in 2101? | CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
... | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN... | mimic_iii | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position did Garion Weller hold in 2012? | CREATE TABLE table_name_23 (
position VARCHAR
) | SELECT position FROM table_name_23 WHERE 2012 = "garion weller" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return me the number of researchers in ' University of Michigan ' . | CREATE TABLE organization (
continent varchar,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE domain (
did int,
name varchar
)
CREATE TABLE keyword (
keyword varchar,
kid int
)
CREATE TABLE domain_publication (
did int,
pid int
)
CREATE TABLE domain_journal (
did ... | SELECT COUNT(DISTINCT (author.name)) FROM author, organization WHERE organization.name = 'University of Michigan' AND organization.oid = author.oid | academic | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When 21' 05.83 107.304mph is Wednesday August 25th what is Friday August 27th? | CREATE TABLE table_26986076_5 (
fri_27_aug VARCHAR,
wed_25_aug VARCHAR
) | SELECT fri_27_aug FROM table_26986076_5 WHERE wed_25_aug = "21' 05.83 107.304mph" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average L/100km urban value having an L/100km extraurban under 7.2, mpg combined in the UK under 39.8, l/100km combined over 7.9, and mpg combined in the US under 25.1? | CREATE TABLE table_14144 (
"Manufacturer" text,
"Transmission" text,
"Engine Capacity" real,
"Fuel Type" text,
"L/100km Urban (Cold)" real,
"L/100km Extra-Urban" real,
"L/100km Combined" real,
"mpg-UK Urban (Cold)" real,
"mpg-UK Extra-Urban" real,
"mpg-UK Combined" real,
"mpg... | SELECT AVG("L/100km Urban (Cold)") FROM table_14144 WHERE "L/100km Extra-Urban" < '7.2' AND "mpg-UK Combined" < '39.8' AND "L/100km Combined" > '7.9' AND "mpg-US Combined" < '25.1' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Look for the private health insurance patients who had an open liver biopsy procedure. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.long_title = "Open biopsy of liver" | mimicsql_data | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose ethnicity is hispanic or latino and item id is 51044? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND lab.itemid = "51044" | mimicsql_data | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
renal insufficiency: serum creatinine > 1.3 mg / dl ( male ) or > 1.2 mg / dl ( female ) | CREATE TABLE table_train_184 (
"id" int,
"gender" string,
"systolic_blood_pressure_sbp" int,
"heart_disease" bool,
"renal_disease" bool,
"hematocrit_hct" float,
"allergy_to_insulin_lispro" bool,
"diastolic_blood_pressure_dbp" int,
"serum_creatinine" float,
"hypertension" bool,
... | SELECT * FROM table_train_184 WHERE renal_disease = 1 OR ((gender = 'male' AND serum_creatinine > 1.3) OR (gender = 'female' AND serum_creatinine > 1.2)) | criteria2sql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of District, when Took Office is greater than 1981, and when Senator is Cyndi Taylor Krier? | CREATE TABLE table_47117 (
"Senator" text,
"Party" text,
"District" real,
"Home Town" text,
"Took Office" real
) | SELECT SUM("District") FROM table_47117 WHERE "Took Office" > '1981' AND "Senator" = 'cyndi taylor krier' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest Place with more than 3 draws, for the Song 'dajana', with less than 31 points? | CREATE TABLE table_65847 (
"Draw" real,
"Artist" text,
"Song" text,
"Points" real,
"Place" real
) | SELECT MAX("Place") FROM table_65847 WHERE "Draw" > '3' AND "Song" = 'dajana' AND "Points" < '31' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many students are in each department Visualize by bar chart, and I want to order by the names in ascending. | CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int
)
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIG... | SELECT DEPT_CODE, COUNT(*) FROM STUDENT GROUP BY DEPT_CODE ORDER BY DEPT_CODE | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the average 1st prize for tennessee | CREATE TABLE table_name_55 (
location VARCHAR
) | SELECT AVG(1 AS st_prize__) AS $__ FROM table_name_55 WHERE location = "tennessee" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.