VishalCh/book-train huggingface dataset:
Schema:
CREATE TABLE table_name_74 (
    net_capacity VARCHAR,
    gross_capacity VARCHAR,
    unit VARCHAR
)

Question: What was the net capacity with a gross capacity of 1,126 mw, and a Unit of tianwan-4?

SQL:
SELECT net_capacity FROM table_name_74 WHERE gross_capacity = "1,126 mw" AND unit = "tianwan-4"
Schema:
CREATE TABLE table_5084 (
    "7:00" text,
    "7:30" text,
    "8:00" text,
    "8:30" text,
    "9:00" text,
    "10:00" text,
    "10:30" text
)

Question: Name the 10:30 for 8:00 of charmed

SQL:
SELECT "10:30" FROM table_5084 WHERE "8:00" = 'charmed'
Schema:
CREATE TABLE table_204_655 (
    id number,
    "year" number,
    "winner" text,
    "album" text,
    "other finalists" text
)

Question: what was the last winner 's album name ?

SQL:
SELECT "album" FROM table_204_655 ORDER BY "year" DESC LIMIT 1
Schema:
CREATE TABLE table_80452 (
    "Rank" real,
    "Nation" text,
    "Gold" real,
    "Silver" real,
    "Bronze" real,
    "Total" real
)

Question: How many Silver medals were won in total by all those with more than 3 bronze and exactly 16 gold?

SQL:
SELECT SUM("Silver") FROM table_80452 WHERE "Bronze" > '3' AND "Gold" = '16'
Schema:
CREATE TABLE table_21021 (
    "Model number" text,
    "sSpec number" text,
    "Frequency" text,
    "GPU frequency" text,
    "L2 cache" text,
    "I/O bus" text,
    "Memory" text,
    "Voltage" text,
    "TDP" text,
    "Socket" text,
    "Release date" text,
    "Part number(s)" text,
    "Release price ( USD )" text
)

Question: Name the memory for frequency of 1.6 ghz

SQL:
SELECT "Memory" FROM table_21021 WHERE "Frequency" = '1.6 GHz'
Schema:
CREATE TABLE table_name_86 (
    competition VARCHAR,
    season VARCHAR,
    opponent VARCHAR
)

Question: What is the Competition for Season 2002 03, and the Opponent was zenit st. petersburg?

SQL:
SELECT competition FROM table_name_86 WHERE season = "2002–03" AND opponent = "zenit st. petersburg"
Schema:
CREATE TABLE table_name_75 (
    name VARCHAR,
    apparent_magnitude VARCHAR,
    ra___j2000__ VARCHAR
)

Question: Which Name has Apparent Magnitude smaller than 11.4, and R.A. (J2000) of 04h17m35.8s?

SQL:
SELECT name FROM table_name_75 WHERE apparent_magnitude < 11.4 AND ra___j2000__ = "04h17m35.8s"
Schema:
CREATE TABLE table_name_19 (
    area__km²_ INTEGER,
    density___km²_ VARCHAR,
    official_website VARCHAR
)

Question: What is the sum of the area values for districts having density over 462 and websites of http://krishna.nic.in/?

SQL:
SELECT SUM(area__km²_) FROM table_name_19 WHERE density___km²_ > 462 AND official_website = "http://krishna.nic.in/"
Schema:
CREATE TABLE table_name_17 (
    wins INTEGER,
    ties VARCHAR,
    win__percentage VARCHAR,
    name VARCHAR
)

Question: Which Wins have a Win % smaller than 0.8270000000000001, and a Name of rick mirer, and Ties smaller than 1?

SQL:
SELECT SUM(wins) FROM table_name_17 WHERE win__percentage < 0.8270000000000001 AND name = "rick mirer" AND ties < 1
Schema:
CREATE TABLE table_55784 (
    "Ordinary income rate" text,
    "Long-term capital gain rate" text,
    "Short-term capital gain rate" text,
    "Long-term gain on commercial buildings*" text,
    "Long-term gain on collectibles" text
)

