VishalCh/book-train huggingface dataset:
Schema:
CREATE TABLE table_204_255 (
    id number,
    "constituency number" number,
    "name" text,
    "reserved for (sc/st/none)" text,
    "district" text,
    "number of electorates (2009)" number
)

Question: which district has the greatest total number of electorates ?

SQL:
SELECT "district" FROM table_204_255 GROUP BY "district" ORDER BY SUM("number of electorates (2009)") DESC LIMIT 1
Schema:
CREATE TABLE table_3580 (
    "Title and source" text,
    "Developer" text,
    "Publisher" text,
    "First released" text,
    "Japan" text,
    "Europe" text,
    "North America" text,
    "Exclusive" text,
    "Move-only" text
)

Question: What is the title and source for the game developed by Hydravision Entertainment?

SQL:
SELECT "Title and source" FROM table_3580 WHERE "Developer" = 'Hydravision Entertainment'
Schema:
CREATE TABLE table_35540 (
    "Round" real,
    "Pick #" real,
    "Overall" real,
    "Name" text,
    "Position" text,
    "College" text
)

Question: Which college has fewer than 2 rounds?

SQL:
SELECT "College" FROM table_35540 WHERE "Round" < '2'
Schema:
CREATE TABLE table_name_36 (
    score VARCHAR,
    odds VARCHAR,
    date VARCHAR
)

Question: What was the score for a game with the odds of p + 2 after 1847?

SQL:
SELECT score FROM table_name_36 WHERE odds = "p + 2" AND date > 1847
Schema:
CREATE TABLE table_27021001_1 (
    district VARCHAR,
    result VARCHAR
)

Question: What is the district with the result mac collins (r) unopposed?

SQL:
SELECT district FROM table_27021001_1 WHERE result = "Mac Collins (R) unopposed"
Schema:
CREATE TABLE table_2249087_1 (
    world_rank INTEGER,
    south_american_rank VARCHAR
)

Question: Name the least world rank for south american rank 3

SQL:
SELECT MIN(world_rank) FROM table_2249087_1 WHERE south_american_rank = 3
Schema:
CREATE TABLE table_65068 (
    "Project" text,
    "License" text,
    "Date" text,
    "Protocol" text,
    "Technology" text,
    "Server" text,
    "Client" text,
    "Web Client" text,
    "Multiple Sessions" text,
    "Encryption" text,
    "Authentication" text,
    "Data Compression" text,
    "Image Quality" text,
    "Color Quality" text,
    "File Transfer" text,
    "Clipboard Transfer" text,
    "Chat" text,
    "Relay" text,
    "HTTP Tunnel" text,
    "Proxy" text
)

Question: what is the color quality when the proxy is x, the encryption is x, the webclient is x and authentication is ?

SQL:
SELECT "Color Quality" FROM table_65068 WHERE "Proxy" = 'x' AND "Encryption" = 'x' AND "Web Client" = 'x' AND "Authentication" = '✓'
Schema:
CREATE TABLE discipline_enrollments (
    campus number,
    discipline number,
    year number,
    undergraduate number,
    graduate number
)

CREATE TABLE csu_fees (
    campus number,
    year number,
    campusfee number
)

CREATE TABLE enrollments (
    campus number,
    year number,
    totalenrollment_ay number,
    fte_ay number
)

CREATE TABLE degrees (
    year number,
    campus number,
    degrees number
)

CREATE TABLE faculty (
    campus number,
    year number,
    faculty number
)

CREATE TABLE campuses (
    id number,
    campus text,
    location text,
    county text,
    year number
)

Question: How many faculty members did the university that conferred the most degrees in 2002 have?

SQL:
SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1
Schema:
CREATE TABLE table_203_190 (
    id number,
    "name" text,
    "type" text,
    "circle" text,
    "bench" text,
    "formed" number,
    "notes" text
)

Question: which was the first state to be formed ?

