VishalCh/book-train huggingface dataset:
Schema:
CREATE TABLE table_name_77 (
    home_team VARCHAR,
    away_team VARCHAR
)

Question: Name the home team for carlton away team

SQL:
SELECT home_team FROM table_name_77 WHERE away_team = "carlton"
Schema:
CREATE TABLE table_22767 (
    "Year" real,
    "World" real,
    "Asia" text,
    "Africa" text,
    "Europe" text,
    "Latin America/Caribbean" text,
    "Northern America" text,
    "Oceania" text
)

Question: what will the population of Asia be when Latin America/Caribbean is 783 (7.5%)?

SQL:
SELECT "Asia" FROM table_22767 WHERE "Latin America/Caribbean" = '783 (7.5%)'
Schema:
CREATE TABLE Student (
    StuID INTEGER,
    LName VARCHAR(12),
    Fname VARCHAR(12),
    Age INTEGER,
    Sex VARCHAR(1),
    Major INTEGER,
    Advisor INTEGER,
    city_code VARCHAR(3)
)

CREATE TABLE Faculty (
    FacID INTEGER,
    Lname VARCHAR(15),
    Fname VARCHAR(15),
    Rank VARCHAR(15),
    Sex VARCHAR(1),
    Phone INTEGER,
    Room VARCHAR(5),
    Building VARCHAR(13)
)

CREATE TABLE Faculty_Participates_in (
    FacID INTEGER,
    actid INTEGER
)

CREATE TABLE Activity (
    actid INTEGER,
    activity_name varchar(25)
)

CREATE TABLE Participates_in (
    stuid INTEGER,
    actid INTEGER
)

Question: How many faculty members do we have for each gender? Draw a bar chart, order by the Y-axis in descending.

SQL:
SELECT Sex, COUNT(*) FROM Faculty GROUP BY Sex ORDER BY COUNT(*) DESC
Schema:
CREATE TABLE table_14656147_2 (
    week VARCHAR,
    record VARCHAR
)

Question: List the record of 0-1 from the table?

SQL:
SELECT week FROM table_14656147_2 WHERE record = "0-1"
Schema:
CREATE TABLE table_name_24 (
    silver VARCHAR,
    bronze VARCHAR,
    gold VARCHAR,
    rank VARCHAR
)

Question: Which silver has a Gold smaller than 12, a Rank smaller than 5, and a Bronze of 5?

SQL:
SELECT silver FROM table_name_24 WHERE gold < 12 AND rank < 5 AND bronze = 5
Schema:
CREATE TABLE table_47482 (
    "Company name" text,
    "Hardware Model" text,
    "Accreditation type" text,
    "Accreditation level" text,
    "Date" text
)

Question: When did Samsung Electronics Co LTD make the GT-i9100?

SQL:
SELECT "Date" FROM table_47482 WHERE "Company name" = 'samsung electronics co ltd' AND "Hardware Model" = 'gt-i9100'
Schema:
CREATE TABLE table_148535_2 (
    Id VARCHAR
)

Question: Name the most 3 credits

SQL:
SELECT MIN(3 AS _credits) FROM table_148535_2
Schema:
CREATE TABLE table_3791 (
    "Year" text,
    "Stage" real,
    "Start of stage" text,
    "Distance (km)" text,
    "Category of climb" text,
    "Stage winner" text,
    "Nationality" text,
    "Yellow jersey" text,
    "Bend" real
)

Question: What is every yellow jersey entry for the distance 125?

SQL:
SELECT "Yellow jersey" FROM table_3791 WHERE "Distance (km)" = '125'
Schema:
CREATE TABLE table_name_63 (
    years VARCHAR,
    goals VARCHAR,
    matches VARCHAR,
    rank VARCHAR
)

Question: In what years was there a rank lower than 9, under 84 goals, and more than 158 matches?

SQL:
SELECT years FROM table_name_63 WHERE matches > 158 AND rank > 9 AND goals < 84
Schema:
CREATE TABLE table_43208 (
    "8:00" text,
    "8:30" text,
    "9:00" text,
    "9:30" text,
    "10:00" text
)