Question: What is the long-term capital gain rate when the long-term gain on commercial buildings is 25% and long term gain on collectibles is 28% while short-term capital gain rate is 33%?

SQL:
SELECT "Long-term capital gain rate" FROM table_55784 WHERE "Long-term gain on commercial buildings*" = '25%' AND "Long-term gain on collectibles" = '28%' AND "Short-term capital gain rate" = '33%'
Schema:
CREATE TABLE table_20200 (
    "Player" text,
    "No." real,
    "Nationality" text,
    "Position" text,
    "Years in Orlando" text,
    "School/Club Team" text
)

Question: What is the number of the player who attended Delta State?

SQL:
SELECT MAX("No.") FROM table_20200 WHERE "School/Club Team" = 'Delta State'
Schema:
CREATE TABLE table_48568 (
    "Place" text,
    "Player" text,
    "Country" text,
    "Score" text,
    "To par" text,
    "Money ( $ )" real
)

Question: What is the to par of the player with more than $4,100 and a score of 69-67-72-70=278?

SQL:
SELECT "To par" FROM table_48568 WHERE "Money ( $ )" > '4,100' AND "Score" = '69-67-72-70=278'
Schema:
CREATE TABLE employee (
    eid number(9,0),
    name varchar2(30),
    salary number(10,2)
)

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 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)
)

Question: Show name and distance for all aircrafts by a bar chart, list by the y axis in ascending please.

SQL:
SELECT name, distance FROM aircraft ORDER BY distance
Schema:
CREATE TABLE table_21530474_1 (
    region_s_ VARCHAR,
    chassis_code VARCHAR
)

Question: Name the regions for usf45

SQL:
SELECT region_s_ FROM table_21530474_1 WHERE chassis_code = "USF45"
Schema:
CREATE TABLE table_name_18 (
    laps VARCHAR,
    driver VARCHAR,
    grid VARCHAR
)

Question: How many laps for robin montgomerie-charrington, and a Grid smaller than 15?

SQL:
SELECT COUNT(laps) FROM table_name_18 WHERE driver = "robin montgomerie-charrington" AND grid < 15
Schema:
CREATE TABLE table_name_17 (
    driver VARCHAR,
    engine VARCHAR,
    chassis VARCHAR
)

Question: who is the driver with the engine era 1.5 l6 s and the chassis is era b?

SQL:
SELECT driver FROM table_name_17 WHERE engine = "era 1.5 l6 s" AND chassis = "era b"
Schema:
CREATE TABLE table_name_8 (
    crowd INTEGER,
    home_team VARCHAR
)

Question: What is the average crowd size for games with hawthorn as the home side?

SQL:
SELECT AVG(crowd) FROM table_name_8 WHERE home_team = "hawthorn"
Schema:
CREATE TABLE table_43573 (
    "Result" text,
    "TUF Competitor" text,
    "Opponent" text,
    "Method" text,
    "Event" text,
    "Date" text
)

Question: who is the opponent when the method is tko (punches) at 4:26 of round 1?

SQL:
SELECT "Opponent" FROM table_43573 WHERE "Method" = 'tko (punches) at 4:26 of round 1'
Schema:
CREATE TABLE table_11271 (
    "Draw" real,
    "Artist" text,
    "Song" text,
    "Points" real,
    "Place" real
)

Question: What's the sum of draw for artist hari mata hari with less than 70 points?

SQL:
SELECT SUM("Draw") FROM table_11271 WHERE "Artist" = 'hari mata hari' AND "Points" < '70'
Schema:
CREATE TABLE church (
    Church_ID int,
    Name text,
    Organized_by text,
    Open_Date int,
    Continuation_of text
)

CREATE TABLE wedding (
    Church_ID int,
    Male_ID int,
    Female_ID int,
    Year int
)

CREATE TABLE people (
    People_ID int,
    Name text,
    Country text,
    Is_Male text,
    Age int
)

