answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT branding FROM table_1979203_1 WHERE _virtual_ = "13.1"
what is the name of the branding where the virtual is 13.1
CREATE TABLE table_1979203_1 (branding VARCHAR, _virtual_ VARCHAR)
SELECT MAX(touchdowns) FROM table_14342592_8 WHERE player = "Becker"
Name the most touchdowns for becker
CREATE TABLE table_14342592_8 (touchdowns INTEGER, player VARCHAR)
SELECT AVG(runner_up) FROM table_name_62 WHERE university = "national university" AND total_championships > 2
What is the average number of runner-up that National University, which has more than 2 total championships, has?
CREATE TABLE table_name_62 (runner_up INTEGER, university VARCHAR, total_championships VARCHAR)
SELECT AVG(points) FROM table_name_8 WHERE time_retired = "+16.789" AND laps > 68
How many average points did the player with a time/retired of +16.789 and have more laps than 68 have?
CREATE TABLE table_name_8 (points INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT candidates FROM table_1342379_23 WHERE district = "Mississippi 4"
who is the the candidates with district being mississippi 4
CREATE TABLE table_1342379_23 (candidates VARCHAR, district VARCHAR)
SELECT first_elected FROM table_1341663_19 WHERE incumbent = "Jerry Huckaby"
What year was Jerry Huckaby first elected?
CREATE TABLE table_1341663_19 (first_elected VARCHAR, incumbent VARCHAR)
SELECT MIN(against) FROM table_name_46 WHERE status = "tour match" AND date = "21 july 1990"
Lowest against for tour match on 21 july 1990?
CREATE TABLE table_name_46 (against INTEGER, status VARCHAR, date VARCHAR)
SELECT venue FROM table_name_20 WHERE winner = "jerran hart"
What was the venue when Jerran Hart won?
CREATE TABLE table_name_20 (venue VARCHAR, winner VARCHAR)
SELECT wind__m_s_ FROM table_1231316_4 WHERE country = "Trinidad and Tobago"
What was the stats of Trinidad and Tobago
CREATE TABLE table_1231316_4 (wind__m_s_ VARCHAR, country VARCHAR)
SELECT stadium FROM table_name_2 WHERE date = "december 23, 2001"
What stadium was the game held at on December 23, 2001?
CREATE TABLE table_name_2 (stadium VARCHAR, date VARCHAR)
SELECT COUNT(avg) FROM table_name_45 WHERE rec < 26 AND player = "reggie brown" AND long < 40
How many averages have recs smaller than 26, and a Player of reggie brown, and a Long smaller than 40?
CREATE TABLE table_name_45 (avg VARCHAR, long VARCHAR, rec VARCHAR, player VARCHAR)
SELECT school FROM table_name_65 WHERE ages = "11-16" AND ofsted < 106142 AND capacity = 1206
Which School has Ages of 11-16, and an Ofsted smaller than 106142, and a Capacity of 1206?
CREATE TABLE table_name_65 (school VARCHAR, capacity VARCHAR, ages VARCHAR, ofsted VARCHAR)
SELECT SUM(crowd) FROM table_name_53 WHERE home_team = "wollongong hawks"
What was the number of the crowd when the Wollongong Hawks were the home team?
CREATE TABLE table_name_53 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(laps) FROM table_name_53 WHERE time_retired = "gearbox"
How many laps were there when time/retired was gearbox?
CREATE TABLE table_name_53 (laps INTEGER, time_retired VARCHAR)
SELECT rider FROM table_name_86 WHERE laps = "22" AND time_retired = "+19.435"
Who is the rider with 22 laps and a +19.435 time/retired?
CREATE TABLE table_name_86 (rider VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT surface FROM table_name_7 WHERE opponents = "margit rüütel anett schutting"
What was the surface on the game with margit rüütel anett schutting as the opponent?
CREATE TABLE table_name_7 (surface VARCHAR, opponents VARCHAR)
SELECT MAX(losses) FROM table_name_75 WHERE club = "terang" AND draws < 0
what is the most losses when the club is terang and draws is less than 0?
CREATE TABLE table_name_75 (losses INTEGER, club VARCHAR, draws VARCHAR)
SELECT date FROM table_name_87 WHERE venue = "mcg"
What date did VFL play MCG?
CREATE TABLE table_name_87 (date VARCHAR, venue VARCHAR)
SELECT genus_species FROM table_27155678_2 WHERE accession_number = "BX897699.1"
Name the genus/species of accession number bx897699.1
CREATE TABLE table_27155678_2 (genus_species VARCHAR, accession_number VARCHAR)
SELECT 2009 FROM table_name_58 WHERE 2011 = "lq"
What 2009 has lq as the 2011?
CREATE TABLE table_name_58 (Id VARCHAR)
SELECT Major FROM STUDENT WHERE Sex = "F" GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1
What is the most common major among female (sex is F) students?
CREATE TABLE STUDENT (Major VARCHAR, major VARCHAR, Sex VARCHAR)
SELECT civil_parish FROM table_30121082_1 WHERE townland = "Loughmarsh"
What are the civil parishes of the Loughmarsh townland?
CREATE TABLE table_30121082_1 (civil_parish VARCHAR, townland VARCHAR)
SELECT AVG(points) FROM table_name_17 WHERE entrant = "equipe ligier gauloises blondes"
What is the average Points when equipe ligier gauloises blondes is the entrant?
CREATE TABLE table_name_17 (points INTEGER, entrant VARCHAR)
SELECT MIN(series__number) FROM table_26261072_1 WHERE written_by = "Brenda Hampton" AND directed_by = "Burt Brinckerhoff"
Name the least series number written by brenda hampton and directed by burt brinckerhoff
CREATE TABLE table_26261072_1 (series__number INTEGER, written_by VARCHAR, directed_by VARCHAR)
SELECT mission FROM table_11869952_3 WHERE launch_date = "November 16, 2006"
Which missions were scheduled to launch on November 16, 2006?
CREATE TABLE table_11869952_3 (mission VARCHAR, launch_date VARCHAR)
SELECT directed_and_produced_by FROM table_24725951_1 WHERE celebrities = "Bill Turnbull and Louise Minchin"
List directors and producers when the celebrities involved were Bill Turnbull and Louise Minchin.
CREATE TABLE table_24725951_1 (directed_and_produced_by VARCHAR, celebrities VARCHAR)
SELECT MIN(total) FROM table_1456056_1 WHERE country = "Ireland"
Name the minimum total for ireland
CREATE TABLE table_1456056_1 (total INTEGER, country VARCHAR)
SELECT winning_constructor FROM table_name_52 WHERE winning_driver = "felice nazzaro"
Which Winning constructor has a Winning driver of felice nazzaro?
CREATE TABLE table_name_52 (winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT COUNT(yards) FROM table_name_31 WHERE sack = 0 AND p_ko_ret < 14
What is the total of all YARDS with 0 SACK and less than 14 P/KO RET?
CREATE TABLE table_name_31 (yards VARCHAR, sack VARCHAR, p_ko_ret VARCHAR)
SELECT rpm FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "88"
when standard speed (6th gear) is 88, what is the rpm?
CREATE TABLE table_19704392_1 (rpm VARCHAR, standard_speed__6th_gear_ VARCHAR)
SELECT visitor FROM table_name_39 WHERE home = "suns"
Who was the visiting team when the Suns were the home team?
CREATE TABLE table_name_39 (visitor VARCHAR, home VARCHAR)
SELECT COUNT(reason_for_change) FROM table_225094_4 WHERE successor = "Jonathan Jennings"
Name the reason for change for jonathan jennings
CREATE TABLE table_225094_4 (reason_for_change VARCHAR, successor VARCHAR)
SELECT AVG(against) FROM table_name_99 WHERE lost < 7 AND drawn > 6 AND points = 25
What is the average against score of all teams with less than 7 losses, more than 6 draws, and 25 points?
CREATE TABLE table_name_99 (against INTEGER, points VARCHAR, lost VARCHAR, drawn VARCHAR)
SELECT category FROM table_name_33 WHERE pilot = "frank scarabino"
In which category is Frank Scarabino a pilot?
CREATE TABLE table_name_33 (category VARCHAR, pilot VARCHAR)
SELECT COUNT(new_council) FROM table_name_14 WHERE previous_council = 19 AND seats_up_for_election < 6
Which number of New Councils had a previous council number of 19 and the seats up for election were bigger than 6?
CREATE TABLE table_name_14 (new_council VARCHAR, previous_council VARCHAR, seats_up_for_election VARCHAR)
SELECT current_club FROM table_12962773_1 WHERE position = "Center" AND no > 12.0
what's current club with position being center and no being bigger than 12.0
CREATE TABLE table_12962773_1 (current_club VARCHAR, position VARCHAR, no VARCHAR)
SELECT rate FROM table_name_9 WHERE goals > 22
What was the rate when there were more than 22 goals?
CREATE TABLE table_name_9 (rate VARCHAR, goals INTEGER)
SELECT distance FROM table_name_48 WHERE venue = "atlanta motor speedway"
What is the distance of the race at the Atlanta Motor Speedway?
CREATE TABLE table_name_48 (distance VARCHAR, venue VARCHAR)
SELECT secretary FROM table_name_90 WHERE internal_co = "isabel voets"
What Secretary has an Internal CO of isabel voets?
CREATE TABLE table_name_90 (secretary VARCHAR, internal_co VARCHAR)
SELECT MAX(winnings__) AS $_ FROM table_23239946_3 WHERE position = 7
What are the winnings for position 7?
CREATE TABLE table_23239946_3 (winnings__ INTEGER, position VARCHAR)
SELECT MAX(no_in_series) FROM table_2468961_7 WHERE no_in_season = 15
When 15 is the number in season what is the highest number in series?
CREATE TABLE table_2468961_7 (no_in_series INTEGER, no_in_season VARCHAR)
SELECT head_id, name FROM head WHERE name LIKE '%Ha%'
Which head's name has the substring 'Ha'? List the id and name.
CREATE TABLE head (head_id VARCHAR, name VARCHAR)
SELECT location FROM table_16384648_2 WHERE team_nickname = "Bearcats"
Which city has the team nickname bearcats?
CREATE TABLE table_16384648_2 (location VARCHAR, team_nickname VARCHAR)
SELECT country FROM table_name_31 WHERE athletes = "adam van koeverden"
What country does Adam van Koeverden play for?
CREATE TABLE table_name_31 (country VARCHAR, athletes VARCHAR)
SELECT COUNT(*) FROM Customers
How many customers do we have?
CREATE TABLE Customers (Id VARCHAR)
SELECT manufacturer FROM table_name_91 WHERE grid = 11
Who manufactured grid 11?
CREATE TABLE table_name_91 (manufacturer VARCHAR, grid VARCHAR)
SELECT musical_guest__song_performed_ FROM table_name_2 WHERE air_date = "13 july 2008"
What is the Musical Guest (Song performed) for the episode aired on 13 july 2008?
CREATE TABLE table_name_2 (musical_guest__song_performed_ VARCHAR, air_date VARCHAR)
SELECT 2012 FROM table_name_3 WHERE 2009 = "mini"
What is the 2012 with a mini in 2009?
CREATE TABLE table_name_3 (Id VARCHAR)
SELECT city FROM table_name_86 WHERE _number_of_titles < 17 AND last > 2005 AND sport = "boys basketball"
What city is the school that had less than 17 titles in boys basketball with the last title being after 2005?
CREATE TABLE table_name_86 (city VARCHAR, sport VARCHAR, _number_of_titles VARCHAR, last VARCHAR)
SELECT club FROM table_name_25 WHERE founded = 1962
Which club was founded in 1962?
CREATE TABLE table_name_25 (club VARCHAR, founded VARCHAR)
SELECT status FROM table_name_60 WHERE notes = "possible jr synonym of sapeornis"
What is the status where the notes are possible jr synonym of sapeornis?
CREATE TABLE table_name_60 (status VARCHAR, notes VARCHAR)
SELECT network FROM table_name_99 WHERE viewers = "17.5 million"
Which Network has 17.5 million Viewers?
CREATE TABLE table_name_99 (network VARCHAR, viewers VARCHAR)
SELECT MIN(decile) FROM table_name_94 WHERE gender = "coed"
Which is the lowest Decile that is coed?
CREATE TABLE table_name_94 (decile INTEGER, gender VARCHAR)
SELECT points FROM table_name_41 WHERE "club" = "club"
How many points does Club have?
CREATE TABLE table_name_41 (points VARCHAR)
SELECT code, name, MIN(price) FROM products GROUP BY name
Select the code of the product that is cheapest in each product category.
CREATE TABLE products (code VARCHAR, name VARCHAR, price INTEGER)
SELECT coaster_name FROM table_name_40 WHERE year_opened = "1978" AND track = "wooden"
What is the coaster name that was opened in 1978, and have wooden track?
CREATE TABLE table_name_40 (coaster_name VARCHAR, year_opened VARCHAR, track VARCHAR)
SELECT engine FROM table_name_21 WHERE displacement = "4.4l (4423cc/269in³)" AND power = "220kw (299hp) @ 4000"
Displacement of 4.4l (4423cc/269in³) and a Power of 220kw (299hp) @ 4000 belongs to what engine?
CREATE TABLE table_name_21 (engine VARCHAR, displacement VARCHAR, power VARCHAR)
SELECT bonus_points FROM table_name_63 WHERE drawn = "2" AND points_for = "475"
What is the number of bonus points for the team with 2 drawn games and 475 points?
CREATE TABLE table_name_63 (bonus_points VARCHAR, drawn VARCHAR, points_for VARCHAR)
SELECT SUM(number_of_bearers_2009) FROM table_name_3 WHERE rank > 1 AND type = "patronymic" AND etymology = "son of christian" AND number_of_bearers_1971 > 45.984
What is the sum of number of bearers in 2009 for a rank above 1, a type of patronymic, an etymology meaning son of Christian, and the number of bearers in 1971 greater than 45.984?
CREATE TABLE table_name_3 (number_of_bearers_2009 INTEGER, number_of_bearers_1971 VARCHAR, etymology VARCHAR, rank VARCHAR, type VARCHAR)
SELECT date FROM table_name_78 WHERE opponent_in_the_final = "isabel cueto"
On what date is Isabel cueto the opponent in the final?
CREATE TABLE table_name_78 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT nationality FROM table_name_40 WHERE school_club_team = "seattle"
Which Nationality has a School/Club Team of seattle?
CREATE TABLE table_name_40 (nationality VARCHAR, school_club_team VARCHAR)
SELECT chassis FROM table_name_73 WHERE engine = "ferrari" AND points = 25
What company made the chassis when Ferrari made the engine and there were 25 points?
CREATE TABLE table_name_73 (chassis VARCHAR, engine VARCHAR, points VARCHAR)
SELECT MAX(laps) FROM table_name_73 WHERE class = "c1" AND driver = "derek bell"
What was the highest amount of laps for class c1 and driver Derek Bell?
CREATE TABLE table_name_73 (laps INTEGER, class VARCHAR, driver VARCHAR)
SELECT rank FROM table_11173827_1 WHERE chinese_title = "緣來自有機"
What is the rank of the chinese title 緣來自有機?
CREATE TABLE table_11173827_1 (rank VARCHAR, chinese_title VARCHAR)
SELECT rushing_yards FROM table_26108103_2 WHERE opponent = "Indiana" AND passing_yards = 503
How many rushing yards where there when the opponent was Indiana and there was 503 passing yards?
CREATE TABLE table_26108103_2 (rushing_yards VARCHAR, opponent VARCHAR, passing_yards VARCHAR)
SELECT COUNT(*), T1.blockfloor FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockfloor
Find the number of rooms located on each block floor.
CREATE TABLE room (blockfloor VARCHAR, blockcode VARCHAR); CREATE TABLE BLOCK (blockfloor VARCHAR, blockcode VARCHAR)
SELECT candidates FROM table_1341604_11 WHERE district = "Georgia 8"
Name the candidates for georgia 8
CREATE TABLE table_1341604_11 (candidates VARCHAR, district VARCHAR)
SELECT COUNT(roleplay) FROM table_17827271_1 WHERE flatspin = "Tracy Taylor"
How many RolePlay actors played the same role as FlatSpin's Tracy Taylor?
CREATE TABLE table_17827271_1 (roleplay VARCHAR, flatspin VARCHAR)
SELECT COUNT(*) FROM INVESTORS
Find the number of investors in total.
CREATE TABLE INVESTORS (Id VARCHAR)
SELECT engine FROM table_name_87 WHERE model = "2.0 bitdi (cr) dpf" AND torque = "n·m (lb·ft) @ 1500–2000 rpm"
What is the engine for model 2.0 bitdi (cr) dpf, with a Torque of n·m (lb·ft) @ 1500–2000 rpm?
CREATE TABLE table_name_87 (engine VARCHAR, model VARCHAR, torque VARCHAR)
SELECT crew FROM table_name_4 WHERE duration = "12 minutes"
Who was the crew for the duration of 12 minutes?
CREATE TABLE table_name_4 (crew VARCHAR, duration VARCHAR)
SELECT variant FROM table_28035004_1 WHERE bodybuilder = "Alexander"
What is the variant when Alexander was the bodybuilder?
CREATE TABLE table_28035004_1 (variant VARCHAR, bodybuilder VARCHAR)
SELECT SUM(1891) FROM table_name_63 WHERE 1872 < 685 AND 1881 < 348
What is the sum of 1891(s), when 1872 is less than 685, and when 1881 is less than 348?
CREATE TABLE table_name_63 (Id VARCHAR)
SELECT date FROM table_name_92 WHERE runner_up = "sofía mulánovich ( per )"
What is Date when Runner-up is Sofía Mulánovich ( per )?
CREATE TABLE table_name_92 (date VARCHAR, runner_up VARCHAR)
SELECT runner_s__up FROM table_name_75 WHERE tournament = "mci classic"
What is Runner(s)-up, when Tournament is MCI Classic?
CREATE TABLE table_name_75 (runner_s__up VARCHAR, tournament VARCHAR)
SELECT candidates FROM table_1342198_18 WHERE district = "Louisiana 1"
Who is the candidate wehre district is louisiana 1?
CREATE TABLE table_1342198_18 (candidates VARCHAR, district 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 quantity_made FROM table_name_97 WHERE class = "330"
How many have a class of 330?
CREATE TABLE table_name_97 (quantity_made VARCHAR, class VARCHAR)
SELECT date FROM table_name_12 WHERE catalog = "xllp 369"
What was the date for XLLP 369?
CREATE TABLE table_name_12 (date VARCHAR, catalog VARCHAR)
SELECT MAX(wins) FROM table_name_60 WHERE average > 73.02 AND year > 1999
What is the highest number of wins for years after 1999 with averages over 73.02?
CREATE TABLE table_name_60 (wins INTEGER, average VARCHAR, year VARCHAR)
SELECT club FROM table_name_9 WHERE points = "56"
Name the club with points of 56
CREATE TABLE table_name_9 (club VARCHAR, points VARCHAR)
SELECT phoneme FROM table_name_16 WHERE realization = "[ɑ]"
Name the phoneme when the realizationis [ɑ]
CREATE TABLE table_name_16 (phoneme VARCHAR, realization VARCHAR)
SELECT pick FROM table_name_2 WHERE school = "penn state"
What is the pick number of Penn State?
CREATE TABLE table_name_2 (pick VARCHAR, school VARCHAR)
SELECT since FROM table_name_48 WHERE transfer_fee = "£ 12m"
What is Since, when Transfer Fee is "£ 12m"?
CREATE TABLE table_name_48 (since VARCHAR, transfer_fee VARCHAR)
SELECT steals FROM table_23346303_4 WHERE player = "Jasmine Wynne"
How many steals did jasmine wynne have?
CREATE TABLE table_23346303_4 (steals VARCHAR, player VARCHAR)
SELECT name, LOCATION, seating FROM track ORDER BY year_opened DESC LIMIT 1
What is the name, location and seating for the most recently opened track?
CREATE TABLE track (name VARCHAR, LOCATION VARCHAR, seating VARCHAR, year_opened VARCHAR)
SELECT COUNT(*), gender FROM Person WHERE age < 40 GROUP BY gender
Find the number of people who is under 40 for each gender.
CREATE TABLE Person (gender VARCHAR, age INTEGER)
SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road"
Find the details of all the distinct customers who have orders with status "On Road".
CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR)
SELECT AVG(total) FROM table_name_8 WHERE silver < 1 AND gold = 0 AND nation = "switzerland" AND bronze < 2
What is the average Total, when the value for Silver is less than 1, when the value for Gold is 0, when the Nation is Switzerland, and when the value for Bronze is 2?
CREATE TABLE table_name_8 (total INTEGER, bronze VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT content FROM table_15887683_10 WHERE package_option = "Sky Famiglia" AND language = "Italian" AND dar = "16:9" AND television_service = "MTV Hits"
Name the content for sky famiglia for italian and dar 16:9 for mtv hits
CREATE TABLE table_15887683_10 (content VARCHAR, television_service VARCHAR, dar VARCHAR, package_option VARCHAR, language VARCHAR)
SELECT manufacturer FROM table_27821519_1 WHERE no = 50
who is the manufacturer is no.50?
CREATE TABLE table_27821519_1 (manufacturer VARCHAR, no VARCHAR)
SELECT type FROM table_name_23 WHERE year_s_ = "1982"
what is the type when the year(s) is 1982?
CREATE TABLE table_name_23 (type VARCHAR, year_s_ VARCHAR)
SELECT MIN(release_year_of_first_charted_record) FROM table_name_88 WHERE artist = "abba"
What was the earliest release-year of the first charted record of Abba?
CREATE TABLE table_name_88 (release_year_of_first_charted_record INTEGER, artist VARCHAR)
SELECT edition FROM table_name_2 WHERE surface = "clay" AND opponent = "miho saeki"
What clay surface edition had an opponent of miho saeki?
CREATE TABLE table_name_2 (edition VARCHAR, surface VARCHAR, opponent VARCHAR)
SELECT primary_sponsor_s_ FROM table_name_34 WHERE car_s_ = "ford fusion" AND crew_chief = "drew blickensderfer"
What primary sponsor(s) owns ford fusion car(s) and the crew chief is Drew Blickensderfer?
CREATE TABLE table_name_34 (primary_sponsor_s_ VARCHAR, car_s_ VARCHAR, crew_chief VARCHAR)
SELECT compression_ratio FROM table_20007413_6 WHERE rpo = "L35" AND applications = 5
What's the compression ratio of the model with L35 RPO and 5 applications?
CREATE TABLE table_20007413_6 (compression_ratio VARCHAR, rpo VARCHAR, applications VARCHAR)
SELECT children_together FROM table_24143253_1 WHERE length_of_marriage = "9 years"
Name the children together for 9 years of marriage
CREATE TABLE table_24143253_1 (children_together VARCHAR, length_of_marriage VARCHAR)
SELECT score FROM table_name_63 WHERE competition = "continental qualifier" AND date = "february 23, 2003"
What was the score in the Continental Qualifier on February 23, 2003?
CREATE TABLE table_name_63 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT loss FROM table_name_86 WHERE save = "|| 23,391 ||17-18||"
Name the loss with save of || 23,391 ||17-18||?
CREATE TABLE table_name_86 (loss VARCHAR, save VARCHAR)
SELECT year FROM table_name_25 WHERE uk_albums = "15"
15 albums were released in the UK during which year?
CREATE TABLE table_name_25 (year VARCHAR, uk_albums VARCHAR)