Question: What aired at 10:00 when Flashpoint aired at 9:30?

SQL:
SELECT "10:00" FROM table_43208 WHERE "9:30" = 'flashpoint'
Schema:
CREATE TABLE table_18904831_5 (
    record VARCHAR,
    high_rebounds VARCHAR
)

Question: What was the record of the game in which Dydek (10) did the most high rebounds?

SQL:
SELECT record FROM table_18904831_5 WHERE high_rebounds = "Dydek (10)"
Schema:
CREATE TABLE table_10130 (
    "Home team" text,
    "Home team score" text,
    "Away team" text,
    "Away team score" text,
    "Venue" text,
    "Crowd" real,
    "Date" text
)

Question: When was the game played at glenferrie oval?

SQL:
SELECT "Date" FROM table_10130 WHERE "Venue" = 'glenferrie oval'
Schema:
CREATE TABLE table_7207 (
    "Objects" text,
    "Date" text,
    "SiO 2" real,
    "Al 2 O 3" real,
    "Fe 2 O 3" real,
    "K 2 O" real,
    "Na 2 O" real
)

Question: What is the highest K 2 O, when Na 2 O is greater than 1.87, when Fe 2 O 3 is greater than 0.07, when Objects is Ritual Disk, and when Al 2 O 3 is less than 0.62?

SQL:
SELECT MAX("K 2 O") FROM table_7207 WHERE "Na 2 O" > '1.87' AND "Fe 2 O 3" > '0.07' AND "Objects" = 'ritual disk' AND "Al 2 O 3" < '0.62'
Schema:
CREATE TABLE prescriptions (
    subject_id text,
    hadm_id text,
    icustay_id text,
    drug_type text,
    drug text,
    formulary_drug_cd text,
    route text,
    drug_dose text
)

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 lab (
    subject_id text,
    hadm_id text,
    itemid text,
    charttime text,
    flag text,
    value_unit text,
    label text,
    fluid text
)

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 text,
    discharge_location text,
    diagnosis text,
    dod text,
    dob_year text,
    dod_year text,
    admittime text,
    dischtime text,
    admityear text
)

Question: what is the total number of patients diagnosed with icd9 code 45620 who had a blood test.

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "45620" AND lab.fluid = "Blood"
Schema:
CREATE TABLE table_72013 (
    "Season" text,
    "Level" text,
    "Division" text,
    "Section" text,
    "Position" text
)

Question: Which section is in the 6th position?

SQL:
SELECT "Section" FROM table_72013 WHERE "Position" = '6th'
Schema:
CREATE TABLE table_69300 (
    "Name" text,
    "Years" text,
    "Gender" text,
    "Area" text,
    "Authority" text,
    "Decile" real,
    "Roll" real
)

Question: What is the area of the coed school with a state authority and a roll number of 122?

SQL:
SELECT "Area" FROM table_69300 WHERE "Authority" = 'state' AND "Gender" = 'coed' AND "Roll" = '122'
Schema:
CREATE TABLE table_name_1 (
    type VARCHAR,
    location VARCHAR
)

Question: Which type of institution is in Amherst, MA?

SQL:
SELECT type FROM table_name_1 WHERE location = "amherst, ma"
Schema:
CREATE TABLE table_21696 (
    "Winner" text,
    "Country" text,
    "Winter Olympics" text,
    "FIS Nordic World Ski Championships" text,
    "Holmenkollen" text
)

Question: What years did Birger Ruud win the FIS Nordic World Ski Championships?

SQL:
SELECT "FIS Nordic World Ski Championships" FROM table_21696 WHERE "Winner" = 'Birger Ruud'
Schema:
CREATE TABLE table_203_116 (
    id number,
    "no." number,
    "player" text,
    "birth date" text,
    "weight" number,
    "height" number,
    "position" text,
    "current club" text
)

Question: how many members of estonia 's men 's national volleyball team were born in 1988 ?

SQL:
SELECT COUNT("player") FROM table_203_116 WHERE "birth date" = 1988
Schema:
CREATE TABLE table_2818164_5 (
    no_in_season VARCHAR,
    original_air_date VARCHAR
)

