question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the biggest draws, for wins under 4, and points of 20-18?
CREATE TABLE table_name_29 (draws INTEGER, points VARCHAR, wins VARCHAR)
SELECT MAX(draws) FROM table_name_29 WHERE points = "20-18" AND wins < 4
What is the riding penaltie (pts) for the athlete that has a Swimming Time (pts) of 2:18.16 (1264)?
CREATE TABLE table_name_83 (riding_penalties__pts_ VARCHAR, swimming_time__pts_ VARCHAR)
SELECT riding_penalties__pts_ FROM table_name_83 WHERE swimming_time__pts_ = "2:18.16 (1264)"
What is the Chinese name for the English name Andy Lau?
CREATE TABLE table_name_58 (chinese_name VARCHAR, english_name VARCHAR)
SELECT chinese_name FROM table_name_58 WHERE english_name = "andy lau"
What is the most points 1 when the goals against are fewer than 97, lost less than 22, 9 draws and goal difference of +28?
CREATE TABLE table_name_57 (points_1 INTEGER, goal_difference VARCHAR, drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)
SELECT MAX(points_1) FROM table_name_57 WHERE goals_against < 97 AND lost < 22 AND drawn = 9 AND goal_difference = "+28"
Who was number 3 that had a number 2 of Delfina and a Final of Pedro?
CREATE TABLE table_name_98 (no3 VARCHAR, no2 VARCHAR, final VARCHAR)
SELECT no3 FROM table_name_98 WHERE no2 = "delfina" AND final = "pedro"
Name the max bike number of position for 30
CREATE TABLE table_17176509_4 (bike_no INTEGER, position VARCHAR)
SELECT MAX(bike_no) FROM table_17176509_4 WHERE position = 30
When james rutherford is the incumbent how many dates are there?
CREATE TABLE table_28898974_3 (date VARCHAR, incumbent VARCHAR)
SELECT COUNT(date) FROM table_28898974_3 WHERE incumbent = "James Rutherford"
What is the film title and inventory id of the item in the inventory which was rented most frequently?
CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE inventory (inventory_id VARCHAR, film_id VARCHAR); CREATE TABLE rental (inventory_id VARCHAR)
SELECT T1.title, T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T2.inventory_id ORDER BY COUNT(*) DESC LIMIT 1
What is the Version before 2001 with a Length of 7:42?
CREATE TABLE table_name_64 (version VARCHAR, year VARCHAR, length VARCHAR)
SELECT version FROM table_name_64 WHERE year < 2001 AND length = "7:42"
What are the total amount of numbers on the Toronto team in 2005-06?
CREATE TABLE table_10015132_9 (no VARCHAR, years_in_toronto VARCHAR)
SELECT COUNT(no) FROM table_10015132_9 WHERE years_in_toronto = "2005-06"
Name the fourth district for joan runnels
CREATE TABLE table_15442974_1 (fourth_district VARCHAR, second_district VARCHAR)
SELECT fourth_district FROM table_15442974_1 WHERE second_district = "Joan Runnels"
How many games had red star as the runner up?
CREATE TABLE table_26455614_1 (attendance VARCHAR, runner_up VARCHAR)
SELECT COUNT(attendance) FROM table_26455614_1 WHERE runner_up = "Red Star"
What day was there a set 1 of 25-18?
CREATE TABLE table_name_23 (date VARCHAR, set_1 VARCHAR)
SELECT date FROM table_name_23 WHERE set_1 = "25-18"
What is the smallest Against with Lost larger than 0, % Won larger than 50, and Played smaller than 5?
CREATE TABLE table_name_48 (against INTEGER, played VARCHAR, lost VARCHAR, _percentage_won VARCHAR)
SELECT MIN(against) FROM table_name_48 WHERE lost > 0 AND _percentage_won > 50 AND played < 5
What year was Wilfred Lau separated because Capital stopped recording music?
CREATE TABLE table_name_74 (year_separated VARCHAR, reason_for_separation VARCHAR, english_name VARCHAR)
SELECT year_separated FROM table_name_74 WHERE reason_for_separation = "capital stopped recording music" AND english_name = "wilfred lau"
What years did the player who's school is Clemson spend in Orlando?
CREATE TABLE table_15621965_16 (years_in_orlando VARCHAR, school_club_team VARCHAR)
SELECT years_in_orlando FROM table_15621965_16 WHERE school_club_team = "Clemson"
What was the date when the attendance was 63995
CREATE TABLE table_14875671_1 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_14875671_1 WHERE attendance = 63995
Which Date has a Score of 102–113?
CREATE TABLE table_name_63 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_63 WHERE score = "102–113"
What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel?
CREATE TABLE table_name_56 (vessel_name VARCHAR, built VARCHAR, class VARCHAR, flag VARCHAR, type VARCHAR)
SELECT vessel_name FROM table_name_56 WHERE flag = "malta" AND type = "panamax" AND class = "gl" AND built > 2010
Who is the manufacturer for Henk Vd Lagemaat?
CREATE TABLE table_name_68 (manufacturer VARCHAR, rider VARCHAR)
SELECT manufacturer FROM table_name_68 WHERE rider = "henk vd lagemaat"
What is the School/Club Team with a nationality of United States for Arron Afflalo?
CREATE TABLE table_name_91 (school_club_team VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_91 WHERE nationality = "united states" AND player = "arron afflalo"
What position was the player who was inducted into the Pro Football Hall of Fame in 1980?
CREATE TABLE table_274117_5 (position VARCHAR, year_of_induction_into_pro_football_hall_of_fame VARCHAR)
SELECT position FROM table_274117_5 WHERE year_of_induction_into_pro_football_hall_of_fame = "1980"
Name the number of goals for mauricio pochettino
CREATE TABLE table_24565004_17 (goals¹ VARCHAR, name VARCHAR)
SELECT COUNT(goals¹) FROM table_24565004_17 WHERE name = "Mauricio Pochettino"
What venue has an attendance of 30824 at Essendon in 1984?
CREATE TABLE table_1139835_9 (venue VARCHAR, premier VARCHAR, attendance VARCHAR)
SELECT venue FROM table_1139835_9 WHERE premier = "Essendon" AND attendance = 30824
Which college did the player attend that went to Mission Viejo High School?
CREATE TABLE table_11677691_4 (college VARCHAR, school VARCHAR)
SELECT college FROM table_11677691_4 WHERE school = "Mission Viejo High school"
What year has 54 (73) points?
CREATE TABLE table_name_55 (year INTEGER, pts VARCHAR)
SELECT SUM(year) FROM table_name_55 WHERE pts = "54 (73)"
What is the binary meaning for symbol p?
CREATE TABLE table_name_91 (binary_meaning VARCHAR, symbol VARCHAR)
SELECT binary_meaning FROM table_name_91 WHERE symbol = "p"
How many losses did 12 de Octubre have ?
CREATE TABLE table_14997324_5 (losses INTEGER, team VARCHAR)
SELECT MIN(losses) FROM table_14997324_5 WHERE team = "12 de Octubre"
What's the Home teams Venue near Victoria Park?
CREATE TABLE table_name_48 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_48 WHERE venue = "victoria park"
Who scored a 68?
CREATE TABLE table_name_96 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_96 WHERE score = 68
Name the traditional for area 544
CREATE TABLE table_2013618_1 (traditional VARCHAR, area VARCHAR)
SELECT traditional FROM table_2013618_1 WHERE area = 544
which shop has happy hour most frequently? List its id and number of happy hours.
CREATE TABLE happy_hour (shop_id VARCHAR)
SELECT shop_id, COUNT(*) FROM happy_hour GROUP BY shop_id ORDER BY COUNT(*) DESC LIMIT 1
how mnay greek designation in tampa
CREATE TABLE table_18159601_1 (greek_designation VARCHAR, city VARCHAR)
SELECT COUNT(greek_designation) FROM table_18159601_1 WHERE city = "Tampa"
The draft pick that was taken before round 4 went to what college?
CREATE TABLE table_name_72 (college VARCHAR, round INTEGER)
SELECT college FROM table_name_72 WHERE round < 4
What was the average grid at the time Vanwall was constructor and there were 17 laps?
CREATE TABLE table_name_3 (grid INTEGER, constructor VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_3 WHERE constructor = "vanwall" AND laps = 17
What is Name, when State is "Jin"?
CREATE TABLE table_name_55 (name VARCHAR, state VARCHAR)
SELECT name FROM table_name_55 WHERE state = "jin"
Name the foochow for pingnan county
CREATE TABLE table_2013618_1 (foochow VARCHAR, english_name VARCHAR)
SELECT foochow FROM table_2013618_1 WHERE english_name = "Pingnan County"
What is the earliest Year for 400m h Event with 54.86 in Notes?
CREATE TABLE table_name_55 (year INTEGER, event VARCHAR, notes VARCHAR)
SELECT MIN(year) FROM table_name_55 WHERE event = "400m h" AND notes = "54.86"
What are airlines that have flights arriving at airport 'AHD'?
CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, DestAirport VARCHAR)
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = "AHD"
What sport was played by the team founded in 2010?
CREATE TABLE table_name_3 (sport VARCHAR, founded VARCHAR)
SELECT sport FROM table_name_3 WHERE founded = 2010
How many medals under total when silver is less than 2, gold is 3, and bronze is less than 0?
CREATE TABLE table_name_53 (total INTEGER, bronze VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT SUM(total) FROM table_name_53 WHERE silver < 2 AND gold = 3 AND bronze < 0
how many result with candidates being richard j. welch (r) unopposed
CREATE TABLE table_1342233_6 (result VARCHAR, candidates VARCHAR)
SELECT COUNT(result) FROM table_1342233_6 WHERE candidates = "Richard J. Welch (R) Unopposed"
When was Production Number 9105 released?
CREATE TABLE table_name_29 (release_date VARCHAR, production_num VARCHAR)
SELECT release_date FROM table_name_29 WHERE production_num = "9105"
What is the lowest January, when Game is less than 46, when Score is "5 - 3", and when Record is "15-22-8"?
CREATE TABLE table_name_94 (january INTEGER, record VARCHAR, game VARCHAR, score VARCHAR)
SELECT MIN(january) FROM table_name_94 WHERE game < 46 AND score = "5 - 3" AND record = "15-22-8"
Which Type has a Transfer fee of free, and a Name of kapetanos?
CREATE TABLE table_name_63 (type VARCHAR, transfer_fee VARCHAR, name VARCHAR)
SELECT type FROM table_name_63 WHERE transfer_fee = "free" AND name = "kapetanos"
With a converted less than 1966 and a number of 32 (2nd), what is the largest number listed for withdrawn?
CREATE TABLE table_name_18 (withdrawn INTEGER, number VARCHAR, converted VARCHAR)
SELECT MAX(withdrawn) FROM table_name_18 WHERE number = "32 (2nd)" AND converted < 1966
What is the smallest attendance in week 5?
CREATE TABLE table_name_18 (attendance INTEGER, week VARCHAR)
SELECT MIN(attendance) FROM table_name_18 WHERE week = 5
Which college has a linebacker from Lessburg High School?
CREATE TABLE table_name_92 (college VARCHAR, position VARCHAR, school VARCHAR)
SELECT college FROM table_name_92 WHERE position = "linebacker" AND school = "lessburg high school"
What artist had a peak position under 2, and more than 200,000 in sales?
CREATE TABLE table_name_87 (artist VARCHAR, peak_position VARCHAR, sales VARCHAR)
SELECT artist FROM table_name_87 WHERE peak_position < 2 AND sales > 200 OFFSET 000
Which team played at VFL Park?
CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_95 WHERE venue = "vfl park"
Which nation won the boxing championship in 2012?
CREATE TABLE table_name_1 (nation_represented VARCHAR, year VARCHAR)
SELECT nation_represented FROM table_name_1 WHERE year = 2012
If the equation is all equal, what is the 3rd throw?
CREATE TABLE table_17265535_6 (equation VARCHAR)
SELECT 3 AS rd_throw FROM table_17265535_6 WHERE equation = "all equal"
Find the names of all the tracks that contain the word "you".
CREATE TABLE TRACK (Name VARCHAR)
SELECT Name FROM TRACK WHERE Name LIKE '%you%'
How much money does player ben crenshaw, who has a t4 place, have?
CREATE TABLE table_name_36 (money___$__ VARCHAR, place VARCHAR, player VARCHAR)
SELECT money___$__ FROM table_name_36 WHERE place = "t4" AND player = "ben crenshaw"
What is the average and total transaction amount?
CREATE TABLE Financial_transactions (transaction_amount INTEGER)
SELECT AVG(transaction_amount), SUM(transaction_amount) FROM Financial_transactions
What is the career for 2007 3r, and 1999 1r?
CREATE TABLE table_name_80 (career VARCHAR)
SELECT career FROM table_name_80 WHERE 2007 = "3r" AND 1999 = "1r"
Name the result for opponent of chicago bears
CREATE TABLE table_name_14 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_14 WHERE opponent = "chicago bears"
Name the total number of game sites for chicago bears
CREATE TABLE table_14977592_1 (game_site VARCHAR, opponent VARCHAR)
SELECT COUNT(game_site) FROM table_14977592_1 WHERE opponent = "Chicago Bears"
How many orders have detail "Second time"?
CREATE TABLE customer_orders (order_details VARCHAR)
SELECT COUNT(*) FROM customer_orders WHERE order_details = "Second time"
How many July 1, 2013 projections have a Rank of 27?
CREATE TABLE table_name_58 (_2013_projection VARCHAR, july_1 VARCHAR, rank VARCHAR)
SELECT COUNT(july_1), _2013_projection FROM table_name_58 WHERE rank = "27"
Which date had a game with the New York Giants as the winner, year over 1985, and a result of 17-14?
CREATE TABLE table_name_82 (date VARCHAR, result VARCHAR, winner VARCHAR, year VARCHAR)
SELECT date FROM table_name_82 WHERE winner = "new york giants" AND year > 1985 AND result = "17-14"
What is the name of the away team who played Footscray?
CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_23 WHERE home_team = "footscray"
What was the outcome for Rik de Voest as opponent?
CREATE TABLE table_name_98 (outcome VARCHAR, opponent VARCHAR)
SELECT outcome FROM table_name_98 WHERE opponent = "rik de voest"
Who was the first person elected in North Carolina 8?
CREATE TABLE table_1341738_34 (first_elected VARCHAR, district VARCHAR)
SELECT first_elected FROM table_1341738_34 WHERE district = "North Carolina 8"
What is the name of the shortstop when the Catcher was johnny roseboro, and a Third Baseman of jim lefebvre, and a Second Baseman of nate oliver?
CREATE TABLE table_name_40 (shortstop VARCHAR, second_baseman VARCHAR, catcher VARCHAR, third_baseman VARCHAR)
SELECT shortstop FROM table_name_40 WHERE catcher = "johnny roseboro" AND third_baseman = "jim lefebvre" AND second_baseman = "nate oliver"
How many episodes were watched by 12.72 million U.S. viewers?
CREATE TABLE table_12570759_2 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(written_by) FROM table_12570759_2 WHERE us_viewers__millions_ = "12.72"
Find the first names and last names of teachers in alphabetical order of last name.
CREATE TABLE Teachers (first_name VARCHAR, last_name VARCHAR)
SELECT first_name, last_name FROM Teachers ORDER BY last_name
What is the Match for skra warszawa?
CREATE TABLE table_name_65 (match VARCHAR, team VARCHAR)
SELECT match FROM table_name_65 WHERE team = "skra warszawa"
What is the original air date for the episode directed by Peter Woeste?
CREATE TABLE table_15431251_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT original_air_date FROM table_15431251_1 WHERE directed_by = "Peter Woeste"
Who is the operator to destination Dalston Junction?
CREATE TABLE table_1612760_1 (operator VARCHAR, destination VARCHAR)
SELECT operator FROM table_1612760_1 WHERE destination = "Dalston Junction"
In what country is mont sokbaro a highest point
CREATE TABLE table_24285393_1 (country_or_region VARCHAR, highest_point VARCHAR)
SELECT country_or_region FROM table_24285393_1 WHERE highest_point = "Mont Sokbaro"
What is the score of the game with Manu ginóbili (44) as the leading scorer?
CREATE TABLE table_name_27 (score VARCHAR, leading_scorer VARCHAR)
SELECT score FROM table_name_27 WHERE leading_scorer = "manu ginóbili (44)"
What is the total sum of 50m splits for josefin lillhage in lanes above 8?
CREATE TABLE table_name_24 (split__50m_ INTEGER, name VARCHAR, lane VARCHAR)
SELECT SUM(split__50m_) FROM table_name_24 WHERE name = "josefin lillhage" AND lane > 8
What was the week 3 opponent for the year that had a week 7 opponent of Georgia (5-1)?
CREATE TABLE table_name_56 (week_3_sept_14 VARCHAR, week_7_oct_12 VARCHAR)
SELECT week_3_sept_14 FROM table_name_56 WHERE week_7_oct_12 = "georgia (5-1)"
Which loss happened april 18?
CREATE TABLE table_name_87 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_87 WHERE date = "april 18"
What is School/Club Team, when Season is 2006-2012?
CREATE TABLE table_name_79 (school_club_team VARCHAR, season VARCHAR)
SELECT school_club_team FROM table_name_79 WHERE season = "2006-2012"
What school has the player of mike rosario?
CREATE TABLE table_name_28 (school VARCHAR, player VARCHAR)
SELECT school FROM table_name_28 WHERE player = "mike rosario"
What is the largest number of yest votes for the measure with 61307 no votes?
CREATE TABLE table_256286_19 (yes_votes INTEGER, no_votes VARCHAR)
SELECT MAX(yes_votes) FROM table_256286_19 WHERE no_votes = 61307
What method did Mikhail Ilyukhin win the fight in round 1 when his record was 13-5?
CREATE TABLE table_name_10 (method VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR)
SELECT method FROM table_name_10 WHERE round = "1" AND res = "win" AND record = "13-5"
When was the game played at glenferrie oval?
CREATE TABLE table_name_70 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_70 WHERE venue = "glenferrie oval"
What is the total of roles that George Olmi plays in Savoy & Casino Theatre 1888?
CREATE TABLE table_148386_2 (savoy_theatre_1888 VARCHAR, casino_theatre_1888 VARCHAR)
SELECT COUNT(savoy_theatre_1888) FROM table_148386_2 WHERE casino_theatre_1888 = "George Olmi"
What is 1989, when 1999 is F, and when 1994 is 2R?
CREATE TABLE table_name_39 (Id VARCHAR)
SELECT 1989 FROM table_name_39 WHERE 1999 = "f" AND 1994 = "2r"
What the since year of the player with a transfer fee of £ 75k?
CREATE TABLE table_name_76 (since VARCHAR, transfer_fee VARCHAR)
SELECT since FROM table_name_76 WHERE transfer_fee = "£ 75k"
What did the team score at home in north melbourne?
CREATE TABLE table_name_10 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_10 WHERE away_team = "north melbourne"
what AAAAA class has the school year of 1990-91?
CREATE TABLE table_name_56 (class_aAAAA VARCHAR, school_year VARCHAR)
SELECT class_aAAAA FROM table_name_56 WHERE school_year = "1990-91"
What Bello has a 27 Liscumb and 6539 Libweshya?
CREATE TABLE table_name_35 (bello VARCHAR, liscumb VARCHAR, libweshya VARCHAR)
SELECT bello FROM table_name_35 WHERE liscumb = "27" AND libweshya = "6539"
Which 2007 has a 2006 of A, and a Tournament of canada?
CREATE TABLE table_name_8 (tournament VARCHAR)
SELECT 2007 FROM table_name_8 WHERE 2006 = "a" AND tournament = "canada"
What record has 46 as the game?
CREATE TABLE table_name_74 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_74 WHERE game = 46
What fourth-place has 2 (1999, 2005) as the runner(s)-up?
CREATE TABLE table_name_26 (fourth_place VARCHAR, runners_up VARCHAR)
SELECT fourth_place FROM table_name_26 WHERE runners_up = "2 (1999, 2005)"
What is the frequency for I/O bus of DMI, voltage of 0.725–1.4v and part cn80617004458ab?
CREATE TABLE table_name_4 (frequency VARCHAR, part_number_s_ VARCHAR, i_o_bus VARCHAR, voltage VARCHAR)
SELECT frequency FROM table_name_4 WHERE i_o_bus = "dmi" AND voltage = "0.725–1.4v" AND part_number_s_ = "cn80617004458ab"
What's the number of the game played on January 2, 1936?
CREATE TABLE table_name_10 (number INTEGER, date VARCHAR)
SELECT MIN(number) FROM table_name_10 WHERE date = "january 2, 1936"
What was the team's status in the USISL Pro League playoffs?
CREATE TABLE table_1939214_1 (playoffs VARCHAR, league VARCHAR)
SELECT playoffs FROM table_1939214_1 WHERE league = "USISL Pro league"
Which Lead has a Third of jeanne ellegaard?
CREATE TABLE table_name_56 (lead VARCHAR, third VARCHAR)
SELECT lead FROM table_name_56 WHERE third = "jeanne ellegaard"
When the surface is clay, and the tournament of barcelona what is the score?
CREATE TABLE table_name_29 (score VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_29 WHERE surface = "clay" AND tournament = "barcelona"
I want the R 53 of D 41 of r 21
CREATE TABLE table_name_95 (r_53 VARCHAR, d_41 VARCHAR)
SELECT r_53 FROM table_name_95 WHERE d_41 = "r 21"
What kind is in the year 1978 and a manual of ii/p?
CREATE TABLE table_name_79 (kind VARCHAR, year VARCHAR, manuals VARCHAR)
SELECT kind FROM table_name_79 WHERE year = "1978" AND manuals = "ii/p"
What is the lowest rank of the United States, with fewer than 4 bronze medals?
CREATE TABLE table_name_55 (rank INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT MIN(rank) FROM table_name_55 WHERE nation = "united states" AND bronze < 4
What is the callsign where the ICAO is AAR?
CREATE TABLE table_name_80 (callsign VARCHAR, icao VARCHAR)
SELECT callsign FROM table_name_80 WHERE icao = "aar"
When fc schwandorf is the oberpfalz what is the oberbayern b?
CREATE TABLE table_23224961_1 (oberbayern_b VARCHAR, oberpfalz VARCHAR)
SELECT oberbayern_b FROM table_23224961_1 WHERE oberpfalz = "FC Schwandorf"
Name the tries for when L is less than 2.0
CREATE TABLE table_28204447_3 (tries_for VARCHAR, l INTEGER)
SELECT tries_for FROM table_28204447_3 WHERE l < 2.0