Question: A bar chart about the name and age for all male people who don't have a wedding, could you display by the x axis in ascending?

SQL:
SELECT Name, Age FROM people WHERE Is_Male = 'T' AND NOT People_ID IN (SELECT Male_ID FROM wedding) ORDER BY Name
Schema:
CREATE TABLE table_15226 (
    "Pick" real,
    "Player" text,
    "Team" text,
    "Position" text,
    "School" text
)

Question: What number pick was the player for the Oakland Athletics who plays the 1B position?

SQL:
SELECT "Pick" FROM table_15226 WHERE "Position" = '1b' AND "Team" = 'oakland athletics'
Schema:
CREATE TABLE table_50265 (
    "Game" real,
    "Date" text,
    "Team" text,
    "Score" text,
    "High points" text,
    "High rebounds" text,
    "High assists" text,
    "Location Attendance" text,
    "Record" text
)

Question: What was the high amount of assists before game 60?

SQL:
SELECT "High assists" FROM table_50265 WHERE "Game" < '60'
Schema:
CREATE TABLE table_58443 (
    "Date of Issue" text,
    "Denomination" text,
    "Design" text,
    "Paper Type" text,
    "First Day Cover Cancellation" text
)

Question: What stamp design has a denomination of $1.18?

SQL:
SELECT "Design" FROM table_58443 WHERE "Denomination" = '$1.18'
Schema:
CREATE TABLE journalist (
    journalist_id number,
    name text,
    nationality text,
    age text,
    years_working number
)

CREATE TABLE event (
    event_id number,
    date text,
    venue text,
    name text,
    event_attendance number
)

CREATE TABLE news_report (
    journalist_id number,
    event_id number,
    work_type text
)

Question: What are the nationalities and ages of journalists?

SQL:
SELECT nationality, age FROM journalist
Schema:
CREATE TABLE table_34003 (
    "Rank" text,
    "Runs" text,
    "Player" text,
    "Opponent" text,
    "Venue" text,
    "Season" text
)

Question: Where did Jack Badcock play?

SQL:
SELECT "Venue" FROM table_34003 WHERE "Player" = 'jack badcock'
Schema:
CREATE TABLE table_17100 (
    "Year" text,
    "Player" text,
    "School" text,
    "Hometown" text,
    "College" text,
    "NBA Draft" text
)

Question: what is the player who's college is listed as direct to nba, school is st. vincent st. mary high school and the year is 2001-2002?

SQL:
SELECT "Player" FROM table_17100 WHERE "College" = 'Direct to NBA' AND "School" = 'St. Vincent – St. Mary High School' AND "Year" = '2001-2002'
Schema:
CREATE TABLE table_name_13 (
    laps INTEGER,
    class VARCHAR,
    entrant VARCHAR
)

Question: What was the highest amount of laps when the class was v8 and the entrant was diet-coke racing?

SQL:
SELECT MAX(laps) FROM table_name_13 WHERE class = "v8" AND entrant = "diet-coke racing"
Schema:
CREATE TABLE table_27277284_28 (
    order_part_number VARCHAR,
    mult_1 VARCHAR
)

Question: What is the oder part number for the model with 10x mult. 1?

SQL:
SELECT order_part_number FROM table_27277284_28 WHERE mult_1 = "10x"
Schema:
CREATE TABLE table_57262 (
    "Home team" text,
    "Home team score" text,
    "Away team" text,
    "Away team score" text,
    "Venue" text,
    "Crowd" real,
    "Date" text
)

Question: What is the score of the home team that played at brunswick street oval with a crowd larger than 12,000?

SQL:
SELECT "Home team score" FROM table_57262 WHERE "Crowd" > '12,000' AND "Venue" = 'brunswick street oval'
Schema:
CREATE TABLE table_46736 (
    "Letter" text,
    "IPv6 address" text,
    "AS-number" text,
    "Operator" text,
    "Location #sites (global/local)" text,
    "Software" text
)

Question: What is the location for the software of BIND and an IPv6 address of 2001:503:c27::2:30?