Question: What episoe number in the season originally aired on February 11, 1988?

SQL:
SELECT no_in_season FROM table_2818164_5 WHERE original_air_date = "February 11, 1988"
Schema:
CREATE TABLE table_60686 (
    "Date" text,
    "Tournament" text,
    "Surface" text,
    "Opponent" text,
    "Score" text
)

Question: What date was the match against adri n men ndez-maceiras?

SQL:
SELECT "Date" FROM table_60686 WHERE "Opponent" = 'adrián menéndez-maceiras'
Schema:
CREATE TABLE table_203_365 (
    id number,
    "released" text,
    "video title" text,
    "company" text,
    "director" text,
    "notes" text
)

Question: did shoko goto make more films in 2004 or 2005 ?

SQL:
SELECT "released" FROM table_203_365 WHERE "released" IN (2004, 2005) GROUP BY "released" ORDER BY COUNT("video title") DESC LIMIT 1
Schema:
CREATE TABLE table_65116 (
    "Date" text,
    "Venue" text,
    "Score" text,
    "Result" text,
    "Competition" text
)

Question: What venue listed is dated February 22, 2003?

SQL:
SELECT "Venue" FROM table_65116 WHERE "Date" = 'february 22, 2003'
Schema:
CREATE TABLE prescriptions (
    subject_id text,
    hadm_id text,
    icustay_id text,
    drug_type text,
    drug text,
    formulary_drug_cd text,
    route text,
    drug_dose 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 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 text,
    discharge_location text,
    diagnosis text,
    dod text,
    dob_year text,
    dod_year text,
    admittime text,
    dischtime text,
    admityear text
)

CREATE TABLE lab (
    subject_id text,
    hadm_id text,
    itemid text,
    charttime text,
    flag text,
    value_unit text,
    label text,
    fluid text
)

CREATE TABLE diagnoses (
    subject_id text,
    hadm_id text,
    icd9_code text,
    short_title text,
    long_title text
)

Question: provide the number of patients whose admission type is emergency and lab test name is rbc, csf?

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab.label = "RBC, CSF"
Schema:
CREATE TABLE table_40395 (
    "Couple" text,
    "Style" text,
    "Music" text,
    "Choreographer(s)" text,
    "Results" text
)

Question: Which couple participated in the Contemporary style of dance?

SQL:
SELECT "Couple" FROM table_40395 WHERE "Style" = 'contemporary'
Schema:
CREATE TABLE table_28772 (
    "Portuguese name" text,
    "English name" text,
    "Subdivides in" text,
    "Equivalence in Varas" text,
    "Metrical equivalence" text
)

Question: Name the metrical equivalence for linha

SQL:
SELECT "Metrical equivalence" FROM table_28772 WHERE "Portuguese name" = 'Linha'
Schema:
CREATE TABLE table_27132791_3 (
    position VARCHAR,
    college VARCHAR
)

Question: If the college is SMU, what is the position?

SQL:
SELECT position FROM table_27132791_3 WHERE college = "SMU"
Schema:
CREATE TABLE table_21876 (
    "Season" real,
    "Date" text,
    "Winning Driver" text,
    "Car #" real,
    "Sponsor" text,
    "Make" text,
    "Team" text,
    "Avg Speed" text,
    "Margin of Victory" text
)

Question: What was the represented team on June 27?

SQL:
SELECT "Team" FROM table_21876 WHERE "Date" = 'June 27'
Schema:
CREATE TABLE artist (
    artist_id number,
    artist text,
    age number,
    famous_title text,
    famous_release_date text
)

CREATE TABLE music_festival (
    id number,
    music_festival text,
    date_of_ceremony text,
    category text,
    volume number,
    result text
)

CREATE TABLE volume (
    volume_id number,
    volume_issue text,
    issue_date text,
    weeks_on_top number,
    song text,
    artist_id number
)

Question: Please show the songs that have result 'nominated' at music festivals.

