question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What Time/Retired has a Points that's smaller than 11 and has a Laps of 74?
CREATE TABLE table_name_48 (time_retired VARCHAR, points VARCHAR, laps VARCHAR)
SELECT time_retired FROM table_name_48 WHERE points < 11 AND laps = 74
When was the percentage of trains arriving within 5 minutes of scheduled time 89.6%?
CREATE TABLE table_171748_3 (period VARCHAR, _percentage_trains_arriving_within_5_mins_of_scheduled_time_moving_annual_average__maa_ VARCHAR)
SELECT period FROM table_171748_3 WHERE _percentage_trains_arriving_within_5_mins_of_scheduled_time_moving_annual_average__maa_ = "89.6%"
What was the original title for the film used in nomination of street days?
CREATE TABLE table_name_91 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT original_title FROM table_name_91 WHERE film_title_used_in_nomination = "street days"
How many people watched a Glenferrie Oval?
CREATE TABLE table_name_58 (crowd VARCHAR, venue VARCHAR)
SELECT COUNT(crowd) FROM table_name_58 WHERE venue = "glenferrie oval"
What is the result at Dreisamstadion, Freiburg?
CREATE TABLE table_name_96 (result VARCHAR, venue VARCHAR)
SELECT result FROM table_name_96 WHERE venue = "dreisamstadion, freiburg"
Which player is it that has a pick of 147?
CREATE TABLE table_name_22 (player VARCHAR, pick VARCHAR)
SELECT player FROM table_name_22 WHERE pick = "147"
What country does Tiger Woods play for?
CREATE TABLE table_name_17 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_17 WHERE player = "tiger woods"
Find the names of the artists who are from Bangladesh and have never received rating higher than 7.
CREATE TABLE artist (artist_name VARCHAR, country VARCHAR, rating INTEGER); CREATE TABLE song (artist_name VARCHAR, country VARCHAR, rating INTEGER)
SELECT DISTINCT artist_name FROM artist WHERE country = "Bangladesh" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7
What was the score against home team, Richmond?
CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_28 WHERE home_team = "richmond"
What is the series number of the episode watched by 10.89 million viewers?
CREATE TABLE table_12146637_1 (series__number INTEGER, us_viewers__millions_ VARCHAR)
SELECT MAX(series__number) FROM table_12146637_1 WHERE us_viewers__millions_ = "10.89"
What is the highest prev that has 9 as the rank, with a rating less than 2746?
CREATE TABLE table_name_4 (prev INTEGER, rank VARCHAR, rating VARCHAR)
SELECT MAX(prev) FROM table_name_4 WHERE rank = 9 AND rating < 2746
ratio of 16:13 has how many highest size (steps)?
CREATE TABLE table_name_38 (size__steps_ INTEGER, just_ratio VARCHAR)
SELECT MAX(size__steps_) FROM table_name_38 WHERE just_ratio = "16:13"
Who was the Class AA winner when Plains was Class A winner and Lubbock was Class AAAAA winner?
CREATE TABLE table_14603057_2 (class_aA VARCHAR, class_a VARCHAR, class_aAAAA VARCHAR, Lubbock VARCHAR)
SELECT class_aA FROM table_14603057_2 WHERE class_a = "Plains" AND class_aAAAA = Lubbock
For which production company did Sam Mccarthy produce?
CREATE TABLE table_name_61 (production_company VARCHAR, producer_s_ VARCHAR)
SELECT production_company FROM table_name_61 WHERE producer_s_ = "sam mccarthy"
What is the Score, when the Location is Clemson, SC, when the Winner is Clemson, and when the Date is November 11, 2006?
CREATE TABLE table_name_67 (score VARCHAR, date VARCHAR, location VARCHAR, winner VARCHAR)
SELECT score FROM table_name_67 WHERE location = "clemson, sc" AND winner = "clemson" AND date = "november 11, 2006"
How many Attendances on 13 april 1903?
CREATE TABLE table_name_37 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_37 WHERE date = "13 april 1903"
What country is Retief Goosen from?
CREATE TABLE table_name_18 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_18 WHERE player = "retief goosen"
What is the transmission when the engine is 2.0l, and acceleration 0–100km/h (0–62mph) is 10.5 s?
CREATE TABLE table_name_99 (transmission VARCHAR, engine VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)
SELECT transmission FROM table_name_99 WHERE engine = "2.0l" AND acceleration_0_100km_h__0_62mph_ = "10.5 s"
What was the average speed for a racetime of 3:08:08?
CREATE TABLE table_2196127_1 (average_speed__mph_ VARCHAR, race_time VARCHAR)
SELECT average_speed__mph_ FROM table_2196127_1 WHERE race_time = "3:08:08"
Name the party for tim lee hall
CREATE TABLE table_1341672_14 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341672_14 WHERE incumbent = "Tim Lee Hall"
What is the number of the Foundation with Japanese orthography of 国立看護大学校?
CREATE TABLE table_name_79 (foundation INTEGER, japanese_orthography VARCHAR)
SELECT SUM(foundation) FROM table_name_79 WHERE japanese_orthography = "国立看護大学校"
What kind of vehicle is the agra 1050?
CREATE TABLE table_19787093_1 (vehicle_category VARCHAR, till_agra VARCHAR)
SELECT vehicle_category FROM table_19787093_1 WHERE till_agra = 1050
What was the name of the away team that had a tie of 2?
CREATE TABLE table_name_93 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_93 WHERE tie_no = "2"
Find the name of the campuses opened before 1800.
CREATE TABLE campuses (campus VARCHAR, YEAR INTEGER)
SELECT campus FROM campuses WHERE YEAR < 1800
Total smaller than 10, and a Gold larger than 1 then what is the lowest silver?
CREATE TABLE table_name_86 (silver INTEGER, total VARCHAR, gold VARCHAR)
SELECT MIN(silver) FROM table_name_86 WHERE total < 10 AND gold > 1
What is every entry for Friday August 26 if the entry for Monday August 22 is 32' 25.72 69.809mph?
CREATE TABLE table_30058355_3 (fri_26_aug VARCHAR, mon_22_aug VARCHAR)
SELECT fri_26_aug FROM table_30058355_3 WHERE mon_22_aug = "32' 25.72 69.809mph"
What is the Score with a Date that is 2008-06-28?
CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_35 WHERE date = "2008-06-28"
What is the Atlantic Europe when age is 10,000 years?
CREATE TABLE table_22860_1 (atlantic_europe VARCHAR, age__before_ VARCHAR)
SELECT atlantic_europe FROM table_22860_1 WHERE age__before_ = "10,000 years"
What was the ranking of Beirasar Rosalía, the year they played 32 games?
CREATE TABLE table_name_6 (rank INTEGER, team VARCHAR, games VARCHAR)
SELECT MAX(rank) FROM table_name_6 WHERE team = "beirasar rosalía" AND games < 32
What is the name of a running back in a round before round 3?
CREATE TABLE table_name_4 (player VARCHAR, round VARCHAR, position VARCHAR)
SELECT player FROM table_name_4 WHERE round < 3 AND position = "running back"
How many Horizontal Bars have a Team of japan (jpn), and Parallel Bars smaller than 38.924?
CREATE TABLE table_name_68 (horizontal_bar VARCHAR, team VARCHAR, parallel_bars VARCHAR)
SELECT COUNT(horizontal_bar) FROM table_name_68 WHERE team = "japan (jpn)" AND parallel_bars < 38.924
What is the highest round a fight lasted against masutatsu yano?
CREATE TABLE table_name_26 (round INTEGER, opponent VARCHAR)
SELECT MAX(round) FROM table_name_26 WHERE opponent = "masutatsu yano"
What year did the movie Rango come out?
CREATE TABLE table_name_3 (year INTEGER, film VARCHAR)
SELECT AVG(year) FROM table_name_3 WHERE film = "rango"
Who had more than 3 wins?
CREATE TABLE table_name_47 (winner VARCHAR, win__number INTEGER)
SELECT winner FROM table_name_47 WHERE win__number > 3
How many episodes in the season had 3.81 million US viewers?
CREATE TABLE table_24319661_3 (no_in_season VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(no_in_season) FROM table_24319661_3 WHERE us_viewers__million_ = "3.81"
Show the different headquarters and number of companies at each headquarter.
CREATE TABLE company (Headquarters VARCHAR)
SELECT Headquarters, COUNT(*) FROM company GROUP BY Headquarters
For each file format, return the number of artists who released songs in that format.
CREATE TABLE files (formats VARCHAR)
SELECT COUNT(*), formats FROM files GROUP BY formats
What was round of 64 of the singles event when the result of round 16 was did not advance and the athlete was Iveta Benešová?
CREATE TABLE table_17289604_38 (round_of_64 VARCHAR, athlete VARCHAR, event VARCHAR, round_of_16 VARCHAR)
SELECT round_of_64 FROM table_17289604_38 WHERE event = "Singles" AND round_of_16 = "Did not advance" AND athlete = "Iveta Benešová"
What counties mascot are the Red Ramblers?
CREATE TABLE table_name_85 (county VARCHAR, mascot VARCHAR)
SELECT county FROM table_name_85 WHERE mascot = "red ramblers"
How many countries have content of arte?
CREATE TABLE table_15887683_16 (country VARCHAR, content VARCHAR)
SELECT COUNT(country) FROM table_15887683_16 WHERE content = "arte"
Which Xenon has a Helium of 5.1?
CREATE TABLE table_name_29 (xenon VARCHAR, helium VARCHAR)
SELECT xenon FROM table_name_29 WHERE helium = "5.1"
What is the Date for Catalog of lp 5060?
CREATE TABLE table_name_65 (date VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_65 WHERE catalog = "lp 5060"
What is the Republican seat plurality of the state with a ratio of 12/4 Republicans to Democrats?
CREATE TABLE table_name_30 (republican_seat_plurality VARCHAR, republican__democratic VARCHAR)
SELECT republican_seat_plurality FROM table_name_30 WHERE republican__democratic = "12/4"
List the distinct director of all films.
CREATE TABLE film (Director VARCHAR)
SELECT DISTINCT Director FROM film
How many people attended the Cleveland Browns game on November 11, 1979?
CREATE TABLE table_name_58 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_58 WHERE date = "november 11, 1979" AND week > 11
Find the count and code of the job has most employees.
CREATE TABLE employee (emp_jobcode VARCHAR)
SELECT emp_jobcode, COUNT(*) FROM employee GROUP BY emp_jobcode ORDER BY COUNT(*) DESC LIMIT 1
Which Sign-in/Bicker is at of wash50 on washington rd?
CREATE TABLE table_name_56 (sign_in_bicker VARCHAR, location VARCHAR)
SELECT sign_in_bicker FROM table_name_56 WHERE location = "wash50 on washington rd"
What episode number in the series was viewed by 13.66 million people in the U.S.?
CREATE TABLE table_25668962_1 (no_in_series INTEGER, us_viewers__million_ VARCHAR)
SELECT MAX(no_in_series) FROM table_25668962_1 WHERE us_viewers__million_ = "13.66"
what is the average draw when the place is 5 and points more than 15?
CREATE TABLE table_name_62 (draw INTEGER, place VARCHAR, points VARCHAR)
SELECT AVG(draw) FROM table_name_62 WHERE place = 5 AND points > 15
Which Pinyin has a County of changhua?
CREATE TABLE table_name_44 (pinyin VARCHAR, county VARCHAR)
SELECT pinyin FROM table_name_44 WHERE county = "changhua"
In the 2008/2009 season one team had 47 tries against, how many games did they win that year?
CREATE TABLE table_13399573_4 (won VARCHAR, tries_against VARCHAR)
SELECT won FROM table_13399573_4 WHERE tries_against = "47"
What is the name of the country that has a transfer window of winter with an end after 2009 and moving from Bolton Wanderers?
CREATE TABLE table_name_45 (country VARCHAR, moving_from VARCHAR, transfer_window VARCHAR, ends VARCHAR)
SELECT country FROM table_name_45 WHERE transfer_window = "winter" AND ends > 2009 AND moving_from = "bolton wanderers"
What are flight numbers of flights departing from Airport "APG"?
CREATE TABLE FLIGHTS (FlightNo VARCHAR, SourceAirport VARCHAR)
SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = "APG"
For the USAC National Championship, what is the Discipline?
CREATE TABLE table_name_31 (discipline VARCHAR, championship VARCHAR)
SELECT discipline FROM table_name_31 WHERE championship = "usac national championship"
What is Title, when Developer is "2Play Mobile", and when Genre is "Action"?
CREATE TABLE table_name_91 (title VARCHAR, developer VARCHAR, genre VARCHAR)
SELECT title FROM table_name_91 WHERE developer = "2play mobile" AND genre = "action"
Which driver had brm as a constructor and a time/retired of engine?
CREATE TABLE table_name_99 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR)
SELECT driver FROM table_name_99 WHERE constructor = "brm" AND time_retired = "engine"
WHAT PERCENTAGE OF GLOBAL TOTAL EMISSIONS DID INDIA PRODUCE?
CREATE TABLE table_11251601_2 (percentage_of_global_total VARCHAR, country VARCHAR)
SELECT percentage_of_global_total FROM table_11251601_2 WHERE country = "India"
What was the bleeding time during the prolonged partial thromboplastin time in which the prothrombin time is unaffected?
CREATE TABLE table_238124_1 (bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR)
SELECT bleeding_time FROM table_238124_1 WHERE partial_thromboplastin_time = "Prolonged" AND prothrombin_time = "Unaffected"
What was the playoff apps for Thomas Heary, that had the position df?
CREATE TABLE table_name_10 (playoff_apps VARCHAR, position VARCHAR, name VARCHAR)
SELECT playoff_apps FROM table_name_10 WHERE position = "df" AND name = "thomas heary"
When the seq is 41, what is the ability to compromise?
CREATE TABLE table_1855342_5 (ability_to_compromise INTEGER, seq VARCHAR)
SELECT MAX(ability_to_compromise) FROM table_1855342_5 WHERE seq = "41"
How many golds for nations ranked below 4, over 5 medals, and under 6 silvers?
CREATE TABLE table_name_26 (gold VARCHAR, silver VARCHAR, rank VARCHAR, total VARCHAR)
SELECT COUNT(gold) FROM table_name_26 WHERE rank > 4 AND total > 5 AND silver < 6
Name the number of title for number in series being 25
CREATE TABLE table_25810656_3 (title VARCHAR, no_in_series VARCHAR)
SELECT COUNT(title) FROM table_25810656_3 WHERE no_in_series = 25
Which episode 4 has a Star of anna powierza?
CREATE TABLE table_name_87 (episode_4 VARCHAR, star VARCHAR)
SELECT episode_4 FROM table_name_87 WHERE star = "anna powierza"
What was the evening gown score for the one who had a preliminary average of 8.121 (8)?
CREATE TABLE table_16323766_3 (evening_gown VARCHAR, preliminary_average VARCHAR)
SELECT evening_gown FROM table_16323766_3 WHERE preliminary_average = "8.121 (8)"
How many laps did the grid 1 engine have?
CREATE TABLE table_name_96 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT SUM(laps) FROM table_name_96 WHERE time_retired = "engine" AND grid = 1
What is the average Draws, when Goal Difference is greater than -3, when Goals Against is 30, and when Points is greater than 45?
CREATE TABLE table_name_97 (draws INTEGER, points VARCHAR, goal_difference VARCHAR, goals_against VARCHAR)
SELECT AVG(draws) FROM table_name_97 WHERE goal_difference > -3 AND goals_against = 30 AND points > 45
What was the decision when the attendance was 19,592?
CREATE TABLE table_name_6 (decision VARCHAR, attendance VARCHAR)
SELECT decision FROM table_name_6 WHERE attendance = "19,592"
Who is the runner-up for season 2011–12?
CREATE TABLE table_25058269_1 (runner_up VARCHAR, season VARCHAR)
SELECT runner_up FROM table_25058269_1 WHERE season = "2011–12"
What is the number of "to par" in Mexico with a winning score of 67-67-69-70=273?
CREATE TABLE table_13388681_1 (to_par VARCHAR, country VARCHAR, winning_score VARCHAR)
SELECT to_par FROM table_13388681_1 WHERE country = "Mexico" AND winning_score = 67 - 67 - 69 - 70 = 273
What is the 1st run that is down hill less than 46, and 84.45 points?
CREATE TABLE table_name_95 (downhill VARCHAR, points VARCHAR)
SELECT 1 AS st_run FROM table_name_95 WHERE downhill < 46 AND points = "84.45"
What Kerry number does Taylor county have with more than 65 others#?
CREATE TABLE table_name_64 (kerry_number VARCHAR, county VARCHAR, others_number VARCHAR)
SELECT COUNT(kerry_number) FROM table_name_64 WHERE county = "taylor" AND others_number > 65
What is the Label of the release in CD Maxi Format?
CREATE TABLE table_name_65 (label VARCHAR, format VARCHAR)
SELECT label FROM table_name_65 WHERE format = "cd maxi"
Where is the track located with 18 turns?
CREATE TABLE table_name_34 (track VARCHAR, turns VARCHAR)
SELECT track FROM table_name_34 WHERE turns = "18"
What is the attendance amount of the race with a time of 2:07?
CREATE TABLE table_name_38 (attendance INTEGER, time VARCHAR)
SELECT MAX(attendance) FROM table_name_38 WHERE time = "2:07"
Which Events is the highest one that has a Top-10 larger than 7, and Wins smaller than 2?
CREATE TABLE table_name_39 (events INTEGER, top_10 VARCHAR, wins VARCHAR)
SELECT MAX(events) FROM table_name_39 WHERE top_10 > 7 AND wins < 2
What's the highest Points with the Team of Tacuary, and has Losses that's smaller than 4?
CREATE TABLE table_name_56 (points INTEGER, team VARCHAR, losses VARCHAR)
SELECT MAX(points) FROM table_name_56 WHERE team = "tacuary" AND losses < 4
Which of the Res., has Ryan Scheepe as an opponent?
CREATE TABLE table_name_34 (res VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_34 WHERE opponent = "ryan scheepe"
What is the smallest byes when the wins are 3?
CREATE TABLE table_name_49 (byes INTEGER, wins VARCHAR)
SELECT MIN(byes) FROM table_name_49 WHERE wins = 3
What model engine has a lotus 16 chassis?
CREATE TABLE table_name_64 (engine VARCHAR, chassis VARCHAR)
SELECT engine FROM table_name_64 WHERE chassis = "lotus 16"
Which February has a Game of 64?
CREATE TABLE table_name_77 (february INTEGER, game VARCHAR)
SELECT AVG(february) FROM table_name_77 WHERE game = 64
Which Themed Area has a Name of troublesome trucks runaway coaster?
CREATE TABLE table_name_12 (themed_area VARCHAR, name VARCHAR)
SELECT themed_area FROM table_name_12 WHERE name = "troublesome trucks runaway coaster"
How many played have 3 as the drawn, and a position greater than 4?
CREATE TABLE table_name_25 (played VARCHAR, drawn VARCHAR, position VARCHAR)
SELECT COUNT(played) FROM table_name_25 WHERE drawn = 3 AND position > 4
Who won at stage 22?
CREATE TABLE table_name_85 (winner VARCHAR, stage VARCHAR)
SELECT winner FROM table_name_85 WHERE stage = "22"
What is the sum of all values in Fall 09 in Allegany county with Fall 07 less than 751?
CREATE TABLE table_name_56 (fall_09 INTEGER, maryland_counties VARCHAR, fall_07 VARCHAR)
SELECT SUM(fall_09) FROM table_name_56 WHERE maryland_counties = "allegany" AND fall_07 < 751
What is the To par for Lanny Wadkins?
CREATE TABLE table_name_99 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_99 WHERE player = "lanny wadkins"
find the total market rate of the furnitures that have the top 2 market shares.
CREATE TABLE furniture (market_rate INTEGER)
SELECT SUM(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 2
Who directed the title that was written by Adam Milch?
CREATE TABLE table_12419515_4 (directed_by VARCHAR, written_by VARCHAR)
SELECT directed_by FROM table_12419515_4 WHERE written_by = "Adam Milch"
When was the sargent bridge built?
CREATE TABLE table_name_61 (built VARCHAR, name VARCHAR)
SELECT built FROM table_name_61 WHERE name = "sargent bridge"
What is the average number of ties for the Detroit Lions team when they have fewer than 5 wins, fewer than 3 losses, and a win percentage of 0.800?
CREATE TABLE table_name_63 (ties INTEGER, team VARCHAR, win_pct VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT AVG(ties) FROM table_name_63 WHERE losses < 3 AND wins < 5 AND win_pct = "0.800" AND team = "detroit lions"
What is the Born–Died for the person whose family moved to Australia at age 6?
CREATE TABLE table_name_93 (born___died VARCHAR, connection_with_australia VARCHAR)
SELECT born___died FROM table_name_93 WHERE connection_with_australia = "family moved to australia at age 6"
Name the total number of years where runner-up and championship is us open
CREATE TABLE table_1547951_3 (year VARCHAR, outcome VARCHAR, championship VARCHAR)
SELECT COUNT(year) FROM table_1547951_3 WHERE outcome = "Runner-up" AND championship = "US Open"
What is the lowest Goals For, when Draws is less than 4, and when Points is less than 27?
CREATE TABLE table_name_32 (goals_for INTEGER, draws VARCHAR, points VARCHAR)
SELECT MIN(goals_for) FROM table_name_32 WHERE draws < 4 AND points < 27
Which player scored the most points and how many were scored on November 6?
CREATE TABLE table_27744844_5 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_27744844_5 WHERE date = "November 6"
Who is the director and what number is the episode for episode #1 of Are You Afraid of the Dark season 3?
CREATE TABLE table_10470082_4 (director VARCHAR, _number VARCHAR)
SELECT COUNT(director) FROM table_10470082_4 WHERE _number = 1
What's the number of decimal digits when the total bits is more than 32 and the exponent is less than 15?
CREATE TABLE table_name_26 (number_of_decimal_digits VARCHAR, total_bits VARCHAR, exponent VARCHAR)
SELECT number_of_decimal_digits FROM table_name_26 WHERE total_bits > 32 AND exponent < 15
What is Time, when Laps is 22, and when Grid is 15?
CREATE TABLE table_name_42 (time VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time FROM table_name_42 WHERE laps = 22 AND grid = 15
What is the score when Miami is the visitor?
CREATE TABLE table_name_33 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_33 WHERE visitor = "miami"
Which Try diff has Tries for of 12?
CREATE TABLE table_name_34 (try_diff VARCHAR, tries_for VARCHAR)
SELECT try_diff FROM table_name_34 WHERE tries_for = 12
On what day was the record 30-31?
CREATE TABLE table_name_88 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_88 WHERE record = "30-31"
What is Distance, when Pilot is "Stanislaw Wujczak"?
CREATE TABLE table_name_64 (distance VARCHAR, pilot VARCHAR)
SELECT distance FROM table_name_64 WHERE pilot = "stanislaw wujczak"