SQL:
SELECT "name" FROM table_203_190 ORDER BY "formed" LIMIT 1
Schema:
CREATE TABLE table_203_600 (
    id number,
    "rank" text,
    "country" text,
    "winners" number,
    "runners-up" number,
    "finals total" number
)

Question: what was the number of winners from spain ?

SQL:
SELECT "winners" FROM table_203_600 WHERE "country" = 'spain'
Schema:
CREATE TABLE microlab (
    microlabid number,
    patientunitstayid number,
    culturesite text,
    organism text,
    culturetakentime time
)

CREATE TABLE intakeoutput (
    intakeoutputid number,
    patientunitstayid number,
    cellpath text,
    celllabel text,
    cellvaluenumeric number,
    intakeoutputtime time
)

CREATE TABLE medication (
    medicationid number,
    patientunitstayid number,
    drugname text,
    dosage text,
    routeadmin text,
    drugstarttime time,
    drugstoptime time
)

CREATE TABLE vitalperiodic (
    vitalperiodicid number,
    patientunitstayid number,
    temperature number,
    sao2 number,
    heartrate number,
    respiration number,
    systemicsystolic number,
    systemicdiastolic number,
    systemicmean number,
    observationtime time
)

CREATE TABLE allergy (
    allergyid number,
    patientunitstayid number,
    drugname text,
    allergyname text,
    allergytime time
)

CREATE TABLE cost (
    costid number,
    uniquepid text,
    patienthealthsystemstayid number,
    eventtype text,
    eventid number,
    chargetime time,
    cost number
)

CREATE TABLE diagnosis (
    diagnosisid number,
    patientunitstayid number,
    diagnosisname text,
    diagnosistime time,
    icd9code text
)

CREATE TABLE lab (
    labid number,
    patientunitstayid number,
    labname text,
    labresult number,
    labresulttime time
)

CREATE TABLE patient (
    uniquepid text,
    patienthealthsystemstayid number,
    patientunitstayid number,
    gender text,
    age text,
    ethnicity text,
    hospitalid number,
    wardid number,
    admissionheight number,
    admissionweight number,
    dischargeweight number,
    hospitaladmittime time,
    hospitaladmitsource text,
    unitadmittime time,
    unitdischargetime time,
    hospitaldischargetime time,
    hospitaldischargestatus text
)

CREATE TABLE treatment (
    treatmentid number,
    patientunitstayid number,
    treatmentname text,
    treatmenttime time
)

Question: how many patients were diagnosed as having transaminase elevation within 2 months after being diagnosed with hypoglycemia?

SQL:
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'transaminase elevation') AS t1 JOIN (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypoglycemia') AS t2 WHERE t1.diagnosistime < t2.diagnosistime AND DATETIME(t2.diagnosistime) BETWEEN DATETIME(t1.diagnosistime) AND DATETIME(t1.diagnosistime, '+2 month')
Schema:
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
)

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 prescriptions (
    subject_id text,
    hadm_id text,
    icustay_id text,
    drug_type text,
    drug text,
    formulary_drug_cd text,
    route text,
    drug_dose text
)

Question: Calculate the total number of patients admitted before the year 2174

SQL:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admityear < "2174"
Schema:
CREATE TABLE table_14101 (
    "Engine" text,
    "Displacement" text,
    "Years" text,
    "Usage" text,
    "Power" text
)

Question: What is the for the f136fb engine?

SQL:
SELECT "Usage" FROM table_14101 WHERE "Engine" = 'f136fb'
Schema:
CREATE TABLE table_23537091_1 (
    copper_age VARCHAR,
    ubaid_period_in_mesopotamia VARCHAR
)

Question: When middle assyrian empire is the ubaid period in mesopotamia what is the copper age?

SQL:
SELECT copper_age FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Middle Assyrian Empire"
Schema:
CREATE TABLE table_40250 (
    "Position" real,
    "Team" text,
    "Points" real,
    "Played" real,
    "Drawn" real,
    "Lost" real,
    "Against" real,
    "Difference" text
)