SQL:
SELECT "Location #sites (global/local)" FROM table_46736 WHERE "Software" = 'bind' AND "IPv6 address" = '2001:503:c27::2:30'
Schema:
CREATE TABLE table_name_98 (
    grid VARCHAR,
    time_retired VARCHAR,
    laps VARCHAR
)

Question: How many grids have a Time/Retired of gearbox, and Laps smaller than 3?

SQL:
SELECT COUNT(grid) FROM table_name_98 WHERE time_retired = "gearbox" AND laps < 3
Schema:
CREATE TABLE table_15555 (
    "Year" real,
    "Award" text,
    "Category" text,
    "Recipient(s)" text,
    "Result" text
)

Question: What is Joe Jonas' result at the Kids' Choice Awards Mexico?

SQL:
SELECT "Result" FROM table_15555 WHERE "Recipient(s)" = 'joe jonas' AND "Award" = 'kids'' choice awards mexico'
Schema:
CREATE TABLE table_191105_4 (
    first_aired VARCHAR,
    performed_by VARCHAR
)

Question: What is the date for the episode performed by Sue Manchester?

SQL:
SELECT first_aired FROM table_191105_4 WHERE performed_by = "Sue Manchester"
Schema:
CREATE TABLE table_11829 (
    "State" text,
    "Preliminaries" real,
    "Interview" real,
    "Swimsuit" real,
    "Evening Gown" real,
    "Average" real
)

Question: What is the evening gown score of the contestant from the District of Columbia with preliminaries smaller than 8.647?

SQL:
SELECT COUNT("Evening Gown") FROM table_11829 WHERE "Preliminaries" < '8.647' AND "State" = 'district of columbia'
Schema:
CREATE TABLE table_25367 (
    "Game" real,
    "Date" text,
    "Team" text,
    "Score" text,
    "High points" text,
    "High rebounds" text,
    "High assists" text,
    "Location Attendance" text,
    "Record" text
)

Question: List the location and number of fans in attendance for game 7/

SQL:
SELECT COUNT("Location Attendance") FROM table_25367 WHERE "Game" = '7'
Schema:
CREATE TABLE journalist (
    Nationality VARCHAR
)

Question: Show the most common nationality for journalists.

SQL:
SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Schema:
CREATE TABLE table_8815 (
    "Place" text,
    "Player" text,
    "Country" text,
    "Score" text,
    "To par" text
)

Question: What Country scored 72-65-73=210?

SQL:
SELECT "Country" FROM table_8815 WHERE "Score" = '72-65-73=210'
Schema:
CREATE TABLE table_48615 (
    "Week" real,
    "Date" text,
    "Opponent" text,
    "Result" text,
    "Attendance" text
)

Question: What was the Result of the game after Week 9 with an Attendance of 69,714?

SQL:
SELECT "Result" FROM table_48615 WHERE "Week" > '9' AND "Attendance" = '69,714'
Schema:
CREATE TABLE table_15675 (
    "Artist" text,
    "Country of origin" text,
    "Period active" text,
    "Release-year of first charted record" real,
    "Genre" text,
    "Claimed sales" text
)

Question: What was the genre of Queen (an artist from the United Kingdom)?

SQL:
SELECT "Genre" FROM table_15675 WHERE "Country of origin" = 'united kingdom' AND "Artist" = 'queen'
Schema:
CREATE TABLE table_203_683 (
    id number,
    "season" text,
    "league" text,
    "gold" text,
    "silver" text,
    "bronze" text,
    "winning manager" text
)

Question: previous to the tippeligaen , what was the league called ?

SQL:
SELECT "league" FROM table_203_683 WHERE "season" < (SELECT "season" FROM table_203_683 WHERE "league" = 'tippeligaen') ORDER BY "season" DESC LIMIT 1
Schema:
CREATE TABLE table_32927 (
    "Week" real,
    "Date" text,
    "Opponent" text,
    "Result" text,
    "Attendance" real
)

