answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_name_93 WHERE score = "4–0" AND venue = "stade leopold senghor, dakar"
On what Date in Stade Leopold Senghor, Dakar was the Score 4–0?
CREATE TABLE table_name_93 (date VARCHAR, score VARCHAR, venue VARCHAR)
SELECT average FROM table_name_61 WHERE rank = "1"
What average has 1 as rhe rank?
CREATE TABLE table_name_61 (average VARCHAR, rank VARCHAR)
SELECT MAX(points_1) FROM table_name_11 WHERE team = "atherton collieries" AND position < 8
Which Points 1 has a Team of atherton collieries, and a Position smaller than 8?
CREATE TABLE table_name_11 (points_1 INTEGER, team VARCHAR, position VARCHAR)
SELECT away_team AS score FROM table_name_6 WHERE home_team = "hawthorn"
What is the Away Team Score of the Hawthorn Home Team?
CREATE TABLE table_name_6 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(rank) FROM table_name_54 WHERE matches = 205
How many ranks had 205 matches?
CREATE TABLE table_name_54 (rank VARCHAR, matches VARCHAR)
SELECT COUNT(round) FROM table_name_59 WHERE school = "morris brown"
What is the total number of round picks from the Morris Brown School?
CREATE TABLE table_name_59 (round VARCHAR, school VARCHAR)
SELECT MIN(horizontal) FROM table_272313_2 WHERE pixel_aspect_ratio = "SMPTE 259M three quarters"
Name the least horizontal for smpte 259m three quarters
CREATE TABLE table_272313_2 (horizontal INTEGER, pixel_aspect_ratio VARCHAR)
SELECT MIN(crowd) FROM table_name_91 WHERE home_team = "collingwood"
What is the smallest crowd when collingwood is home team?
CREATE TABLE table_name_91 (crowd INTEGER, home_team VARCHAR)
SELECT location_attendance FROM table_name_83 WHERE date = "february 27"
What is the Location Attendance when the Date was February 27?
CREATE TABLE table_name_83 (location_attendance VARCHAR, date VARCHAR)
SELECT scorers FROM table_name_94 WHERE result_f_a = "1–0"
Who were F–A of 1–0 scorers?
CREATE TABLE table_name_94 (scorers VARCHAR, result_f_a VARCHAR)
SELECT score FROM table_2215159_2 WHERE partner = "Rafael Osuna"
What was the score when the partner is Rafael Osuna?
CREATE TABLE table_2215159_2 (score VARCHAR, partner VARCHAR)
SELECT pos FROM table_name_68 WHERE team = "germian racing"
Which Pos has a Team of germian racing?
CREATE TABLE table_name_68 (pos VARCHAR, team VARCHAR)
SELECT country FROM table_name_7 WHERE speed = "98.09mph"
What County scored with a speed of 98.09mph?
CREATE TABLE table_name_7 (country VARCHAR, speed VARCHAR)
SELECT film FROM table_name_35 WHERE date = "22/3/06" AND recipient = "redhouse lane / perfect world"
What is the film dated 22/3/06 and redhouse lane / perfect world was the recipient?
CREATE TABLE table_name_35 (film VARCHAR, date VARCHAR, recipient VARCHAR)
SELECT T2.day_Number, T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date
What is the day Number and date of all the documents?
CREATE TABLE All_documents (Date_Stored VARCHAR, date_stored VARCHAR); CREATE TABLE Ref_calendar (day_Number VARCHAR, calendar_date VARCHAR)
SELECT player FROM table_name_80 WHERE score = 68 - 71 = 139
What is Player, when Score is "68-71=139"?
CREATE TABLE table_name_80 (player VARCHAR, score VARCHAR)
SELECT directed_by FROM table_18274425_1 WHERE written_by = "Mike Daniels"
Who were the director/s of episodes written by Mike Daniels?
CREATE TABLE table_18274425_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT opponent_in_the_final FROM table_name_92 WHERE outcome = "winner" AND date = "14-may-2007"
What is the Opponent in the final with an outcome of winner on 14-may-2007?
CREATE TABLE table_name_92 (opponent_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT MIN(drawn) FROM table_name_5 WHERE nationality = "england" AND matches < 510 AND lost = 4 AND win__percentage < 28.6
Nationality of england, and a Matches smaller than 510, and a Lost of 4, and a Win % smaller than 28.6 had what lowest drawn?
CREATE TABLE table_name_5 (drawn INTEGER, win__percentage VARCHAR, lost VARCHAR, nationality VARCHAR, matches VARCHAR)
SELECT result FROM table_name_10 WHERE nominated_work = "neil finn"
What was the result for work made by Neil Finn?
CREATE TABLE table_name_10 (result VARCHAR, nominated_work VARCHAR)
SELECT regular_season FROM table_1986692_1 WHERE playoffs = "divisional Finals"
When divisional finals are the playoffs what is the regular season?
CREATE TABLE table_1986692_1 (regular_season VARCHAR, playoffs VARCHAR)
SELECT score FROM table_name_60 WHERE home_team = "newport county"
If the Home Team is Newport County what is the Score?
CREATE TABLE table_name_60 (score VARCHAR, home_team VARCHAR)
SELECT date_of_birth__age_ FROM table_name_7 WHERE position = "lock" AND club_province = "queensland reds"
When was the queensland reds lock player born?
CREATE TABLE table_name_7 (date_of_birth__age_ VARCHAR, position VARCHAR, club_province VARCHAR)
SELECT COUNT(points) FROM table_14342480_7 WHERE position = "Right tackle"
How many points were scored by someone who's position was right tackle?
CREATE TABLE table_14342480_7 (points VARCHAR, position VARCHAR)
SELECT incumbent FROM table_1341568_14 WHERE elected = 1974 AND party = "Republican"
What Republican incumbent was elected in 1974?
CREATE TABLE table_1341568_14 (incumbent VARCHAR, elected VARCHAR, party VARCHAR)
SELECT * FROM job_history AS T1 JOIN employees AS T2 ON T1.employee_id = T2.employee_id WHERE T2.salary >= 12000
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 primary_sponsor_s_ FROM table_name_55 WHERE driver_s_ = "austin dillon"
Who is Austin Dillon's primary sponsor(s)?
CREATE TABLE table_name_55 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR)
SELECT tries_for FROM table_name_16 WHERE try_bonus = "0"
What is the number of tries for when the try bonus is 0?
CREATE TABLE table_name_16 (tries_for VARCHAR, try_bonus VARCHAR)
SELECT opponent FROM table_name_79 WHERE series = "1-0"
Who was the opponent with a series of 1-0?
CREATE TABLE table_name_79 (opponent VARCHAR, series VARCHAR)
SELECT karen_handel FROM table_name_45 WHERE eric_johnson = "13%" AND undecided = "22%"
What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%?
CREATE TABLE table_name_45 (karen_handel VARCHAR, eric_johnson VARCHAR, undecided VARCHAR)
SELECT number FROM table_name_54 WHERE acquisition_via = "rookie draft" AND school_club_team = "cal state fullerton"
What number has an acquisition via the Rookie Draft, and is part of a School/club team at Cal State Fullerton?
CREATE TABLE table_name_54 (number VARCHAR, acquisition_via VARCHAR, school_club_team VARCHAR)
SELECT MIN(poll_losses) FROM table_name_15 WHERE ties = 0 AND poll_wins > 1 AND wins < 2
What is the lowest poll losses of the 0 ties, poll wins greater than 1 and wins less than 2?
CREATE TABLE table_name_15 (poll_losses INTEGER, wins VARCHAR, ties VARCHAR, poll_wins VARCHAR)
SELECT COUNT(DISTINCT acc_type) FROM customer
How many distinct types of accounts are there?
CREATE TABLE customer (acc_type VARCHAR)
SELECT constituency_number FROM table_name_94 WHERE reserved_for___sc___st__none_ = "none" AND district = "seoni"
What's the constituency number of the Seoni district and has none reserved?
CREATE TABLE table_name_94 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, district VARCHAR)
SELECT MIN(games_played) FROM table_27816332_2 WHERE total_points = 6
Name the least games played for 6 points
CREATE TABLE table_27816332_2 (games_played INTEGER, total_points VARCHAR)
SELECT COUNT(frequency_mhz) FROM table_name_54 WHERE class = "d" AND call_sign = "k201bm" AND erp_w < 74
Name the total number of frequency Mhz with class of d and call sign of k201bm and ERP W less than 74
CREATE TABLE table_name_54 (frequency_mhz VARCHAR, erp_w VARCHAR, class VARCHAR, call_sign VARCHAR)
SELECT 2006 FROM table_name_96 WHERE 2002 = "0–1"
What shows for 2006 when 2002 is 0–1?
CREATE TABLE table_name_96 (Id VARCHAR)
SELECT player FROM table_name_93 WHERE country = "south africa"
Which player is from south africa?
CREATE TABLE table_name_93 (player VARCHAR, country VARCHAR)
SELECT document_id, document_name, document_description FROM Documents
List document IDs, document names, and document descriptions for all documents.
CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR, document_description VARCHAR)
SELECT circuit FROM table_name_38 WHERE winning_driver = "jim clark" AND year = "1962"
Which circuit did Jim Clark win in 1962?
CREATE TABLE table_name_38 (circuit VARCHAR, winning_driver VARCHAR, year VARCHAR)
SELECT venue FROM table_name_58 WHERE state = "california" AND city = "santa barbara"
What venue is in Santa Barbara, California?
CREATE TABLE table_name_58 (venue VARCHAR, state VARCHAR, city VARCHAR)
SELECT frequency_mhz FROM table_name_7 WHERE city_of_license = "albany, new york"
What is the frequency of the call sign licensed in Albany, New York?
CREATE TABLE table_name_7 (frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT player FROM table_name_83 WHERE tries = "02 2" AND points = "008 8"
Name the player with tries of 02 2 and points of 008 8
CREATE TABLE table_name_83 (player VARCHAR, tries VARCHAR, points VARCHAR)
SELECT score FROM table_name_64 WHERE to_par = "+1" AND country = "united states"
What was the score for the player from the United states that was +1 to par?
CREATE TABLE table_name_64 (score VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT mountain_range FROM table_name_64 WHERE mountain_peak = "mount hubbard"
Which mountain range includes Mount Hubbard?
CREATE TABLE table_name_64 (mountain_range VARCHAR, mountain_peak VARCHAR)
SELECT birth FROM table_name_91 WHERE name = "anne of lorraine"
When was anne of lorraine born?
CREATE TABLE table_name_91 (birth VARCHAR, name VARCHAR)
SELECT AVG(year) FROM table_name_35 WHERE team = "melbourne"
What's melbourne's average year?
CREATE TABLE table_name_35 (year INTEGER, team VARCHAR)
SELECT owner_s_ FROM table_name_18 WHERE date = 1956 AND description = "mark 1 pos"
Which owner has a description of Mark 1 pos and is dated 1956?
CREATE TABLE table_name_18 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR)
SELECT COUNT(DISTINCT T1.name), T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter
Find the number of different products that are produced by companies at different headquarter cities.
CREATE TABLE manufacturers (Headquarter VARCHAR, code VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR)
SELECT agg FROM table_name_2 WHERE team_2 = "dynamo moscow"
What is the agg of team 2 Dynamo Moscow?
CREATE TABLE table_name_2 (agg VARCHAR, team_2 VARCHAR)
SELECT races FROM table_name_99 WHERE series = "toyota racing series new zealand" AND wins = "0"
Which Race has the Toyota Racing Series New Zealand and 0 wins?
CREATE TABLE table_name_99 (races VARCHAR, series VARCHAR, wins VARCHAR)
SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT(*) > 1
Show the names of countries that have more than one roller coaster.
CREATE TABLE roller_coaster (Country_ID VARCHAR); CREATE TABLE country (Name VARCHAR, Country_ID VARCHAR)
SELECT start FROM table_name_55 WHERE qual = "207.590"
Which Start has a Qual of 207.590?
CREATE TABLE table_name_55 (start VARCHAR, qual VARCHAR)
SELECT date FROM table_17288869_7 WHERE high_rebounds = "Dirk Nowitzki (14)"
On what day did Dirk Nowitzki (14) have a high rebound?
CREATE TABLE table_17288869_7 (date VARCHAR, high_rebounds VARCHAR)
SELECT team FROM table_22893781_5 WHERE date = "December 11"
Who was he opponent on december 11?
CREATE TABLE table_22893781_5 (team VARCHAR, date VARCHAR)
SELECT term_of_office FROM table_name_1 WHERE state = "nsw" AND member = "leonard reynolds"
What is the Term of office for Leonard Reynolds of NSW?
CREATE TABLE table_name_1 (term_of_office VARCHAR, state VARCHAR, member VARCHAR)
SELECT MIN(population_density_2012__km_2__) FROM table_12496904_1 WHERE sector = "Gatunda"
What is the population density for 2012 for Gatunda sector?
CREATE TABLE table_12496904_1 (population_density_2012__km_2__ INTEGER, sector VARCHAR)
SELECT MIN(goals_for) FROM table_name_88 WHERE played > 30
What is the lowest goals for more than 30 games played?
CREATE TABLE table_name_88 (goals_for INTEGER, played INTEGER)
SELECT legs FROM table_name_81 WHERE venue = "rwe-sporthalle, mülheim" AND runner_up__average_in_final_ = "simon whitlock (99.59)"
What is the legs when the venue is rwe-sporthalle, mülheim and the runner-up (average in final) is simon whitlock (99.59)?
CREATE TABLE table_name_81 (legs VARCHAR, venue VARCHAR, runner_up__average_in_final_ VARCHAR)
SELECT winner FROM table_name_63 WHERE runner_up = "john higgins"
Who was the winner in the match that had John Higgins as runner-up?
CREATE TABLE table_name_63 (winner VARCHAR, runner_up VARCHAR)
SELECT MIN(round) FROM table_name_64 WHERE event = "ufc 16" AND record = "19-1-1"
What was the lowest round number at the UFC 16 event with a record of 19-1-1?
CREATE TABLE table_name_64 (round INTEGER, event VARCHAR, record VARCHAR)
SELECT flattening_ratio FROM table_name_75 WHERE equatorial_diameter = "120,536km"
What is the Flattening ratio associated with the Equatorial diameter of 120,536km?
CREATE TABLE table_name_75 (flattening_ratio VARCHAR, equatorial_diameter VARCHAR)
SELECT player FROM table_name_2 WHERE country = "australia"
Which player plays for australia?
CREATE TABLE table_name_2 (player VARCHAR, country VARCHAR)
SELECT name FROM instructor WHERE salary > (SELECT MAX(salary) FROM instructor WHERE dept_name = 'Biology')
Find the names of all instructors whose salary is greater than the salary of all instructors in the Biology department.
CREATE TABLE instructor (name VARCHAR, salary INTEGER, dept_name VARCHAR)
SELECT MAX(no) FROM table_22962745_35 WHERE against = "Rajasthan Royals"
What is the number when against is rajasthan royals?
CREATE TABLE table_22962745_35 (no INTEGER, against VARCHAR)
SELECT team FROM table_name_53 WHERE location_attendance = "air canada centre 19,800" AND record = "41–33"
Which team has a location attendance of Air Canada Centre 19,800 with a record of 41–33?
CREATE TABLE table_name_53 (team VARCHAR, location_attendance VARCHAR, record VARCHAR)
SELECT record FROM table_name_70 WHERE points = 23 AND visitor = "chicago"
What is the record with 23 points and a visitor of Chicago?
CREATE TABLE table_name_70 (record VARCHAR, points VARCHAR, visitor VARCHAR)
SELECT android FROM table_name_42 WHERE other_unix = "unknown"
Which Android has anOther Unix of unknown?
CREATE TABLE table_name_42 (android VARCHAR, other_unix VARCHAR)
SELECT MIN(area_km_2) FROM table_name_47 WHERE status = "rural community"
When the status is rural community what's the lowest area in kilometers squared?
CREATE TABLE table_name_47 (area_km_2 INTEGER, status VARCHAR)
SELECT SUM(drawn) FROM table_name_33 WHERE lost = 4
What is the whole of Drawn that has a Lost of 4?
CREATE TABLE table_name_33 (drawn INTEGER, lost VARCHAR)
SELECT Name FROM GENRE
List the names of all music genres.
CREATE TABLE GENRE (Name VARCHAR)
SELECT 2013 FROM table_name_77 WHERE 2008 = "1r"
What shows for 2013 when the 2008 is 1r?
CREATE TABLE table_name_77 (Id VARCHAR)
SELECT season FROM table_2140071_10 WHERE premier_date = "August 16, 2010"
Name the season for august 16, 2010
CREATE TABLE table_2140071_10 (season VARCHAR, premier_date VARCHAR)
SELECT ship FROM table_name_52 WHERE captain = "lieutenant montagu verling"
Tell me the ship for lieutenant montagu verling
CREATE TABLE table_name_52 (ship VARCHAR, captain VARCHAR)
SELECT icao FROM table_name_69 WHERE iata = "rgn"
Name the ICAO for IATA of rgn
CREATE TABLE table_name_69 (icao VARCHAR, iata VARCHAR)
SELECT away_team AS score FROM table_name_59 WHERE away_team = "st kilda"
What was St Kilda's score as the Away team?
CREATE TABLE table_name_59 (away_team VARCHAR)
SELECT date_of_opinion_poll FROM table_20683381_2 WHERE conductor = "Quantum Research"
When was Quantum Research's poll conducted?
CREATE TABLE table_20683381_2 (date_of_opinion_poll VARCHAR, conductor VARCHAR)
SELECT Memory_in_G, Carrier FROM phone
What are the memories and carriers of phones?
CREATE TABLE phone (Memory_in_G VARCHAR, Carrier VARCHAR)
SELECT COUNT(written_by) FROM table_1876825_7 WHERE original_air_date = "May 8, 2005"
Name the total number of written by for original air date for may 8, 2005
CREATE TABLE table_1876825_7 (written_by VARCHAR, original_air_date VARCHAR)
SELECT television_order FROM table_20360535_2 WHERE directed_by = "Ben Jones" AND written_by = "J. M. DeMatteis" AND original_air_date = "February6,2009"
what is the television order of the episode directed by ben jones, written by j. m. dematteis and originally aired on february6,2009
CREATE TABLE table_20360535_2 (television_order VARCHAR, original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT COUNT(date_of_appointment) FROM table_26976615_3 WHERE date_of_vacancy = "2 October 2010"
How many date of appointments are there when the date of vacancy was 2 october 2010?
CREATE TABLE table_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
SELECT date FROM table_name_87 WHERE home = "los angeles lakers"
When was the home Los Angeles Lakers?
CREATE TABLE table_name_87 (date VARCHAR, home VARCHAR)
SELECT senior_status FROM table_name_53 WHERE active_service = "1972–1995"
What were the years of senior status for active service in 1972–1995?
CREATE TABLE table_name_53 (senior_status VARCHAR, active_service VARCHAR)
SELECT result_f___a FROM table_name_92 WHERE league_position = "2nd" AND opponents = "liverpool"
What Result F – A has a League position of 2nd, and Opponents of liverpool?
CREATE TABLE table_name_92 (result_f___a VARCHAR, league_position VARCHAR, opponents VARCHAR)
SELECT station FROM table_name_73 WHERE owned_since = 2011 AND channel___tv___rf__ = "27"
What station was owned since 2011, and a channel (tv/rf) of 27?
CREATE TABLE table_name_73 (station VARCHAR, owned_since VARCHAR, channel___tv___rf__ VARCHAR)
SELECT losing_bonus FROM table_name_52 WHERE "lost" = "lost"
With a lost of lost what was the losing bonus?
CREATE TABLE table_name_52 (losing_bonus VARCHAR)
SELECT MIN(no_in_series) FROM table_2818164_4 WHERE written_by = "Janet Leahy"
What is the series number for the episode written by janet leahy?
CREATE TABLE table_2818164_4 (no_in_series INTEGER, written_by VARCHAR)
SELECT opponent_in_the_final FROM table_name_69 WHERE surface = "hard" AND score = "6–3 7–6(5)"
Who is the opponent in the final on a hard surface with a score of 6–3 7–6(5)?
CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)
SELECT position FROM table_2679061_12 WHERE player = "Peter McGeough"
What position does peter mcgeough cover?
CREATE TABLE table_2679061_12 (position VARCHAR, player VARCHAR)
SELECT result FROM table_1341973_6 WHERE district = "California 2"
What was the result of the election in california 2?
CREATE TABLE table_1341973_6 (result VARCHAR, district VARCHAR)
SELECT avg_g FROM table_name_70 WHERE effic > 73.95 AND name = "rhines, chris"
What is the avg/g of Rhines, Chris, who has an effic greater than 73.95?
CREATE TABLE table_name_70 (avg_g VARCHAR, effic VARCHAR, name VARCHAR)
SELECT result FROM table_name_57 WHERE date = "2000-05-23"
What is Result, when Date is "2000-05-23"?
CREATE TABLE table_name_57 (result VARCHAR, date VARCHAR)
SELECT MIN(overall) FROM table_name_51 WHERE college = "arkansas" AND round > 3
What's the lowest Overall average that has a College of Arkansas, and a Round larger than 3?
CREATE TABLE table_name_51 (overall INTEGER, college VARCHAR, round VARCHAR)
SELECT height FROM table_name_63 WHERE name = "james stanton"
What is the height of player James Stanton?
CREATE TABLE table_name_63 (height VARCHAR, name VARCHAR)
SELECT first_name, last_name, hire_date, salary, department_id FROM employees WHERE NOT first_name LIKE '%M%' ORDER BY department_id
display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M and make the result set in ascending order by department number.
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, salary VARCHAR, department_id VARCHAR)
SELECT SUM(ends) FROM table_name_65 WHERE goals < 0
Add up all the Ends columns that have goals smaller than 0.
CREATE TABLE table_name_65 (ends INTEGER, goals INTEGER)
SELECT school FROM table_name_64 WHERE position = "c"
Which school had a player who played the C position?
CREATE TABLE table_name_64 (school VARCHAR, position VARCHAR)
SELECT res FROM table_name_4 WHERE round = 1 AND opponent = "jeremy beck"
What was the result when he went 1 round against jeremy beck?
CREATE TABLE table_name_4 (res VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1
Show the names of conductors that have conducted more than one orchestras.
CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR)
SELECT MAX(total_dismissals) FROM table_27771406_1 WHERE club = "Guyana"
How many total dismissals did the player for Guyana have?
CREATE TABLE table_27771406_1 (total_dismissals INTEGER, club VARCHAR)