question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the name of the episodes which had 1.22 million U.S. viewers?
CREATE TABLE table_23399481_4 (title VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT title FROM table_23399481_4 WHERE us_viewers__in_millions_ = "1.22"
What was the Attendance at the Game with a Result of w 21–7?
CREATE TABLE table_name_71 (attendance INTEGER, result VARCHAR)
SELECT AVG(attendance) FROM table_name_71 WHERE result = "w 21–7"
What is the total number of successors when the vacator was William North ( F )
CREATE TABLE table_224839_3 (successor VARCHAR, vacator VARCHAR)
SELECT COUNT(successor) FROM table_224839_3 WHERE vacator = "William North ( F )"
who are all the players for st. thomas aquinas high school
CREATE TABLE table_11677691_12 (player VARCHAR, school VARCHAR)
SELECT player FROM table_11677691_12 WHERE school = "St. Thomas Aquinas High school"
What number pick was the player from HIFK Helsinki (Finland)?
CREATE TABLE table_2679061_4 (pick__number VARCHAR, college_junior_club_team VARCHAR)
SELECT pick__number FROM table_2679061_4 WHERE college_junior_club_team = "HIFK Helsinki (Finland)"
What is the percentage of public network in the region that has 0.1% other sources, 0.0% solar, and is named maule?
CREATE TABLE table_25042332_26 (public_network VARCHAR, region VARCHAR, other_source VARCHAR, solar_panel VARCHAR)
SELECT public_network FROM table_25042332_26 WHERE other_source = "0.1%" AND solar_panel = "0.0%" AND region = "Maule"
Who wrote the sorry of the episode directed by Dan Attias?
CREATE TABLE table_13755296_1 (story_by VARCHAR, directed_by VARCHAR)
SELECT story_by FROM table_13755296_1 WHERE directed_by = "Dan Attias"
I want the outgoing manager for craig brewster
CREATE TABLE table_name_40 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT outgoing_manager FROM table_name_40 WHERE replaced_by = "craig brewster"
Who was the opponent on September 17?
CREATE TABLE table_name_41 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_41 WHERE date = "september 17"
What is the home team score for the team that has a home field of the Telstra Dome?
CREATE TABLE table_name_98 (home_team VARCHAR, ground VARCHAR)
SELECT home_team AS score FROM table_name_98 WHERE ground = "telstra dome"
Which Season has Podiums of 0, and Races of 16?
CREATE TABLE table_name_44 (season INTEGER, podiums VARCHAR, races VARCHAR)
SELECT MAX(season) FROM table_name_44 WHERE podiums = "0" AND races = "16"
What is the name of the car manufactured by Letecke Zavody N.P., Jinonice?
CREATE TABLE table_name_11 (automobile_name VARCHAR, manufacturer VARCHAR)
SELECT automobile_name FROM table_name_11 WHERE manufacturer = "letecke zavody n.p., jinonice"
Where is the show aired in New Zealand?
CREATE TABLE table_14523485_9 (channel VARCHAR, country VARCHAR)
SELECT channel FROM table_14523485_9 WHERE country = "New Zealand"
Show name and salary for all employees sorted by salary.
CREATE TABLE Employee (name VARCHAR, salary VARCHAR)
SELECT name, salary FROM Employee ORDER BY salary
What is the highest amount of gold medals awarded to a team with more than 9 silver, 7 bronze and more than 13 medals total?
CREATE TABLE table_name_72 (gold INTEGER, bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT MAX(gold) FROM table_name_72 WHERE total > 13 AND silver > 9 AND bronze = 7
What was the score of the game on February 8?
CREATE TABLE table_name_34 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_34 WHERE date = "february 8"
What's the rounds for jenson button with a bmw e41 engine?
CREATE TABLE table_name_2 (rounds VARCHAR, engine_† VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_2 WHERE engine_† = "bmw e41" AND driver = "jenson button"
For team #40 chip ganassi racing which top 5 is the highest where top 10 is 5?
CREATE TABLE table_1708014_1 (top_5 INTEGER, top_10 VARCHAR, team_s_ VARCHAR)
SELECT MAX(top_5) FROM table_1708014_1 WHERE top_10 = 5 AND team_s_ = "#40 Chip Ganassi Racing"
What award was Denis Lawson nominated for in the Best Actor in a Musical category?
CREATE TABLE table_name_95 (award VARCHAR, category VARCHAR, nominee VARCHAR)
SELECT award FROM table_name_95 WHERE category = "best actor in a musical" AND nominee = "denis lawson"
What's the time/retired for a grid of 14?
CREATE TABLE table_name_98 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_98 WHERE grid = "14"
What is the attendance of the match with Carlisle united as the home team?
CREATE TABLE table_name_64 (attendance VARCHAR, home_team VARCHAR)
SELECT attendance FROM table_name_64 WHERE home_team = "carlisle united"
What was the attendance on November 1, 1942?
CREATE TABLE table_name_62 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_62 WHERE date = "november 1, 1942"
Which City of license has a Call sign of k241an?
CREATE TABLE table_name_68 (city_of_license VARCHAR, call_sign VARCHAR)
SELECT city_of_license FROM table_name_68 WHERE call_sign = "k241an"
What was the vote tally on the episode aired May 5, 2005?
CREATE TABLE table_1272844_2 (vote VARCHAR, air_date VARCHAR)
SELECT vote FROM table_1272844_2 WHERE air_date = "May 5, 2005"
What was the GP-GS for the 2009 season?
CREATE TABLE table_name_52 (gp_gs VARCHAR, season VARCHAR)
SELECT gp_gs FROM table_name_52 WHERE season = "2009"
What is the outcome with marina erakovic as opponent?
CREATE TABLE table_name_37 (outcome VARCHAR, opponent VARCHAR)
SELECT outcome FROM table_name_37 WHERE opponent = "marina erakovic"
What is the nor 2 that has nor 1 as nor 1?
CREATE TABLE table_name_25 (nor_2 VARCHAR, nor_1 VARCHAR)
SELECT nor_2 FROM table_name_25 WHERE nor_1 = "nor 1"
Where is the location attendance when the date is January 9?
CREATE TABLE table_28768469_7 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_28768469_7 WHERE date = "January 9"
What is the Number of Households that have a Per Capita Income of $21,345?
CREATE TABLE table_name_59 (number_of_households INTEGER, per_capita_income VARCHAR)
SELECT AVG(number_of_households) FROM table_name_59 WHERE per_capita_income = "$21,345"
What number episode was Week 4, Part 1?
CREATE TABLE table_25391981_20 (episode_number VARCHAR, episode VARCHAR)
SELECT episode_number FROM table_25391981_20 WHERE episode = "Week 4, Part 1"
What is the average pick number for Washington State?
CREATE TABLE table_name_32 (pick INTEGER, school VARCHAR)
SELECT AVG(pick) FROM table_name_32 WHERE school = "washington state"
Whose Visitor has a Record of 10–11–5?
CREATE TABLE table_name_82 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_82 WHERE record = "10–11–5"
What is the lowest date settled for chifley?
CREATE TABLE table_1174162_1 (date_first_settled_as_a_suburb INTEGER, suburb VARCHAR)
SELECT MIN(date_first_settled_as_a_suburb) FROM table_1174162_1 WHERE suburb = "Chifley"
How many sales had a peak position of 1 and a certification of 6x platinum?
CREATE TABLE table_name_31 (sales VARCHAR, peak_position VARCHAR, certification VARCHAR)
SELECT COUNT(sales) FROM table_name_31 WHERE peak_position = 1 AND certification = "6x platinum"
Which club has fewer than 40 seasons in Liga MX and 65 seasons in the top division?
CREATE TABLE table_name_32 (club VARCHAR, number_of_seasons_in_liga_mx VARCHAR, number_of_seasons_in_top_division VARCHAR)
SELECT club FROM table_name_32 WHERE number_of_seasons_in_liga_mx < 40 AND number_of_seasons_in_top_division = 65
Who was the match against at the PRIDE 31 event?
CREATE TABLE table_name_70 (opponent VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_70 WHERE event = "pride 31"
What were the least amount of field goals when Frederick L. Conklin played?
CREATE TABLE table_25730123_2 (field_goals INTEGER, player VARCHAR)
SELECT MIN(field_goals) FROM table_25730123_2 WHERE player = "Frederick L. Conklin"
Who was Dainty June when Tammy Blanchard was Louise?
CREATE TABLE table_name_5 (dainty_june VARCHAR, louise VARCHAR)
SELECT dainty_june FROM table_name_5 WHERE louise = "tammy blanchard"
What was the score of the 2nd leg when Newell's Old Boys played at home?
CREATE TABLE table_name_19 (home__2nd_leg_ VARCHAR)
SELECT 2 AS nd_leg FROM table_name_19 WHERE home__2nd_leg_ = "newell's old boys"
which categories fit under the institution calvin college?
CREATE TABLE table_261895_1 (type VARCHAR, institution VARCHAR)
SELECT type FROM table_261895_1 WHERE institution = "Calvin College"
How many college teams have a player with a nationality of Russia?
CREATE TABLE table_2840500_6 (college_junior_club_team VARCHAR, nationality VARCHAR)
SELECT COUNT(college_junior_club_team) FROM table_2840500_6 WHERE nationality = "Russia"
Which Muklom has a Halang of wɯ¹cʰi¹?
CREATE TABLE table_name_23 (muklom VARCHAR, halang VARCHAR)
SELECT muklom FROM table_name_23 WHERE halang = "wɯ¹cʰi¹"
What is the park & ride lot for the Temple Square station?
CREATE TABLE table_name_97 (park_and_ride_lot VARCHAR, station_name VARCHAR)
SELECT park_and_ride_lot FROM table_name_97 WHERE station_name = "temple square"
List all information in the item table.
CREATE TABLE item (Id VARCHAR)
SELECT * FROM item
What is the draw number of the song with a place lower than 6 and more than 38 votes?
CREATE TABLE table_name_49 (draw INTEGER, place VARCHAR, votes VARCHAR)
SELECT SUM(draw) FROM table_name_49 WHERE place > 6 AND votes > 38
If the rank is 26, what is the disposable USD growth?
CREATE TABLE table_24486462_1 (disposable_usd_growth VARCHAR, rank VARCHAR)
SELECT disposable_usd_growth FROM table_24486462_1 WHERE rank = 26
List the order id, customer id for orders in Cancelled status, ordered by their order dates.
CREATE TABLE customer_orders (order_id VARCHAR, customer_id VARCHAR, order_status_code VARCHAR, order_date VARCHAR)
SELECT order_id, customer_id FROM customer_orders WHERE order_status_code = "Cancelled" ORDER BY order_date
What is the Almaty, Kazakhstan when the Sergey Filimonov (KAZ) is 210kg?
CREATE TABLE table_name_42 (almaty_ VARCHAR, _kazakhstan VARCHAR, sergey_filimonov___kaz__ VARCHAR)
SELECT almaty_, _kazakhstan FROM table_name_42 WHERE sergey_filimonov___kaz__ = "210kg"
What is the time of songs that have the writer Aaron Schroeder and Wally Gold?
CREATE TABLE table_name_55 (time VARCHAR, writer_s_ VARCHAR)
SELECT time FROM table_name_55 WHERE writer_s_ = "aaron schroeder and wally gold"
What is the total number of tied games when Old Dominion is the independent and the years is more than 4?
CREATE TABLE table_name_41 (tied INTEGER, independent VARCHAR, years VARCHAR)
SELECT SUM(tied) FROM table_name_41 WHERE independent = "old dominion" AND years > 4
What is the Record of the game with an Attendance of 70,479?
CREATE TABLE table_name_41 (record VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_41 WHERE attendance = "70,479"
What was the attendance on September 11?
CREATE TABLE table_name_10 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_10 WHERE date = "september 11"
What year did Ferrari win the Kyalami circuit?
CREATE TABLE table_name_16 (year VARCHAR, circuit VARCHAR, winning_constructor VARCHAR)
SELECT year FROM table_name_16 WHERE circuit = "kyalami" AND winning_constructor = "ferrari"
What catalog has Australia as the country?
CREATE TABLE table_name_58 (catalog VARCHAR, country VARCHAR)
SELECT catalog FROM table_name_58 WHERE country = "australia"
What is the lowest number of goals joe keenan, who has more than 1 assists, had in 2007/08?
CREATE TABLE table_name_84 (goals INTEGER, assists VARCHAR, years VARCHAR, name VARCHAR)
SELECT MIN(goals) FROM table_name_84 WHERE years = "2007/08" AND name = "joe keenan" AND assists > 1
Which date's attendance was more than 35,540?
CREATE TABLE table_name_3 (date VARCHAR, attendance INTEGER)
SELECT date FROM table_name_3 WHERE attendance > 35 OFFSET 540
who is the class where note is reportedly still active as of 2012?
CREATE TABLE table_12232526_2 (class VARCHAR, note VARCHAR)
SELECT class FROM table_12232526_2 WHERE note = "Reportedly still active as of 2012"
What is the price for the manufacturer LETech?
CREATE TABLE table_29778616_1 (price VARCHAR, manufacturer VARCHAR)
SELECT price FROM table_29778616_1 WHERE manufacturer = "LETech"
What is the name of the winner when Goran Ivanišević was in third place?
CREATE TABLE table_name_65 (winner VARCHAR, third_place VARCHAR)
SELECT winner FROM table_name_65 WHERE third_place = "goran ivanišević"
The EVA that started 8 July 12:38 was from what spacecraft?
CREATE TABLE table_name_96 (spacecraft VARCHAR, start_date_time VARCHAR)
SELECT spacecraft FROM table_name_96 WHERE start_date_time = "8 july 12:38"
What was the result of the game on week 4?
CREATE TABLE table_name_37 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_37 WHERE week = 4
Which opponent had the result of W 24-14?
CREATE TABLE table_name_64 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_64 WHERE result = "w 24-14"
What was the inroductory phase for the episode with production code 4005?
CREATE TABLE table_14835674_1 (introductory_phrase VARCHAR, production_code VARCHAR)
SELECT introductory_phrase FROM table_14835674_1 WHERE production_code = 4005
What is the highest value for Byes, when Wins is less than 16, when Benalla DFL is "Swanpool", and when Against is less than 2177?
CREATE TABLE table_name_64 (byes INTEGER, against VARCHAR, wins VARCHAR, benalla_dfl VARCHAR)
SELECT MAX(byes) FROM table_name_64 WHERE wins < 16 AND benalla_dfl = "swanpool" AND against < 2177
What Podiums listing has a World Rally Championship series entry?
CREATE TABLE table_name_74 (podiums VARCHAR, series VARCHAR)
SELECT podiums FROM table_name_74 WHERE series = "world rally championship"
What is the Thurs 2 June time for the rider with a Fri 3 June time of 17' 36.58 128.554mph?
CREATE TABLE table_29218221_1 (thurs_2_june VARCHAR, fri_3_june VARCHAR)
SELECT thurs_2_june FROM table_29218221_1 WHERE fri_3_june = "17' 36.58 128.554mph"
What is Points, when Name is Ondrej Starosta?
CREATE TABLE table_name_81 (points VARCHAR, name VARCHAR)
SELECT points FROM table_name_81 WHERE name = "ondrej starosta"
Tell me the gold for netherlands
CREATE TABLE table_name_20 (gold VARCHAR, nation VARCHAR)
SELECT gold FROM table_name_20 WHERE nation = "netherlands"
What was the score of the game where the record was 2-2?
CREATE TABLE table_name_76 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_76 WHERE record = "2-2"
What builder has a 2001-02 order year?
CREATE TABLE table_name_93 (builder VARCHAR, order_year VARCHAR)
SELECT builder FROM table_name_93 WHERE order_year = "2001-02"
What college was the defensive end pick that was picked in round 2?
CREATE TABLE table_name_72 (college VARCHAR, position VARCHAR, round VARCHAR)
SELECT college FROM table_name_72 WHERE position = "defensive end" AND round = 2
Which channel tv (dt) plays in San Francisco - Oakland - San Jose?
CREATE TABLE table_1553485_1 (channel_tv___dt__ VARCHAR, city_of_license__market VARCHAR)
SELECT channel_tv___dt__ FROM table_1553485_1 WHERE city_of_license__market = "San Francisco - Oakland - San Jose"
Whent he start was 15, what was the Qual?
CREATE TABLE table_name_4 (qual VARCHAR, start VARCHAR)
SELECT qual FROM table_name_4 WHERE start = "15"
What is the Partner of the match with a Score in Final of 5–7, 4–6?
CREATE TABLE table_name_92 (partner VARCHAR, score_in_final VARCHAR)
SELECT partner FROM table_name_92 WHERE score_in_final = "5–7, 4–6"
Find the name of the candidates whose oppose percentage is the lowest for each sex.
CREATE TABLE candidate (people_id VARCHAR); CREATE TABLE people (name VARCHAR, sex VARCHAR, people_id VARCHAR)
SELECT t1.name, t1.sex, MIN(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex
Which 2008–09 has an Event of autumn gold?
CREATE TABLE table_name_13 (event VARCHAR)
SELECT 2008 AS _09 FROM table_name_13 WHERE event = "autumn gold"
What country has player Scott Verplank?
CREATE TABLE table_name_64 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_64 WHERE player = "scott verplank"
The Chinese Name of 上地 shàngdì belongs to what station?
CREATE TABLE table_name_57 (station_name VARCHAR, chinese_name VARCHAR)
SELECT station_name FROM table_name_57 WHERE chinese_name = "上地 shàngdì"
Venue of melbourne , australia, and a Extra of 200 m has what results?
CREATE TABLE table_name_90 (result VARCHAR, venue VARCHAR, extra VARCHAR)
SELECT result FROM table_name_90 WHERE venue = "melbourne , australia" AND extra = "200 m"
Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.
CREATE TABLE Addresses (address_id VARCHAR, state_province_county VARCHAR); CREATE TABLE Students (last_name VARCHAR, current_address_id VARCHAR); CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR)
SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id
When the total was 11 and silver was greater than 4 what was the highest gold?
CREATE TABLE table_name_15 (gold INTEGER, total VARCHAR, silver VARCHAR)
SELECT MAX(gold) FROM table_name_15 WHERE total = 11 AND silver > 4
Name the l g for rubio
CREATE TABLE table_22542179_3 (l_g VARCHAR, player VARCHAR)
SELECT l_g FROM table_22542179_3 WHERE player = "Rubio"
What is the Musical Guest (Song performed) for the episode aired on 13 july 2008?
CREATE TABLE table_name_2 (musical_guest__song_performed_ VARCHAR, air_date VARCHAR)
SELECT musical_guest__song_performed_ FROM table_name_2 WHERE air_date = "13 july 2008"
What date had a catalog of kicp-1321?
CREATE TABLE table_name_61 (date VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_61 WHERE catalog = "kicp-1321"
Show all transaction types.
CREATE TABLE Financial_Transactions (transaction_type VARCHAR)
SELECT DISTINCT transaction_type FROM Financial_Transactions
What is the number of public that was there when the vote percentage was 22.9%?
CREATE TABLE table_26375386_23 (public VARCHAR, vote_percentage VARCHAR)
SELECT COUNT(public) FROM table_26375386_23 WHERE vote_percentage = "22.9%"
What was the launch site for a satellite of GPS IIIA-2?
CREATE TABLE table_name_74 (launch_site VARCHAR, satellite VARCHAR)
SELECT launch_site FROM table_name_74 WHERE satellite = "gps iiia-2"
Which college had Tony Leiker in round 7?
CREATE TABLE table_name_19 (college VARCHAR, round VARCHAR, player VARCHAR)
SELECT college FROM table_name_19 WHERE round = "round 7" AND player = "tony leiker"
Name the most joined for molloy college
CREATE TABLE table_1969577_1 (joined INTEGER, institution VARCHAR)
SELECT MAX(joined) FROM table_1969577_1 WHERE institution = "Molloy College"
What school has a public nickname, founded after 1838 in Harrisonburg, Va?
CREATE TABLE table_name_38 (nickname VARCHAR, location VARCHAR, affiliation VARCHAR, founded VARCHAR)
SELECT nickname FROM table_name_38 WHERE affiliation = "public" AND founded > 1838 AND location = "harrisonburg, va"
Name the circuit when the fastest lap was john surtees and the winning driver was john surtees.
CREATE TABLE table_name_53 (circuit VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT circuit FROM table_name_53 WHERE fastest_lap = "john surtees" AND winning_driver = "john surtees"
When the high assists were Shawn Marion (6) who had high rebounds?
CREATE TABLE table_17323092_7 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT high_rebounds FROM table_17323092_7 WHERE high_assists = "Shawn Marion (6)"
Name the driver passenger for 394 points
CREATE TABLE table_16941304_4 (driver___passenger VARCHAR, points VARCHAR)
SELECT driver___passenger FROM table_16941304_4 WHERE points = 394
What is the total associated with a Clean & jerk of 135, and a Snatch of 115?
CREATE TABLE table_name_49 (total__kg_ VARCHAR, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT total__kg_ FROM table_name_49 WHERE clean_ & _jerk = 135 AND snatch = 115
How many games were played in the 1989 season?
CREATE TABLE table_2208838_4 (played VARCHAR, season VARCHAR)
SELECT played FROM table_2208838_4 WHERE season = "1989"
What date was the match against adrián menéndez-maceiras?
CREATE TABLE table_name_9 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_9 WHERE opponent = "adrián menéndez-maceiras"
What is the record for the date 15 december, and a round of final?
CREATE TABLE table_name_6 (record VARCHAR, date VARCHAR, round VARCHAR)
SELECT record FROM table_name_6 WHERE date = "15 december" AND round = "final"
Show the status of the city that has hosted the greatest number of competitions.
CREATE TABLE city (Status VARCHAR, City_ID VARCHAR); CREATE TABLE farm_competition (Host_city_ID VARCHAR)
SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1
What is the release format for titles after 1983?
CREATE TABLE table_name_55 (release_format VARCHAR, release_date INTEGER)
SELECT release_format FROM table_name_55 WHERE release_date > 1983
What is the 1991 for 2R 1999?
CREATE TABLE table_name_92 (Id VARCHAR)
SELECT 1991 FROM table_name_92 WHERE 1999 = "2r"