Question: What was the attendance during the week 1 match?

SQL:
SELECT "Attendance" FROM table_32927 WHERE "Week" = '1'
Schema:
CREATE TABLE Courses (
    course_id INTEGER,
    author_id INTEGER,
    subject_id INTEGER,
    course_name VARCHAR(120),
    course_description VARCHAR(255)
)

CREATE TABLE Students (
    student_id INTEGER,
    date_of_registration DATETIME,
    date_of_latest_logon DATETIME,
    login_name VARCHAR(40),
    password VARCHAR(10),
    personal_name VARCHAR(40),
    middle_name VARCHAR(40),
    family_name VARCHAR(40)
)

CREATE TABLE Student_Tests_Taken (
    registration_id INTEGER,
    date_test_taken DATETIME,
    test_result VARCHAR(255)
)

CREATE TABLE Subjects (
    subject_id INTEGER,
    subject_name VARCHAR(120)
)

CREATE TABLE Student_Course_Enrolment (
    registration_id INTEGER,
    student_id INTEGER,
    course_id INTEGER,
    date_of_enrolment DATETIME,
    date_of_completion DATETIME
)

CREATE TABLE Course_Authors_and_Tutors (
    author_id INTEGER,
    author_tutor_ATB VARCHAR(3),
    login_name VARCHAR(40),
    password VARCHAR(40),
    personal_name VARCHAR(80),
    middle_name VARCHAR(80),
    family_name VARCHAR(80),
    gender_mf VARCHAR(1),
    address_line_1 VARCHAR(80)
)

Question: A bar chart shows the distribution of personal_name and gender_mf .

SQL:
SELECT personal_name, gender_mf FROM Course_Authors_and_Tutors ORDER BY personal_name
Schema:
CREATE TABLE table_18018214_3 (
    wins INTEGER
)

Question: What was the highest number of wins for any team?

SQL:
SELECT MAX(wins) FROM table_18018214_3
Schema:
CREATE TABLE table_14723382_1 (
    division INTEGER
)

Question: What is the largest numbered?

SQL:
SELECT MAX(division) FROM table_14723382_1
Schema:
CREATE TABLE table_name_46 (
    laps INTEGER,
    year VARCHAR
)

Question: How many Laps were there in 2010?

SQL:
SELECT SUM(laps) FROM table_name_46 WHERE year = 2010
Schema:
CREATE TABLE table_name_54 (
    husband_dates VARCHAR,
    date_married VARCHAR
)

Question: Who was the husband date that was married in 1858?

SQL:
SELECT husband_dates FROM table_name_54 WHERE date_married = "1858"
Schema:
CREATE TABLE table_65892 (
    "Name" text,
    "Position" text,
    "League Apps" text,
    "League Goals" real,
    "FA Cup Apps" text,
    "FA Cup Goals" real,
    "League Cup Apps" real,
    "League Cup Goals" real,
    "Total Apps" text,
    "Total Goals" real
)

Question: Which FA Cup Goals have League Cup Apps larger than 0, and a Name of trevor cherry?

SQL:
SELECT MAX("FA Cup Goals") FROM table_65892 WHERE "League Cup Apps" > '0' AND "Name" = 'trevor cherry'
Schema:
CREATE TABLE table_48102 (
    "Class" text,
    "Team" text,
    "Driver" text,
    "Chassis \u2013 Engine" text,
    "Laps" real
)

Question: What is the class of team liqui moly equipe, which has less than 71 laps?

SQL:
SELECT "Class" FROM table_48102 WHERE "Laps" < '71' AND "Team" = 'liqui moly equipe'
Schema:
CREATE TABLE table_23060 (
    "Team" text,
    "Division Titles" real,
    "Playoff Berths" real,
    "AFL Titles" real,
    "AFC Championships" real,
    "Super Bowl Championships" real
)

Question: If the playoff berth is 17, what is the AFC championship number?

