question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the description of the treatment type that costs the least money in total?
CREATE TABLE Treatments (treatment_type_code VARCHAR); CREATE TABLE Treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR)
SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY SUM(cost_of_treatment) LIMIT 1
Jack Loell had how many extra points?
CREATE TABLE table_25724294_2 (extra_points VARCHAR, player VARCHAR)
SELECT extra_points FROM table_25724294_2 WHERE player = "Jack Loell"
Which opponent has 32194 as the attendance?
CREATE TABLE table_23466021_4 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_23466021_4 WHERE attendance = 32194
Who is the operator to Highbury & Islington?
CREATE TABLE table_1612760_1 (operator VARCHAR, destination VARCHAR)
SELECT operator FROM table_1612760_1 WHERE destination = "Highbury & Islington"
What place did the Sake Tuyas come in when the Denim Demons were 4th?
CREATE TABLE table_29619494_2 (sake_tuyas VARCHAR, denim_demons VARCHAR)
SELECT sake_tuyas FROM table_29619494_2 WHERE denim_demons = "4th"
Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?
CREATE TABLE votes (contestant_number VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR)
SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) LIMIT 1
What player had 49 balls?
CREATE TABLE table_name_8 (player VARCHAR, balls VARCHAR)
SELECT player FROM table_name_8 WHERE balls = 49
How many picks did Central State have before round 2?
CREATE TABLE table_name_29 (pick VARCHAR, school VARCHAR, round VARCHAR)
SELECT COUNT(pick) FROM table_name_29 WHERE school = "central state" AND round < 2
What is the total number of capitals that have an area of exactly 1104 square km?
CREATE TABLE table_19605700_1 (capital VARCHAR, area_km² VARCHAR)
SELECT COUNT(capital) FROM table_19605700_1 WHERE area_km² = 1104
What Location has a College or Campus Name of anna university - tharamani campus?
CREATE TABLE table_name_81 (location VARCHAR, college_or_campus_name VARCHAR)
SELECT location FROM table_name_81 WHERE college_or_campus_name = "anna university - tharamani campus"
What Label released on October 25, 1984, in the format of Stereo LP?
CREATE TABLE table_name_79 (label VARCHAR, date VARCHAR, format VARCHAR)
SELECT label FROM table_name_79 WHERE date = "october 25, 1984" AND format = "stereo lp"
Boca Raton, Florida had what joined amount?
CREATE TABLE table_1183842_1 (joined VARCHAR, location VARCHAR)
SELECT joined FROM table_1183842_1 WHERE location = "Boca Raton, Florida"
What location has an annual change of 7.6%
CREATE TABLE table_name_32 (location VARCHAR, annual_change VARCHAR)
SELECT location FROM table_name_32 WHERE annual_change = "7.6%"
In what laguage was Contotv 5?
CREATE TABLE table_15887683_19 (language VARCHAR, television_service VARCHAR)
SELECT language FROM table_15887683_19 WHERE television_service = "ContoTV 5"
What year did fr-08: the product ( farbrausch ) win best pc intro?
CREATE TABLE table_2490289_1 (year VARCHAR, pc_intro VARCHAR)
SELECT year FROM table_2490289_1 WHERE pc_intro = "FR-08: The Product ( Farbrausch )"
What is the highest number lost when the number tied is more than 42, the years are less than 132, and the PCT is less than 0.5729000000000001?
CREATE TABLE table_name_57 (lost INTEGER, pct VARCHAR, tied VARCHAR, years VARCHAR)
SELECT MAX(lost) FROM table_name_57 WHERE tied > 42 AND years < 132 AND pct < 0.5729000000000001
What is the average Pick, when Player is "Willie White",and when Round is less than 2?
CREATE TABLE table_name_82 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT AVG(pick) FROM table_name_82 WHERE player = "willie white" AND round < 2
Which team 1 played against team 2 of Tours FC (D2)?
CREATE TABLE table_name_21 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_21 WHERE team_2 = "tours fc (d2)"
Which nation is Robert Gesink from?
CREATE TABLE table_name_96 (nation VARCHAR, cyclist VARCHAR)
SELECT nation FROM table_name_96 WHERE cyclist = "robert gesink"
Record of 42–16–8, and a March larger than 5 has what average points?
CREATE TABLE table_name_95 (points INTEGER, record VARCHAR, march VARCHAR)
SELECT AVG(points) FROM table_name_95 WHERE record = "42–16–8" AND march > 5
What is the constructor with grid value 5?
CREATE TABLE table_name_54 (constructor VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_54 WHERE grid = "5"
Name the 2013 profit for assets being 11.2
CREATE TABLE table_24307126_3 (assets_2013__bil$_ VARCHAR)
SELECT 2013 AS _profit__mil_usd__ FROM table_24307126_3 WHERE assets_2013__bil$_ = "11.2"
What is the english translation of the sanskrit word varsha?
CREATE TABLE table_name_81 (english_translation VARCHAR, season_in_sanskrit VARCHAR)
SELECT english_translation FROM table_name_81 WHERE season_in_sanskrit = "varsha"
What is the name of the baseball stadium for the school with the Murray Center basketball arena?
CREATE TABLE table_1974545_3 (baseball_stadium VARCHAR, basketball_arena VARCHAR)
SELECT baseball_stadium FROM table_1974545_3 WHERE basketball_arena = "The Murray Center"
How many distinct artists do the volumes associate to?
CREATE TABLE volume (Artist_ID VARCHAR)
SELECT COUNT(DISTINCT Artist_ID) FROM volume
On which island is Esperadinha airport located?
CREATE TABLE table_name_53 (island VARCHAR, airportname VARCHAR)
SELECT island FROM table_name_53 WHERE airportname = "esperadinha airport"
What is the score for the game with an 11 tie number?
CREATE TABLE table_name_50 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_50 WHERE tie_no = "11"
What is the engine type with a wheelbase of 127 inches in 1915?
CREATE TABLE table_name_14 (engine_type___cyl VARCHAR, wheelbase_in VARCHAR, year VARCHAR)
SELECT engine_type___cyl FROM table_name_14 WHERE wheelbase_in = "127" AND year = "1915"
Which Venue has a Result of 2–2 and Attendances of 5,760?
CREATE TABLE table_name_58 (venue VARCHAR, result VARCHAR, attendance VARCHAR)
SELECT venue FROM table_name_58 WHERE result = "2–2" AND attendance = "5,760"
What is the Country with Reteconomy as the Television service?
CREATE TABLE table_name_48 (country VARCHAR, television_service VARCHAR)
SELECT country FROM table_name_48 WHERE television_service = "reteconomy"
In what round was the circuit Eastern Creek Raceway?
CREATE TABLE table_25531112_2 (rd VARCHAR, circuit VARCHAR)
SELECT rd FROM table_25531112_2 WHERE circuit = "Eastern Creek Raceway"
What was the home team score for the game played against Collingwood?
CREATE TABLE table_name_24 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_24 WHERE away_team = "collingwood"
Tell me the date that has a week larger than 3 and a result of w 28-27
CREATE TABLE table_name_26 (date VARCHAR, week VARCHAR, result VARCHAR)
SELECT date FROM table_name_26 WHERE week > 3 AND result = "w 28-27"
When was the park demolished in 1994 closed?
CREATE TABLE table_1987995_5 (closed INTEGER, demod VARCHAR)
SELECT MIN(closed) FROM table_1987995_5 WHERE demod = 1994
What is the average number played of the team with 1 drawn and 24 against?
CREATE TABLE table_name_79 (played INTEGER, drawn VARCHAR, against VARCHAR)
SELECT AVG(played) FROM table_name_79 WHERE drawn = 1 AND against = 24
what is the grid when the laps is 2?
CREATE TABLE table_name_21 (grid VARCHAR, laps VARCHAR)
SELECT grid FROM table_name_21 WHERE laps = 2
what is the minimum attendance with record being 4–6
CREATE TABLE table_14102379_4 (attendance INTEGER, record VARCHAR)
SELECT MIN(attendance) FROM table_14102379_4 WHERE record = "4–6"
Of all players with an overall rating greater than 80, how many are right-footed and left-footed?
CREATE TABLE Player_Attributes (preferred_foot VARCHAR, overall_rating INTEGER)
SELECT preferred_foot, COUNT(*) FROM Player_Attributes WHERE overall_rating > 80 GROUP BY preferred_foot
Name the year for standing 9th
CREATE TABLE table_20774360_2 (year VARCHAR, standing VARCHAR)
SELECT year FROM table_20774360_2 WHERE standing = "9th"
Which Outcome has a Championship of us championships, and a Score in the final of 5–7, 6–1, 6–3, 6–3?
CREATE TABLE table_name_61 (outcome VARCHAR, championship VARCHAR, score_in_the_final VARCHAR)
SELECT outcome FROM table_name_61 WHERE championship = "us championships" AND score_in_the_final = "5–7, 6–1, 6–3, 6–3"
What is the name of the athlete from Myanmar?
CREATE TABLE table_name_97 (athletes VARCHAR, country VARCHAR)
SELECT athletes FROM table_name_97 WHERE country = "myanmar"
What's the lap number for time/retired of +33.912?
CREATE TABLE table_name_71 (laps VARCHAR, time_retired VARCHAR)
SELECT COUNT(laps) FROM table_name_71 WHERE time_retired = "+33.912"
What is Player Kenny Williams' Height?
CREATE TABLE table_name_53 (height VARCHAR, player VARCHAR)
SELECT height FROM table_name_53 WHERE player = "kenny williams"
What was the tournament that was on july 6, 1987?
CREATE TABLE table_name_55 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_55 WHERE date = "july 6, 1987"
How many times is the player vaughn taylor listed?
CREATE TABLE table_28498999_3 (before VARCHAR, player VARCHAR)
SELECT COUNT(before) FROM table_28498999_3 WHERE player = "Vaughn Taylor"
How many cities were there in 2012 where the rate of burglary was 224.8?
CREATE TABLE table_1818254_1 (property_crime VARCHAR, burglary VARCHAR)
SELECT COUNT(property_crime) FROM table_1818254_1 WHERE burglary = "224.8"
What is the build date when total produced is 2?
CREATE TABLE table_name_80 (build_date VARCHAR, total_produced VARCHAR)
SELECT build_date FROM table_name_80 WHERE total_produced = 2
What is the quantity with more than 45 seats and MCI make?
CREATE TABLE table_name_80 (quantity VARCHAR, number_of_seats VARCHAR, make VARCHAR)
SELECT quantity FROM table_name_80 WHERE number_of_seats > 45 AND make = "mci"
Liverpool as a home team as listed what in the Tie no column?
CREATE TABLE table_name_28 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_28 WHERE home_team = "liverpool"
What is the nickname of the school located in Fairfax, VA?
CREATE TABLE table_name_98 (nickname VARCHAR, location VARCHAR)
SELECT nickname FROM table_name_98 WHERE location = "fairfax, va"
What is the score if Millwall is the Home Team?
CREATE TABLE table_name_18 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_18 WHERE home_team = "millwall"
Can you tell me the sum of 100s that has the Team of deccan chargers, and the Match of 8, and the Average larger than 35.57?
CREATE TABLE table_name_41 (average VARCHAR, team VARCHAR, matches VARCHAR)
SELECT SUM(100 AS s) FROM table_name_41 WHERE team = "deccan chargers" AND matches = 8 AND average > 35.57
What are the classes for the circuit that has the Mazda Raceway Laguna Seca race.
CREATE TABLE table_name_70 (class_es_ VARCHAR, circuit VARCHAR)
SELECT class_es_ FROM table_name_70 WHERE circuit = "mazda raceway laguna seca"
What was the percentage for T. Papadopoulos when D. Christofias was 28.4%?
CREATE TABLE table_name_48 (t_papadopoulos VARCHAR, d_christofias VARCHAR)
SELECT t_papadopoulos FROM table_name_48 WHERE d_christofias = "28.4%"
what's the minimum species in the peruvian amazon with taxonomy s fern ( pteridophyta )
CREATE TABLE table_11727969_1 (species_in_the_peruvian_amazon INTEGER, taxonomy VARCHAR)
SELECT MIN(species_in_the_peruvian_amazon) FROM table_11727969_1 WHERE taxonomy = "s Fern ( Pteridophyta )"
Which team calls VFL Park their home?
CREATE TABLE table_name_96 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_96 WHERE venue = "vfl park"
What is the total share for an episode with an air date of November 19, 2007?
CREATE TABLE table_name_2 (share INTEGER, air_date VARCHAR)
SELECT SUM(share) FROM table_name_2 WHERE air_date = "november 19, 2007"
Show the member name and hometown who registered a branch in 2016.
CREATE TABLE member (name VARCHAR, hometown VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (member_id VARCHAR, register_year VARCHAR)
SELECT T2.name, T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016
What is the season number of the show written by both Kari Lizer and Jeff Astrof?
CREATE TABLE table_27911342_1 (season__number VARCHAR, written_by VARCHAR)
SELECT COUNT(season__number) FROM table_27911342_1 WHERE written_by = "Kari Lizer"
What was the result of week 16?
CREATE TABLE table_name_73 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_73 WHERE week = 16
What is the total of Losses with a Result of runner-up, Wins of 1, and a Year smaller than 2006?
CREATE TABLE table_name_50 (losses INTEGER, year VARCHAR, result VARCHAR, wins VARCHAR)
SELECT SUM(losses) FROM table_name_50 WHERE result = "runner-up" AND wins = 1 AND year < 2006
Which Week has a Opponent of tennessee titans?
CREATE TABLE table_name_86 (week VARCHAR, opponent VARCHAR)
SELECT week FROM table_name_86 WHERE opponent = "tennessee titans"
Name the mission name for ocean of storms
CREATE TABLE table_1558077_8 (mission_name VARCHAR, lunar_landing_site VARCHAR)
SELECT mission_name FROM table_1558077_8 WHERE lunar_landing_site = "Ocean of Storms"
What is the most silver medals?
CREATE TABLE table_1305623_18 (silver_medals INTEGER)
SELECT MAX(silver_medals) FROM table_1305623_18
Name the sec wins for .357 percentage and 4-3 home record
CREATE TABLE table_22825679_1 (sec_wins VARCHAR, percentage VARCHAR, home_record VARCHAR)
SELECT sec_wins FROM table_22825679_1 WHERE percentage = ".357" AND home_record = "4-3"
What was the outcome before 1997?
CREATE TABLE table_name_93 (outcome VARCHAR, year INTEGER)
SELECT outcome FROM table_name_93 WHERE year < 1997
What is the affiliation of the University of Maryland?
CREATE TABLE table_name_54 (affiliation VARCHAR, school VARCHAR)
SELECT affiliation FROM table_name_54 WHERE school = "university of maryland"
Name the officing running for for carol marsh
CREATE TABLE table_1855841_1 (office_running_for VARCHAR, candidate VARCHAR)
SELECT office_running_for FROM table_1855841_1 WHERE candidate = "Carol Marsh"
Which team drafted the player from the HC Lada Togliatti (Russia)?
CREATE TABLE table_2840500_5 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
SELECT nhl_team FROM table_2840500_5 WHERE college_junior_club_team = "HC Lada Togliatti (Russia)"
How many games did each team played?
CREATE TABLE table_18018214_3 (games_played INTEGER)
SELECT MIN(games_played) FROM table_18018214_3
How many school teams are nicknamed "Bulldogs".
CREATE TABLE table_26351260_1 (location VARCHAR, team_nickname VARCHAR)
SELECT location FROM table_26351260_1 WHERE team_nickname = "Bulldogs"
Which Game 1 has a fullback?
CREATE TABLE table_name_88 (game_1 VARCHAR, position VARCHAR)
SELECT game_1 FROM table_name_88 WHERE position = "fullback"
What is the figure for Tujunga when Pasadena is 134,941?
CREATE TABLE table_name_39 (tujunga VARCHAR, pasadena VARCHAR)
SELECT tujunga FROM table_name_39 WHERE pasadena = "134,941"
What was the winning score for the tournament where Garth Mulroy was the runner-up?
CREATE TABLE table_name_94 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT winning_score FROM table_name_94 WHERE runner_s__up = "garth mulroy"
Who was the GTO winning team when the TO winning team was #84 Camaro?
CREATE TABLE table_13642023_2 (gto_winning_team VARCHAR, to_winning_team VARCHAR)
SELECT gto_winning_team FROM table_13642023_2 WHERE to_winning_team = "#84 Camaro"
Who built the 21 grid car that retired due to suspension?
CREATE TABLE table_name_80 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT constructor FROM table_name_80 WHERE grid > 21 AND time_retired = "suspension"
Which area has state authority and a roll fewer than 18?
CREATE TABLE table_name_78 (area VARCHAR, authority VARCHAR, roll VARCHAR)
SELECT area FROM table_name_78 WHERE authority = "state" AND roll < 18
What is Set 3, when Set 4 is 25-21, and when Date is Jun 14?
CREATE TABLE table_name_79 (set_3 VARCHAR, set_4 VARCHAR, date VARCHAR)
SELECT set_3 FROM table_name_79 WHERE set_4 = "25-21" AND date = "jun 14"
What is the flag for Terkoeli?
CREATE TABLE table_name_52 (flag VARCHAR, name VARCHAR)
SELECT flag FROM table_name_52 WHERE name = "terkoeli"
How many Games have a Score of 3–3 ot?
CREATE TABLE table_name_98 (game VARCHAR, score VARCHAR)
SELECT COUNT(game) FROM table_name_98 WHERE score = "3–3 ot"
Which team had a manager who was replaced by Faraz Kamalvand?
CREATE TABLE table_22297140_3 (team VARCHAR, replaced_by VARCHAR)
SELECT team FROM table_22297140_3 WHERE replaced_by = "Faraz Kamalvand"
Name the title for total viewers on fx+ being 483,000
CREATE TABLE table_26493520_3 (title VARCHAR, total_viewers_on_fx VARCHAR)
SELECT title FROM table_26493520_3 WHERE total_viewers_on_fx = "483,000"
Show the leader names and locations of colleges.
CREATE TABLE college (Leader_Name VARCHAR, College_Location VARCHAR)
SELECT Leader_Name, College_Location FROM college
What authority is the coed school in pinehaven?
CREATE TABLE table_name_58 (authority VARCHAR, gender VARCHAR, area VARCHAR)
SELECT authority FROM table_name_58 WHERE gender = "coed" AND area = "pinehaven"
What document status codes do we have?
CREATE TABLE Ref_Document_Status (document_status_code VARCHAR)
SELECT document_status_code FROM Ref_Document_Status
What is the season with a Skip of Eve Muirhead and a third of Kerry Barr?
CREATE TABLE table_name_42 (season VARCHAR, skip VARCHAR, third VARCHAR)
SELECT season FROM table_name_42 WHERE skip = "eve muirhead" AND third = "kerry barr"
What was the record at the game with a result of W 13-12 after week 4?
CREATE TABLE table_name_10 (record VARCHAR, week VARCHAR, result VARCHAR)
SELECT record FROM table_name_10 WHERE week > 4 AND result = "w 13-12"
Name the candidate first elected in 1942
CREATE TABLE table_1341897_23 (candidates VARCHAR, first_elected VARCHAR)
SELECT candidates FROM table_1341897_23 WHERE first_elected = 1942
What movie earned $1,659,542 at the box office?
CREATE TABLE table_name_29 (title VARCHAR, box_office VARCHAR)
SELECT title FROM table_name_29 WHERE box_office = "$1,659,542"
Name the score when the opponent was the dodgers on april 21
CREATE TABLE table_name_61 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT score FROM table_name_61 WHERE opponent = "dodgers" AND date = "april 21"
How many teams have a combination classification of Alejandro Valverde and a Points classification of Alessandro Petacchi?
CREATE TABLE table_15059783_1 (team_classification VARCHAR, combination_classification VARCHAR, points_classification VARCHAR)
SELECT COUNT(team_classification) FROM table_15059783_1 WHERE combination_classification = "Alejandro Valverde" AND points_classification = "Alessandro Petacchi"
What's the series number of the episode written by Tim Schlattmann?
CREATE TABLE table_24132083_1 (no_in_series INTEGER, written_by VARCHAR)
SELECT MIN(no_in_series) FROM table_24132083_1 WHERE written_by = "Tim Schlattmann"
What is Title, when TV Companions Featured is "K-9"?
CREATE TABLE table_name_35 (title VARCHAR, tv_companions_featured VARCHAR)
SELECT title FROM table_name_35 WHERE tv_companions_featured = "k-9"
What is the IATA for Nanjing?
CREATE TABLE table_name_85 (iata VARCHAR, city VARCHAR)
SELECT iata FROM table_name_85 WHERE city = "nanjing"
What was the opponent at the game that had a loss of Travers (0–2)?
CREATE TABLE table_name_9 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_9 WHERE loss = "travers (0–2)"
What is the highest amount of points with less than 5 assists and less than 2 goals?
CREATE TABLE table_name_5 (points INTEGER, assists VARCHAR, goals VARCHAR)
SELECT MAX(points) FROM table_name_5 WHERE assists < 5 AND goals < 2
What is the total of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8?
CREATE TABLE table_name_10 (goals_conceded INTEGER, points VARCHAR, lost VARCHAR)
SELECT SUM(goals_conceded) FROM table_name_10 WHERE points < 21 AND lost < 8
Name the winner with rally leader of c. atkinson and name of agia sotira 1
CREATE TABLE table_name_51 (winner VARCHAR, rally_leader VARCHAR, name VARCHAR)
SELECT winner FROM table_name_51 WHERE rally_leader = "c. atkinson" AND name = "agia sotira 1"
Who directed episode # 92 (4)?
CREATE TABLE table_name_21 (directed_by VARCHAR, episode__number VARCHAR)
SELECT directed_by FROM table_name_21 WHERE episode__number = "92 (4)"
Who was the trainer when the jockey was Luke Nolen?
CREATE TABLE table_24915874_1 (trainer VARCHAR, jockey VARCHAR)
SELECT trainer FROM table_24915874_1 WHERE jockey = "Luke Nolen"