question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the week 2's record?
CREATE TABLE table_name_92 (record VARCHAR, week VARCHAR)
SELECT record FROM table_name_92 WHERE week = "2"
If the games won are 5, what is the best winning average?
CREATE TABLE table_27533947_1 (best_winning_average VARCHAR, games_won VARCHAR)
SELECT best_winning_average FROM table_27533947_1 WHERE games_won = 5
What is the number in season for the episode written by Chris Mitchell and Erik Wiese?
CREATE TABLE table_2156758_4 (no_in_season VARCHAR, written_by VARCHAR)
SELECT no_in_season FROM table_2156758_4 WHERE written_by = "Chris Mitchell and Erik Wiese"
What is the maximum ITV1 weekly ranking?
CREATE TABLE table_25664518_3 (itv1_weekly_ranking INTEGER)
SELECT MAX(itv1_weekly_ranking) FROM table_25664518_3
What is the lowest February, when Record is "21-30-11", and when Game is greater than 62?
CREATE TABLE table_name_54 (february INTEGER, record VARCHAR, game VARCHAR)
SELECT MIN(february) FROM table_name_54 WHERE record = "21-30-11" AND game > 62
In the match against Marcus Aurélio with a method of decision (unanimous), what was the results?
CREATE TABLE table_name_6 (res VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_6 WHERE method = "decision (unanimous)" AND opponent = "marcus aurélio"
What is the family of the constellation that has lyncis /ˈlɪnsɨs/ as genitive?
CREATE TABLE table_287159_1 (family VARCHAR, genitive VARCHAR)
SELECT family FROM table_287159_1 WHERE genitive = "Lyncis /ˈlɪnsɨs/"
In which tournament was the opponent Lauren Embree?
CREATE TABLE table_name_83 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_83 WHERE opponent = "lauren embree"
where cfl team is winnipeg (3) via hamilton what are all the player
CREATE TABLE table_26996293_2 (player VARCHAR, cfl_team VARCHAR)
SELECT player FROM table_26996293_2 WHERE cfl_team = "Winnipeg (3) via Hamilton"
I want the Grand Final Date for season 1988
CREATE TABLE table_name_40 (grand_finaldate VARCHAR, season VARCHAR)
SELECT grand_finaldate FROM table_name_40 WHERE season = 1988
How many episodes were directed by Rod Hardy?
CREATE TABLE table_25740548_2 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT COUNT(original_air_date) FROM table_25740548_2 WHERE directed_by = "Rod Hardy"
Which venue hosts the Olympic Games for DNQ position?
CREATE TABLE table_name_24 (venue VARCHAR, competition VARCHAR, position VARCHAR)
SELECT venue FROM table_name_24 WHERE competition = "olympic games" AND position = "dnq"
What was the date of the game when the Calgary Flames were the visiting team and there was a record of 1–2–0?
CREATE TABLE table_name_17 (date VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT date FROM table_name_17 WHERE visitor = "calgary flames" AND record = "1–2–0"
who has the 1 goal and the position is fw?
CREATE TABLE table_23963781_2 (name VARCHAR, goals VARCHAR, position VARCHAR)
SELECT name FROM table_23963781_2 WHERE goals = 1 AND position = "FW"
When Venue of A has Attendance of 4,365?
CREATE TABLE table_name_53 (date VARCHAR, venue VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_53 WHERE venue = "a" AND attendance = "4,365"
Which Bronze has a Total of 11, and a Silver smaller than 6?
CREATE TABLE table_name_59 (bronze INTEGER, total VARCHAR, silver VARCHAR)
SELECT MAX(bronze) FROM table_name_59 WHERE total = 11 AND silver < 6
Which Winning Team has the Fastest Lap of brendon hartley, and a Pole Position of oliver turvey, and a Circuit of spa-francorchamps, and the Winning Driver of brendon hartley?
CREATE TABLE table_name_75 (winning_team VARCHAR, winning_driver VARCHAR, circuit VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
SELECT winning_team FROM table_name_75 WHERE fastest_lap = "brendon hartley" AND pole_position = "oliver turvey" AND circuit = "spa-francorchamps" AND winning_driver = "brendon hartley"
When zachary sanders is the performer how many first aired are there?
CREATE TABLE table_191105_2 (first_aired VARCHAR, performed_by VARCHAR)
SELECT COUNT(first_aired) FROM table_191105_2 WHERE performed_by = "Zachary Sanders"
What is the italian word for Glarus?
CREATE TABLE table_name_44 (italian VARCHAR, common_english VARCHAR)
SELECT italian FROM table_name_44 WHERE common_english = "glarus"
In what year did Easton LL Easton play in Maryland?
CREATE TABLE table_13012165_1 (year VARCHAR, maryland VARCHAR)
SELECT COUNT(year) FROM table_13012165_1 WHERE maryland = "Easton LL Easton"
Name the surface for january 8, 2001
CREATE TABLE table_name_93 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_93 WHERE date = "january 8, 2001"
who is the the candidates with dbeingtrict being kansas 5
CREATE TABLE table_1342359_15 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1342359_15 WHERE district = "Kansas 5"
Name the Milan – San Remo which has a Liège–Bastogne–Liège of danilo di luca ( ita )?
CREATE TABLE table_name_81 (milan___san_remo VARCHAR, liège_bastogne_liège VARCHAR)
SELECT milan___san_remo FROM table_name_81 WHERE liège_bastogne_liège = "danilo di luca ( ita )"
What is the date of birth of Oliver Buell's child?
CREATE TABLE table_name_32 (date_of_birth VARCHAR, child VARCHAR)
SELECT date_of_birth FROM table_name_32 WHERE child = "oliver buell"
What is Runner(s)-up, when Date is 21 Jan 2007?
CREATE TABLE table_name_47 (runner_s__up VARCHAR, date VARCHAR)
SELECT runner_s__up FROM table_name_47 WHERE date = "21 jan 2007"
Which player had a score of 72-69=141?
CREATE TABLE table_name_75 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_75 WHERE score = 72 - 69 = 141
What was the score of the game attended by 50,200?
CREATE TABLE table_name_2 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_2 WHERE attendance = "50,200"
How many were the show's average weekly ranking when it reached No. 2 in average nightly ranking?
CREATE TABLE table_15358729_6 (average_weekly_rank VARCHAR, average_nightly_rank VARCHAR)
SELECT COUNT(average_weekly_rank) FROM table_15358729_6 WHERE average_nightly_rank = "No. 2"
What is the Year, when Role is "himself", and when Title is "Epik High's Love And Delusion"?
CREATE TABLE table_name_59 (year VARCHAR, role VARCHAR, title VARCHAR)
SELECT year FROM table_name_59 WHERE role = "himself" AND title = "epik high's love and delusion"
Which position has a pick greater than 28?
CREATE TABLE table_name_31 (position VARCHAR, pick INTEGER)
SELECT position FROM table_name_31 WHERE pick > 28
What game had more than 50,324 in attendance?
CREATE TABLE table_name_45 (date VARCHAR, attendance INTEGER)
SELECT date FROM table_name_45 WHERE attendance > 50 OFFSET 324
If Safari is 3.76%, what is the other Mozilla amount?
CREATE TABLE table_1876262_10 (other_mozilla VARCHAR, safari VARCHAR)
SELECT other_mozilla FROM table_1876262_10 WHERE safari = "3.76%"
Show the musical nominee with award "Bob Fosse" or "Cleavant Derricks".
CREATE TABLE musical (Nominee VARCHAR, Award VARCHAR)
SELECT Nominee FROM musical WHERE Award = "Tony Award" OR Award = "Cleavant Derricks"
What week had an attendance of 27,262?
CREATE TABLE table_name_66 (week VARCHAR, attendance VARCHAR)
SELECT week FROM table_name_66 WHERE attendance = "27,262"
How many wickets did Alec bedser have?
CREATE TABLE table_16570286_4 (wickets INTEGER, player VARCHAR)
SELECT MAX(wickets) FROM table_16570286_4 WHERE player = "Alec Bedser"
Can you tell me the sun of Population that has the Country/Region of hong kong, and the Rank smaller than 2?
CREATE TABLE table_name_45 (population INTEGER, country_region VARCHAR, rank VARCHAR)
SELECT SUM(population) FROM table_name_45 WHERE country_region = "hong kong" AND rank < 2
What is the highest year for the US Open?
CREATE TABLE table_name_4 (year INTEGER, championship VARCHAR)
SELECT MAX(year) FROM table_name_4 WHERE championship = "us open"
Tell me the named after for diameter less than 19.2 and latitude more than -37.5 with longitude less than 67.3
CREATE TABLE table_name_97 (named VARCHAR, longitude VARCHAR, diameter__km_ VARCHAR, latitude VARCHAR)
SELECT named AS after FROM table_name_97 WHERE diameter__km_ < 19.2 AND latitude > -37.5 AND longitude < 67.3
What is the lowest Division, when Goals are less than 10, when Team is Dalian Shide, when Apps are less than 17, and when Season is 2007?
CREATE TABLE table_name_79 (division INTEGER, season VARCHAR, apps VARCHAR, goals VARCHAR, team VARCHAR)
SELECT MIN(division) FROM table_name_79 WHERE goals < 10 AND team = "dalian shide" AND apps < 17 AND season = "2007"
What date has new england patriots as the opponent?
CREATE TABLE table_name_26 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_26 WHERE opponent = "new england patriots"
what is the soap opera for elin sogn?
CREATE TABLE table_name_48 (soap_opera VARCHAR, actor VARCHAR)
SELECT soap_opera FROM table_name_48 WHERE actor = "elin sogn"
How many episodes originally aired on April 29, 2008?
CREATE TABLE table_13301516_1 (no_in_series VARCHAR, original_air_date VARCHAR)
SELECT COUNT(no_in_series) FROM table_13301516_1 WHERE original_air_date = "April 29, 2008"
What school was founded in 1791?
CREATE TABLE table_2076595_1 (school VARCHAR, founded VARCHAR)
SELECT school FROM table_2076595_1 WHERE founded = 1791
What is the venue of season 1983, which had alianza lima as the home team?
CREATE TABLE table_name_7 (venue VARCHAR, home_team VARCHAR, season VARCHAR)
SELECT venue FROM table_name_7 WHERE home_team = "alianza lima" AND season = 1983
What was the series count at on May 23?
CREATE TABLE table_13762472_13 (series VARCHAR, date VARCHAR)
SELECT series FROM table_13762472_13 WHERE date = "May 23"
What is the League for 1952–1960?
CREATE TABLE table_name_2 (league_a VARCHAR, years VARCHAR)
SELECT league_a FROM table_name_2 WHERE years = "1952–1960"
What is the Outcome of the match with Partner Andoni Vivanco?
CREATE TABLE table_name_7 (outcome VARCHAR, partner VARCHAR)
SELECT outcome FROM table_name_7 WHERE partner = "andoni vivanco"
How many times does the rebuilt data contain cannot handle non-empty timestamp argument! 1929 and scrapped data contain cannot handle non-empty timestamp argument! 1954?
CREATE TABLE table_12113888_1 (number VARCHAR, rebuilt VARCHAR, scrapped_sold VARCHAR)
SELECT COUNT(number) FROM table_12113888_1 WHERE rebuilt = "Cannot handle non-empty timestamp argument! 1929" AND scrapped_sold = "Cannot handle non-empty timestamp argument! 1954"
What try bonus drew 0 and scored 427 points for?
CREATE TABLE table_name_83 (try_bonus VARCHAR, drawn VARCHAR, points_for VARCHAR)
SELECT try_bonus FROM table_name_83 WHERE drawn = "0" AND points_for = "427"
How many seasons had a Super G of 2 and overall of 3?
CREATE TABLE table_name_61 (season VARCHAR, super_g VARCHAR, overall VARCHAR)
SELECT COUNT(season) FROM table_name_61 WHERE super_g = "2" AND overall = 3
With a Rank of less than 4, what is Pablo Prigioni's total number of Games?
CREATE TABLE table_name_44 (games VARCHAR, name VARCHAR, rank VARCHAR)
SELECT COUNT(games) FROM table_name_44 WHERE name = "pablo prigioni" AND rank < 4
What is the number of points associated with the highest position under 9 and a current position of 22?
CREATE TABLE table_name_92 (points VARCHAR, highest_position VARCHAR, position VARCHAR)
SELECT points FROM table_name_92 WHERE highest_position < 9 AND position = 22
What was the little league team from Michigan when the little league team from Indiana was Terre Haute North LL Terre Haute?
CREATE TABLE table_18461045_1 (michigan VARCHAR, indiana VARCHAR)
SELECT michigan FROM table_18461045_1 WHERE indiana = "Terre Haute North LL Terre Haute"
Occupational pensions of 7%, and a Working tax credit of 2%, and a Other social security benefits of 6% has what investment income?
CREATE TABLE table_name_39 (investment_income VARCHAR, other_social_security_benefits VARCHAR, occupational_pensions VARCHAR, working_tax_credit VARCHAR)
SELECT investment_income FROM table_name_39 WHERE occupational_pensions = "7%" AND working_tax_credit = "2%" AND other_social_security_benefits = "6%"
What player is from Spring, Tx?
CREATE TABLE table_11677100_4 (player VARCHAR, hometown VARCHAR)
SELECT player FROM table_11677100_4 WHERE hometown = "Spring, TX"
what is the mascot when the county is 43 kosciusko?
CREATE TABLE table_name_82 (mascot VARCHAR, county VARCHAR)
SELECT mascot FROM table_name_82 WHERE county = "43 kosciusko"
On what date was it announced that an asset was acquired for US$9 Million?
CREATE TABLE table_1373542_1 (date_announced VARCHAR, reported_cost VARCHAR)
SELECT date_announced FROM table_1373542_1 WHERE reported_cost = "US$9 million"
What was the to par score for Tim Herron, who had a score of 69-72=141?
CREATE TABLE table_name_92 (to_par VARCHAR, player VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_92 WHERE score = 69 - 72 = 141 AND player = "tim herron"
On what Date was Carole Charbonnier a Runner(s)-up with a 1 stroke Margin of victory?
CREATE TABLE table_name_6 (date VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT date FROM table_name_6 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "carole charbonnier"
How many different original air dates did the episode number 6 have?
CREATE TABLE table_13426649_1 (original_air_date VARCHAR, _number VARCHAR)
SELECT COUNT(original_air_date) FROM table_13426649_1 WHERE _number = 6
What are the names and opening hours of the tourist attractions that can be accessed by bus or walk?
CREATE TABLE TOURIST_ATTRACTIONS (Name VARCHAR, Opening_Hours VARCHAR, How_to_Get_There VARCHAR)
SELECT Name, Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus" OR How_to_Get_There = "walk"
How many people attended when the record was broken with 47–63?
CREATE TABLE table_name_38 (attendance VARCHAR, record VARCHAR)
SELECT attendance FROM table_name_38 WHERE record = "47–63"
who were the winners in west virginia
CREATE TABLE table_1133844_4 (candidates_winning_candidate_in_bold VARCHAR, state__linked_to_summaries_below_ VARCHAR)
SELECT candidates_winning_candidate_in_bold FROM table_1133844_4 WHERE state__linked_to_summaries_below_ = "West Virginia"
What years have claudia ruffo as the actor?
CREATE TABLE table_name_18 (years VARCHAR, actor VARCHAR)
SELECT years FROM table_name_18 WHERE actor = "claudia ruffo"
What was the score in game 81?
CREATE TABLE table_name_60 (score VARCHAR, game__number VARCHAR)
SELECT score FROM table_name_60 WHERE game__number = 81
Which years was there a To par of +1?
CREATE TABLE table_name_45 (year_s__won VARCHAR, to_par VARCHAR)
SELECT year_s__won FROM table_name_45 WHERE to_par = "+1"
What's the average year with a rank less than 3?
CREATE TABLE table_name_91 (year INTEGER, rank INTEGER)
SELECT AVG(year) FROM table_name_91 WHERE rank < 3
Name the Year which has a Label of atco records and a Type of album? Question 2
CREATE TABLE table_name_15 (year VARCHAR, label VARCHAR, type VARCHAR)
SELECT year FROM table_name_15 WHERE label = "atco records" AND type = "album"
what team played in game 2
CREATE TABLE table_name_24 (road_team VARCHAR, game VARCHAR)
SELECT road_team FROM table_name_24 WHERE game = "game 2"
What is the Date that chicago black hawks has a Record of 2–2?
CREATE TABLE table_name_5 (date VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT date FROM table_name_5 WHERE visitor = "chicago black hawks" AND record = "2–2"
What was the transfer fee for the summer transfer involving the SCO named Crainey?
CREATE TABLE table_name_83 (transfer_fee VARCHAR, name VARCHAR, transfer_window VARCHAR, country VARCHAR)
SELECT transfer_fee FROM table_name_83 WHERE transfer_window = "summer" AND country = "sco" AND name = "crainey"
What is the Date with an Away that is broadview hawks?
CREATE TABLE table_name_5 (date VARCHAR, away VARCHAR)
SELECT date FROM table_name_5 WHERE away = "broadview hawks"
what are every one of the rivals in conclusive where title is zürich
CREATE TABLE table_23197088_4 (opponents_in_final VARCHAR, championship VARCHAR)
SELECT opponents_in_final FROM table_23197088_4 WHERE championship = "Zürich"
Name the original airdate for robin mukherjee and margy kinmonth
CREATE TABLE table_27208814_1 (original_airdate VARCHAR, writer VARCHAR, director VARCHAR)
SELECT original_airdate FROM table_27208814_1 WHERE writer = "Robin Mukherjee" AND director = "Margy Kinmonth"
What is the lowest Rank with more than 0 bronze, 8 silver, and a total of 19, with less than 9 gold?
CREATE TABLE table_name_23 (rank INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT MIN(rank) FROM table_name_23 WHERE bronze > 0 AND silver = 8 AND total = 19 AND gold < 9
how many minimum 350cc has
CREATE TABLE table_2889810_2 (Id VARCHAR)
SELECT MIN(350 AS cc) FROM table_2889810_2
What shows for the location and attendance when the record is 41–36?
CREATE TABLE table_name_9 (location_attendance VARCHAR, record VARCHAR)
SELECT location_attendance FROM table_name_9 WHERE record = "41–36"
What was the highest attendance of a game that had a score of 3-5?
CREATE TABLE table_name_83 (attendance INTEGER, score VARCHAR)
SELECT MAX(attendance) FROM table_name_83 WHERE score = "3-5"
What is the sum of households that makes a median household income of $44,718?
CREATE TABLE table_name_43 (number_of_households INTEGER, median_household_income VARCHAR)
SELECT SUM(number_of_households) FROM table_name_43 WHERE median_household_income = "$44,718"
What is the Wade-Giles translation of the Pinyin xīn rú yuánhóu?
CREATE TABLE table_name_44 (wade_giles VARCHAR, pinyin VARCHAR)
SELECT wade_giles FROM table_name_44 WHERE pinyin = "xīn rú yuánhóu"
in which season the position was center
CREATE TABLE table_19897896_7 (season VARCHAR, position VARCHAR)
SELECT season FROM table_19897896_7 WHERE position = "Center"
Which locomotives 12" x 17" are both ex-industrial and built by Manning Wardle?
CREATE TABLE table_1157867_2 (name VARCHAR, notes VARCHAR, builder VARCHAR)
SELECT name FROM table_1157867_2 WHERE notes = "Ex-industrial" AND builder = "Manning Wardle"
The color diamond is assigned to which Terminus?
CREATE TABLE table_name_46 (terminus VARCHAR, color VARCHAR)
SELECT terminus FROM table_name_46 WHERE color = "diamond"
What is the geo id of the land at 35.999?
CREATE TABLE table_18600760_12 (geo_id INTEGER, land___sqmi__ VARCHAR)
SELECT MAX(geo_id) FROM table_18600760_12 WHERE land___sqmi__ = "35.999"
In what Round is John Parco a Center?
CREATE TABLE table_name_70 (round VARCHAR, position VARCHAR, player VARCHAR)
SELECT round FROM table_name_70 WHERE position = "center" AND player = "john parco"
What event was Rob Vine riding?
CREATE TABLE table_name_56 (event VARCHAR, rider VARCHAR)
SELECT event FROM table_name_56 WHERE rider = "rob vine"
What location has a school with enrollment of 850?
CREATE TABLE table_262560_2 (location VARCHAR, enrollment VARCHAR)
SELECT location FROM table_262560_2 WHERE enrollment = 850
What are the notes for the Mandarin Chinese program on CTV earlier than 2013?
CREATE TABLE table_name_40 (notes VARCHAR, network VARCHAR, year VARCHAR, language VARCHAR)
SELECT notes FROM table_name_40 WHERE year < 2013 AND language = "mandarin chinese" AND network = "ctv"
What was the type when there were 175932 yes votes?
CREATE TABLE table_256286_40 (type VARCHAR, yes_votes VARCHAR)
SELECT type FROM table_256286_40 WHERE yes_votes = 175932
What is the call sign with a 222 erp w?
CREATE TABLE table_name_15 (call_sign VARCHAR, erp_w VARCHAR)
SELECT call_sign FROM table_name_15 WHERE erp_w = 222
Which song garnered an advanced result during top 20 week ?
CREATE TABLE table_name_38 (song_choice VARCHAR, result VARCHAR, week VARCHAR)
SELECT song_choice FROM table_name_38 WHERE result = "advanced" AND week = "top 20"
Who was the draft pick that went to college at Oral Roberts?
CREATE TABLE table_name_44 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_44 WHERE college = "oral roberts"
What is the smallest withdrawn value with a GNRI greater than 172, name of Croagh Patrick and was rebuilt before 1939?
CREATE TABLE table_name_10 (withdrawn INTEGER, rebuilt VARCHAR, gnri_no VARCHAR, name VARCHAR)
SELECT MIN(withdrawn) FROM table_name_10 WHERE gnri_no > 172 AND name = "croagh patrick" AND rebuilt < 1939
What is the Site when the Result was w52-0?
CREATE TABLE table_name_92 (site VARCHAR, result VARCHAR)
SELECT site FROM table_name_92 WHERE result = "w52-0"
Who has a 59 cap?
CREATE TABLE table_name_9 (name VARCHAR, caps VARCHAR)
SELECT name FROM table_name_9 WHERE caps = 59
What play is from the country Belgium?
CREATE TABLE table_name_18 (play VARCHAR, country VARCHAR)
SELECT play FROM table_name_18 WHERE country = "belgium"
Who was Alicja Rosolska Partnered with when the Score in Final was 4–6, 3–6?
CREATE TABLE table_name_97 (partnered_with VARCHAR, score_in_final VARCHAR)
SELECT partnered_with FROM table_name_97 WHERE score_in_final = "4–6, 3–6"
What were the wounded for complement of 46 off 656 men?
CREATE TABLE table_11793221_4 (wounded VARCHAR, complement VARCHAR)
SELECT wounded FROM table_11793221_4 WHERE complement = "46 off 656 men"
Which Surface has an Opponent of kerry melville reid, and a Score of 6–3, 2–6, 3–6?
CREATE TABLE table_name_53 (surface VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT surface FROM table_name_53 WHERE opponent = "kerry melville reid" AND score = "6–3, 2–6, 3–6"
Who is the opponent in week 10?
CREATE TABLE table_name_5 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_5 WHERE week = 10