SQL:
SELECT "AFC Championships" FROM table_23060 WHERE "Playoff Berths" = '17'
Schema:
CREATE TABLE table_11254821_2 (
    finishing_position VARCHAR,
    points_awarded__platinum_ VARCHAR
)

Question: What was the range of finishing position for 15 awarded platinum points?

SQL:
SELECT finishing_position FROM table_11254821_2 WHERE points_awarded__platinum_ = 15
Schema:
CREATE TABLE table_70615 (
    "Week" real,
    "Date" text,
    "Opponent" text,
    "Result" text,
    "Attendance" real
)

Question: What is the attendance number for December 2, 1979?

SQL:
SELECT SUM("Attendance") FROM table_70615 WHERE "Date" = 'december 2, 1979'
Schema:
CREATE TABLE table_name_54 (
    shuttle_run__sec_ VARCHAR,
    points VARCHAR
)

Question: How many seconds is a shuttle run that give 2 points?

SQL:
SELECT shuttle_run__sec_ FROM table_name_54 WHERE points = 2
Schema:
CREATE TABLE table_name_13 (
    place VARCHAR,
    score VARCHAR
)

Question: In what place is the player with a score of 72-66-75=213?

SQL:
SELECT place FROM table_name_13 WHERE score = 72 - 66 - 75 = 213
Schema:
CREATE TABLE table_38827 (
    "Game" real,
    "Date" text,
    "Team" text,
    "Score" text,
    "High points" text,
    "High rebounds" text,
    "High assists" text,
    "Location Attendance" text,
    "Record" text
)

Question: What is the location attendance of the game with a 27-22 record?

SQL:
SELECT "Location Attendance" FROM table_38827 WHERE "Record" = '27-22'
Schema:
CREATE TABLE table_name_32 (
    assists INTEGER,
    club VARCHAR,
    points VARCHAR
)

Question: What is the amount of assists for richmond kickers and points larger than 24

SQL:
SELECT SUM(assists) FROM table_name_32 WHERE club = "richmond kickers" AND points > 24
Schema:
CREATE TABLE table_name_27 (
    republican VARCHAR,
    green VARCHAR
)

Question: Who was the Republican when the green was Harold Burbank?

SQL:
SELECT republican FROM table_name_27 WHERE green = "harold burbank"
Schema:
CREATE TABLE table_26375 (
    "Province (ashkharh)" text,
    "Armenian name" text,
    "Area (km\u00b2)" real,
    "Number of cantons (gavars)" real,
    "Center" text
)

Question: How big (in km2) is Persarmenia?

SQL:
SELECT "Area (km\u00b2)" FROM table_26375 WHERE "Province (ashkharh)" = 'Persarmenia'
Schema:
CREATE TABLE table_name_55 (
    score VARCHAR,
    date VARCHAR
)

Question: What is the score March 27?

SQL:
SELECT score FROM table_name_55 WHERE date = "march 27"
Schema:
CREATE TABLE table_name_50 (
    points_for VARCHAR,
    club VARCHAR
)

Question: How many pints does the Cambrian Welfare RFC have?

SQL:
SELECT points_for FROM table_name_50 WHERE club = "cambrian welfare rfc"
Schema:
CREATE TABLE table_35105 (
    "Sanskrit \u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d" text,
    "Tamil \u0ba4\u0bae\u0bbf\u0bb4\u0bcd" text,
    "Telugu \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41" text,
    "Kannada \u0c95\u0ca8\u0ccd\u0ca8\u0ca1" text,
    "Malayalam \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02" text,
    "Mongolian" text
)

Question: What kind of Sanskrit has a Kannada of uttara ?

SQL:
SELECT "Sanskrit \u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d" FROM table_35105 WHERE "Kannada \u0c95\u0ca8\u0ccd\u0ca8\u0ca1" = 'uttara ಉತ್ತರಾ'
Schema:
CREATE TABLE table_6115 (
    "Name" text,
    "Birth" text,
    "Marriage" text,
    "Became Queen" text,
    "Ceased to be Queen" text,
    "Death" text,
    "Spouse" text
)