Question: How many Against have a Team of hespanha, and Points smaller than 30?

SQL:
SELECT COUNT("Against") FROM table_40250 WHERE "Team" = 'hespanha' AND "Points" < '30'
Schema:
CREATE TABLE table_73087 (
    "World Rank" real,
    "Company" text,
    "Industry" text,
    "Revenue (billion $)" text,
    "Profits (billion $)" text,
    "Assets (billion $)" text,
    "Market Value (billion $)" text
)

Question: Name the market value for rhb capital

SQL:
SELECT "Market Value (billion $)" FROM table_73087 WHERE "Company" = 'RHB Capital'
Schema:
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 countries (
    COUNTRY_ID varchar(2),
    COUNTRY_NAME varchar(40),
    REGION_ID decimal(10,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 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 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)
)

Question: For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by time, could you list total number of employee id in ascending order?

SQL:
SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(EMPLOYEE_ID)
Schema:
CREATE TABLE table_name_10 (
    replaced_by VARCHAR,
    team VARCHAR
)

Question: who is the replacement when the team is milton keynes dons?

SQL:
SELECT replaced_by FROM table_name_10 WHERE team = "milton keynes dons"
Schema:
CREATE TABLE table_name_51 (
    name VARCHAR,
    authors VARCHAR
)

Question: What is Name, when Authors are Kammerer & Sidor?

SQL:
SELECT name FROM table_name_51 WHERE authors = "kammerer & sidor"
Schema:
CREATE TABLE table_26368963_2 (
    under_17 VARCHAR,
    under_15 VARCHAR
)

Question: What is every value for Under-17 if Under-15 is Maria Elena Ubina?

SQL:
SELECT under_17 FROM table_26368963_2 WHERE under_15 = "Maria Elena Ubina"
Schema:
CREATE TABLE table_15444 (
    "Name" text,
    "Years" text,
    "League" text,
    "FA Cup" text,
    "League Cup" text,
    "Europe" text,
    "Other [C ]" text,
    "Total" text
)

Question: What league has a value of 0 29 (152) for Europe?

SQL:
SELECT "League" FROM table_15444 WHERE "Europe" = '0 29 (152)'
Schema:
CREATE TABLE table_13261 (
    "Rank" real,
    "Player" text,
    "County" text,
    "Tally" text,
    "Total" real,
    "Opposition" text
)

Question: Which Tally has a County of limerick, and a Rank larger than 1?

SQL:
SELECT "Tally" FROM table_13261 WHERE "County" = 'limerick' AND "Rank" > '1'
Schema:
CREATE TABLE paperdataset (
    paperid int,
    datasetid int
)

CREATE TABLE keyphrase (
    keyphraseid int,
    keyphrasename varchar
)

CREATE TABLE cite (
    citingpaperid int,
    citedpaperid int
)

CREATE TABLE field (
    fieldid int
)

CREATE TABLE writes (
    paperid int,
    authorid int
)

CREATE TABLE paper (
    paperid int,
    title varchar,
    venueid int,
    year int,
    numciting int,
    numcitedby int,
    journalid int
)

CREATE TABLE journal (
    journalid int,
    journalname varchar
)

CREATE TABLE author (
    authorid int,
    authorname varchar
)

CREATE TABLE dataset (
    datasetid int,
    datasetname varchar
)

CREATE TABLE venue (
    venueid int,
    venuename varchar
)

CREATE TABLE paperkeyphrase (
    paperid int,
    keyphraseid int
)

CREATE TABLE paperfield (
    fieldid int,
    paperid int
)

Question: papers written by authors Richard Ladner and Linda Shapiro

