answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MIN(to_par) FROM table_name_76 WHERE player = "johnny miller"
What is the lowest To Par, when Player is "Johnny Miller"?
CREATE TABLE table_name_76 (to_par INTEGER, player VARCHAR)
SELECT result FROM table_name_68 WHERE goal = 9
What is the Result where Goal is 9?
CREATE TABLE table_name_68 (result VARCHAR, goal VARCHAR)
SELECT tournament FROM table_name_12 WHERE week = "may 2"
What was the Tournament on May 2?
CREATE TABLE table_name_12 (tournament VARCHAR, week VARCHAR)
SELECT player FROM table_14655985_1 WHERE college = "Penn State"
what's the player with college being penn state
CREATE TABLE table_14655985_1 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_1 WHERE nationality = "united states" AND position = "forward" AND school_club_team = "notre dame"
Which Player has a Nationality of united states, a Position of forward, and a School/Club Team of notre dame?
CREATE TABLE table_name_1 (player VARCHAR, school_club_team VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT AVG(rank) FROM table_name_41 WHERE silver < 0
What average rank that has a silver less than 0?
CREATE TABLE table_name_41 (rank INTEGER, silver INTEGER)
SELECT SUM(estd) FROM table_name_14 WHERE college_or_campus_name = "anna university - panruti campus"
In what year was anna university - panruti campus established?
CREATE TABLE table_name_14 (estd INTEGER, college_or_campus_name VARCHAR)
SELECT COUNT(population) FROM table_23248420_1 WHERE city_town = "Fleetwood"
When fleetwood is the city/town how many sets of population are there?
CREATE TABLE table_23248420_1 (population VARCHAR, city_town VARCHAR)
SELECT Name FROM journalist WHERE NOT journalist_ID IN (SELECT journalist_ID FROM news_report)
List the names of journalists who have not reported any event.
CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Name VARCHAR, journalist_ID VARCHAR)
SELECT score FROM table_name_55 WHERE away_team = "fulham"
What is the score when Fulham is the away team?
CREATE TABLE table_name_55 (score VARCHAR, away_team VARCHAR)
SELECT series_5 FROM table_name_57 WHERE series_3 = "deborah meaden"
Who in series 5 corresponds to Deborah Meaden in series 3?
CREATE TABLE table_name_57 (series_5 VARCHAR, series_3 VARCHAR)
SELECT outcome FROM table_name_34 WHERE opponents = "darija jurak anaïs laurendon"
What was the outcome when darija jurak anaïs laurendon was the opponent?
CREATE TABLE table_name_34 (outcome VARCHAR, opponents VARCHAR)
SELECT MAX(crude_death_rate__per_1000_) FROM table_name_16 WHERE deaths = "3 433" AND average_population__x_1000_ > 298
What is the highest crude death rate when deaths are 3 433 and average population is greater than 298?
CREATE TABLE table_name_16 (crude_death_rate__per_1000_ INTEGER, deaths VARCHAR, average_population__x_1000_ VARCHAR)
SELECT AVG(laps) FROM table_name_95 WHERE rider = "gregorio lavilla" AND grid > 13
What is the average Laps that have gregorio lavilla as the rider, with a grid greater than 13?
CREATE TABLE table_name_95 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT d_48 FROM table_name_14 WHERE d_50 = "d 30"
What is the D 48 when the D 50 is d 30?
CREATE TABLE table_name_14 (d_48 VARCHAR, d_50 VARCHAR)
SELECT further_cities FROM table_197286_4 WHERE country = "Slovakia" AND direction = "West"
Name the further cities for slovakia and west direction
CREATE TABLE table_197286_4 (further_cities VARCHAR, country VARCHAR, direction VARCHAR)
SELECT COUNT(duration__days_) FROM table_245801_1 WHERE crew = "Vladimir Vasyutin , Alexander Volkov"
Name the duration for vladimir vasyutin , alexander volkov
CREATE TABLE table_245801_1 (duration__days_ VARCHAR, crew VARCHAR)
SELECT AVG(bronze) FROM table_name_36 WHERE gold > 1 AND total > 11 AND silver > 5
Which Bronze has a Gold larger than 1, and a Total larger than 11, and a Silver larger than 5?
CREATE TABLE table_name_36 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
SELECT away_team FROM table_name_79 WHERE home_team = "north melbourne"
Who is the away side when north melbourne is the home side?
CREATE TABLE table_name_79 (away_team VARCHAR, home_team VARCHAR)
SELECT position FROM table_11545282_11 WHERE no = "47"
What is the position of number 47?
CREATE TABLE table_11545282_11 (position VARCHAR, no VARCHAR)
SELECT result FROM table_name_41 WHERE date = "october 29, 1989"
What was the result on October 29, 1989?
CREATE TABLE table_name_41 (result VARCHAR, date VARCHAR)
SELECT cover_model FROM table_name_22 WHERE centerfold_model = "scarlett keegan"
Which Cover model has a Centerfold model of scarlett keegan?
CREATE TABLE table_name_22 (cover_model VARCHAR, centerfold_model VARCHAR)
SELECT district FROM table_1342393_10 WHERE incumbent = "Gordon Lee"
what is the section where gordon lee ran
CREATE TABLE table_1342393_10 (district VARCHAR, incumbent VARCHAR)
SELECT qual FROM table_name_38 WHERE year = "1954"
What is the Qual listed on the Year of 1954?
CREATE TABLE table_name_38 (qual VARCHAR, year VARCHAR)
SELECT year FROM table_name_90 WHERE manufacturer = "letecke zavody n.p., jinonice"
In what year was Letecke Zavody N.P., Jinonice the manufacturer?
CREATE TABLE table_name_90 (year VARCHAR, manufacturer VARCHAR)
SELECT type FROM table_2562572_39 WHERE cyrillic_name_other_names = "Бока"
What kind of type is бока?
CREATE TABLE table_2562572_39 (type VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT DISTINCT YEAR FROM competition WHERE Competition_type <> "Tournament"
What are the distinct years in which the competitions type is not "Tournament"?
CREATE TABLE competition (YEAR VARCHAR, Competition_type VARCHAR)
SELECT status FROM table_18159601_1 WHERE city = "Vestal"
what is the status in vestal
CREATE TABLE table_18159601_1 (status VARCHAR, city VARCHAR)
SELECT date FROM table_name_96 WHERE away_team = "geelong"
What day was geelong the away side?
CREATE TABLE table_name_96 (date VARCHAR, away_team VARCHAR)
SELECT COUNT(points) FROM table_name_36 WHERE drawn < 0
How many Points have a Drawn smaller than 0?
CREATE TABLE table_name_36 (points VARCHAR, drawn INTEGER)
SELECT MIN(rank) FROM table_name_40 WHERE nation = "great britain" AND bronze < 1
What is the lowest Rank, when Nation is Great Britain, and when Bronze is less than 1?
CREATE TABLE table_name_40 (rank INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT engine FROM table_name_19 WHERE team = "alex morales motorsports"
What is the engine for the team of Alex Morales Motorsports?
CREATE TABLE table_name_19 (engine VARCHAR, team VARCHAR)
SELECT venue FROM table_name_70 WHERE pens = "0" AND tries = "1"
In which venue did 0 pens and 1 try occur?
CREATE TABLE table_name_70 (venue VARCHAR, pens VARCHAR, tries VARCHAR)
SELECT att FROM table_name_75 WHERE time = "2:14"
Which Att has a Time of 2:14?
CREATE TABLE table_name_75 (att VARCHAR, time VARCHAR)
SELECT away_team FROM table_name_17 WHERE venue = "princes park"
What was the away team that played at Princes Park?
CREATE TABLE table_name_17 (away_team VARCHAR, venue VARCHAR)
SELECT MAX(aircraft_movements) FROM table_13836704_9 WHERE airport = "Liverpool"
what is the maximum aircraft movements with airport being liverpool
CREATE TABLE table_13836704_9 (aircraft_movements INTEGER, airport VARCHAR)
SELECT AVG(gold) FROM table_name_73 WHERE bronze > 6 AND silver > 18
How many Gold medals for the Nations with 6 or more Bronze medals and 18 or more Silver?
CREATE TABLE table_name_73 (gold INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(time) FROM table_name_82 WHERE competition = "summer universiade"
What's the total time for the summer universiade competition?
CREATE TABLE table_name_82 (time VARCHAR, competition VARCHAR)
SELECT purse___$__ FROM table_13388681_1 WHERE margin_of_victory = "1 stroke"
How much is the purse ( $ ) when the margin of victory is 1 stroke?
CREATE TABLE table_13388681_1 (purse___$__ VARCHAR, margin_of_victory VARCHAR)
SELECT COUNT(elevation__m_) FROM table_name_18 WHERE prominence__m_ > 2 OFFSET 876
How much Elevation (m) has a Prominence (m) larger than 2,876?
CREATE TABLE table_name_18 (elevation__m_ VARCHAR, prominence__m_ INTEGER)
SELECT date_of_appointment FROM table_18795125_6 WHERE position_in_table = "23rd"
What was the date of appointment for the manager of the 23rd team?
CREATE TABLE table_18795125_6 (date_of_appointment VARCHAR, position_in_table VARCHAR)
SELECT date FROM table_14655917_1 WHERE opponent = "Detroit Lions"
What day was the oppenent the detroit lions?
CREATE TABLE table_14655917_1 (date VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_47 WHERE attendance = "16,000"
What was the result of the game that was attended by 16,000 people?
CREATE TABLE table_name_47 (result VARCHAR, attendance VARCHAR)
SELECT AVG(played) FROM table_name_72 WHERE points = "0*"
Name the average Played with a Points of 0*?
CREATE TABLE table_name_72 (played INTEGER, points VARCHAR)
SELECT premiere_air_dates FROM table_1949994_7 WHERE no = 3
What's season 3's premiere date?
CREATE TABLE table_1949994_7 (premiere_air_dates VARCHAR, no VARCHAR)
SELECT date FROM table_name_27 WHERE home_team = "hawthorn"
When did Hawthorn play at home?
CREATE TABLE table_name_27 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(*) FROM phone
How many phones are there?
CREATE TABLE phone (Id VARCHAR)
SELECT episode_title FROM table_28967275_2 WHERE series__number = 14
What is the title of the episode with series number 14?
CREATE TABLE table_28967275_2 (episode_title VARCHAR, series__number VARCHAR)
SELECT winners FROM table_name_44 WHERE runners_up = "lillestrøm" AND third = "lyn"
Who was the winner in the competition in which Lyn took third place and Lillestrøm was the runner-up?
CREATE TABLE table_name_44 (winners VARCHAR, runners_up VARCHAR, third VARCHAR)
SELECT date FROM table_name_51 WHERE set_1 = "25–21" AND score = "3–0" AND time = "11:00"
What is the Date when the Set 1 is 25–21, and the Score is 3–0, and the Time is 11:00?
CREATE TABLE table_name_51 (date VARCHAR, time VARCHAR, set_1 VARCHAR, score VARCHAR)
SELECT position FROM table_20898602_1 WHERE height = "ft0in (m)"
what is the position of the player of height ft0in (m)
CREATE TABLE table_20898602_1 (position VARCHAR, height VARCHAR)
SELECT AVG(entrants) FROM table_name_21 WHERE winner = "frank gary"
How many entrants did the events won by Frank Gary average?
CREATE TABLE table_name_21 (entrants INTEGER, winner VARCHAR)
SELECT rank FROM captain GROUP BY rank ORDER BY COUNT(*) DESC LIMIT 1
Which rank is the most common among captains?
CREATE TABLE captain (rank VARCHAR)
SELECT MIN(year) FROM table_26108103_2
What was the earliest year?
CREATE TABLE table_26108103_2 (year INTEGER)
SELECT date FROM table_name_82 WHERE home = "detroit" AND visitor = "chicago"
What is the date for the home detroit and visitor was chicago?
CREATE TABLE table_name_82 (date VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age LIMIT 1
What is the total point count of the youngest gymnast?
CREATE TABLE people (People_ID VARCHAR, Age VARCHAR); CREATE TABLE gymnast (Total_Points VARCHAR, Gymnast_ID VARCHAR)
SELECT mon_24_aug FROM table_23465864_5 WHERE fri_28_aug = "26' 04.60 86.814mph"
What is the value for Monday August 24 if Friday August 28 is 26' 04.60 86.814mph?
CREATE TABLE table_23465864_5 (mon_24_aug VARCHAR, fri_28_aug VARCHAR)
SELECT frequency FROM table_name_32 WHERE city_of_license = "fairview"
what is the Frequency that has a fairview City of license
CREATE TABLE table_name_32 (frequency VARCHAR, city_of_license VARCHAR)
SELECT location FROM table_name_19 WHERE bowl = "california bowl" AND attendance = "30,000"
Where was the California bowl played with 30,000 attending?
CREATE TABLE table_name_19 (location VARCHAR, bowl VARCHAR, attendance VARCHAR)
SELECT competition FROM table_name_53 WHERE venue = "hong kong"
Which Competition has a Venue of hong kong?
CREATE TABLE table_name_53 (competition VARCHAR, venue VARCHAR)
SELECT region FROM table_name_33 WHERE host = "old dominion university"
Which region does Old Dominion University represent?
CREATE TABLE table_name_33 (region VARCHAR, host VARCHAR)
SELECT MIN(1980) FROM table_name_30 WHERE 2006 < 37.8 AND 2000 > 29.4 AND 1970 > 18.2
What was the percentage in 1980 that had less than 37.8% in 2006, more than 29.4% in 2000, and more than 18.2% in 1970?
CREATE TABLE table_name_30 (Id VARCHAR)
SELECT result FROM table_name_81 WHERE category = "best actor in a musical"
What was the result of the Best Actor in a Musical category?
CREATE TABLE table_name_81 (result VARCHAR, category VARCHAR)
SELECT SUM(lane) FROM table_name_20 WHERE name = "george bovell"
Which lane did George Bovell swim in?
CREATE TABLE table_name_20 (lane INTEGER, name VARCHAR)
SELECT company_name FROM table_name_76 WHERE accreditation_status = "approved (valid until 03.07.13)"
What is the Company Name, when the Accreditation Status is Approved (Valid Until 03.07.13)?
CREATE TABLE table_name_76 (company_name VARCHAR, accreditation_status VARCHAR)
SELECT h264 FROM table_26099252_1 WHERE theora = "2.3"
When theora is 2.3, how much is the h.264?
CREATE TABLE table_26099252_1 (h264 VARCHAR, theora VARCHAR)
SELECT 1993 FROM table_name_75 WHERE 1991 = "1r" AND 1990 = "sf"
What is the 1993 value with a 1r in 1991 and sf in 1990?
CREATE TABLE table_name_75 (Id VARCHAR)
SELECT last_update FROM table_name_81 WHERE name = "jamar jackson"
for the name of jamar jackson what is the last update?
CREATE TABLE table_name_81 (last_update VARCHAR, name VARCHAR)
SELECT away_team FROM table_name_82 WHERE venue = "arden street oval"
What away team plays at Arden Street Oval?
CREATE TABLE table_name_82 (away_team VARCHAR, venue VARCHAR)
SELECT title FROM table_29273182_1 WHERE no_in_series = 29
What is the name of episode number 29 in the series?
CREATE TABLE table_29273182_1 (title VARCHAR, no_in_series VARCHAR)
SELECT decision FROM table_name_35 WHERE opponent = "new york yankees" AND season = "1983"
What was the decision for the 1983 season for the game played against the New York Yankees?
CREATE TABLE table_name_35 (decision VARCHAR, opponent VARCHAR, season VARCHAR)
SELECT COUNT(height__cm_) FROM table_name_52 WHERE birthplace = "new canaan, connecticut"
Which Height (cm) has a Birthplace of new canaan, connecticut?
CREATE TABLE table_name_52 (height__cm_ VARCHAR, birthplace VARCHAR)
SELECT class FROM table_name_45 WHERE position = "qb" AND name = "josh riddell"
What is the class of the qb, Josh Riddell?
CREATE TABLE table_name_45 (class VARCHAR, position VARCHAR, name VARCHAR)
SELECT years_for_grizzlies FROM table_name_11 WHERE school_club_team = "stanford"
for how many years did the player who graduated from stanford play for Grizzlies?
CREATE TABLE table_name_11 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)
SELECT AVG(blank_ends) FROM table_name_80 WHERE shot__percentage < 78 AND ends_won > 43
Name the average Blank Ends which has a Shot % smaller than 78, and a Ends Won larger than 43?
CREATE TABLE table_name_80 (blank_ends INTEGER, shot__percentage VARCHAR, ends_won VARCHAR)
SELECT total_apps__sub_ FROM table_name_39 WHERE total_goals = "6"
Which Total Apps (sub) has 6 goals total?
CREATE TABLE table_name_39 (total_apps__sub_ VARCHAR, total_goals VARCHAR)
SELECT year FROM table_name_96 WHERE place = "11th" AND played = 26
What year did the 11th place play 26 games?
CREATE TABLE table_name_96 (year VARCHAR, place VARCHAR, played VARCHAR)
SELECT slalom FROM table_name_32 WHERE overall = "25" AND season = 2009
Which Slalom has an overall of 25 in the 2009 season?
CREATE TABLE table_name_32 (slalom VARCHAR, overall VARCHAR, season VARCHAR)
SELECT venue FROM table_name_46 WHERE opposing_teams = "south africa" AND date = "17/06/2000"
What is Venue, when Opposing Teams is "South Africa", and when Date is "17/06/2000"?
CREATE TABLE table_name_46 (venue VARCHAR, opposing_teams VARCHAR, date VARCHAR)
SELECT AVG(enrollment) FROM table_name_47 WHERE nickname = "redbirds"
What is the average enrollment of the Redbirds' school?
CREATE TABLE table_name_47 (enrollment INTEGER, nickname VARCHAR)
SELECT SUM(green_party) FROM table_name_41 WHERE fine_gael < 4 AND fianna_fáil < 2 AND town = "athy"
How many are in the Green Party with a Fine Gael of less than 4 and a Fianna Fail of less than 2 in Athy?
CREATE TABLE table_name_41 (green_party INTEGER, town VARCHAR, fine_gael VARCHAR, fianna_fáil VARCHAR)
SELECT icelandic_title FROM table_name_28 WHERE norwegian_title = "galgeblomsten"
What is the Icelandic title for the Norweigan titled galgeblomsten?
CREATE TABLE table_name_28 (icelandic_title VARCHAR, norwegian_title VARCHAR)
SELECT COUNT(result) FROM table_1342256_10 WHERE incumbent = "Pat Cannon"
How many races involve incumbent Pat Cannon?
CREATE TABLE table_1342256_10 (result VARCHAR, incumbent VARCHAR)
SELECT name FROM table_name_17 WHERE county = "blount" AND location = "nectar"
Which bridge is located in Nectar, in Blount County?
CREATE TABLE table_name_17 (name VARCHAR, county VARCHAR, location VARCHAR)
SELECT part_2 FROM table_name_70 WHERE verb_meaning = "to leap"
Which part 2 has a verb that means to leap?
CREATE TABLE table_name_70 (part_2 VARCHAR, verb_meaning VARCHAR)
SELECT hometown FROM table_name_58 WHERE player = "shabazz muhammad"
Where is shabazz muhammad from?
CREATE TABLE table_name_58 (hometown VARCHAR, player VARCHAR)
SELECT date FROM table_name_3 WHERE team_record = "2-0"
What is the Date, when the Team Record is 2-0?
CREATE TABLE table_name_3 (date VARCHAR, team_record VARCHAR)
SELECT date FROM table_name_45 WHERE venue = "estadio alejandro villanueva" AND season > 2003 AND competition_round = "torneo apertura" AND winner = "universitario"
On what date did Universitario win the Torneo Apertura round after 2003 at Estadio Alejandro Villanueva?
CREATE TABLE table_name_45 (date VARCHAR, winner VARCHAR, competition_round VARCHAR, venue VARCHAR, season VARCHAR)
SELECT prize_money___$__ FROM table_name_94 WHERE rank < 7 AND events > 6 AND country = "fiji"
What amount of prize money was there when the rank was less than 7, there were more than 6 events, and the country was Fiji?
CREATE TABLE table_name_94 (prize_money___$__ VARCHAR, country VARCHAR, rank VARCHAR, events VARCHAR)
SELECT pos FROM table_name_4 WHERE laps < 343 AND year = 2010
What position has less than 343 laps in 2010?
CREATE TABLE table_name_4 (pos VARCHAR, laps VARCHAR, year VARCHAR)
SELECT score_points FROM table_name_81 WHERE shooter = "sandra kolly ( sui )"
What is Score Points, when Shooter is "Sandra Kolly ( SUI )"?
CREATE TABLE table_name_81 (score_points VARCHAR, shooter VARCHAR)
SELECT COUNT(rank__timeslot_) FROM table_23397386_2 WHERE airdate = "May 2, 2010"
How many rankings (timeslot) were there for the episode that aired on May 2, 2010?
CREATE TABLE table_23397386_2 (rank__timeslot_ VARCHAR, airdate VARCHAR)
SELECT pick FROM table_name_90 WHERE college = "purdue"
Who is the pick from the Purdue College?
CREATE TABLE table_name_90 (pick VARCHAR, college VARCHAR)
SELECT iata FROM table_name_85 WHERE city = "nanjing"
What is the IATA for Nanjing?
CREATE TABLE table_name_85 (iata VARCHAR, city VARCHAR)
SELECT being__qualities_ FROM table_name_36 WHERE having__things_ = "language, religions, work, customs, values, norms"
Name the being qualities for having things of language, religions, work, customs, values, norms
CREATE TABLE table_name_36 (being__qualities_ VARCHAR, having__things_ VARCHAR)
SELECT position FROM table_27631002_1 WHERE series = "Austria Formel 3 Cup"
What is the position for the austria formel 3 cup series?
CREATE TABLE table_27631002_1 (position VARCHAR, series VARCHAR)
SELECT name FROM table_name_74 WHERE moving_to = "atlético minero"
what is the name moving to atlético minero?
CREATE TABLE table_name_74 (name VARCHAR, moving_to VARCHAR)
SELECT AVG(pick) FROM table_name_3 WHERE round = 4 AND school_club_team = "kutztown state"
What is the average pick of school/club team kutztown state with a round 4?
CREATE TABLE table_name_3 (pick INTEGER, round VARCHAR, school_club_team VARCHAR)
SELECT fastest_lap FROM table_name_40 WHERE winning_driver = "al unser"
Who had the fastest lap when Al Unser won?
CREATE TABLE table_name_40 (fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT player FROM table_name_46 WHERE total = 272
Who has a total of 272?
CREATE TABLE table_name_46 (player VARCHAR, total VARCHAR)