Question: How is the marriage of who became queen on 30 October 1816 husband's accession?

SQL:
SELECT "Marriage" FROM table_6115 WHERE "Became Queen" = '30 october 1816 husband''s accession'
Schema:
CREATE TABLE media_types (
    id number,
    name text
)

CREATE TABLE employees (
    id number,
    last_name text,
    first_name text,
    title text,
    reports_to number,
    birth_date time,
    hire_date time,
    address text,
    city text,
    state text,
    country text,
    postal_code text,
    phone text,
    fax text,
    email text
)

CREATE TABLE invoices (
    id number,
    customer_id number,
    invoice_date time,
    billing_address text,
    billing_city text,
    billing_state text,
    billing_country text,
    billing_postal_code text,
    total number
)

CREATE TABLE genres (
    id number,
    name text
)

CREATE TABLE invoice_lines (
    id number,
    invoice_id number,
    track_id number,
    unit_price number,
    quantity number
)

CREATE TABLE artists (
    id number,
    name text
)

CREATE TABLE sqlite_sequence (
    name text,
    seq text
)

CREATE TABLE tracks (
    id number,
    name text,
    album_id number,
    media_type_id number,
    genre_id number,
    composer text,
    milliseconds number,
    bytes number,
    unit_price number
)

CREATE TABLE customers (
    id number,
    first_name text,
    last_name text,
    company text,
    address text,
    city text,
    state text,
    country text,
    postal_code text,
    phone text,
    fax text,
    email text,
    support_rep_id number
)

CREATE TABLE playlist_tracks (
    playlist_id number,
    track_id number
)

CREATE TABLE playlists (
    id number,
    name text
)

CREATE TABLE albums (
    id number,
    title text,
    artist_id number
)

Question: How many customers live in Prague city?

SQL:
SELECT COUNT(*) FROM customers WHERE city = "Prague"
Schema:
CREATE TABLE table_23730973_5 (
    rating VARCHAR,
    viewers__millions_ VARCHAR
)

Question: What was the rating/share for 18-49 for the episode that had 5.90 million viewers?

SQL:
SELECT rating / SHARE(18 - 49) FROM table_23730973_5 WHERE viewers__millions_ = "5.90"
Schema:
CREATE TABLE captain (
    Captain_ID int,
    Name text,
    Ship_ID int,
    age text,
    Class text,
    Rank text
)

CREATE TABLE Ship (
    Ship_ID int,
    Name text,
    Type text,
    Built_Year real,
    Class text,
    Flag text
)

Question: Return a bar chart on what are the different ship flags, and how many ships have each?, list by the Y-axis in descending.

SQL:
SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY COUNT(*) DESC
Schema:
CREATE TABLE table_44036 (
    "Region" text,
    "Date" text,
    "Label" text,
    "Format" text,
    "Catalog" text
)

Question: Which format has january 21, 2002 as the date?

SQL:
SELECT "Format" FROM table_44036 WHERE "Date" = 'january 21, 2002'
Schema:
CREATE TABLE table_34127 (
    "Name" text,
    "Number of sequences Number of sequences: ." text,
    "Alignment Alignment: predicts an alignment , ." text,
    "Structure Structure: predicts structure , ." text,
    "Link" text
)

Question: What is the link of rnaz that predicts an alignment of input?

SQL:
SELECT "Link" FROM table_34127 WHERE "Alignment Alignment: predicts an alignment , ." = 'input' AND "Name" = 'rnaz'
Schema:
CREATE TABLE table_59962 (
    "Week 1" text,
    "Week 2" text,
    "Week 3" text,
    "Week 4" text,
    "Week 5" text,
    "Week 6" text,
    "Week 7" text,
    "Week 8" text,
    "Week 9" text,
    "Week 10 FINAL" text
)

Question: What kind of Week 4 has a Week 9 of all housemates?

SQL:
SELECT "Week 4" FROM table_59962 WHERE "Week 9" = 'all housemates'