SQL:
SELECT DISTINCT WRITES_0.paperid FROM author AS AUTHOR_0, author AS AUTHOR_1, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_0.authorname = 'Richard Ladner' AND AUTHOR_1.authorname = 'Linda Shapiro' AND WRITES_0.authorid = AUTHOR_0.authorid AND WRITES_1.authorid = AUTHOR_1.authorid AND WRITES_1.paperid = WRITES_0.paperid
Schema:
CREATE TABLE table_name_19 (
    comp INTEGER,
    rating VARCHAR,
    yds_game VARCHAR,
    name VARCHAR
)

Question: Name the highest Comp which has a Yds/game larger than 0, bostick, and a Rating smaller than 91.77?

SQL:
SELECT MAX(comp) FROM table_name_19 WHERE yds_game > 0 AND name = "bostick" AND rating < 91.77
Schema:
CREATE TABLE table_79591 (
    "Location" text,
    "Name of mill" text,
    "Type" text,
    "Built" real,
    "Notes" text
)

Question: What is year Built of the Moulin de Momalle Mill?

SQL:
SELECT MAX("Built") FROM table_79591 WHERE "Name of mill" = 'moulin de momalle'
Schema:
CREATE TABLE table_25220821_3 (
    rider VARCHAR,
    thurs_3_june VARCHAR
)

Question: If Thursday 3 June is 20' 27.93 110.615mph, what are the names of the riders?

SQL:
SELECT rider FROM table_25220821_3 WHERE thurs_3_june = "20' 27.93 110.615mph"
Schema:
CREATE TABLE table_name_48 (
    subframe__number INTEGER,
    bits VARCHAR
)

Question: What is the total subframe count with Bits of 18 22?

SQL:
SELECT SUM(subframe__number) FROM table_name_48 WHERE bits = "18–22"
Schema:
CREATE TABLE table_name_15 (
    capacity VARCHAR,
    opened VARCHAR
)

Question: What is the total capacity of venues that opened in 1999?

SQL:
SELECT COUNT(capacity) FROM table_name_15 WHERE opened = "1999"
Schema:
CREATE TABLE table_name_77 (
    date VARCHAR,
    week VARCHAR
)

Question: What date is week 3?

SQL:
SELECT date FROM table_name_77 WHERE week = 3
Schema:
CREATE TABLE table_2367847_2 (
    middle_schools INTEGER,
    year VARCHAR
)

Question: Name the most middle schools for 2005-2006

SQL:
SELECT MAX(middle_schools) FROM table_2367847_2 WHERE year = "2005-2006"
Schema:
CREATE TABLE table_13258851_2 (
    record VARCHAR,
    game_site VARCHAR
)

Question: What was the record set during the game played at Hubert H. Humphrey Metrodome?

SQL:
SELECT record FROM table_13258851_2 WHERE game_site = "Hubert H. Humphrey Metrodome"
Schema:
CREATE TABLE table_204_215 (
    id number,
    "airline" text,
    "destination(s)" text,
    "aircraft scheduled" text,
    "service date(s)" text,
    "comments" text
)

Question: does air florida have more or less than four aircrafts scheduled ?

SQL:
SELECT (SELECT "aircraft scheduled" FROM table_204_215 WHERE "airline" = 'air florida') > 4
Schema:
CREATE TABLE table_name_71 (
    year_left INTEGER,
    location VARCHAR
)

Question: What year did Culver leave?

SQL:
SELECT SUM(year_left) FROM table_name_71 WHERE location = "culver"
Schema:
CREATE TABLE cost (
    costid number,
    uniquepid text,
    patienthealthsystemstayid number,
    eventtype text,
    eventid number,
    chargetime time,
    cost number
)

CREATE TABLE microlab (
    microlabid number,
    patientunitstayid number,
    culturesite text,
    organism text,
    culturetakentime time
)

CREATE TABLE diagnosis (
    diagnosisid number,
    patientunitstayid number,
    diagnosisname text,
    diagnosistime time,
    icd9code text
)

CREATE TABLE allergy (
    allergyid number,
    patientunitstayid number,
    drugname text,
    allergyname text,
    allergytime time
)