SQL:
SELECT T2.song FROM music_festival AS T1 JOIN volume AS T2 ON T1.volume = T2.volume_id WHERE T1.result = "Nominated"
Schema:
CREATE TABLE table_204_910 (
    id number,
    "rank" number,
    "name" text,
    "nationality" text,
    "result" number,
    "notes" text
)

Question: how many athletes had a better result than tatyana bocharova ?

SQL:
SELECT COUNT("name") FROM table_204_910 WHERE "result" > (SELECT "result" FROM table_204_910 WHERE "name" = 'tatyana bocharova')
Schema:
CREATE TABLE table_8430 (
    "Number" text,
    "Builder" text,
    "Type" text,
    "Date" real,
    "Length" text,
    "Capacity" text
)

Question: Which Type has a Capacity of 28 passengers, and a Number of 16?

SQL:
SELECT "Type" FROM table_8430 WHERE "Capacity" = '28 passengers' AND "Number" = '16'
Schema:
CREATE TABLE people (
    people_id number,
    district text,
    name text,
    party text,
    age number
)

CREATE TABLE debate_people (
    debate_id number,
    affirmative number,
    negative number,
    if_affirmative_win others
)

CREATE TABLE debate (
    debate_id number,
    date text,
    venue text,
    num_of_audience number
)

Question: Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.

SQL:
SELECT T3.name, T2.date, T2.venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.debate_id = T2.debate_id JOIN people AS T3 ON T1.negative = T3.people_id ORDER BY T3.name
Schema:
CREATE TABLE table_203_564 (
    id number,
    "hand" text,
    "1 credit" number,
    "2 credits" number,
    "3 credits" number,
    "4 credits" number,
    "5 credits" number
)

Question: is a 2 credit full house the same as a 5 credit three of a kind ?

SQL:
SELECT (SELECT "2 credits" FROM table_203_564 WHERE "hand" = 'full house') = (SELECT "5 credits" FROM table_203_564 WHERE "hand" = 'three of a kind')
Schema:
CREATE TABLE table_name_18 (
    round INTEGER,
    school VARCHAR
)

Question: What was the highest round that had northwestern?

SQL:
SELECT MAX(round) FROM table_name_18 WHERE school = "northwestern"
Schema:
CREATE TABLE table_name_19 (
    wins INTEGER,
    position VARCHAR,
    poles VARCHAR
)

Question: What is the smallest Wins with a Position of 20th, and Poles smaller than 0?

SQL:
SELECT MIN(wins) FROM table_name_19 WHERE position = "20th" AND poles < 0
Schema:
CREATE TABLE table_30306 (
    "Year Location" text,
    "Mens Singles" text,
    "Womens Singles" text,
    "Mens Doubles" text,
    "Womens Doubles" text
)

Question: Who is listed under mens singles when womens has wang nan zhang yining?

SQL:
SELECT "Mens Singles" FROM table_30306 WHERE "Womens Doubles" = 'Wang Nan Zhang Yining'
Schema:
CREATE TABLE Behavior_Incident (
    date_incident_start VARCHAR,
    date_incident_end VARCHAR,
    incident_type_code VARCHAR
)

Question: What are the start and end dates for incidents with incident type code 'NOISE'?

SQL:
SELECT date_incident_start, date_incident_end FROM Behavior_Incident WHERE incident_type_code = "NOISE"
Schema:
CREATE TABLE countries (
    COUNTRY_ID varchar(2),
    COUNTRY_NAME varchar(40),
    REGION_ID decimal(10,0)
)

CREATE TABLE employees (
    EMPLOYEE_ID decimal(6,0),
    FIRST_NAME varchar(20),
    LAST_NAME varchar(25),
    EMAIL varchar(25),
    PHONE_NUMBER varchar(20),
    HIRE_DATE date,
    JOB_ID varchar(10),
    SALARY decimal(8,2),
    COMMISSION_PCT decimal(2,2),
    MANAGER_ID decimal(6,0),
    DEPARTMENT_ID decimal(4,0)
)

CREATE TABLE jobs (
    JOB_ID varchar(10),
    JOB_TITLE varchar(35),
    MIN_SALARY decimal(6,0),
    MAX_SALARY decimal(6,0)
)

