question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Who is the opponent for the game played on august 20, 2006?
CREATE TABLE table_name_47 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_47 WHERE date = "august 20, 2006"
What player had a total less than 277?
CREATE TABLE table_name_34 (player VARCHAR, total INTEGER)
SELECT player FROM table_name_34 WHERE total < 277
What is the Race 2 result of Round 2?
CREATE TABLE table_name_4 (race_2 VARCHAR, round VARCHAR)
SELECT race_2 FROM table_name_4 WHERE round = "round 2"
Find the list of page size which have more than 3 product listed
CREATE TABLE product (max_page_size VARCHAR)
SELECT max_page_size FROM product GROUP BY max_page_size HAVING COUNT(*) > 3
List the event venues and names that have the top 2 most number of people attended.
CREATE TABLE event (venue VARCHAR, name VARCHAR, Event_Attendance VARCHAR)
SELECT venue, name FROM event ORDER BY Event_Attendance DESC LIMIT 2
Which tracking method supports MySQL databases and is named Open Web Analytics?
CREATE TABLE table_name_62 (tracking_method VARCHAR, supported_databases VARCHAR, name VARCHAR)
SELECT tracking_method FROM table_name_62 WHERE supported_databases = "mysql" AND name = "open web analytics"
What is the average round for te position?
CREATE TABLE table_name_65 (round INTEGER, position VARCHAR)
SELECT AVG(round) FROM table_name_65 WHERE position = "te"
What is the other for a 78.2% xDSL?
CREATE TABLE table_name_15 (other VARCHAR, xdsl VARCHAR)
SELECT other FROM table_name_15 WHERE xdsl = "78.2%"
What season finale date has 2.02 million u.s. Viewers?
CREATE TABLE table_19188562_2 (season VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT season AS finale FROM table_19188562_2 WHERE us_viewers__in_millions_ = "2.02"
What are the name and results of the battles when the bulgarian commander is not 'Boril'
CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR)
SELECT name, RESULT FROM battle WHERE bulgarian_commander <> 'Boril'
What was the lowest attendance at Windy Hill?
CREATE TABLE table_name_77 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_77 WHERE venue = "windy hill"
What is the highest Game, when Record is "21-30-11"?
CREATE TABLE table_name_92 (game INTEGER, record VARCHAR)
SELECT MAX(game) FROM table_name_92 WHERE record = "21-30-11"
Which level has wale as artist 1?
CREATE TABLE table_23649244_1 (level VARCHAR, artist_1 VARCHAR)
SELECT level FROM table_23649244_1 WHERE artist_1 = "Wale"
What is the Displacement that has Power of 220kw (299hp) @ 4000, and a year larger than 2002?
CREATE TABLE table_name_95 (displacement VARCHAR, year VARCHAR, power VARCHAR)
SELECT displacement FROM table_name_95 WHERE year > 2002 AND power = "220kw (299hp) @ 4000"
Where did the artist All Mixed Up place?
CREATE TABLE table_name_4 (place INTEGER, artist VARCHAR)
SELECT MIN(place) FROM table_name_4 WHERE artist = "all mixed up"
What is the Result of the game on September 1, 1996?
CREATE TABLE table_name_56 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_56 WHERE date = "september 1, 1996"
What class has 4-4-0 wheels and was less than number 40 built?
CREATE TABLE table_name_95 (class VARCHAR, wheels VARCHAR, no_built VARCHAR)
SELECT class FROM table_name_95 WHERE wheels = "4-4-0" AND no_built < 40
On what date was the Result l 38-14?
CREATE TABLE table_name_46 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_46 WHERE result = "l 38-14"
What position did the player have who was from the college of california?
CREATE TABLE table_name_55 (position VARCHAR, college VARCHAR)
SELECT position FROM table_name_55 WHERE college = "california"
What is the average grid for vehicles manufactured by Aprilia and having run more than 16 laps?
CREATE TABLE table_name_2 (grid INTEGER, manufacturer VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_2 WHERE manufacturer = "aprilia" AND laps > 16
Which Result has a Competition of 2014 fifa world cup qualification, and a Score of 2 – 0?
CREATE TABLE table_name_72 (result VARCHAR, competition VARCHAR, score VARCHAR)
SELECT result FROM table_name_72 WHERE competition = "2014 fifa world cup qualification" AND score = "2 – 0"
What country is Paul Stankowski from?
CREATE TABLE table_name_21 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_21 WHERE player = "paul stankowski"
What was the minimum property crimes stats if the burglary committed was 45350?
CREATE TABLE table_26060884_2 (property_crimes INTEGER, burglary VARCHAR)
SELECT MIN(property_crimes) FROM table_26060884_2 WHERE burglary = 45350
Game site of shea stadium, and a Week smaller than 10, and a Opponent of baltimore colts happened on what date?
CREATE TABLE table_name_13 (date VARCHAR, opponent VARCHAR, game_site VARCHAR, week VARCHAR)
SELECT date FROM table_name_13 WHERE game_site = "shea stadium" AND week < 10 AND opponent = "baltimore colts"
When the Home team was north melbourne what was the Date of the game?
CREATE TABLE table_name_49 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_49 WHERE home_team = "north melbourne"
what is the color quality when the relay is ✓?
CREATE TABLE table_name_9 (color_quality VARCHAR, relay VARCHAR)
SELECT color_quality FROM table_name_9 WHERE relay = "✓"
What was the maximum crowd size against St Kilda?
CREATE TABLE table_16387653_1 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_16387653_1 WHERE away_team = "St Kilda"
Name the date for game 9
CREATE TABLE table_16710829_2 (date VARCHAR, game VARCHAR)
SELECT date FROM table_16710829_2 WHERE game = 9
What year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical?
CREATE TABLE table_name_96 (year INTEGER, award_ceremony VARCHAR, category VARCHAR)
SELECT AVG(year) FROM table_name_96 WHERE award_ceremony = "drama desk award" AND category = "outstanding featured actress in a musical"
Who won the election of 1942 in the district Illinois 13?
CREATE TABLE table_1342256_13 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1342256_13 WHERE district = "Illinois 13"
What was the result for Julius Kahn's first election of 1898?
CREATE TABLE table_name_6 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT result FROM table_name_6 WHERE first_elected = 1898 AND incumbent = "julius kahn"
On what day did joe gibbs racing record a time of 1:53:26?
CREATE TABLE table_28178756_1 (date VARCHAR, team VARCHAR, race_time VARCHAR)
SELECT date FROM table_28178756_1 WHERE team = "Joe Gibbs Racing" AND race_time = "1:53:26"
Which television service has a qualsiasi package/option?
CREATE TABLE table_name_27 (television_service VARCHAR, package_option VARCHAR)
SELECT television_service FROM table_name_27 WHERE package_option = "qualsiasi"
Who was awarded the young ride classification leader when the winner was Marzio Bruseghin?
CREATE TABLE table_14710984_2 (young_rider_classification VARCHAR, winner VARCHAR)
SELECT young_rider_classification FROM table_14710984_2 WHERE winner = "Marzio Bruseghin"
Tell me the digital for tuner of thomson dtt75105
CREATE TABLE table_name_91 (digital VARCHAR, tuner VARCHAR)
SELECT digital FROM table_name_91 WHERE tuner = "thomson dtt75105"
In what state did Jing have the title of Marquis?
CREATE TABLE table_name_2 (state VARCHAR, title VARCHAR, name VARCHAR)
SELECT state FROM table_name_2 WHERE title = "marquis" AND name = "jing"
How many bids were there for the .500 win percentage in the Ohio Valley conference?
CREATE TABLE table_name_7 (_number_of_bids INTEGER, win__percentage VARCHAR, conference VARCHAR)
SELECT SUM(_number_of_bids) FROM table_name_7 WHERE win__percentage = ".500" AND conference = "ohio valley"
Name the standard yarn weight system for 9 wpi
CREATE TABLE table_20297668_1 (standard_yarn_weight_system VARCHAR, wraps_per_inch__wpi_ VARCHAR)
SELECT standard_yarn_weight_system FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = "9 wpi"
What is the outcome of the match with a score of 6–4, 6–1?
CREATE TABLE table_name_39 (outcome VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_39 WHERE score = "6–4, 6–1"
How many release prices are there for the Pentium iii 550?
CREATE TABLE table_16400024_1 (release_price___usd__ VARCHAR, model_number VARCHAR)
SELECT COUNT(release_price___usd__) FROM table_16400024_1 WHERE model_number = "Pentium III 550"
What is the score of the tournament on November 5, 2007 with a carpet surface?
CREATE TABLE table_name_90 (score VARCHAR, surface VARCHAR, date VARCHAR)
SELECT score FROM table_name_90 WHERE surface = "carpet" AND date = "november 5, 2007"
Which Frequency has a Branding of country 600?
CREATE TABLE table_name_26 (frequency VARCHAR, branding VARCHAR)
SELECT frequency FROM table_name_26 WHERE branding = "country 600"
What was the share when the audience was 3.944.000?
CREATE TABLE table_name_82 (share VARCHAR, audience VARCHAR)
SELECT share FROM table_name_82 WHERE audience = "3.944.000"
What country is Bandar Abbas in?
CREATE TABLE table_name_8 (country VARCHAR, city VARCHAR)
SELECT country FROM table_name_8 WHERE city = "bandar abbas"
When was Kamba active?
CREATE TABLE table_10602294_1 (dates_active VARCHAR, name VARCHAR)
SELECT dates_active FROM table_10602294_1 WHERE name = "Kamba"
Who was the partner for the match with a score in the final of 4–6, 6–7?
CREATE TABLE table_name_31 (partner VARCHAR, score_in_the_final VARCHAR)
SELECT partner FROM table_name_31 WHERE score_in_the_final = "4–6, 6–7"
Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01.
CREATE TABLE orders (customer_id VARCHAR, date_order_placed VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= "2009-01-01" AND T2.date_order_placed <= "2010-01-01"
Name the total number of Round in liverpool , england?
CREATE TABLE table_name_73 (round VARCHAR, location VARCHAR)
SELECT COUNT(round) FROM table_name_73 WHERE location = "liverpool , england"
What date was the person ordained as a priest in December 1838 ordained as a bishop?
CREATE TABLE table_1656555_1 (ordained_bishop VARCHAR, ordained_priest VARCHAR)
SELECT ordained_bishop FROM table_1656555_1 WHERE ordained_priest = "December 1838"
What is the Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdate is March 3, 1980?
CREATE TABLE table_name_24 (birthplace VARCHAR, birthdate VARCHAR, jersey__number VARCHAR, height__cm_ VARCHAR)
SELECT birthplace FROM table_name_24 WHERE jersey__number < 18 AND height__cm_ > 185 AND birthdate = "march 3, 1980"
what date did the m3 motorsport team compete at winton motor raceway?
CREATE TABLE table_name_38 (date VARCHAR, team VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_38 WHERE team = "m3 motorsport" AND circuit = "winton motor raceway"
What race did Simon Pagenaud have the most laps in?
CREATE TABLE table_27913160_3 (race VARCHAR, most_laps_led VARCHAR)
SELECT race FROM table_27913160_3 WHERE most_laps_led = "Simon Pagenaud"
Tell me the position of chris clark
CREATE TABLE table_name_8 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_8 WHERE player = "chris clark"
How many different results are there for the season with a 4-3 conference record?
CREATE TABLE table_20319085_2 (result VARCHAR, conference_record VARCHAR)
SELECT COUNT(result) FROM table_20319085_2 WHERE conference_record = "4-3"
What is the latest year when the best finish is 2 and the scoring average is less than 71.24?
CREATE TABLE table_name_51 (year INTEGER, best_finish VARCHAR, scoring_average VARCHAR)
SELECT MAX(year) FROM table_name_51 WHERE best_finish = "2" AND scoring_average < 71.24
who is the captain where coach is geoff miles
CREATE TABLE table_1165048_1 (captain VARCHAR, coach VARCHAR)
SELECT captain FROM table_1165048_1 WHERE coach = "Geoff Miles"
What Vehicle Flight # has Pilot Peterson and Velocity (km/h) of 649?
CREATE TABLE table_name_31 (vehicle_flight__number VARCHAR, pilot VARCHAR, velocity__km_h_ VARCHAR)
SELECT vehicle_flight__number FROM table_name_31 WHERE pilot = "peterson" AND velocity__km_h_ = 649
Name the most decile for roll of 428
CREATE TABLE table_name_94 (decile INTEGER, roll VARCHAR)
SELECT MAX(decile) FROM table_name_94 WHERE roll = 428
WHAT WAS THE PICK NUMBER FOR BRANDON RUSH?
CREATE TABLE table_name_82 (pick VARCHAR, player VARCHAR)
SELECT COUNT(pick) FROM table_name_82 WHERE player = "brandon rush"
What is the average total number of medals when there were 4 bronze, more than 2 silver, and less than 7 gold medals?
CREATE TABLE table_name_26 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_26 WHERE bronze = 4 AND silver > 2 AND gold < 7
What was the score against the devil rays on september 14?
CREATE TABLE table_name_89 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT score FROM table_name_89 WHERE opponent = "devil rays" AND date = "september 14"
What are the goals for Pelletieri in ARG?
CREATE TABLE table_name_18 (goals_l_c_e_ VARCHAR, nat VARCHAR, name VARCHAR)
SELECT goals_l_c_e_ FROM table_name_18 WHERE nat = "arg" AND name = "pelletieri"
When 21 is the number of assists how many sets of blocks are there?
CREATE TABLE table_25016555_5 (blocks VARCHAR, assists VARCHAR)
SELECT COUNT(blocks) FROM table_25016555_5 WHERE assists = 21
Who was the train operator when the train departed at 11.02 in 1922?
CREATE TABLE table_18365784_3 (operator VARCHAR, departure VARCHAR)
SELECT operator FROM table_18365784_3 WHERE departure = "11.02"
How many laps where the position is 10th and the races is smaller than 9.0?
CREATE TABLE table_25318033_1 (f_laps VARCHAR, position VARCHAR, races VARCHAR)
SELECT COUNT(f_laps) FROM table_25318033_1 WHERE position = "10th" AND races < 9.0
For the Year 2013 what building(s) had more than 15 Floors?
CREATE TABLE table_name_81 (building VARCHAR, floors VARCHAR, year VARCHAR)
SELECT building FROM table_name_81 WHERE floors > 15 AND year = "2013"
Find the number of customers in total.
CREATE TABLE customers (Id VARCHAR)
SELECT COUNT(*) FROM customers
Which Class has Laps of 31?
CREATE TABLE table_name_74 (class VARCHAR, laps VARCHAR)
SELECT class FROM table_name_74 WHERE laps = 31
When Fitzroy was the home team, what was the away team's score?
CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_33 WHERE home_team = "fitzroy"
Show different type codes of products and the number of products with each type code.
CREATE TABLE Products (Product_Type_Code VARCHAR)
SELECT Product_Type_Code, COUNT(*) FROM Products GROUP BY Product_Type_Code
Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000.
CREATE TABLE ship (TYPE VARCHAR, Tonnage INTEGER)
SELECT TYPE FROM ship WHERE Tonnage > 6000 INTERSECT SELECT TYPE FROM ship WHERE Tonnage < 4000
Which player is from Marshall and played 1974-75?
CREATE TABLE table_11545282_12 (player VARCHAR, years_for_jazz VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_11545282_12 WHERE years_for_jazz = "1974-75" AND school_club_team = "Marshall"
Who is the March playmate with a November playmate Cara Wakelin?
CREATE TABLE table_name_3 (march VARCHAR, november VARCHAR)
SELECT march FROM table_name_3 WHERE november = "cara wakelin"
Which chassis is from 1974 and was an entrant of Goldie Hexagon racing?
CREATE TABLE table_name_35 (chassis VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_name_35 WHERE year = 1974 AND entrant = "goldie hexagon racing"
What is the sum of FA cups of club Stalybridge Celtic, which has more than 0 FA trophies and a total less than 20?
CREATE TABLE table_name_50 (fa_cup INTEGER, total VARCHAR, fa_trophy VARCHAR, club VARCHAR)
SELECT SUM(fa_cup) FROM table_name_50 WHERE fa_trophy > 0 AND club = "stalybridge celtic" AND total < 20
What is To par, when Player is "Jesper Parnevik"?
CREATE TABLE table_name_47 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_47 WHERE player = "jesper parnevik"
What is the percentage of females where the state code is a 4?
CREATE TABLE table_14598_9 (females___percentage_ VARCHAR, state_ut_code VARCHAR)
SELECT females___percentage_ FROM table_14598_9 WHERE state_ut_code = 4
Find the number of different airports which are the destinations of the American Airlines.
CREATE TABLE routes (alid VARCHAR); CREATE TABLE airlines (alid VARCHAR, name VARCHAR)
SELECT COUNT(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'
What is the score for the game larger than 4 in series 3-2?
CREATE TABLE table_name_77 (score VARCHAR, game VARCHAR, series VARCHAR)
SELECT score FROM table_name_77 WHERE game > 4 AND series = "3-2"
Who was the opponent in the Week 4 game?
CREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_25 WHERE week = 4
What is the name of the entrepreneur with the greatest weight?
CREATE TABLE people (Name VARCHAR, People_ID VARCHAR, Weight VARCHAR); CREATE TABLE entrepreneur (People_ID VARCHAR)
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1
What is the Country when the language is italian english, and the television service is disney xd +1?
CREATE TABLE table_name_12 (country VARCHAR, language VARCHAR, television_service VARCHAR)
SELECT country FROM table_name_12 WHERE language = "italian english" AND television_service = "disney xd +1"
Who was the winning driver of the Savio Circuit with the constructor Itala?
CREATE TABLE table_name_5 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR)
SELECT winning_driver FROM table_name_5 WHERE winning_constructor = "itala" AND name = "savio circuit"
What was the english translation for the song by svetlana loboda?
CREATE TABLE table_name_77 (english_translation VARCHAR, artist VARCHAR)
SELECT english_translation FROM table_name_77 WHERE artist = "svetlana loboda"
What is the state Yi?
CREATE TABLE table_name_35 (state VARCHAR, name VARCHAR)
SELECT state FROM table_name_35 WHERE name = "yi"
What is the lowest draft of player jim farrell, who has a pick greater than 197 and a round of 14?
CREATE TABLE table_name_62 (draft INTEGER, player VARCHAR, pick VARCHAR, round VARCHAR)
SELECT MIN(draft) FROM table_name_62 WHERE pick > 197 AND round = 14 AND player = "jim farrell"
How many total units were built of Model ds-4-4-660 with a b-b wheel arrangement and a PRR Class of bs6?
CREATE TABLE table_name_13 (total_produced INTEGER, builder’s_model VARCHAR, wheel_arrangement VARCHAR, prr_class VARCHAR)
SELECT SUM(total_produced) FROM table_name_13 WHERE wheel_arrangement = "b-b" AND prr_class = "bs6" AND builder’s_model = "ds-4-4-660"
What was the date of the game when the Devils had a record of 21–14–3?
CREATE TABLE table_name_49 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_49 WHERE record = "21–14–3"
How many wins had less than 91 points in 25th rank?
CREATE TABLE table_name_44 (wins VARCHAR, points VARCHAR, rank VARCHAR)
SELECT wins FROM table_name_44 WHERE points < 91 AND rank = "25th"
In what lane did the swimmer get a time of 1:59.42?
CREATE TABLE table_name_97 (lane INTEGER, time VARCHAR)
SELECT SUM(lane) FROM table_name_97 WHERE time = "1:59.42"
Who was the trainer when Mckaymackenna won?
CREATE TABLE table_name_3 (trainer VARCHAR, winner VARCHAR)
SELECT trainer FROM table_name_3 WHERE winner = "mckaymackenna"
What is the average grid with a number of laps smaller than 8?
CREATE TABLE table_name_27 (grid INTEGER, laps INTEGER)
SELECT AVG(grid) FROM table_name_27 WHERE laps < 8
Name the most points against when points for is 860
CREATE TABLE table_13018116_1 (pts_agst INTEGER, pts_for VARCHAR)
SELECT MAX(pts_agst) FROM table_13018116_1 WHERE pts_for = 860
How many people have a Median household income of $37,759?
CREATE TABLE table_name_66 (population INTEGER, median_household_income VARCHAR)
SELECT SUM(population) FROM table_name_66 WHERE median_household_income = "$37,759"
How many points did Stuart have when he had 0 extra points?
CREATE TABLE table_name_53 (points INTEGER, player VARCHAR, extra_points VARCHAR)
SELECT MIN(points) FROM table_name_53 WHERE player = "stuart" AND extra_points < 0
How many outgoing managers were replaced by Bob Peeters?
CREATE TABLE table_27374004_3 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT COUNT(outgoing_manager) FROM table_27374004_3 WHERE replaced_by = "Bob Peeters"
Which tonnage has a Date of 26 september 1940, and a Ship Name of ashantian?
CREATE TABLE table_name_84 (tonnage___grt__ INTEGER, date VARCHAR, ship_name VARCHAR)
SELECT MIN(tonnage___grt__) FROM table_name_84 WHERE date = "26 september 1940" AND ship_name = "ashantian"
Which rowers represented portugal and had notes of r?
CREATE TABLE table_name_14 (rowers VARCHAR, notes VARCHAR, country VARCHAR)
SELECT rowers FROM table_name_14 WHERE notes = "r" AND country = "portugal"
Who's the incumbent of the Louisiana 1 district?
CREATE TABLE table_1341604_19 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341604_19 WHERE district = "Louisiana 1"
What did the away team score when they were playing collingwood?
CREATE TABLE table_name_47 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_47 WHERE home_team = "collingwood"