question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the long in 1994?
CREATE TABLE table_name_60 (long VARCHAR, year VARCHAR)
SELECT long FROM table_name_60 WHERE year = "1994"
Where has Jimmy Demaret as a player?
CREATE TABLE table_name_94 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_94 WHERE player = "jimmy demaret"
What was the country for Sam Snead?
CREATE TABLE table_name_58 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_58 WHERE player = "sam snead"
Which entrant has Ferrari 038 3.5 v12 engine?
CREATE TABLE table_name_72 (entrant VARCHAR, engine VARCHAR)
SELECT entrant FROM table_name_72 WHERE engine = "ferrari 038 3.5 v12"
What position did Joe Maddock play?
CREATE TABLE table_14342367_11 (position VARCHAR, player VARCHAR)
SELECT position FROM table_14342367_11 WHERE player = "Joe Maddock"
Show all student IDs with the number of sports and total number of games played
CREATE TABLE Sportsinfo (StuID VARCHAR, gamesplayed INTEGER)
SELECT StuID, COUNT(*), SUM(gamesplayed) FROM Sportsinfo GROUP BY StuID
Which of the Latest version had a 16-bit Architecture and was released on Release date 1985-11-20?
CREATE TABLE table_name_29 (latest_version VARCHAR, architecture VARCHAR, release_date VARCHAR)
SELECT latest_version FROM table_name_29 WHERE architecture = "16-bit" AND release_date = "1985-11-20"
What team was the away team at Junction Oval?
CREATE TABLE table_name_20 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_20 WHERE venue = "junction oval"
What were the w/l when the final score was 2–6, 5–7, 7–6 (11–9) , 1–6?
CREATE TABLE table_23563375_11 (w_l VARCHAR, result VARCHAR)
SELECT w_l FROM table_23563375_11 WHERE result = "2–6, 5–7, 7–6 (11–9) , 1–6"
What country is team ucla come from?
CREATE TABLE table_name_70 (nationality VARCHAR, school_club_team VARCHAR)
SELECT nationality FROM table_name_70 WHERE school_club_team = "ucla"
How many ships were named Carysfort?
CREATE TABLE table_24496403_1 (completed VARCHAR, ship VARCHAR)
SELECT COUNT(completed) FROM table_24496403_1 WHERE ship = "Carysfort"
What is the state of Ted Stevens?
CREATE TABLE table_10644188_3 (state_represented VARCHAR, name VARCHAR)
SELECT state_represented FROM table_10644188_3 WHERE name = "Ted Stevens"
How many rounds did germán sánchez drive in where the chassis was dallara f308?
CREATE TABLE table_name_34 (rounds VARCHAR, chassis VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_34 WHERE chassis = "dallara f308" AND driver = "germán sánchez"
How many opponents played 1 game with a result win?
CREATE TABLE table_18207285_2 (opponents INTEGER, result VARCHAR, game VARCHAR)
SELECT MAX(opponents) FROM table_18207285_2 WHERE result = "Win" AND game = 1
What is the water depth of Sedco 702, located in Nigeria?
CREATE TABLE table_name_59 (water_depth VARCHAR, location VARCHAR, name VARCHAR)
SELECT water_depth FROM table_name_59 WHERE location = "nigeria" AND name = "sedco 702"
What was the date of the Circuit of Indianapolis?
CREATE TABLE table_name_83 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_83 WHERE circuit = "indianapolis"
What is Score, when Date is "June 8, 1996"?
CREATE TABLE table_name_31 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_31 WHERE date = "june 8, 1996"
What is Run 4, when Run 2 is 1:29.00?
CREATE TABLE table_name_12 (run_4 VARCHAR, run_2 VARCHAR)
SELECT run_4 FROM table_name_12 WHERE run_2 = "1:29.00"
What is the To Par score for the player with an overall score of 71-68-69=208?
CREATE TABLE table_name_38 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_38 WHERE score = 71 - 68 - 69 = 208
What is the winning score for the B.C. Open 1 tournament?
CREATE TABLE table_name_40 (winning_score VARCHAR, tournament VARCHAR)
SELECT winning_score FROM table_name_40 WHERE tournament = "b.c. open 1"
Which Res has a Method of decision (unanimous) and an Opponent of Wataru Sakata?
CREATE TABLE table_name_10 (res VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_10 WHERE method = "decision (unanimous)" AND opponent = "wataru sakata"
What was the date for game 6?
CREATE TABLE table_name_66 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_66 WHERE game = 6
What is the Country of the Player with a To par of –4?
CREATE TABLE table_name_72 (country VARCHAR, to_par VARCHAR)
SELECT country FROM table_name_72 WHERE to_par = "–4"
Which Against is the highest one that has a Team of flamengo, and a Lost smaller than 1?
CREATE TABLE table_name_95 (against INTEGER, team VARCHAR, lost VARCHAR)
SELECT MAX(against) FROM table_name_95 WHERE team = "flamengo" AND lost < 1
What was the regular season name where they did not qualify for the playoffs in 2009?
CREATE TABLE table_21602734_1 (reg_season VARCHAR, playoffs VARCHAR, year VARCHAR)
SELECT reg_season FROM table_21602734_1 WHERE playoffs = "Did not qualify" AND year = 2009
Who directed episode 266 in the series?
CREATE TABLE table_2221484_2 (directed_by VARCHAR, series__number VARCHAR)
SELECT directed_by FROM table_2221484_2 WHERE series__number = 266
Where is Robert Morris University-Illinois held?
CREATE TABLE table_27361255_1 (location VARCHAR, institution VARCHAR)
SELECT location FROM table_27361255_1 WHERE institution = "Robert Morris University-Illinois"
Find the number of routes for each source airport and the airport name.
CREATE TABLE airports (name VARCHAR, apid VARCHAR); CREATE TABLE routes (src_apid VARCHAR)
SELECT COUNT(*), T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name
For Angelique Kerber who had an RR Rate of less than 0.33, what's the appeared?
CREATE TABLE table_name_87 (appeared INTEGER, rr_w_rate VARCHAR, player VARCHAR)
SELECT SUM(appeared) FROM table_name_87 WHERE rr_w_rate < 0.33 AND player = "angelique kerber"
Which segment A item that has a Segment D of wigs?
CREATE TABLE table_name_80 (segment_a VARCHAR, segment_d VARCHAR)
SELECT segment_a FROM table_name_80 WHERE segment_d = "wigs"
According to W3Counter, what percentage of browsers used Firefox?
CREATE TABLE table_name_60 (firefox VARCHAR, source VARCHAR)
SELECT firefox FROM table_name_60 WHERE source = "w3counter"
What is the home team score when st kilda is the away team?
CREATE TABLE table_name_64 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_64 WHERE away_team = "st kilda"
Who loss the game when the record was 3-10?
CREATE TABLE table_name_59 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_59 WHERE record = "3-10"
How many were in attendance on 14 April 2007?
CREATE TABLE table_name_50 (attendance INTEGER, date VARCHAR)
SELECT MIN(attendance) FROM table_name_50 WHERE date = "14 april 2007"
What are the number of goals conceded that has a played greater than 18?
CREATE TABLE table_name_13 (goals_conceded VARCHAR, played INTEGER)
SELECT COUNT(goals_conceded) FROM table_name_13 WHERE played > 18
On what circuit is there a class gts-2 race that takes place on May 27?
CREATE TABLE table_name_68 (circuit VARCHAR, date VARCHAR, class VARCHAR)
SELECT circuit FROM table_name_68 WHERE date = "may 27" AND class = "gts-2"
How many races have less than 2 podiums and 19th position before 2009?
CREATE TABLE table_name_56 (races INTEGER, season VARCHAR, podiums VARCHAR, position VARCHAR)
SELECT AVG(races) FROM table_name_56 WHERE podiums < 2 AND position = "19th" AND season < 2009
Where is the venue with more than 245 runs?
CREATE TABLE table_name_71 (venue VARCHAR, runs VARCHAR)
SELECT venue FROM table_name_71 WHERE runs = "245"
What is the enrollment associated with a capacity greater then 35,650?
CREATE TABLE table_name_46 (enrollment INTEGER, capacity INTEGER)
SELECT MIN(enrollment) FROM table_name_46 WHERE capacity > 35 OFFSET 650
How many points have Goals for smaller than 33, and Draws larger than 9?
CREATE TABLE table_name_43 (points INTEGER, goals_for VARCHAR, draws VARCHAR)
SELECT SUM(points) FROM table_name_43 WHERE goals_for < 33 AND draws > 9
how many matches did the player that played 23 matches win
CREATE TABLE table_29302711_12 (matches_won INTEGER, matches_played VARCHAR)
SELECT MIN(matches_won) FROM table_29302711_12 WHERE matches_played = 23
How many department stores does the store chain South have?
CREATE TABLE department_stores (dept_store_chain_id VARCHAR); CREATE TABLE department_store_chain (dept_store_chain_id VARCHAR, dept_store_chain_name VARCHAR)
SELECT COUNT(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = "South"
What is the value of time/retired for Jean Alesi?
CREATE TABLE table_name_29 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_29 WHERE driver = "jean alesi"
Who is the athlete who was picked before round 9, had an overall draft pick after number 143 and plays the position of db?
CREATE TABLE table_name_23 (player VARCHAR, position VARCHAR, round VARCHAR, overall VARCHAR)
SELECT player FROM table_name_23 WHERE round < 9 AND overall > 143 AND position = "db"
what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0?
CREATE TABLE table_name_21 (tackles VARCHAR, yards VARCHAR, fumr VARCHAR, totaltk VARCHAR)
SELECT COUNT(tackles) FROM table_name_21 WHERE fumr = 0 AND totaltk = 54 AND yards < 0
Show the carriers that have both phones with memory smaller than 32 and phones with memory bigger than 64.
CREATE TABLE phone (Carrier VARCHAR, Memory_in_G INTEGER)
SELECT Carrier FROM phone WHERE Memory_in_G < 32 INTERSECT SELECT Carrier FROM phone WHERE Memory_in_G > 64
In the WCHL League, what is the last Assists with less than 65 Goals?
CREATE TABLE table_name_37 (assists INTEGER, league VARCHAR, goals VARCHAR)
SELECT MIN(assists) FROM table_name_37 WHERE league = "wchl" AND goals < 65
Before 1976 and with 12 points, what chassis did the Ford V8 have?
CREATE TABLE table_name_66 (chassis VARCHAR, points VARCHAR, engine VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_66 WHERE engine = "ford v8" AND year < 1976 AND points = "12"
Find the first names of all instructors who have taught some course and the course code.
CREATE TABLE CLASS (crs_code VARCHAR, prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)
SELECT T2.emp_fname, T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num
What is the % of total capacity when the generators is 4048?
CREATE TABLE table_11456251_5 (_percentage_of_total_capacity VARCHAR, number_of_generators VARCHAR)
SELECT _percentage_of_total_capacity FROM table_11456251_5 WHERE number_of_generators = 4048
What is Home Team, when Date is "28 January 1984", and when Tie No is "4"?
CREATE TABLE table_name_65 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_65 WHERE date = "28 january 1984" AND tie_no = "4"
How many Bronze medals did the team ranked 1 win?
CREATE TABLE table_name_32 (bronze VARCHAR, rank VARCHAR)
SELECT bronze FROM table_name_32 WHERE rank = "1"
In 1955 which party did Thomas Mitchell belong to?
CREATE TABLE table_name_97 (party VARCHAR, year VARCHAR, candidate VARCHAR)
SELECT party FROM table_name_97 WHERE year = "1955" AND candidate = "thomas mitchell"
What the rank of the Virgin Islands athlete with react under 0.168?
CREATE TABLE table_name_44 (rank VARCHAR, react VARCHAR, nationality VARCHAR)
SELECT rank FROM table_name_44 WHERE react < 0.168 AND nationality = "virgin islands"
In what week number was the attendance 74716?
CREATE TABLE table_16729063_2 (week VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_16729063_2 WHERE attendance = 74716
What is the chassis when there is 25 points?
CREATE TABLE table_name_41 (chassis VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_41 WHERE points = "25"
What Team had a 1:24.365 Qual 2?
CREATE TABLE table_name_60 (team VARCHAR, qual_2 VARCHAR)
SELECT team FROM table_name_60 WHERE qual_2 = "1:24.365"
Which Tries against has Points for of 564?
CREATE TABLE table_name_7 (tries_against VARCHAR, points_for VARCHAR)
SELECT tries_against FROM table_name_7 WHERE points_for = "564"
Name the english meaning for engey poringo
CREATE TABLE table_name_8 (english_meaning VARCHAR, how_other_tamils_say_it VARCHAR)
SELECT english_meaning FROM table_name_8 WHERE how_other_tamils_say_it = "engey poringo"
How many times has Watney made the top 25 for a tournament in which he as also been cut 6 times?
CREATE TABLE table_name_47 (top_25 INTEGER, cuts_made VARCHAR)
SELECT SUM(top_25) FROM table_name_47 WHERE cuts_made = 6
What is the combined attendance of all games that had a result of w 35-14?
CREATE TABLE table_name_65 (attendance INTEGER, result VARCHAR)
SELECT SUM(attendance) FROM table_name_65 WHERE result = "w 35-14"
display the ID for those employees who did two or more jobs in the past.
CREATE TABLE job_history (employee_id VARCHAR)
SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2
In what year is australia/oceania listed?
CREATE TABLE table_27435931_1 (year VARCHAR, continent VARCHAR)
SELECT COUNT(year) FROM table_27435931_1 WHERE continent = "Australia/Oceania"
Name the number of top 10s for scoring rank of 9
CREATE TABLE table_18198579_6 (top_10s VARCHAR, scoring_rank VARCHAR)
SELECT COUNT(top_10s) FROM table_18198579_6 WHERE scoring_rank = "9"
In what Tournament was laura Gildemeister the Opponent?
CREATE TABLE table_name_50 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_50 WHERE opponent = "laura gildemeister"
The 1.6 Duratec model/engine has how many torque formulas?
CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, model_engine VARCHAR)
SELECT COUNT(torque__nm__rpm) FROM table_1212189_1 WHERE model_engine = "1.6 Duratec"
What is the total when the score of set 1 was 15–11?
CREATE TABLE table_name_68 (total VARCHAR, set_1 VARCHAR)
SELECT total FROM table_name_68 WHERE set_1 = "15–11"
Which Gold Coast has a Perth of no, a Sydney of yes, and an Auckland of yes?
CREATE TABLE table_name_49 (gold_coast VARCHAR, auckland VARCHAR, perth VARCHAR, sydney VARCHAR)
SELECT gold_coast FROM table_name_49 WHERE perth = "no" AND sydney = "yes" AND auckland = "yes"
Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl Skerlong
CREATE TABLE table_15511178_3 (report VARCHAR, pole_position VARCHAR, winning_team VARCHAR)
SELECT report FROM table_15511178_3 WHERE pole_position = "Carl Skerlong" AND winning_team = "Newman Wachs Racing"
For majors with 8 events played and more than 1 made cut, what is the most top-10s recorded?
CREATE TABLE table_name_9 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR)
SELECT MAX(top_10) FROM table_name_9 WHERE cuts_made > 1 AND events = 8
What is To Par, when Year(s) Won is "1968 , 1971"?
CREATE TABLE table_name_99 (to_par VARCHAR, year_s__won VARCHAR)
SELECT to_par FROM table_name_99 WHERE year_s__won = "1968 , 1971"
Which Make/ Model that Numbers (Quantity Ordered) of 1461–1500 (40 buses)?
CREATE TABLE table_name_36 (make__model VARCHAR, numbers__quantity_ordered_ VARCHAR)
SELECT make__model FROM table_name_36 WHERE numbers__quantity_ordered_ = "1461–1500 (40 buses)"
On what date was Game 1?
CREATE TABLE table_name_54 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_54 WHERE game = "game 1"
what is the silver for mexico?
CREATE TABLE table_name_9 (silver VARCHAR, nation VARCHAR)
SELECT silver FROM table_name_9 WHERE nation = "mexico"
Where does the defensive back position appear first?
CREATE TABLE table_10361230_1 (round INTEGER, position VARCHAR)
SELECT MIN(round) FROM table_10361230_1 WHERE position = "Defensive Back"
Who had the high rebounds record on December 12?
CREATE TABLE table_27712702_8 (high_rebounds VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_27712702_8 WHERE date = "December 12"
What is the total amount of circuts dated 22 april?
CREATE TABLE table_1140105_6 (circuit VARCHAR, date VARCHAR)
SELECT COUNT(circuit) FROM table_1140105_6 WHERE date = "22 April"
What was the archive for the episode with a run time of 25:24?
CREATE TABLE table_2102714_1 (archive VARCHAR, run_time VARCHAR)
SELECT archive FROM table_2102714_1 WHERE run_time = "25:24"
When ratkovo is the settlement what is the cyrllic name other names?
CREATE TABLE table_2562572_25 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)
SELECT cyrillic_name_other_names FROM table_2562572_25 WHERE settlement = "Ratkovo"
What is the country that has a place of T6 that Eduardo Romero plays for?
CREATE TABLE table_name_73 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT country FROM table_name_73 WHERE place = "t6" AND player = "eduardo romero"
What was the term of Hon Peter Morris?
CREATE TABLE table_name_42 (term_in_office VARCHAR, member VARCHAR)
SELECT term_in_office FROM table_name_42 WHERE member = "hon peter morris"
Who won the race on May 1?
CREATE TABLE table_28925058_1 (race_winner VARCHAR, date VARCHAR)
SELECT race_winner FROM table_28925058_1 WHERE date = "May 1"
Which Points for has Points against smaller than 93, and Tries for larger than 25?
CREATE TABLE table_name_38 (points_for INTEGER, points_against VARCHAR, tries_for VARCHAR)
SELECT MIN(points_for) FROM table_name_38 WHERE points_against < 93 AND tries_for > 25
What was the score when the opponent was Montreal Canadiens?
CREATE TABLE table_name_8 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_8 WHERE opponent = "montreal canadiens"
What was the method of resolution when Mikhail Ilyukhin's record was 4-0?
CREATE TABLE table_name_92 (method VARCHAR, record VARCHAR)
SELECT method FROM table_name_92 WHERE record = "4-0"
What is the average Margin that has a Round of 13. (h)?
CREATE TABLE table_name_3 (margin INTEGER, round VARCHAR)
SELECT AVG(margin) FROM table_name_3 WHERE round = "13. (h)"
What Rank is the Director(s) of satoko okita?
CREATE TABLE table_name_42 (rank VARCHAR, director_s_ VARCHAR)
SELECT rank FROM table_name_42 WHERE director_s_ = "satoko okita"
Show the apartment numbers of apartments with unit status availability of both 0 and 1.
CREATE TABLE View_Unit_Status (apt_id VARCHAR, available_yn VARCHAR); CREATE TABLE Apartments (apt_number VARCHAR, apt_id VARCHAR)
SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 0 INTERSECT SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 1
What was the score with a 16–14–6 record?
CREATE TABLE table_name_37 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_37 WHERE record = "16–14–6"
Who are the local hosts for the United States in years earlier than 2007?
CREATE TABLE table_name_86 (local_host_s_ VARCHAR, country VARCHAR, year VARCHAR)
SELECT local_host_s_ FROM table_name_86 WHERE country = "united states" AND year < 2007
What event was the competition World Junior Championships in 2010?
CREATE TABLE table_name_16 (event VARCHAR, competition VARCHAR, year VARCHAR)
SELECT event FROM table_name_16 WHERE competition = "world junior championships" AND year = 2010
What was the surface played on for the match than began before 1897?
CREATE TABLE table_name_93 (court_surface VARCHAR, began INTEGER)
SELECT court_surface FROM table_name_93 WHERE began < 1897
Find the average and total capacity of dorms for the students with gender X.
CREATE TABLE dorm (student_capacity INTEGER, gender VARCHAR)
SELECT AVG(student_capacity), SUM(student_capacity) FROM dorm WHERE gender = 'X'
What is the average for the couple anh & luda?
CREATE TABLE table_23465011_5 (average VARCHAR, couple VARCHAR)
SELECT average FROM table_23465011_5 WHERE couple = "Anh & Luda"
What is the nationality of Mattias Modig?
CREATE TABLE table_name_86 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_86 WHERE player = "mattias modig"
What was the result of the game that had 56,500 in attendance?
CREATE TABLE table_name_15 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_15 WHERE attendance = "56,500"
How many matches were played that resulted in less than 59.1 overs and a 6.78 Economy rate?
CREATE TABLE table_name_67 (matches INTEGER, overs VARCHAR, economy_rate VARCHAR)
SELECT SUM(matches) FROM table_name_67 WHERE overs < 59.1 AND economy_rate > 6.78
What is the record for the opponent St. Louis Cardinals?
CREATE TABLE table_name_72 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_72 WHERE opponent = "st. louis cardinals"
Which deputy prime minister left office in 2004 and was in the 7th legislature?
CREATE TABLE table_name_8 (deputy_prime_minister VARCHAR, term VARCHAR, left_office VARCHAR)
SELECT deputy_prime_minister FROM table_name_8 WHERE term = "7th legislature" AND left_office = "2004"
Which years have a Decile of 4, an Authority of state, and a Name of mapiu school?
CREATE TABLE table_name_43 (years VARCHAR, name VARCHAR, decile VARCHAR, authority VARCHAR)
SELECT years FROM table_name_43 WHERE decile = 4 AND authority = "state" AND name = "mapiu school"