CREATE TABLE departments (
    DEPARTMENT_ID decimal(4,0),
    DEPARTMENT_NAME varchar(30),
    MANAGER_ID decimal(6,0),
    LOCATION_ID decimal(4,0)
)

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(40),
    POSTAL_CODE varchar(12),
    CITY varchar(30),
    STATE_PROVINCE varchar(25),
    COUNTRY_ID varchar(2)
)

CREATE TABLE regions (
    REGION_ID decimal(5,0),
    REGION_NAME varchar(25)
)

Question: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of hire_date and the average of manager_id bin hire_date by weekday, display by the the average of manager id in ascending please.

SQL:
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(MANAGER_ID)
Schema:
CREATE TABLE table_204_988 (
    id number,
    "responsible minister(s)" text,
    "crown entities" text,
    "monitoring department(s)" text,
    "category / type" text,
    "empowering legislation" text
)

Question: who is listed as the last responsible mister -lrb- s -rrb- on this chart ?

SQL:
SELECT "responsible minister(s)" FROM table_204_988 ORDER BY id DESC LIMIT 1
Schema:
CREATE TABLE table_29747178_2 (
    series__number VARCHAR,
    directed_by VARCHAR
)

Question: What is the series # when the director is john showalter?

SQL:
SELECT series__number FROM table_29747178_2 WHERE directed_by = "John Showalter"
Schema:
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 text,
    discharge_location text,
    diagnosis text,
    dod text,
    dob_year text,
    dod_year text,
    admittime text,
    dischtime text,
    admityear text
)

CREATE TABLE lab (
    subject_id text,
    hadm_id text,
    itemid text,
    charttime text,
    flag text,
    value_unit text,
    label text,
    fluid text
)

CREATE TABLE prescriptions (
    subject_id text,
    hadm_id text,
    icustay_id text,
    drug_type text,
    drug text,
    formulary_drug_cd text,
    route text,
    drug_dose text
)

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
)

Question: provide the number of patients whose admission type is emergency and diagnosis long title is other drugs and medicinal substances causing adverse effects in therapeutic use.

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Other drugs and medicinal substances causing adverse effects in therapeutic use"
Schema:
CREATE TABLE table_19191 (
    "Year" real,
    "League" text,
    "Reg. Season" text,
    "Playoffs" text,
    "US Open Cup" text,
    "Avg. Attendance" real
)

Question: What was the regular season standings for the year when the playoffs reached the conference semifinals and the team did not qualify for the US Open Cup?

SQL:
SELECT "Reg. Season" FROM table_19191 WHERE "Playoffs" = 'Conference Semifinals' AND "US Open Cup" = 'Did not qualify'
Schema:
CREATE TABLE table_37490 (
    "Name" text,
    "Gain" real,
    "Loss" real,
    "Long" real,
    "Avg/G" real
)

Question: How much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129?

SQL:
SELECT SUM("Long") FROM table_37490 WHERE "Loss" > '2' AND "Gain" = '157' AND "Avg/G" < '129'
Schema:
CREATE TABLE table_7363 (
    "Vol. #" real,
    "Title" text,
    "Material collected" text,
    "Pages" real,
    "ISBN" text
)

Question: How many pages does the edition with a volume # smaller than 8 and an ISBM of 1-40122-892-5 have?

SQL:
SELECT SUM("Pages") FROM table_7363 WHERE "Vol. #" < '8' AND "ISBN" = '1-40122-892-5'
Schema:
CREATE TABLE table_name_40 (
    game VARCHAR,
    score VARCHAR
)

Question: Which Game has a Score of w 90 82 (ot)?

SQL:
SELECT game FROM table_name_40 WHERE score = "w 90–82 (ot)"
Schema:
CREATE TABLE table_name_67 (
    crowd INTEGER,
    away_team VARCHAR
)

Question: What was the largest crowd when Collingwood was the away team?

SQL:
SELECT MAX(crowd) FROM table_name_67 WHERE away_team = "collingwood"
Schema:
CREATE TABLE table_24185 (
    "Station" text,
    "Line" text,
    "Planned" real,
    "Cancelled" real,
    "Proposal" text,
    "Details" text
)

