answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT location FROM table_name_77 WHERE mountain_peak = "blanca peak"
What is the location of Blanca Peak?
CREATE TABLE table_name_77 (location VARCHAR, mountain_peak VARCHAR)
SELECT date FROM table_name_11 WHERE opponen = "joão souza"
When did joão souza play?
CREATE TABLE table_name_11 (date VARCHAR, opponen VARCHAR)
SELECT title FROM table_name_14 WHERE name = "anthony d. marshall"
What was Anthony D. Marshall's title?
CREATE TABLE table_name_14 (title VARCHAR, name VARCHAR)
SELECT date FROM table_29126507_1 WHERE home_team = "Essendon"
When was the home team Essendon?
CREATE TABLE table_29126507_1 (date VARCHAR, home_team VARCHAR)
SELECT song_choice FROM table_15796054_3 WHERE week__number = "Hollywood"
Name the song choice when week number is hollywood
CREATE TABLE table_15796054_3 (song_choice VARCHAR, week__number VARCHAR)
SELECT home FROM table_name_17 WHERE away = "(2-1)"
Which home team has an Away of (2-1)?
CREATE TABLE table_name_17 (home VARCHAR, away VARCHAR)
SELECT report FROM table_name_33 WHERE circuit = "cagliari"
Which report had a circuit of Cagliari?
CREATE TABLE table_name_33 (report VARCHAR, circuit VARCHAR)
SELECT appointed_by FROM table_name_15 WHERE title = "envoy extraordinary and minister plenipotentiary" AND termination_of_mission = "march 16, 1905"
Who was appointed with the title of envoy extraordinary and minister plenipotentiary, and a termination of mission of march 16, 1905?
CREATE TABLE table_name_15 (appointed_by VARCHAR, title VARCHAR, termination_of_mission VARCHAR)
SELECT c_span_2009 FROM table_name_80 WHERE times_2008 * * = "08"
what is c-span 2009 when times 2008** is 08?
CREATE TABLE table_name_80 (c_span_2009 VARCHAR, times_2008 VARCHAR)
SELECT COUNT(attendance) FROM table_name_81 WHERE date = "november 3, 1968" AND week < 8
What was the attendance on November 3, 1968, that was a week smaller than 8?
CREATE TABLE table_name_81 (attendance VARCHAR, date VARCHAR, week VARCHAR)
SELECT AVG(week) FROM table_name_20 WHERE result = "w 20-13"
Which Week has a Result of w 20-13?
CREATE TABLE table_name_20 (week INTEGER, result VARCHAR)
SELECT AVG(earnings___) AS $__ FROM table_name_58 WHERE player = "meg mallon" AND rank < 9
What is the average earnings ($) that has meg mallon as the player, with a rank less than 9?
CREATE TABLE table_name_58 (earnings___ INTEGER, player VARCHAR, rank VARCHAR)
SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T2.bathroom_count > 2
Show the addresses of the buildings that have apartments with more than 2 bathrooms.
CREATE TABLE Apartment_Buildings (building_address VARCHAR, building_id VARCHAR); CREATE TABLE Apartments (building_id VARCHAR, bathroom_count INTEGER)
SELECT cross_code_debut FROM table_name_68 WHERE player = "bev risman"
What is Bev Risman's Cross Code Debut?
CREATE TABLE table_name_68 (cross_code_debut VARCHAR, player VARCHAR)
SELECT SUM(points) FROM table_name_14 WHERE games > 68 AND tied = "4" AND goals_against > 272
How many points did the team with more than 68 games, 4 ties, and more than 272 goals against have?
CREATE TABLE table_name_14 (points INTEGER, goals_against VARCHAR, games VARCHAR, tied VARCHAR)
SELECT COUNT(2008) FROM table_name_53 WHERE 2006 > 322.7 AND 2011 = 353.9 AND 2009 < 392
What is the total 2008 value with a 2006 value greater than 322.7, a 353.9 in 2011, and a 2009 less than 392?
CREATE TABLE table_name_53 (Id VARCHAR)
SELECT recopa_sudamericana_1996 FROM table_name_64 WHERE copa_libertadores_1996 = "round of 16"
What is the recoupa sudamericana 1996 of the team with a copa libertadores 1996 result of the round of 16?
CREATE TABLE table_name_64 (recopa_sudamericana_1996 VARCHAR, copa_libertadores_1996 VARCHAR)
SELECT attendance FROM table_name_85 WHERE record = "56–20"
What was the attendance of the Mariners game when they had a record of 56–20?
CREATE TABLE table_name_85 (attendance VARCHAR, record VARCHAR)
SELECT NOT COUNT AS event FROM table_name_42 WHERE winner = "clay"
How many events did clay win?
CREATE TABLE table_name_42 (COUNT VARCHAR, winner VARCHAR)
SELECT COUNT(points) FROM table_name_89 WHERE artist = "linda martin"
How many points did Linda Martin have?
CREATE TABLE table_name_89 (points VARCHAR, artist VARCHAR)
SELECT COUNT(points) FROM table_name_61 WHERE division = "conference" AND league_pos = "9th" AND lost < 13
What is the total number of points for the conference division, a league position of 9th, and a lost result less than 13?
CREATE TABLE table_name_61 (points VARCHAR, lost VARCHAR, division VARCHAR, league_pos VARCHAR)
SELECT parent_unit FROM table_28342423_1 WHERE commanding_officer = "Josef Priller"
Name the parent unit for josef priller
CREATE TABLE table_28342423_1 (parent_unit VARCHAR, commanding_officer VARCHAR)
SELECT venue FROM table_name_9 WHERE date = "june 8, 2005"
What was the Venue on June 8, 2005?
CREATE TABLE table_name_9 (venue VARCHAR, date VARCHAR)
SELECT match FROM table_name_90 WHERE "stadium" = "stadium"
When the game was played in the stadium called stadium what was the match?
CREATE TABLE table_name_90 (match VARCHAR)
SELECT award_category FROM table_name_92 WHERE nominated_won = "won" AND year = 2007
In what category was an award won in 2007?
CREATE TABLE table_name_92 (award_category VARCHAR, nominated_won VARCHAR, year VARCHAR)
SELECT surface FROM table_name_42 WHERE outcome = "runner-up" AND score = "julia görges polona hercog"
What is the surface of the match when the outcome was runner-up, and a Score of julia görges polona hercog?
CREATE TABLE table_name_42 (surface VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Heathrow" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Gatwick"
Show the names of aircrafts that are associated with both an airport named "London Heathrow" and an airport named "London Gatwick"
CREATE TABLE airport (Airport_ID VARCHAR, Airport_Name VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR); CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR)
SELECT MAX(public) FROM table_26375386_23 WHERE result = "Eliminated"
How many public is there for the couple that got eliminated?
CREATE TABLE table_26375386_23 (public INTEGER, result VARCHAR)
SELECT covalent__single_bond_ FROM table_name_21 WHERE name = "sodium"
What is the covalent (single bond) value of sodium?
CREATE TABLE table_name_21 (covalent__single_bond_ VARCHAR, name VARCHAR)
SELECT ensemble_name FROM table_name_79 WHERE advertisement_date = "october 2007"
Which Ensemble Name has the Advertisement date October 2007?
CREATE TABLE table_name_79 (ensemble_name VARCHAR, advertisement_date VARCHAR)
SELECT music FROM table_name_30 WHERE couple = "mario & karina"
What music did Mario & Karina perform?
CREATE TABLE table_name_30 (music VARCHAR, couple VARCHAR)
SELECT competition FROM table_name_89 WHERE club = "villareal"
What competition has the club villareal?
CREATE TABLE table_name_89 (competition VARCHAR, club VARCHAR)
SELECT genre FROM table_name_87 WHERE type = "3d" AND release_date = "2008-2011"
What type of 3D game was released between 2008-2011?
CREATE TABLE table_name_87 (genre VARCHAR, type VARCHAR, release_date VARCHAR)
SELECT appearances FROM table_name_5 WHERE goals = 36
What is the amount of apperances of the person who had 36 goals?
CREATE TABLE table_name_5 (appearances VARCHAR, goals VARCHAR)
SELECT AVG(game) FROM table_name_7 WHERE date = "february 24" AND attendance < 16 OFFSET 541
What average game was held on february 24 and has an attendance smaller than 16,541?
CREATE TABLE table_name_7 (game INTEGER, date VARCHAR, attendance VARCHAR)
SELECT results FROM table_name_48 WHERE first_elected < 1982
What are the results of a first elected prior to year 1982?
CREATE TABLE table_name_48 (results VARCHAR, first_elected INTEGER)
SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower LIMIT 1
Which model of the car has the minimum horsepower?
CREATE TABLE CARS_DATA (Id VARCHAR, horsepower VARCHAR); CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR)
SELECT venue FROM table_name_96 WHERE against > 3 AND date = "16/01/1954"
What was the venue for the game played on 16/01/1954, when the against was more than 3?
CREATE TABLE table_name_96 (venue VARCHAR, against VARCHAR, date VARCHAR)
SELECT constructor FROM table_name_71 WHERE circuit = "oulton park"
Who is the constructor whose circuit was Oulton Park?
CREATE TABLE table_name_71 (constructor VARCHAR, circuit VARCHAR)
SELECT fcc_info FROM table_13998897_1 WHERE call_sign = "W221AW"
what's the fcc info with call sign being w221aw
CREATE TABLE table_13998897_1 (fcc_info VARCHAR, call_sign VARCHAR)
SELECT position FROM table_name_32 WHERE college = "rutgers"
Rutgers college holds what position?
CREATE TABLE table_name_32 (position VARCHAR, college VARCHAR)
SELECT COUNT(graphical) FROM table_22915134_2 WHERE ignition_timing = "68-292-68-292"
When 68-292-68-292 is the ignition timing how many graphicals is it?
CREATE TABLE table_22915134_2 (graphical VARCHAR, ignition_timing VARCHAR)
SELECT MAX(points) FROM table_name_27 WHERE date = "february 10, 2009" AND game > 54
What game in February 10, 2009 has the most points and a game number larger than 54?
CREATE TABLE table_name_27 (points INTEGER, date VARCHAR, game VARCHAR)
SELECT total FROM table_name_88 WHERE rank = "did not participate"
What is the total of the ranks that did not participate?
CREATE TABLE table_name_88 (total VARCHAR, rank VARCHAR)
SELECT matches FROM table_name_92 WHERE draws = "1" AND wins = "1"
How many matches were played when there was 1 draw and 1 win?
CREATE TABLE table_name_92 (matches VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT COUNT(score) FROM table_13710464_1 WHERE date = "June 25"
How many games played on june 25?
CREATE TABLE table_13710464_1 (score VARCHAR, date VARCHAR)
SELECT Country FROM manager WHERE Age > 50 INTERSECT SELECT Country FROM manager WHERE Age < 46
Show the countries that have both managers of age above 50 and managers of age below 46.
CREATE TABLE manager (Country VARCHAR, Age INTEGER)
SELECT team FROM table_name_31 WHERE school = "sussex tech"
What is the School of Sussex Tech's Team?
CREATE TABLE table_name_31 (team VARCHAR, school VARCHAR)
SELECT MAX(pick) FROM table_name_27 WHERE nfl_club = "baltimore colts" AND round > 10
What is the largest pick by the Baltimore Colts in a round later than 10?
CREATE TABLE table_name_27 (pick INTEGER, nfl_club VARCHAR, round VARCHAR)
SELECT AVG(weight__kg_) FROM table_name_67 WHERE manufacturer = "fujitsu" AND model = "lifebook p1610"
Which Weight (kg) has a Manufacturer of fujitsu, and a Model of lifebook p1610?
CREATE TABLE table_name_67 (weight__kg_ INTEGER, manufacturer VARCHAR, model VARCHAR)
SELECT summit FROM table_name_72 WHERE col__m_ = 0 AND rank < 2
What's the summit when the rank is less than 2 and has a col (m) of 0?
CREATE TABLE table_name_72 (summit VARCHAR, col__m_ VARCHAR, rank VARCHAR)
SELECT artist FROM table_name_51 WHERE place > 1 AND points = 229
Which artist had a place larger than 1 with 229 points?
CREATE TABLE table_name_51 (artist VARCHAR, place VARCHAR, points VARCHAR)
SELECT COUNT(interview_subject) FROM table_1566848_7 WHERE centerfold_model = "Sherry Arnett"
Who was the interview subject when the centerfold model was Sherry Arnett?
CREATE TABLE table_1566848_7 (interview_subject VARCHAR, centerfold_model VARCHAR)
SELECT method FROM table_name_5 WHERE time = "0:51"
what is the method when the time is 0:51?
CREATE TABLE table_name_5 (method VARCHAR, time VARCHAR)
SELECT pop__km² FROM table_2252745_1 WHERE _number = 4
When the # is 4, what is the pop./ km²?
CREATE TABLE table_2252745_1 (pop__km² VARCHAR, _number VARCHAR)
SELECT best FROM table_name_62 WHERE team = "forsythe racing" AND name = "paul tracy"
What is Paul Tracy's best time racing on the Forsythe Racing team?
CREATE TABLE table_name_62 (best VARCHAR, team VARCHAR, name VARCHAR)
SELECT voltage_input_[v_a] FROM table_name_89 WHERE model = "whr-g54s"
What is the voltage iinput [V/A] of the whr-g54s model?
CREATE TABLE table_name_89 (voltage_input_ VARCHAR, v_a VARCHAR, model VARCHAR)
SELECT company FROM table_name_7 WHERE principal_activities = "engine overhaul"
What company focuses on Engine Overhaul for their principal activity?
CREATE TABLE table_name_7 (company VARCHAR, principal_activities VARCHAR)
SELECT home_team AS score FROM table_name_82 WHERE venue = "brunswick street oval"
What is the home team's score at brunswick street oval?
CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR)
SELECT country FROM table_name_9 WHERE year_s__won = "1983"
From which country was the player whose year(s) won was 1983?
CREATE TABLE table_name_9 (country VARCHAR, year_s__won VARCHAR)
SELECT construction_start FROM table_12983929_1 WHERE net_power = "905 MW" AND unit = "Chinon B1"
When did the construction of the unit Chinon B1 with net power of 905 MW start?
CREATE TABLE table_12983929_1 (construction_start VARCHAR, net_power VARCHAR, unit VARCHAR)
SELECT MAX(crowd) FROM table_16387700_1 WHERE date = "Saturday 16 February"
Name the most crowd for saturday 16 february
CREATE TABLE table_16387700_1 (crowd INTEGER, date VARCHAR)
SELECT T1.role_description, T2.role_code, COUNT(*) FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code
How many employees does each role have? List role description, id and number of employees.
CREATE TABLE ROLES (role_description VARCHAR, role_code VARCHAR); CREATE TABLE Employees (role_code VARCHAR)
SELECT nfl_club FROM table_name_35 WHERE pick > 196
What team did the player represent that was picked after 196?
CREATE TABLE table_name_35 (nfl_club VARCHAR, pick INTEGER)
SELECT MAX(cost), MIN(cost), AVG(cost) FROM procedures
What are the highest cost, lowest cost and average cost of procedures?
CREATE TABLE procedures (cost INTEGER)
SELECT result FROM table_1341395_33 WHERE district = "New York 6"
what are all the result for New York 6 district
CREATE TABLE table_1341395_33 (result VARCHAR, district VARCHAR)
SELECT MAX(engine) FROM table_name_57 WHERE model = "sl500" AND year_from > 1999
Which Engine has a Model of sl500, and a Year From larger than 1999?
CREATE TABLE table_name_57 (engine INTEGER, model VARCHAR, year_from VARCHAR)
SELECT MIN(matches) FROM table_26041144_11
What is the lowest number of matches for a record holder?
CREATE TABLE table_26041144_11 (matches INTEGER)
SELECT place FROM table_name_94 WHERE player = "mi hyun kim"
What is Place, when Player is "Mi Hyun Kim"?
CREATE TABLE table_name_94 (place VARCHAR, player VARCHAR)
SELECT height FROM table_name_1 WHERE position = "forward" AND current_club = "toronto raptors"
What is the height of the Forward who currently plays for the Toronto Raptors?
CREATE TABLE table_name_1 (height VARCHAR, position VARCHAR, current_club VARCHAR)
SELECT COUNT(game) FROM table_30054758_3 WHERE location_attendance = "Phog Allen Fieldhouse , Lawrence, KS (16,300)"
How many games are shown when the is location attendance is phog allen fieldhouse , lawrence, ks (16,300)?
CREATE TABLE table_30054758_3 (game VARCHAR, location_attendance VARCHAR)
SELECT MAX(attendance) FROM table_name_77 WHERE week = 7
In Week 7, what is the highest attendance number?
CREATE TABLE table_name_77 (attendance INTEGER, week VARCHAR)
SELECT species FROM table_1818471_1 WHERE afinsa = 639
What is every species when Afinsa is 639?
CREATE TABLE table_1818471_1 (species VARCHAR, afinsa VARCHAR)
SELECT COUNT(attendance) FROM table_name_34 WHERE date = "december 13, 1970" AND week > 13
What was the attendance of the game on December 13, 1970?
CREATE TABLE table_name_34 (attendance VARCHAR, date VARCHAR, week VARCHAR)
SELECT team FROM table_23285805_5 WHERE date = "December 19"
Name the team for december 19
CREATE TABLE table_23285805_5 (team VARCHAR, date VARCHAR)
SELECT record FROM table_name_35 WHERE date = "january 29"
Which record has a date of January 29?
CREATE TABLE table_name_35 (record VARCHAR, date VARCHAR)
SELECT location FROM table_name_96 WHERE opponenent = "germany"
Where was the opponent Germany?
CREATE TABLE table_name_96 (location VARCHAR, opponenent VARCHAR)
SELECT MAX(attendance) FROM table_name_89 WHERE date = "may 7"
What's greatest attendance on May 7?
CREATE TABLE table_name_89 (attendance INTEGER, date VARCHAR)
SELECT spoofed_title FROM table_name_47 WHERE date = "february 1998"
Which Spoofed title is from February 1998?
CREATE TABLE table_name_47 (spoofed_title VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_73 WHERE year > 1966
Which tournament was held after 1966?
CREATE TABLE table_name_73 (tournament VARCHAR, year INTEGER)
SELECT content FROM table_name_94 WHERE country = "united kingdom" AND television_service = "ewtn"
What is the content of the television service ewtn in the United Kingdom?
CREATE TABLE table_name_94 (content VARCHAR, country VARCHAR, television_service VARCHAR)
SELECT tyres FROM table_name_46 WHERE driver = "hans binder"
I want the tyres for hans binder
CREATE TABLE table_name_46 (tyres VARCHAR, driver VARCHAR)
SELECT MAX(game) FROM table_20760407_1 WHERE bruins_points = 56
What game did the Bruins have 56 points?
CREATE TABLE table_20760407_1 (game INTEGER, bruins_points VARCHAR)
SELECT year_s__withdrawn FROM table_name_61 WHERE wheel_arrangement = "4-6-0" AND year_made = "1908"
What year was the 4-6-0 Wheel model train from 1908 withdrawn?
CREATE TABLE table_name_61 (year_s__withdrawn VARCHAR, wheel_arrangement VARCHAR, year_made VARCHAR)
SELECT COUNT(party) FROM table_2668243_18 WHERE incumbent = "Willis Alston"
Name the total number of party for willis alston
CREATE TABLE table_2668243_18 (party VARCHAR, incumbent VARCHAR)
SELECT focal_plane_in_ft__m_ FROM table_25597136_1 WHERE tower_height_in_ft__m_ = "46ft (14.0m)"
Where tower height in ft (m) is 46ft (14.0m) the focal plane is ft (m).
CREATE TABLE table_25597136_1 (focal_plane_in_ft__m_ VARCHAR, tower_height_in_ft__m_ VARCHAR)
SELECT tag_team FROM table_name_10 WHERE time = "03:34"
Name the Tag Team with a Time of 03:34?
CREATE TABLE table_name_10 (tag_team VARCHAR, time VARCHAR)
SELECT height FROM table_name_72 WHERE college = "wyoming" AND name = "guy frazier"
Which height has a College of wyoming, and a Name of guy frazier?
CREATE TABLE table_name_72 (height VARCHAR, college VARCHAR, name VARCHAR)
SELECT throws FROM table_name_39 WHERE first = "james"
How many throws did james get?
CREATE TABLE table_name_39 (throws VARCHAR, first VARCHAR)
SELECT host FROM table_name_30 WHERE ratings = "9.6/26"
Who was the host that garnered ratings of 9.6/26?
CREATE TABLE table_name_30 (host VARCHAR, ratings VARCHAR)
SELECT DISTINCT T1.name, T1.location, T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'
What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction?
CREATE TABLE enzyme (name VARCHAR, location VARCHAR, product VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR)
SELECT date FROM table_name_21 WHERE away_team = "south melbourne"
What day is south melbourne the away side?
CREATE TABLE table_name_21 (date VARCHAR, away_team VARCHAR)
SELECT away_team FROM table_name_92 WHERE home_team = "footscray"
What away team played Footscray?
CREATE TABLE table_name_92 (away_team VARCHAR, home_team VARCHAR)
SELECT player FROM table_name_35 WHERE pick > 53 AND position = "defensive tackle"
What player had a pick higher than 53, and a position of defensive tackle?
CREATE TABLE table_name_35 (player VARCHAR, pick VARCHAR, position VARCHAR)
SELECT COUNT(wins) FROM table_name_48 WHERE draws > 0 AND points = 11
Can you tell me the total number of Wins that has the Draws larger than 0, and the Points of 11?
CREATE TABLE table_name_48 (wins VARCHAR, draws VARCHAR, points VARCHAR)
SELECT platelet_count FROM table_name_20 WHERE partial_thromboplastin_time = "prolonged or unaffected"
Which Platelet count has a Partial thromboplastin time of prolonged or unaffected?
CREATE TABLE table_name_20 (platelet_count VARCHAR, partial_thromboplastin_time VARCHAR)
SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100
Find the distinct winery of wines having price between 50 and 100.
CREATE TABLE WINE (Winery VARCHAR, Price INTEGER)
SELECT MIN(runners_up) FROM table_name_66 WHERE years_won = "1993"
How many runners up for the team that won in 1993?
CREATE TABLE table_name_66 (runners_up INTEGER, years_won VARCHAR)
SELECT category FROM table_name_20 WHERE result = "nominated" AND film_or_series = "the wire" AND year > 2005
Which award category was the film series The Wire nominated for after 2005?
CREATE TABLE table_name_20 (category VARCHAR, year VARCHAR, result VARCHAR, film_or_series VARCHAR)
SELECT home_team FROM table_name_91 WHERE away_team = "grimsby town"
Who was the home team when grimsby town was the away team?
CREATE TABLE table_name_91 (home_team VARCHAR, away_team VARCHAR)