CREATE TABLE treatment (
    treatmentid number,
    patientunitstayid number,
    treatmentname text,
    treatmenttime time
)

CREATE TABLE lab (
    labid number,
    patientunitstayid number,
    labname text,
    labresult number,
    labresulttime time
)

CREATE TABLE vitalperiodic (
    vitalperiodicid number,
    patientunitstayid number,
    temperature number,
    sao2 number,
    heartrate number,
    respiration number,
    systemicsystolic number,
    systemicdiastolic number,
    systemicmean number,
    observationtime time
)

CREATE TABLE intakeoutput (
    intakeoutputid number,
    patientunitstayid number,
    cellpath text,
    celllabel text,
    cellvaluenumeric number,
    intakeoutputtime time
)

CREATE TABLE medication (
    medicationid number,
    patientunitstayid number,
    drugname text,
    dosage text,
    routeadmin text,
    drugstarttime time,
    drugstoptime time
)

CREATE TABLE patient (
    uniquepid text,
    patienthealthsystemstayid number,
    patientunitstayid number,
    gender text,
    age text,
    ethnicity text,
    hospitalid number,
    wardid number,
    admissionheight number,
    admissionweight number,
    dischargeweight number,
    hospitaladmittime time,
    hospitaladmitsource text,
    unitadmittime time,
    unitdischargetime time,
    hospitaldischargetime time,
    hospitaldischargestatus text
)

Question: how much does it cost for dexamethasone 4 mg po tabs?

SQL:
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'dexamethasone 4 mg po tabs')
Schema:
CREATE TABLE table_21081 (
    "Name" text,
    "Latitude" text,
    "Longitude" text,
    "Diameter (km)" text,
    "Year named" real,
    "Name origin" text
)

Question: What is the highest year named for the name Tie Fluctus?

SQL:
SELECT MAX("Year named") FROM table_21081 WHERE "Name" = 'Tie Fluctus'
Schema:
CREATE TABLE table_name_20 (
    country VARCHAR,
    player VARCHAR,
    score VARCHAR
)

Question: What is Country, when Score is '69-69=138', and when Player is 'Ian Poulter'?

SQL:
SELECT country FROM table_name_20 WHERE score = 69 - 69 = 138 AND player = "ian poulter"
Schema:
CREATE TABLE table_name_44 (
    rider VARCHAR,
    team VARCHAR
)

Question: Which rider was on the 600cc Yamaha team?

SQL:
SELECT rider FROM table_name_44 WHERE team = "600cc yamaha"
Schema:
CREATE TABLE table_name_24 (
    tournament VARCHAR,
    date VARCHAR
)

Question: Name the tournament for march 25, 2012

SQL:
SELECT tournament FROM table_name_24 WHERE date = "march 25, 2012"
Schema:
CREATE TABLE table_204_154 (
    id number,
    "player" text,
    "matches" number,
    "innings" number,
    "runs" number,
    "average" number,
    "100s" number,
    "50s" number
)

Question: what were the number of innings albert clapp had ?

SQL:
SELECT "innings" FROM table_204_154 WHERE "player" = 'albert clapp'
Schema:
CREATE TABLE flight (
    flno number(4,0),
    origin varchar2(20),
    destination varchar2(20),
    distance number(6,0),
    departure_date date,
    arrival_date date,
    price number(7,2),
    aid number(9,0)
)

CREATE TABLE aircraft (
    aid number(9,0),
    name varchar2(30),
    distance number(6,0)
)

CREATE TABLE certificate (
    eid number(9,0),
    aid number(9,0)
)

CREATE TABLE employee (
    eid number(9,0),
    name varchar2(30),
    salary number(10,2)
)

Question: Show aircraft names and number of flights for each aircraft.

SQL:
SELECT name, COUNT(*) FROM flight AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid
Schema:
CREATE TABLE table_27733909_1 (
    record VARCHAR,
    date VARCHAR
)

