question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the Time/Retired for a Grid smaller than 10, a Laps larger than 20, and a Constructor of talbot-lago - talbot?
CREATE TABLE table_name_89 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT time_retired FROM table_name_89 WHERE grid < 10 AND laps > 20 AND constructor = "talbot-lago - talbot"
What was the winning score of the PGA Championship (3)?
CREATE TABLE table_13026799_1 (winning_score VARCHAR, championship VARCHAR)
SELECT winning_score FROM table_13026799_1 WHERE championship = "PGA championship (3)"
What is the total for player karrie webb?
CREATE TABLE table_name_1 (total VARCHAR, player VARCHAR)
SELECT COUNT(total) FROM table_name_1 WHERE player = "karrie webb"
Name the parish for 1908
CREATE TABLE table_178399_1 (parish__prestegjeld_ VARCHAR, year_built VARCHAR)
SELECT parish__prestegjeld_ FROM table_178399_1 WHERE year_built = 1908
What is the largest played when the drawn is less than 1?
CREATE TABLE table_name_62 (played INTEGER, drawn INTEGER)
SELECT MAX(played) FROM table_name_62 WHERE drawn < 1
How many different second members were there when John rudhale was first member?
CREATE TABLE table_15451122_2 (second_member VARCHAR, first_member VARCHAR)
SELECT COUNT(second_member) FROM table_15451122_2 WHERE first_member = "John Rudhale"
Which headphone models have a driver-matched DB of 0.1 and a US MSRP of $49?
CREATE TABLE table_1601027_1 (headphone_model VARCHAR, driver_matched_db VARCHAR, us_msrp VARCHAR)
SELECT headphone_model FROM table_1601027_1 WHERE driver_matched_db = "0.1" AND us_msrp = "$49"
What is the average opening at Stadyum Samsun with a capacity smaller than 34,658?
CREATE TABLE table_name_20 (opening INTEGER, stadium VARCHAR, capacity VARCHAR)
SELECT AVG(opening) FROM table_name_20 WHERE stadium = "stadyum samsun" AND capacity < 34 OFFSET 658
What is the team's record on april 12?
CREATE TABLE table_name_11 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_11 WHERE date = "april 12"
WHich format has a Frequency of 99.3 fm?
CREATE TABLE table_name_30 (format VARCHAR, frequency VARCHAR)
SELECT format FROM table_name_30 WHERE frequency = "99.3 fm"
What is Name, when Royal House is "Ji", and when State is "Cai"?
CREATE TABLE table_name_93 (name VARCHAR, royal_house VARCHAR, state VARCHAR)
SELECT name FROM table_name_93 WHERE royal_house = "ji" AND state = "cai"
Which score happened on 11 february 1996?
CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_37 WHERE date = "11 february 1996"
How many total golds do teams have when the total medals is less than 1?
CREATE TABLE table_name_79 (gold INTEGER, total INTEGER)
SELECT SUM(gold) FROM table_name_79 WHERE total < 1
Who is the candidate in the 2008 (2) election?
CREATE TABLE table_name_20 (candidate VARCHAR, election VARCHAR)
SELECT candidate FROM table_name_20 WHERE election = "2008 (2)"
Find the name, headquarter and founder of the manufacturer that has the highest revenue.
CREATE TABLE manufacturers (name VARCHAR, headquarter VARCHAR, founder VARCHAR, revenue VARCHAR)
SELECT name, headquarter, founder FROM manufacturers ORDER BY revenue DESC LIMIT 1
Which Couple has a Result of third place, and a Style of cha-cha-cha?
CREATE TABLE table_name_82 (couple VARCHAR, result VARCHAR, style VARCHAR)
SELECT couple FROM table_name_82 WHERE result = "third place" AND style = "cha-cha-cha"
What is the arrival time of greenbat
CREATE TABLE table_142159_1 (arrival INTEGER, name VARCHAR)
SELECT MAX(arrival) FROM table_142159_1 WHERE name = "Greenbat"
On May 13, what was the team's record?
CREATE TABLE table_name_33 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_33 WHERE date = "may 13"
What is Opponent, when Record is 17-44?
CREATE TABLE table_name_98 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_98 WHERE record = "17-44"
What is the lowest Rank for a Guam Player?
CREATE TABLE table_name_77 (rank INTEGER, country VARCHAR)
SELECT MIN(rank) FROM table_name_77 WHERE country = "guam"
What team was the home team at the venue junction oval?
CREATE TABLE table_name_74 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_74 WHERE venue = "junction oval"
What is the record if the location is Clarke Stadium?
CREATE TABLE table_23916539_3 (record VARCHAR, location VARCHAR)
SELECT record FROM table_23916539_3 WHERE location = "Clarke Stadium"
how many times is the transfer fee £2,500,000?
CREATE TABLE table_name_62 (goals VARCHAR, transfer_fee VARCHAR)
SELECT COUNT(goals) FROM table_name_62 WHERE transfer_fee = "£2,500,000"
Which school did the player that played 2004-05 attend?
CREATE TABLE table_10015132_21 (school_club_team VARCHAR, years_in_toronto VARCHAR)
SELECT school_club_team FROM table_10015132_21 WHERE years_in_toronto = "2004-05"
What is the sum of the evening gown scores where the interview score is less than 8.77, the swimsuit score is equal to 7.8, and the average score is less than 8.2?
CREATE TABLE table_name_4 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, swimsuit VARCHAR)
SELECT SUM(evening_gown) FROM table_name_4 WHERE interview < 8.77 AND swimsuit = 7.8 AND average < 8.2
What California city has an active status and a greek designation of established colony?
CREATE TABLE table_name_57 (city VARCHAR, greek_designation VARCHAR, status VARCHAR, us_state_district VARCHAR)
SELECT city FROM table_name_57 WHERE status = "active" AND us_state_district = "california" AND greek_designation = "established colony"
What Band's Power (W) is 400 or less?
CREATE TABLE table_name_33 (band INTEGER, power__w_ INTEGER)
SELECT MAX(band) FROM table_name_33 WHERE power__w_ > 400
What is the 2004 that has a of grand slam tournaments in2006 ?
CREATE TABLE table_name_82 (Id VARCHAR)
SELECT 2004 FROM table_name_82 WHERE 2006 = "grand slam tournaments"
What is the total number of byes when the wins were 9?
CREATE TABLE table_name_59 (byes VARCHAR, wins VARCHAR)
SELECT COUNT(byes) FROM table_name_59 WHERE wins = 9
What is the short stem for the word that has a perfect stem of poztu?
CREATE TABLE table_name_56 (short_stem VARCHAR, perfect_stem VARCHAR)
SELECT short_stem FROM table_name_56 WHERE perfect_stem = "poztu"
What is the Score of Stewart Cink with a To par of +4?
CREATE TABLE table_name_50 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT score FROM table_name_50 WHERE to_par = "+4" AND player = "stewart cink"
what is the score on february 16?
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_76 WHERE date = "february 16"
What ship was built in 2012?
CREATE TABLE table_name_91 (ship VARCHAR, built VARCHAR)
SELECT ship FROM table_name_91 WHERE built = 2012
Which Round has a Club team of brandon wheat kings (whl)?
CREATE TABLE table_name_92 (round VARCHAR, club_team VARCHAR)
SELECT round FROM table_name_92 WHERE club_team = "brandon wheat kings (whl)"
What is the 3rd day result for years under 2012 and a finish position of 33rd?
CREATE TABLE table_name_65 (year VARCHAR, finish_position VARCHAR)
SELECT 3 AS rd_day FROM table_name_65 WHERE year < 2012 AND finish_position = "33rd"
What's the score of the 1st leg when Water Corporation was Team 1?
CREATE TABLE table_name_8 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_8 WHERE team_1 = "water corporation"
What is the most minimal Final year that has a North or east end of covington?
CREATE TABLE table_name_69 (final_year INTEGER, north_or_east_terminus VARCHAR)
SELECT MIN(final_year) FROM table_name_69 WHERE north_or_east_terminus = "covington"
What is To Par, when Score is "66", and when Player is "Brad Faxon"?
CREATE TABLE table_name_25 (to_par VARCHAR, score VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_25 WHERE score = 66 AND player = "brad faxon"
What was the tail number with 3/3 fatalities?
CREATE TABLE table_name_32 (tail_number VARCHAR, fatalities VARCHAR)
SELECT tail_number FROM table_name_32 WHERE fatalities = "3/3"
What is the name of episode 165?
CREATE TABLE table_2226817_9 (title VARCHAR, no_in_series VARCHAR)
SELECT title FROM table_2226817_9 WHERE no_in_series = 165
Tell me the lowest bronze for panama and total larger than 8
CREATE TABLE table_name_84 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT MIN(bronze) FROM table_name_84 WHERE nation = "panama" AND total > 8
What is the 54 holes for The Open Championship (4)?
CREATE TABLE table_name_7 (championship VARCHAR)
SELECT 54 AS _holes FROM table_name_7 WHERE championship = "the open championship (4)"
Who won the Modena circuit?
CREATE TABLE table_1140116_5 (winning_driver VARCHAR, circuit VARCHAR)
SELECT winning_driver FROM table_1140116_5 WHERE circuit = "Modena"
How many Points have a Score of 3–0?
CREATE TABLE table_name_80 (points VARCHAR, score VARCHAR)
SELECT COUNT(points) FROM table_name_80 WHERE score = "3–0"
What is the lowest overall amount of w's?
CREATE TABLE table_29542269_2 (w INTEGER)
SELECT MIN(w) FROM table_29542269_2
What was the winning score at bellerive country club?
CREATE TABLE table_275162_1 (score VARCHAR, course VARCHAR)
SELECT score FROM table_275162_1 WHERE course = "Bellerive country Club"
What nominative has mis as the dative?
CREATE TABLE table_name_91 (nominative VARCHAR, dative VARCHAR)
SELECT nominative FROM table_name_91 WHERE dative = "mis"
How many carries for the player with a 2 yard long?
CREATE TABLE table_name_86 (car VARCHAR, long VARCHAR)
SELECT COUNT(car) FROM table_name_86 WHERE long = "2"
How many sprints classifications were associated with an overall winner of Joaquin Rodriguez?
CREATE TABLE table_26257223_13 (sprints_classification VARCHAR, winner VARCHAR)
SELECT COUNT(sprints_classification) FROM table_26257223_13 WHERE winner = "Joaquin Rodriguez"
How many weeks have an Opponent of at san francisco 49ers, and an Attendance smaller than 34,354?
CREATE TABLE table_name_12 (week VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_12 WHERE opponent = "at san francisco 49ers" AND attendance < 34 OFFSET 354
What is the area when the poor law union is skibbereen and the townland is knockmore?
CREATE TABLE table_30121075_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR)
SELECT area__acres__ FROM table_30121075_1 WHERE poor_law_union = "Skibbereen" AND townland = "Knockmore"
How many bronze medals did the team have with 0 total silver and less than 3 total medals?
CREATE TABLE table_name_4 (bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT bronze FROM table_name_4 WHERE total < 3 AND silver > 0
I want the time/retired with grid less than 22 and Laps less than 33 for john surtees
CREATE TABLE table_name_96 (time_retired VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT time_retired FROM table_name_96 WHERE grid < 22 AND laps < 33 AND driver = "john surtees"
When 62 is the number in series who is the writer?
CREATE TABLE table_27657925_1 (written_by VARCHAR, no_in_series VARCHAR)
SELECT written_by FROM table_27657925_1 WHERE no_in_series = "62"
What is the total number of attendence has points greater than 40, and detroit as the home?
CREATE TABLE table_name_99 (attendance VARCHAR, points VARCHAR, home VARCHAR)
SELECT COUNT(attendance) FROM table_name_99 WHERE points > 40 AND home = "detroit"
How many million u.s. viewers saw the episode that was directed by roger young and written by debra j. fisher?
CREATE TABLE table_28037619_2 (us_viewers__million_ VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT us_viewers__million_ FROM table_28037619_2 WHERE directed_by = "Roger Young" AND written_by = "Debra J. Fisher"
When the try bonus was 10 what was the losing bonus?
CREATE TABLE table_name_78 (losing_bonus VARCHAR, try_bonus VARCHAR)
SELECT losing_bonus FROM table_name_78 WHERE try_bonus = "10"
Name the james e. holmes for duane hensley
CREATE TABLE table_25330991_3 (james_e_holmes VARCHAR, western_rockingham_middle_school VARCHAR)
SELECT james_e_holmes FROM table_25330991_3 WHERE western_rockingham_middle_school = "Duane Hensley"
What is the average training hours of all players?
CREATE TABLE Player (HS INTEGER)
SELECT AVG(HS) FROM Player
What is the result of Friday that's တ္ၚဲ အၚါ [ŋoa əŋɛ̀a] from sans. aṅgāra on Tuesday?
CREATE TABLE table_name_91 (friday_shukra__venus_ VARCHAR, tuesday_mangala__mars_ VARCHAR)
SELECT friday_shukra__venus_ FROM table_name_91 WHERE tuesday_mangala__mars_ = "တ္ၚဲ အၚါ [ŋoa əŋɛ̀a] from sans. aṅgāra"
Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail.
CREATE TABLE Assets (asset_id VARCHAR, asset_details VARCHAR); CREATE TABLE Asset_Parts (asset_id VARCHAR); CREATE TABLE Fault_Log (asset_id VARCHAR)
SELECT T1.asset_id, T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING COUNT(*) = 2 INTERSECT SELECT T1.asset_id, T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING COUNT(*) < 2
When the united states has 22 wins and a rank greater than 2, what is the total earnings?
CREATE TABLE table_name_82 (earnings__ INTEGER, rank VARCHAR, country VARCHAR, wins VARCHAR)
SELECT SUM(earnings__) AS $__ FROM table_name_82 WHERE country = "united states" AND wins = 22 AND rank > 2
What was the result of the los angeles rams game?
CREATE TABLE table_name_91 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_91 WHERE opponent = "los angeles rams"
What was the highest number of rounds that had Hikaru Shinohara as an opponent and a record of 11-7?
CREATE TABLE table_name_85 (round INTEGER, opponent VARCHAR, record VARCHAR)
SELECT MAX(round) FROM table_name_85 WHERE opponent = "hikaru shinohara" AND record = "11-7"
What dated the episode written by is adam e. fierro & glen mazzara air?
CREATE TABLE table_30030477_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_30030477_1 WHERE written_by = "Adam E. Fierro & Glen Mazzara"
Who is the athlete with a run 1 larger than 54.95 and a 56.19 run 2?
CREATE TABLE table_name_91 (athlete VARCHAR, run_1 VARCHAR, run_2 VARCHAR)
SELECT athlete FROM table_name_91 WHERE run_1 > 54.95 AND run_2 = 56.19
What is the name of episode number 41 in the series?
CREATE TABLE table_22347090_6 (title VARCHAR, no_in_series VARCHAR)
SELECT title FROM table_22347090_6 WHERE no_in_series = 41
What is the Theme Song of the show on Fuji TV Station with Average Ratings of 16.65%?
CREATE TABLE table_name_87 (theme_song_s_ VARCHAR, tv_station VARCHAR, average_ratings VARCHAR)
SELECT theme_song_s_ FROM table_name_87 WHERE tv_station = "fuji tv" AND average_ratings = "16.65%"
What is the diameter in km of the feature with a longitude of 40.2E?
CREATE TABLE table_16799784_8 (diameter__km_ VARCHAR, longitude VARCHAR)
SELECT diameter__km_ FROM table_16799784_8 WHERE longitude = "40.2E"
What is the entrant for 1967?
CREATE TABLE table_name_76 (entrant VARCHAR, year VARCHAR)
SELECT entrant FROM table_name_76 WHERE year = 1967
What was the winning score on May 3, 1998?
CREATE TABLE table_name_23 (winning_score VARCHAR, date VARCHAR)
SELECT winning_score FROM table_name_23 WHERE date = "may 3, 1998"
How many goals were conceded by teams with 32 points, more than 2 losses and more than 22 goals scored?
CREATE TABLE table_name_75 (goals_conceded VARCHAR, goals_scored VARCHAR, points VARCHAR, lost VARCHAR)
SELECT COUNT(goals_conceded) FROM table_name_75 WHERE points = 32 AND lost > 2 AND goals_scored > 22
What is the lowest round for an offensive guard when the overall is smaller than 150?
CREATE TABLE table_name_59 (round INTEGER, overall VARCHAR, position VARCHAR)
SELECT MIN(round) FROM table_name_59 WHERE overall < 150 AND position = "offensive guard"
Who wrote the lyrics when Jeevankala co-starred?
CREATE TABLE table_2528382_5 (lyricist VARCHAR, co_stars VARCHAR)
SELECT lyricist FROM table_2528382_5 WHERE co_stars = "Jeevankala"
How many have a length of 375?
CREATE TABLE table_16654785_2 (average_climb___percentage_ VARCHAR, length__m_ VARCHAR)
SELECT COUNT(average_climb___percentage_) FROM table_16654785_2 WHERE length__m_ = 375
What is Result, when Date is "June 11, 1994", and when Venue is "Miami, United States"?
CREATE TABLE table_name_58 (result VARCHAR, date VARCHAR, venue VARCHAR)
SELECT result FROM table_name_58 WHERE date = "june 11, 1994" AND venue = "miami, united states"
What's the time of Rank 3?
CREATE TABLE table_name_78 (time VARCHAR, rank VARCHAR)
SELECT time FROM table_name_78 WHERE rank = 3
What country has a score of 73-72-67=212?
CREATE TABLE table_name_14 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_14 WHERE score = 73 - 72 - 67 = 212
What was the attendance for Arsenal?
CREATE TABLE table_name_11 (attendance VARCHAR, home_team VARCHAR)
SELECT attendance FROM table_name_11 WHERE home_team = "arsenal"
Which engine has more than 1 point after 1981?
CREATE TABLE table_name_71 (engine VARCHAR, points VARCHAR, year VARCHAR)
SELECT engine FROM table_name_71 WHERE points > 1 AND year > 1981
What country has a medical school established in 1969 with both an IMED and avicenna?
CREATE TABLE table_name_15 (country_territory VARCHAR, imed_avicenna_listed VARCHAR, established VARCHAR)
SELECT country_territory FROM table_name_15 WHERE imed_avicenna_listed = "both" AND established = 1969
What is the callsign of the 5kW Sonshine Radio Cotabato?
CREATE TABLE table_name_23 (callsign VARCHAR, power__kw_ VARCHAR, branding VARCHAR)
SELECT callsign FROM table_name_23 WHERE power__kw_ = "5kw" AND branding = "sonshine radio cotabato"
What circuit had an ensign n180 as the winning car in round 5?
CREATE TABLE table_name_79 (circuit VARCHAR, winning_car VARCHAR, round VARCHAR)
SELECT circuit FROM table_name_79 WHERE winning_car = "ensign n180" AND round = 5
Who won in 1988 with a total less than 287?
CREATE TABLE table_name_21 (player VARCHAR, total VARCHAR, year_s__won VARCHAR)
SELECT player FROM table_name_21 WHERE total < 287 AND year_s__won = "1988"
What is the color code with a temperature classification of ordinary?
CREATE TABLE table_name_67 (color_code__with_fusible_link_ VARCHAR, temperature_classification VARCHAR)
SELECT color_code__with_fusible_link_ FROM table_name_67 WHERE temperature_classification = "ordinary"
What is the lowest jersey # that has evergreen park, illinois as the birthplace, with a weight (km) greater than 86?
CREATE TABLE table_name_62 (jersey__number INTEGER, birthplace VARCHAR, weight__kg_ VARCHAR)
SELECT MIN(jersey__number) FROM table_name_62 WHERE birthplace = "evergreen park, illinois" AND weight__kg_ > 86
What is the Date of the Game with a Result of w 22–16 in TV Time of CBS 1:00ET?
CREATE TABLE table_name_90 (date VARCHAR, tv_time VARCHAR, result VARCHAR)
SELECT date FROM table_name_90 WHERE tv_time = "cbs 1:00et" AND result = "w 22–16"
What are the Points when the Place is 9?
CREATE TABLE table_name_91 (points VARCHAR, place VARCHAR)
SELECT points FROM table_name_91 WHERE place = 9
Which Venue has a Result of 2–0?
CREATE TABLE table_name_2 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_2 WHERE result = "2–0"
Name the record for score of l 93–104 (ot)
CREATE TABLE table_17288825_8 (record VARCHAR, score VARCHAR)
SELECT record FROM table_17288825_8 WHERE score = "L 93–104 (OT)"
Which Position has Goals For of 52, and Goals Against larger than 70?
CREATE TABLE table_name_51 (position INTEGER, goals_for VARCHAR, goals_against VARCHAR)
SELECT MAX(position) FROM table_name_51 WHERE goals_for = 52 AND goals_against > 70
What was the venue when Ben Barker finished third?
CREATE TABLE table_name_65 (venue VARCHAR, third VARCHAR)
SELECT venue FROM table_name_65 WHERE third = "ben barker"
what are all the open 1st viii with u15 4th iv being gt
CREATE TABLE table_11318462_5 (open_1st_viii VARCHAR, u15_4th_iv VARCHAR)
SELECT open_1st_viii FROM table_11318462_5 WHERE u15_4th_iv = "GT"
Tell me the cast for b. reeves eason and joseph kane
CREATE TABLE table_name_80 (cast VARCHAR, director VARCHAR)
SELECT cast FROM table_name_80 WHERE director = "b. reeves eason and joseph kane"
What is the description of role code ED?
CREATE TABLE ROLES (role_description VARCHAR, role_code VARCHAR)
SELECT role_description FROM ROLES WHERE role_code = "ED"
Which Score has a Place of t5, and a Country of united states?
CREATE TABLE table_name_30 (score VARCHAR, place VARCHAR, country VARCHAR)
SELECT score FROM table_name_30 WHERE place = "t5" AND country = "united states"
Name the manner of departure for 1 december 2009
CREATE TABLE table_22848931_3 (manner_of_departure VARCHAR, date_of_vacancy VARCHAR)
SELECT manner_of_departure FROM table_22848931_3 WHERE date_of_vacancy = "1 December 2009"
Who was Margaret of Brabant's spouse?
CREATE TABLE table_name_71 (spouse VARCHAR, name VARCHAR)
SELECT spouse FROM table_name_71 WHERE name = "margaret of brabant"
What was the highest position for Rossendale United when the played was larger than 34?
CREATE TABLE table_name_19 (position INTEGER, team VARCHAR, played VARCHAR)
SELECT MAX(position) FROM table_name_19 WHERE team = "rossendale united" AND played > 34
What is the highest value for population when area is 9104?
CREATE TABLE table_298550_1 (population__1_july_2005_est_ INTEGER, area__km²_ VARCHAR)
SELECT MAX(population__1_july_2005_est_) FROM table_298550_1 WHERE area__km²_ = 9104