instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: What is the hometown of the player who is headed to Duke? ### Response:
SELECT "Hometown" FROM table_52468 WHERE "College" = 'duke'
### Instruction: What is the Q1 order for Felipe Massa? ### Response:
SELECT MAX("Q1 order") FROM table_21250 WHERE "Driver" = 'Felipe Massa'
### Instruction: Which Conference Semifinals has a Conference Finals of denotes division championship? ### Response:
SELECT conference_semifinals FROM table_name_57 WHERE conference_finals = "† denotes division championship"
### Instruction: How many wins did he have with carlin motorsport? ### Response:
SELECT COUNT("Wins") FROM table_25671 WHERE "Team Name" = 'Carlin Motorsport'
### Instruction: What is the date that has yani tseng as the runner (s)-up? ### Response:
SELECT date FROM table_name_97 WHERE runner_s__up = "yani tseng"
### Instruction: Which location has an elevation of 3798? ### Response:
SELECT "Location" FROM table_29430 WHERE "Elevation (m)" = '3798'
### Instruction: Name the hdi 2012 for dominica ### Response:
SELECT "HDI 2012" FROM table_28575 WHERE "Country" = 'Dominica'
### Instruction: What series have Caroline Flack as a main presenter? ### Response:
SELECT series FROM table_14345690_15 WHERE main_presenter = "Caroline Flack"
### Instruction: What is listed in p when the type is listed as free agent 1? ### Response:
SELECT p FROM table_17634290_7 WHERE type = "Free agent 1"
### Instruction: tell me the method of intake of dibucaine? ### Response:
SELECT DISTINCT prescriptions.route FROM prescriptions WHERE prescriptions.drug = 'dibucaine'
### Instruction: Name the number of record when attendance is 44023 ### Response:
SELECT COUNT("Record") FROM table_1144 WHERE "Attendance" = '44023'
### Instruction: Set 1 of 25 20, what was Set 2? ### Response:
SELECT set_2 FROM table_name_38 WHERE set_1 = "25–20"
### Instruction: What's the number of losses where played was less than 17? ### Response:
SELECT COUNT("Lost") FROM table_40994 WHERE "Played" < '17'
### Instruction: What Home city has the home ground Klepp stadion? ### Response:
SELECT home_city FROM table_2522473_1 WHERE home_ground = "Klepp Stadion"
### Instruction: How many teams are listed for February 18? ### Response:
SELECT COUNT(team) FROM table_15869204_7 WHERE date = "February 18"
### Instruction: How many strokes off par was the player who scored 157? ### Response:
SELECT COUNT("To par") FROM table_61074 WHERE "Total" = '157'
### Instruction: Show me a bar chart for how many stadiums does each country have?, could you display x axis in descending order? ### Response:
SELECT Country, COUNT(*) FROM stadium GROUP BY Country ORDER BY Country DESC
### Instruction: Who wrote the episode that was directed by Dennie Gordon ### Response:
SELECT written_by FROM table_15938543_1 WHERE directed_by = "Dennie Gordon"
### Instruction: What is the total number of roll for Te Hapua school? ### Response:
SELECT COUNT("Roll") FROM table_54318 WHERE "Name" = 'te hapua school'
### Instruction: Who is team 1 with an agg of 2-5? ### Response:
SELECT "Team 1" FROM table_13644 WHERE "Agg." = '2-5'
### Instruction: Who played as the home team when Footscray was the away team? ### Response:
SELECT "Home team" FROM table_51377 WHERE "Away team" = 'footscray'
### Instruction: list all the reviews by Niloofar ### Response:
SELECT review.text FROM review, user WHERE user.name = 'Niloofar' AND user.user_id = review.user_id
### Instruction: Tell me the director nominated for best actor in a leading role ### Response:
SELECT "Director" FROM table_31809 WHERE "Nomination" = 'best actor in a leading role'
### Instruction: What is the platform of the game built in 2006? ### Response:
SELECT "Platform(s)" FROM table_64865 WHERE "Year" = '2006'
### Instruction: How many points against did the team that allowed 42 tries against allow? ### Response:
SELECT points_against FROM table_name_65 WHERE tries_against = "42"
### Instruction: When li fuyu is the stage winner who is the general classification? ### Response:
SELECT "General classification" FROM table_19867 WHERE "Stage winner" = 'Li Fuyu'
### Instruction: When was incumbent Bud Shuster first elected? ### Response:
SELECT first_elected FROM table_1341453_40 WHERE incumbent = "Bud Shuster"
### Instruction: Which round did the bout that led to a 1-0 record end in? ### Response:
SELECT "Round" FROM table_64276 WHERE "Record" = '1-0'
### Instruction: What is the Name of a state Authority that has a Roll of 72? ### Response:
SELECT name FROM table_name_13 WHERE authority = "state" AND roll = "72"
### Instruction: What was the attendance when Hawthorn played as home team? ### Response:
SELECT SUM("Crowd") FROM table_4548 WHERE "Home team" = 'hawthorn'
### Instruction: What was the venue for the match on October 10? ### Response:
SELECT venue FROM table_19576091_1 WHERE date = "October 10"
### Instruction: What was the away team's score at western oval? ### Response:
SELECT "Away team score" FROM table_33455 WHERE "Venue" = 'western oval'
### Instruction: how many many competitions were held in 2006 ? ### Response:
SELECT COUNT("competition") FROM table_204_98 WHERE "year" = 2006
### Instruction: What was the attendance when the record was 77-54? ### Response:
SELECT MIN(attendance) FROM table_name_90 WHERE record = "77-54"
### Instruction: What is the Athens Base play with Dance Theatre Roes Company? ### Response:
SELECT play FROM table_name_59 WHERE base = "athens" AND company = "dance theatre roes"
### Instruction: What was the loss for Boris Picano-Nacci? ### Response:
SELECT "Loss" FROM table_75985 WHERE "Name" = 'boris picano-nacci'
### Instruction: What track name had Terry Tamm as the soloist? ### Response:
SELECT "Track" FROM table_30706 WHERE "Soloist(s)" = 'Terry Tamm'
### Instruction: What are the years of participation for central crossing school? ### Response:
SELECT "Years of Participation" FROM table_21683 WHERE "School" = 'Central Crossing'
### Instruction: Name the type with M809 series of m814 ### Response:
SELECT "Type" FROM table_6014 WHERE "M809 series" = 'm814'
### Instruction: What city is 103.3 FM licensed in? ### Response:
SELECT city_of_license FROM table_name_61 WHERE frequency = "103.3 fm"
### Instruction: Name the three for 16 december 1676 ### Response:
SELECT "Three" FROM table_51634 WHERE "Date" = '16 december 1676'
### Instruction: What is the result of the away game played on August 4? ### Response:
SELECT result FROM table_name_15 WHERE home_away = "away" AND date = "august 4"
### Instruction: systolic blood pressure < 140 mmhg ### Response:
SELECT * FROM table_test_13 WHERE systolic_blood_pressure_sbp < 140
### Instruction: What is the average year that Idris Elba was nominated for or won an award? ### Response:
SELECT AVG(year) FROM table_name_19 WHERE actor = "idris elba"
### Instruction: What is the condition of the platelet counts in hemophilia? ### Response:
SELECT platelet_count FROM table_1557752_1 WHERE condition = "Hemophilia"
### Instruction: What is the abbreviation of the district of Mahbubnagar? ### Response:
SELECT code FROM table_1610301_1 WHERE district = "Mahbubnagar"
### Instruction: What team 1 has a team 2 of universidad nacional? ### Response:
SELECT "Team 1" FROM table_60777 WHERE "Team 2" = 'universidad nacional'
### Instruction: On what date is there a status of Five Nations and an against of 23? ### Response:
SELECT date FROM table_name_10 WHERE status = "five nations" AND against = 23
### Instruction: how many people attended the game on june 24 ? ### Response:
SELECT "attendance" FROM table_203_746 WHERE "date" = 'june 24'
### Instruction: What is the Week 1 result of Colorado State? ### Response:
SELECT "Week 1 Sept 7" FROM table_60927 WHERE "Preseason" = 'colorado state'
### Instruction: in which years did civallero only have one achievement ? ### Response:
SELECT "year" FROM table_203_734 GROUP BY "year" HAVING COUNT(*) = 1
### Instruction: Name the number of poles for fastest laps being 6 ### Response:
SELECT COUNT("Poles") FROM table_29378 WHERE "Fastest Laps" = '6'
### Instruction: When was there a development rate of 4.92? ### Response:
SELECT "From" FROM table_54909 WHERE "Development Rate" = '£4.92'
### Instruction: Which Pali has an English of mindfulness of breathing? ### Response:
SELECT "Pali" FROM table_45209 WHERE "English" = 'mindfulness of breathing'
### Instruction: Who narrated when the vessel operator is de beers? ### Response:
SELECT narrated_by FROM table_26168687_3 WHERE vessel_operator = "De Beers"
### Instruction: Who was the candidate in the Virginia 3 district election? ### Response:
SELECT "Candidates" FROM table_18237 WHERE "District" = 'Virginia 3'
### Instruction: Which Season was the Division Three Hampton Park Rangers champions? ### Response:
SELECT "Season" FROM table_60247 WHERE "Division Three" = 'hampton park rangers'
### Instruction: What name has a longitude of 213.0e? ### Response:
SELECT "Name" FROM table_49270 WHERE "Longitude" = '213.0e'
### Instruction: What kind of South Marquesan has a S moan of /matua/? ### Response:
SELECT south_marquesan FROM table_name_67 WHERE sāmoan = "/matua/"
### Instruction: In which city is Hayman Hall (Tom Gola Arena) located? ### Response:
SELECT city FROM table_name_84 WHERE venue = "hayman hall (tom gola arena)"
### Instruction: What catalog has june 1990 as the date? ### Response:
SELECT "Catalog" FROM table_5241 WHERE "Date" = 'june 1990'
### Instruction: number of times buckwild produced a song : ### Response:
SELECT COUNT("title") FROM table_203_228 WHERE "producer(s)" = 'buckwild'
### Instruction: What is the Left Office of cabinet secretary for culture and external affairs named? ### Response:
SELECT name FROM table_name_16 WHERE left_office = "cabinet secretary for culture and external affairs"
### Instruction: What period was the life expectancy at 62.4? ### Response:
SELECT period FROM table_27434_2 WHERE life_expectancy_total = "62.4"
### Instruction: What is the affiliation of the University called Explorers? ### Response:
SELECT "Affiliation" FROM table_2006 WHERE "Nickname" = 'Explorers'
### Instruction: Draw a bar chart about the distribution of middle_name and author_id . ### Response:
SELECT middle_name, author_id FROM Course_Authors_and_Tutors ORDER BY personal_name
### Instruction: What is the maximum number of wins in the season with 22 starts? ### Response:
SELECT MAX("Wins") FROM table_20694 WHERE "Starts" = '22'
### Instruction: Who was the mediator in k haku number 53? ### Response:
SELECT mediator FROM table_1315616_1 WHERE kōhaku__number = 53
### Instruction: What is the largest crowd for a Home team of carlton? ### Response:
SELECT MAX("Crowd") FROM table_57273 WHERE "Home team" = 'carlton'
### Instruction: hemoglobin a1c > 12 % ### Response:
SELECT * FROM table_train_149 WHERE hemoglobin_a1c_hba1c > 12
### Instruction: Name the incumbent for 1954 ### Response:
SELECT incumbent FROM table_1341549_10 WHERE first_elected = "1954"
### Instruction: Name the drivetrain for 2ur-fse ### Response:
SELECT "Drivetrain" FROM table_24449 WHERE "Engine code" = '2UR-FSE'
### Instruction: Who were the 76ers opponents on January 17? ### Response:
SELECT "Team" FROM table_29723 WHERE "Date" = 'January 17'
### Instruction: who has presented the most seasons ? ### Response:
SELECT "main presenter" FROM table_203_397 GROUP BY "main presenter" ORDER BY COUNT("series") DESC LIMIT 1
### Instruction: What is the lowest points of British Racing after 1963? ### Response:
SELECT MIN("Points") FROM table_15097 WHERE "Year" > '1963'
### Instruction: What team plays at Spartak, Mogilev? ### Response:
SELECT "Team" FROM table_35327 WHERE "Venue" = 'spartak, mogilev'
### Instruction: WHAT IS THE BUDGET FOR THE INCREDIBLES? ### Response:
SELECT "Budget" FROM table_76668 WHERE "Film" = 'the incredibles'
### Instruction: Who was the partner on May 16, 2004? ### Response:
SELECT partner FROM table_name_52 WHERE date = "may 16, 2004"
### Instruction: What is the total PI GP that a Reg GP has larger than 3? ### Response:
SELECT COUNT("Pl GP") FROM table_56159 WHERE "Reg GP" > '3'
### Instruction: Which European Cup is in the 2006-07 season? ### Response:
SELECT european_cup FROM table_name_91 WHERE season = "2006-07"
### Instruction: What is the Position when the person's birthplace was toledo, ohio? ### Response:
SELECT position FROM table_name_32 WHERE birthplace = "toledo, ohio"
### Instruction: What was the event where justin robbins had a record of 9-4-1? ### Response:
SELECT event FROM table_name_54 WHERE record = "9-4-1"
### Instruction: Which school/club team has a player named Mark Sanford? ### Response:
SELECT "School/Club Team" FROM table_20092 WHERE "Name" = 'Mark Sanford'
### Instruction: What is the result of the match against Ryan Schultz? ### Response:
SELECT "Res." FROM table_48016 WHERE "Opponent" = 'ryan schultz'
### Instruction: Total number of laps at a time of +56.977? ### Response:
SELECT COUNT(laps) FROM table_name_31 WHERE time = "+56.977"
### Instruction: What was the last game where the record was 6-3? ### Response:
SELECT MAX(game) FROM table_13762472_3 WHERE record = "6-3"
### Instruction: Which episode was watched by 7.2 million viewers? ### Response:
SELECT "Episode" FROM table_24045 WHERE "Viewers (in millions)" = '7.2'
### Instruction: What is Score, when Total is '28:42'? ### Response:
SELECT "Score" FROM table_61474 WHERE "Total" = '28:42'
### Instruction: What is the lowest rank of Gatwick Airport? ### Response:
SELECT MIN("Rank") FROM table_72962 WHERE "Railway Station" = 'Gatwick Airport'
### Instruction: Which song has Drunkard Groom listed as additional information? ### Response:
SELECT "Song" FROM table_27510 WHERE "Additional Info" = 'Drunkard Groom'
### Instruction: What duration has rosa gonzalez as the character? ### Response:
SELECT "Duration" FROM table_14027 WHERE "Character" = 'rosa gonzalez'
### Instruction: What was the Venue on June 8, 2005? ### Response:
SELECT venue FROM table_name_9 WHERE date = "june 8, 2005"
### Instruction: What was the number of the game played on February 24? ### Response:
SELECT SUM("Game") FROM table_50589 WHERE "Date" = 'february 24'
### Instruction: What is the lowest number of laps with more than 16 points? ### Response:
SELECT MIN("Laps") FROM table_12939 WHERE "Points" > '16'
### Instruction: What is the lane number of the swimmer with a time of 55.69? ### Response:
SELECT lane FROM table_name_21 WHERE time = 55.69
### Instruction: What is the tier IV year for the tournament held in Tampa? ### Response:
SELECT "Tier IV in" FROM table_23787 WHERE "Tournament" = 'Tampa'
### Instruction: Which captain has Gintare Karpaviciute as an alternate? ### Response:
SELECT captain FROM table_name_33 WHERE alternate__1_ = "gintare karpaviciute"
### Instruction: What was the date of the game that lasted 75:43? ### Response:
SELECT date FROM table_name_93 WHERE length_of_game = "75:43"
### Instruction: Name the name that has moving of 1. fc n rnberg. ### Response:
SELECT name FROM table_name_9 WHERE moving_from = "1. fc nürnberg"
### Instruction: What's the f/laps count for the team with 8 podiums? ### Response:
SELECT f_laps FROM table_27571406_1 WHERE podiums = 8