Question: what is the overall number of times when the calendar showed october 6

SQL:
SELECT COUNT(record) FROM table_27733909_1 WHERE date = "October 6"
Schema:
CREATE TABLE table_22025 (
    "Club" text,
    "Played" text,
    "Won" text,
    "Drawn" text,
    "Lost" text,
    "Points for" text,
    "Points against" text,
    "Tries for" text,
    "Tries against" text,
    "Try bonus" text,
    "Losing bonus" text,
    "Points" text
)

Question: Name the tries against when tries for is 30

SQL:
SELECT "Tries against" FROM table_22025 WHERE "Tries for" = '30'
Schema:
CREATE TABLE table_49926 (
    "Round" real,
    "Player" text,
    "Position" text,
    "Nationality" text,
    "College/Junior/Club Team (League)" text
)

Question: WHAT IS THE ROUND FOR ZACH BOYCHUK?

SQL:
SELECT COUNT("Round") FROM table_49926 WHERE "Player" = 'zach boychuk'
Schema:
CREATE TABLE table_name_26 (
    attendance INTEGER,
    week VARCHAR
)

Question: How many people attended the game on week 3?

SQL:
SELECT AVG(attendance) FROM table_name_26 WHERE week = 3
Schema:
CREATE TABLE festival_detail (
    festival_id number,
    festival_name text,
    chair_name text,
    location text,
    year number,
    num_of_audience number
)

CREATE TABLE nomination (
    artwork_id number,
    festival_id number,
    result text
)

CREATE TABLE artwork (
    artwork_id number,
    type text,
    name text
)

Question: Please show different types of artworks with the corresponding number of artworks of each type.

SQL:
SELECT type, COUNT(*) FROM artwork GROUP BY type
Schema:
CREATE TABLE table_204_734 (
    id number,
    "first name" text,
    "surname" text,
    "death year" number,
    "beginning of\nservice" text,
    "end of\nservice" text,
    "notes" text
)

Question: what is the total number of priests that have held the job in resita ?

SQL:
SELECT COUNT("first name") FROM table_204_734
Schema:
CREATE TABLE table_46045 (
    "Player" text,
    "Nationality" text,
    "Position" text,
    "Years for Grizzlies" text,
    "School/Club Team" text
)

Question: Which school was Lawrence Roberts from ?

SQL:
SELECT "School/Club Team" FROM table_46045 WHERE "Player" = 'lawrence roberts'
Schema:
CREATE TABLE table_name_35 (
    silver VARCHAR,
    gold VARCHAR,
    bronze VARCHAR
)

Question: What is the total number of Silver, when Gold is '1', and when Bronze is less than 0?

SQL:
SELECT COUNT(silver) FROM table_name_35 WHERE gold = 1 AND bronze < 0
Schema:
CREATE TABLE table_2731431_1 (
    col_location VARCHAR,
    col_height__m_ VARCHAR
)

Question: What is the col location with a col height (m) of 1107?

SQL:
SELECT col_location FROM table_2731431_1 WHERE col_height__m_ = 1107
Schema:
CREATE TABLE table_name_22 (
    venue VARCHAR,
    date VARCHAR,
    status VARCHAR,
    against VARCHAR
)

Question: What is Venue, when Status is '2007 Rugby World Cup', when Against is less than 22, and when Date is '08/09/2007'?

SQL:
SELECT venue FROM table_name_22 WHERE status = "2007 rugby world cup" AND against < 22 AND date = "08/09/2007"
Schema:
CREATE TABLE table_4661 (
    "Date" text,
    "Result" text,
    "Score" text,
    "Stadium" text,
    "City" text,
    "Crowd" real
)

Question: What was the result of the match in Penrith that featured a score of 48-12?

SQL:
SELECT "Result" FROM table_4661 WHERE "Score" = '48-12' AND "City" = 'penrith'