question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which rank is Austria?
CREATE TABLE table_name_42 (rank VARCHAR, nation VARCHAR)
SELECT rank FROM table_name_42 WHERE nation = "austria"
What was the surface of the game that resulted in a final score of 6-1 7-5?
CREATE TABLE table_name_90 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_90 WHERE score = "6-1 7-5"
Who were the candidates when ed markey was the incumbent?
CREATE TABLE table_1341395_22 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341395_22 WHERE incumbent = "Ed Markey"
When socketg1 is the socket what is the release price in dollars?
CREATE TABLE table_18823880_10 (release_price___usd__ VARCHAR, socket VARCHAR)
SELECT release_price___usd__ FROM table_18823880_10 WHERE socket = "socketG1"
What are the male Bounder books?
CREATE TABLE table_name_23 (books VARCHAR, gender VARCHAR, animal_name VARCHAR)
SELECT books FROM table_name_23 WHERE gender = "male" AND animal_name = "bounder"
What's the highest First Elected with a Result of Re-elected and DIstrict of California 5?
CREATE TABLE table_name_21 (first_elected INTEGER, result VARCHAR, district VARCHAR)
SELECT MAX(first_elected) FROM table_name_21 WHERE result = "re-elected" AND district = "california 5"
How many wins for mike hill ranked below 4?
CREATE TABLE table_name_49 (wins VARCHAR, player VARCHAR, rank VARCHAR)
SELECT COUNT(wins) FROM table_name_49 WHERE player = "mike hill" AND rank < 4
The firs park stadium had the lowest average attendence of what?
CREATE TABLE table_11206916_1 (average INTEGER, stadium VARCHAR)
SELECT MIN(average) FROM table_11206916_1 WHERE stadium = "Firs Park"
Who was the high rebounds of team @ Detroit?
CREATE TABLE table_27721131_10 (high_rebounds VARCHAR, team VARCHAR)
SELECT high_rebounds FROM table_27721131_10 WHERE team = "@ Detroit"
On what surface was the game played with a score of 6–4, 6–4?
CREATE TABLE table_177273_2 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_177273_2 WHERE score = "6–4, 6–4"
What is the episode number that was first broadcast on 3 September 2010?
CREATE TABLE table_23575917_4 (episode VARCHAR, first_broadcast VARCHAR)
SELECT episode FROM table_23575917_4 WHERE first_broadcast = "3 September 2010"
Can you return all detailed info of jobs which was done by any of the employees who is presently earning a salary on and above 12000?
CREATE TABLE job_history (employee_id VARCHAR); CREATE TABLE employees (employee_id VARCHAR, salary VARCHAR)
SELECT * FROM job_history AS T1 JOIN employees AS T2 ON T1.employee_id = T2.employee_id WHERE T2.salary >= 12000
What is Score, when Country is "United States", and when Player is "Bob Tway"?
CREATE TABLE table_name_43 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT score FROM table_name_43 WHERE country = "united states" AND player = "bob tway"
How many rooms whose capacity is less than 50 does the Lamberton building have?
CREATE TABLE classroom (building VARCHAR, capacity VARCHAR)
SELECT COUNT(*) FROM classroom WHERE building = 'Lamberton' AND capacity < 50
Which club had 1, draw, 11 lost, and a try bonus of 7?
CREATE TABLE table_name_65 (club VARCHAR, try_bonus VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT club FROM table_name_65 WHERE drawn = "1" AND lost = "11" AND try_bonus = "7"
What is the drawn that has 22 for played, and 96 for points?
CREATE TABLE table_name_96 (drawn VARCHAR, played VARCHAR, points VARCHAR)
SELECT drawn FROM table_name_96 WHERE played = "22" AND points = "96"
How many Field goals (5 points) have a Total Points of 123, and Touchdowns (5 points) larger than 13?
CREATE TABLE table_name_59 (field_goals__5_points_ VARCHAR, total_points VARCHAR, touchdowns__5_points_ VARCHAR)
SELECT COUNT(field_goals__5_points_) FROM table_name_59 WHERE total_points = 123 AND touchdowns__5_points_ > 13
What is the division record for the Indians?
CREATE TABLE table_name_26 (division_record VARCHAR, team VARCHAR)
SELECT division_record FROM table_name_26 WHERE team = "indians"
How many dates are associated with a guest 4 being Jim Jeffries (debut)?
CREATE TABLE table_20466963_4 (date VARCHAR, guest_4 VARCHAR)
SELECT COUNT(date) FROM table_20466963_4 WHERE guest_4 = "Jim Jeffries (debut)"
What is the most recent season when Fernando Alonso had more than 13 podiums in a car with a Ferrari engine?
CREATE TABLE table_name_22 (season INTEGER, podiums VARCHAR, engine VARCHAR, driver VARCHAR)
SELECT MAX(season) FROM table_name_22 WHERE engine = "ferrari" AND driver = "fernando alonso" AND podiums > 13
What is the name of the team from cisne fairfield school?
CREATE TABLE table_name_84 (team_name VARCHAR, schools VARCHAR)
SELECT team_name FROM table_name_84 WHERE schools = "cisne fairfield"
What director has lt as the series, with 6982 as the production num.?
CREATE TABLE table_name_40 (director VARCHAR, series VARCHAR, production_num VARCHAR)
SELECT director FROM table_name_40 WHERE series = "lt" AND production_num = "6982"
Which player had a draft before 1975 and before round 6?
CREATE TABLE table_name_79 (player VARCHAR, draft VARCHAR, round VARCHAR)
SELECT player FROM table_name_79 WHERE draft < 1975 AND round < 6
What is the maximum number of minutes associated with exactly 70 field goals?
CREATE TABLE table_24908692_5 (minutes INTEGER, field_goals VARCHAR)
SELECT MAX(minutes) FROM table_24908692_5 WHERE field_goals = 70
For what country is the skip Andy Kapp?
CREATE TABLE table_name_49 (country VARCHAR, skip VARCHAR)
SELECT country FROM table_name_49 WHERE skip = "andy kapp"
What is the lowest episode number?
CREATE TABLE table_2501754_4 (episode__number INTEGER)
SELECT MIN(episode__number) FROM table_2501754_4
Which school did harold duvall attend?
CREATE TABLE table_2679061_12 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT college_junior_club_team FROM table_2679061_12 WHERE player = "Harold Duvall"
Name the high assists for l 93–103 (ot)
CREATE TABLE table_17288861_9 (high_assists VARCHAR, score VARCHAR)
SELECT high_assists FROM table_17288861_9 WHERE score = "L 93–103 (OT)"
Name the number of party for new york 29
CREATE TABLE table_1341423_32 (party VARCHAR, district VARCHAR)
SELECT COUNT(party) FROM table_1341423_32 WHERE district = "New York 29"
what is the date when the home is st. louis?
CREATE TABLE table_name_30 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_30 WHERE home = "st. louis"
How many people attended the game at VFL Park?
CREATE TABLE table_name_71 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_71 WHERE venue = "vfl park"
What is the US cash box before 1978 with a US billboard of 35?
CREATE TABLE table_name_20 (us_cash_box VARCHAR, year VARCHAR, us_billboard VARCHAR)
SELECT us_cash_box FROM table_name_20 WHERE year < 1978 AND us_billboard = 35
Which stories have a rank of 14?
CREATE TABLE table_name_43 (stories VARCHAR, rank VARCHAR)
SELECT stories FROM table_name_43 WHERE rank = "14"
Which chapter was founded later than 2012?
CREATE TABLE table_name_14 (chapter VARCHAR, founding_date INTEGER)
SELECT chapter FROM table_name_14 WHERE founding_date > 2012
Which Player's Position is guard and played in Toronto during the Years 2007-08?
CREATE TABLE table_name_16 (player VARCHAR, position VARCHAR, years_in_toronto VARCHAR)
SELECT player FROM table_name_16 WHERE position = "guard" AND years_in_toronto = "2007-08"
List the details of the customers who do not have any policies.
CREATE TABLE Customer_Policies (customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR)
SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id
Find the locations that have more than one movie theater with capacity above 300.
CREATE TABLE cinema (LOCATION VARCHAR, capacity INTEGER)
SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING COUNT(*) > 1
How many bonus points did the club who had 379 points for have?
CREATE TABLE table_27293285_2 (bonus_points VARCHAR, points_for VARCHAR)
SELECT bonus_points FROM table_27293285_2 WHERE points_for = "379"
Which parish has a church named Vangsnes Kyrkje?
CREATE TABLE table_name_44 (parish__prestegjeld_ VARCHAR, church_name VARCHAR)
SELECT parish__prestegjeld_ FROM table_name_44 WHERE church_name = "vangsnes kyrkje"
How many team position scored 56 points?
CREATE TABLE table_25369796_1 (position VARCHAR, points VARCHAR)
SELECT COUNT(position) FROM table_25369796_1 WHERE points = "56"
What number of examines after 2005 has a pass percentage of 78.35% with less than 297 students?
CREATE TABLE table_name_47 (number_of_examinees VARCHAR, number_of_passed_students VARCHAR, year VARCHAR, pass_percentage VARCHAR)
SELECT COUNT(number_of_examinees) FROM table_name_47 WHERE year > 2005 AND pass_percentage = "78.35%" AND number_of_passed_students < 297
How large was the total when the E Score was greater than 9.35 and T Score was less than 4?
CREATE TABLE table_name_35 (total INTEGER, e_score VARCHAR, t_score VARCHAR)
SELECT MAX(total) FROM table_name_35 WHERE e_score > 9.35 AND t_score < 4
What is the score of the game played on February 18?
CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_59 WHERE date = "february 18"
Which highest wins number had Kawasaki as a team, 95 points, and a year prior to 1981?
CREATE TABLE table_name_9 (wins INTEGER, year VARCHAR, team VARCHAR, points VARCHAR)
SELECT MAX(wins) FROM table_name_9 WHERE team = "kawasaki" AND points = 95 AND year < 1981
What is the name of the player that was loaned out on 13 August 2008 ?
CREATE TABLE table_name_34 (name VARCHAR, date_from VARCHAR)
SELECT name FROM table_name_34 WHERE date_from = "13 august 2008"
What was the group in the British Champion Stakes?
CREATE TABLE table_24850630_4 (group VARCHAR, race VARCHAR)
SELECT group FROM table_24850630_4 WHERE race = "British Champion Stakes"
Name the position for billy price
CREATE TABLE table_19730892_1 (position VARCHAR, name VARCHAR)
SELECT position FROM table_19730892_1 WHERE name = "Billy Price"
What is the leading scorer of the game with an attendance of 14,096?
CREATE TABLE table_name_97 (leading_scorer VARCHAR, attendance VARCHAR)
SELECT leading_scorer FROM table_name_97 WHERE attendance = "14,096"
What is the name of the machine that ranked 4th and has 2 wins?
CREATE TABLE table_name_59 (machine VARCHAR, rank VARCHAR, wins VARCHAR)
SELECT machine FROM table_name_59 WHERE rank = "4th" AND wins = 2
Who did home team sunderland play on 23 january 1982?
CREATE TABLE table_name_33 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_33 WHERE date = "23 january 1982" AND home_team = "sunderland"
Which Visa 4 has besart berisha as Visa 1?
CREATE TABLE table_name_42 (visa_4 VARCHAR, visa_1 VARCHAR)
SELECT visa_4 FROM table_name_42 WHERE visa_1 = "besart berisha"
What engine class is associated with a year after 1985 and over 0 wins?
CREATE TABLE table_name_44 (class VARCHAR, year VARCHAR, wins VARCHAR)
SELECT class FROM table_name_44 WHERE year > 1985 AND wins > 0
Hold many gold had more than 16 bronzes?
CREATE TABLE table_name_72 (gold VARCHAR, bronze INTEGER)
SELECT COUNT(gold) FROM table_name_72 WHERE bronze > 16
What is every affiliation for candidate Daren Ireland?
CREATE TABLE table_25818630_1 (affiliation VARCHAR, candidate VARCHAR)
SELECT affiliation FROM table_25818630_1 WHERE candidate = "Daren Ireland"
What is the total number of Rapes that have Embezzlements a figure of 820 and total number of convictions less than 94,574?
CREATE TABLE table_name_27 (rape__art_190_stgb_ VARCHAR, embezzlement__art_138_stgb_ VARCHAR, total_convictions VARCHAR)
SELECT COUNT(rape__art_190_stgb_) FROM table_name_27 WHERE embezzlement__art_138_stgb_ = 820 AND total_convictions < 94 OFFSET 574
When the home team was Richmond, what was the largest crowd?
CREATE TABLE table_name_49 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_49 WHERE home_team = "richmond"
How did Tim Herron place?
CREATE TABLE table_name_83 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_83 WHERE player = "tim herron"
Which Result has a Round of 5, and an Event of mt one?
CREATE TABLE table_name_92 (result VARCHAR, round VARCHAR, event VARCHAR)
SELECT result FROM table_name_92 WHERE round = 5 AND event = "mt one"
What is the date of death of the Countess of Flanders who was born in 1309?
CREATE TABLE table_name_75 (death VARCHAR, birth VARCHAR)
SELECT death FROM table_name_75 WHERE birth = "1309"
How many numbers were recorded points against when the tries were for 43?
CREATE TABLE table_13564637_5 (points_against VARCHAR, tries_for VARCHAR)
SELECT COUNT(points_against) FROM table_13564637_5 WHERE tries_for = "43"
Which artist had a place larger than 1 with 229 points?
CREATE TABLE table_name_51 (artist VARCHAR, place VARCHAR, points VARCHAR)
SELECT artist FROM table_name_51 WHERE place > 1 AND points = 229
Find the name of students who took some course offered by Statistics department.
CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE takes (course_id VARCHAR, id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR)
SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics'
What round did the overall pick of 91 occur in the 1982 NFL draft?
CREATE TABLE table_name_83 (round INTEGER, overall VARCHAR)
SELECT MIN(round) FROM table_name_83 WHERE overall = 91
Year larger than 2001 has what average points?
CREATE TABLE table_name_92 (points INTEGER, year INTEGER)
SELECT AVG(points) FROM table_name_92 WHERE year > 2001
Which label had a CD format and a date of June 25, 2002?
CREATE TABLE table_name_38 (label VARCHAR, format VARCHAR, date VARCHAR)
SELECT label FROM table_name_38 WHERE format = "cd" AND date = "june 25, 2002"
What is the Mecha of the Japanese voice actor Shingo Kanemoto?
CREATE TABLE table_name_39 (mecha VARCHAR, japanese_voice_actor VARCHAR)
SELECT mecha FROM table_name_39 WHERE japanese_voice_actor = "shingo kanemoto"
What years show Model of 2.0 tdi (cr) dpf?
CREATE TABLE table_name_62 (years VARCHAR, model VARCHAR)
SELECT years FROM table_name_62 WHERE model = "2.0 tdi (cr) dpf"
Which Drawn has a Team of internacional-sp?
CREATE TABLE table_name_77 (drawn INTEGER, team VARCHAR)
SELECT SUM(drawn) FROM table_name_77 WHERE team = "internacional-sp"
What is the total number of entries for Leif Olson?
CREATE TABLE table_20590020_2 (starts VARCHAR, player VARCHAR)
SELECT COUNT(starts) FROM table_20590020_2 WHERE player = "Leif Olson"
What constructor has under 62 laps, a Time/Retired of gearbox, a Grid larger than 1, and pedro diniz driving?
CREATE TABLE table_name_19 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT constructor FROM table_name_19 WHERE laps < 62 AND time_retired = "gearbox" AND grid > 1 AND driver = "pedro diniz"
What Week falls on September 4, 1994?
CREATE TABLE table_name_49 (week INTEGER, date VARCHAR)
SELECT AVG(week) FROM table_name_49 WHERE date = "september 4, 1994"
What is Justin Leonard's To par?
CREATE TABLE table_name_59 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_59 WHERE player = "justin leonard"
What was the value in 2003 when 2006 was WTA Premier Mandatory Tournaments?
CREATE TABLE table_name_86 (Id VARCHAR)
SELECT 2003 FROM table_name_86 WHERE 2006 = "wta premier mandatory tournaments"
When is the lane less than 5 and is named ágnes kovács?
CREATE TABLE table_name_65 (time VARCHAR, lane VARCHAR, name VARCHAR)
SELECT time FROM table_name_65 WHERE lane < 5 AND name = "ágnes kovács"
What is the lowest pick number for Arturo McDowell, who plays the OF position for the San Francisco Giants?
CREATE TABLE table_name_13 (pick INTEGER, player VARCHAR, position VARCHAR, team VARCHAR)
SELECT MIN(pick) FROM table_name_13 WHERE position = "of" AND team = "san francisco giants" AND player = "arturo mcdowell"
What is the minimum number of opponents' points for the game at Michigan State?
CREATE TABLE table_24560733_1 (opponents INTEGER, opponent VARCHAR)
SELECT MIN(opponents) FROM table_24560733_1 WHERE opponent = "at Michigan State"
Which Parent has height smaller than 756 and a Prom of 39?
CREATE TABLE table_name_52 (parent VARCHAR, height__m_ VARCHAR, prom__m_ VARCHAR)
SELECT parent FROM table_name_52 WHERE height__m_ < 756 AND prom__m_ = 39
What is Venue, when Date is "January 6, 1995"?
CREATE TABLE table_name_35 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_35 WHERE date = "january 6, 1995"
When atsv erlangen is the mittelfranken nord and alemannia haibach is the unterfranken west what is the mittelfranken süd?
CREATE TABLE table_23224961_2 (mittelfranken_süd VARCHAR, unterfranken_west VARCHAR, mittelfranken_nord VARCHAR)
SELECT mittelfranken_süd FROM table_23224961_2 WHERE unterfranken_west = "Alemannia Haibach" AND mittelfranken_nord = "ATSV Erlangen"
What are the titles of episodes numbered 19?
CREATE TABLE table_28688313_1 (episode VARCHAR, _number VARCHAR)
SELECT episode FROM table_28688313_1 WHERE _number = 19
What Date has a Circuit of cremona?
CREATE TABLE table_name_36 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_36 WHERE circuit = "cremona"
What is 17th c., when Initial-Syllable Open/Semi-Open Unstressed Vowels is "o /ɵ/"?
CREATE TABLE table_name_76 (initial_syllable_open_semi_open_unstressed_vowels VARCHAR)
SELECT 17 AS th_c FROM table_name_76 WHERE initial_syllable_open_semi_open_unstressed_vowels = "o /ɵ/"
How many scores were there for the home team when the away team was fitzroy?
CREATE TABLE table_29090919_1 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(home_team) AS score FROM table_29090919_1 WHERE away_team = "Fitzroy"
Why did the manager who departed on August 1, 2008 leave?
CREATE TABLE table_name_84 (reason_of_departure VARCHAR, date_outgoing VARCHAR)
SELECT reason_of_departure FROM table_name_84 WHERE date_outgoing = "august 1, 2008"
What is the original air date of episode 3-02?
CREATE TABLE table_2570269_3 (original_air_date__uk_ VARCHAR, episode__number VARCHAR)
SELECT original_air_date__uk_ FROM table_2570269_3 WHERE episode__number = "3-02"
What Season has wins as the philadelphia warriors (nba)?
CREATE TABLE table_name_28 (season VARCHAR, wins VARCHAR)
SELECT season FROM table_name_28 WHERE wins = "philadelphia warriors (nba)"
What is the total number of playoffs held in exactly 2006?
CREATE TABLE table_1999350_1 (playoffs VARCHAR, year VARCHAR)
SELECT COUNT(playoffs) FROM table_1999350_1 WHERE year = 2006
How many ends lost when shot % is 88 and ends won are 31?
CREATE TABLE table_name_72 (ends_lost VARCHAR, shot_pct VARCHAR, ends_won VARCHAR)
SELECT COUNT(ends_lost) FROM table_name_72 WHERE shot_pct = 88 AND ends_won = 31
What was the date of the series premiere whose TV network was TV3?
CREATE TABLE table_29799700_2 (series_premiere VARCHAR, tv_network_s_ VARCHAR)
SELECT series_premiere FROM table_29799700_2 WHERE tv_network_s_ = "TV3"
What is the System with a freeware License?
CREATE TABLE table_name_9 (system VARCHAR, license VARCHAR)
SELECT system FROM table_name_9 WHERE license = "freeware"
what is the name ofhte company where the plant is in burnaston?
CREATE TABLE table_250309_1 (company VARCHAR, plant VARCHAR)
SELECT company FROM table_250309_1 WHERE plant = "Burnaston"
Can you tell me total number of Silver that has the Republic of latvian ssr, and the Total larger than 6?
CREATE TABLE table_name_12 (silver VARCHAR, republic VARCHAR, total VARCHAR)
SELECT COUNT(silver) FROM table_name_12 WHERE republic = "latvian ssr" AND total > 6
What Vancouver canucks game was on a date closest to November 4?
CREATE TABLE table_name_60 (game INTEGER, opponent VARCHAR, november VARCHAR)
SELECT MAX(game) FROM table_name_60 WHERE opponent = "vancouver canucks" AND november < 4
Which Political Party has a Name of rexhep bej mitrovica?
CREATE TABLE table_name_22 (political_party VARCHAR, name VARCHAR)
SELECT political_party FROM table_name_22 WHERE name = "rexhep bej mitrovica"
Show the ID of the high schooler named Kyle.
CREATE TABLE Highschooler (ID VARCHAR, name VARCHAR)
SELECT ID FROM Highschooler WHERE name = "Kyle"
What is the 2nd leg when San Pedro was the winner?
CREATE TABLE table_name_92 (winner VARCHAR)
SELECT 2 AS nd_leg FROM table_name_92 WHERE winner = "san pedro"
What decision had a Record of 3–5–0?
CREATE TABLE table_name_17 (decision VARCHAR, record VARCHAR)
SELECT decision FROM table_name_17 WHERE record = "3–5–0"
How many wins were there when the position was 26th?
CREATE TABLE table_1507423_4 (wins VARCHAR, position VARCHAR)
SELECT COUNT(wins) FROM table_1507423_4 WHERE position = "26th"
What is 4zr's callsign?
CREATE TABLE table_name_67 (callsign VARCHAR, on_air_id VARCHAR)
SELECT callsign FROM table_name_67 WHERE on_air_id = "4zr"
What year was Aaron Tveit nominated in the Favorite Male Replacement category?
CREATE TABLE table_name_87 (year INTEGER, nominee VARCHAR, result VARCHAR, category VARCHAR)
SELECT AVG(year) FROM table_name_87 WHERE result = "nominated" AND category = "favorite male replacement" AND nominee = "aaron tveit"