Question: Name the number of cancelled for turnham green

SQL:
SELECT COUNT("Cancelled") FROM table_24185 WHERE "Station" = 'Turnham Green'
Schema:
CREATE TABLE table_name_59 (
    attendance INTEGER,
    score VARCHAR,
    away VARCHAR
)

Question: What is the highest attendance of the match with a 2:0 score and vida as the away team?

SQL:
SELECT MAX(attendance) FROM table_name_59 WHERE score = "2:0" AND away = "vida"
Schema:
CREATE TABLE track (
    Track_ID int,
    Name text,
    Location text,
    Seating real,
    Year_Opened real
)

CREATE TABLE race (
    Race_ID int,
    Name text,
    Class text,
    Date text,
    Track_ID text
)

Question: Visualize a pie chart with what are the names and seatings for all tracks opened after 2000?

SQL:
SELECT Name, Seating FROM track WHERE Year_Opened > 2000
Schema:
CREATE TABLE storm (
    Storm_ID int,
    Name text,
    Dates_active text,
    Max_speed int,
    Damage_millions_USD real,
    Number_Deaths int
)

CREATE TABLE region (
    Region_id int,
    Region_code text,
    Region_name text
)

CREATE TABLE affected_region (
    Region_id int,
    Storm_ID int,
    Number_city_affected real
)

Question: Show the name for regions and the number of storms for each region by a bar chart, and sort from high to low by the X-axis.

SQL:
SELECT Region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.Region_id = T2.Region_id GROUP BY T1.Region_id ORDER BY Region_name DESC
Schema:
CREATE TABLE table_name_44 (
    attendance INTEGER,
    record VARCHAR,
    points VARCHAR
)

Question: What is the Attendance of the game with a Record of 37 21 12 and less than 86 Points?

SQL:
SELECT AVG(attendance) FROM table_name_44 WHERE record = "37–21–12" AND points < 86
Schema:
CREATE TABLE table_name_17 (
    yards_per_attempt INTEGER,
    net_yards INTEGER
)

Question: How many yards per attempt have net yards greater than 631?

SQL:
SELECT SUM(yards_per_attempt) FROM table_name_17 WHERE net_yards > 631
Schema:
CREATE TABLE table_23575917_2 (
    scores VARCHAR,
    davids_team VARCHAR
)

Question: Name the scores for david baddiel and maureen lipman

SQL:
SELECT COUNT(scores) FROM table_23575917_2 WHERE davids_team = "David Baddiel and Maureen Lipman"
Schema:
CREATE TABLE table_name_62 (
    role VARCHAR,
    studio VARCHAR,
    title VARCHAR
)

Question: Name the role for mono studio and title of paradise canyon

SQL:
SELECT role FROM table_name_62 WHERE studio = "mono" AND title = "paradise canyon"
Schema:
CREATE TABLE table_name_24 (
    total VARCHAR,
    finish VARCHAR
)

Question: Name the total with finish of t22

SQL:
SELECT total FROM table_name_24 WHERE finish = "t22"
Schema:
CREATE TABLE table_3782 (
    "Game" real,
    "January" real,
    "Opponent" text,
    "Score" text,
    "Decision" text,
    "Location/Attendance" text,
    "Record" text
)

Question: If the opponent was @ Boston Bruins, what was the Location/Attendance?

SQL:
SELECT "Location/Attendance" FROM table_3782 WHERE "Opponent" = '@ Boston Bruins'
Schema:
CREATE TABLE table_64443 (
    "Date(s)" text,
    "Venue" text,
    "City" text,
    "Ticket price(s)" text,
    "Ticket sold / available" text,
    "Ticket grossing" text
)

Question: What was the ticket price on September 16, 1986?

SQL:
SELECT "Ticket price(s)" FROM table_64443 WHERE "Date(s)" = 'september 16, 1986'
Schema:
CREATE TABLE table_17060277_7 (
    high_rebounds VARCHAR,
    team VARCHAR
)

Question: Name the high rebounds for memphis

SQL:
SELECT high_rebounds FROM table_17060277_7 WHERE team = "Memphis"