question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
what is the race on 23 october?
CREATE TABLE table_name_81 (race VARCHAR, date VARCHAR)
SELECT race FROM table_name_81 WHERE date = "23 october"
What is Date, when Away Team is "Ipswich Town"?
CREATE TABLE table_name_20 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_20 WHERE away_team = "ipswich town"
What was the average place for the song that had 69 points and a draw smaller than 13?
CREATE TABLE table_name_49 (place INTEGER, points VARCHAR, draw VARCHAR)
SELECT AVG(place) FROM table_name_49 WHERE points = 69 AND draw < 13
What is Result, when Date is 2003?
CREATE TABLE table_name_80 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_80 WHERE date = "2003"
Name the total number of years for brm straight-4
CREATE TABLE table_name_65 (year VARCHAR, engine VARCHAR)
SELECT COUNT(year) FROM table_name_65 WHERE engine = "brm straight-4"
Who is Birmingham City's outgoing manager?
CREATE TABLE table_name_12 (outgoing_manager VARCHAR, team VARCHAR)
SELECT outgoing_manager FROM table_name_12 WHERE team = "birmingham city"
What series number started production on June 6?
CREATE TABLE table_1949994_8 (no INTEGER, start_date VARCHAR)
SELECT MIN(no) FROM table_1949994_8 WHERE start_date = "June 6"
Whcih Date has an Event of 3000 m?
CREATE TABLE table_name_6 (date VARCHAR, event VARCHAR)
SELECT date FROM table_name_6 WHERE event = "3000 m"
Which average Against has Drawn of 3, and Points larger than 9, and a Team of portuguesa?
CREATE TABLE table_name_23 (against INTEGER, team VARCHAR, drawn VARCHAR, points VARCHAR)
SELECT AVG(against) FROM table_name_23 WHERE drawn = 3 AND points > 9 AND team = "portuguesa"
What is the total pick with Bill Duffy?
CREATE TABLE table_name_12 (pick INTEGER, player VARCHAR)
SELECT SUM(pick) FROM table_name_12 WHERE player = "bill duffy"
What team has a home city of Koprivnica?
CREATE TABLE table_name_77 (team VARCHAR, home_city VARCHAR)
SELECT team FROM table_name_77 WHERE home_city = "koprivnica"
Which ICAO's city is Manchester?
CREATE TABLE table_name_96 (icao VARCHAR, city VARCHAR)
SELECT icao FROM table_name_96 WHERE city = "manchester"
What is the accreditation level of the network brand Movistar?
CREATE TABLE table_name_76 (accreditation_level VARCHAR, network_brand_name VARCHAR)
SELECT accreditation_level FROM table_name_76 WHERE network_brand_name = "movistar"
Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.
CREATE TABLE Owners (first_name VARCHAR, last_name VARCHAR, email_address VARCHAR, state VARCHAR)
SELECT first_name, last_name, email_address FROM Owners WHERE state LIKE '%North%'
What year did Willis McGahee play fewer than 15 games with the Baltimore Ravens?
CREATE TABLE table_name_97 (year INTEGER, team VARCHAR, games VARCHAR)
SELECT MIN(year) FROM table_name_97 WHERE team = "baltimore ravens" AND games < 15
Who was the winning driver in round 6?
CREATE TABLE table_1137702_3 (winning_driver VARCHAR, round VARCHAR)
SELECT winning_driver FROM table_1137702_3 WHERE round = 6
What are the high rebounds in the 45 game?
CREATE TABLE table_27734577_8 (high_rebounds VARCHAR, game VARCHAR)
SELECT high_rebounds FROM table_27734577_8 WHERE game = 45
What was the name of the album released by Heavy Winged?
CREATE TABLE table_27932399_1 (release_title VARCHAR, artist VARCHAR)
SELECT release_title FROM table_27932399_1 WHERE artist = "Heavy Winged"
Name the number of coverage for 106.7 energy fm
CREATE TABLE table_27914076_1 (coverage VARCHAR, branding VARCHAR)
SELECT COUNT(coverage) FROM table_27914076_1 WHERE branding = "106.7 Energy FM"
What date was the game against Royal Antwerp?
CREATE TABLE table_name_87 (date VARCHAR, opponents VARCHAR)
SELECT date FROM table_name_87 WHERE opponents = "royal antwerp"
What round was Ken Irvin drafted?
CREATE TABLE table_name_54 (round INTEGER, player VARCHAR)
SELECT MAX(round) FROM table_name_54 WHERE player = "ken irvin"
Tell me the discovery/publicatio of name for h.heidelbergensis
CREATE TABLE table_name_78 (discovery___publication_of_name VARCHAR, species VARCHAR)
SELECT discovery___publication_of_name FROM table_name_78 WHERE species = "h.heidelbergensis"
What was the ground for away team essendon?
CREATE TABLE table_name_19 (ground VARCHAR, away_team VARCHAR)
SELECT ground FROM table_name_19 WHERE away_team = "essendon"
Find the first name of students who have both cat and dog pets .
CREATE TABLE student (fname VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR)
SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype = 'cat' INTERSECT SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype = 'dog'
What is the Total with the Event 2004 Athens and Gold less than 20?
CREATE TABLE table_name_21 (total INTEGER, event VARCHAR, gold VARCHAR)
SELECT SUM(total) FROM table_name_21 WHERE event = "2004 athens" AND gold < 20
What T20 match was played in 1979?
CREATE TABLE table_name_33 (t20_matches VARCHAR, year VARCHAR)
SELECT t20_matches FROM table_name_33 WHERE year = "1979"
Who wrote the episode with production code 2?
CREATE TABLE table_25679312_2 (written_by VARCHAR, prod_code VARCHAR)
SELECT written_by FROM table_25679312_2 WHERE prod_code = 2
In the game with an attendance of 18304, what was the final score?
CREATE TABLE table_17294353_1 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_17294353_1 WHERE attendance = 18304
what is the order when public vote was 18.155%
CREATE TABLE table_19744915_3 (order VARCHAR, public_vote VARCHAR)
SELECT order FROM table_19744915_3 WHERE public_vote = "18.155%"
Date of 1 october 2003 had what attendance?
CREATE TABLE table_name_18 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_18 WHERE date = "1 october 2003"
Which Round has an Event of 200 miles of norisring?
CREATE TABLE table_name_25 (round VARCHAR, event VARCHAR)
SELECT COUNT(round) FROM table_name_25 WHERE event = "200 miles of norisring"
Name the Score of the Year larger than 2004 and a Runner-up of northeastern?
CREATE TABLE table_name_43 (score VARCHAR, year VARCHAR, runner_up VARCHAR)
SELECT score FROM table_name_43 WHERE year > 2004 AND runner_up = "northeastern"
What was the Result in Green Lane with Kirkburton as the Runner-up?
CREATE TABLE table_name_94 (result VARCHAR, runner_up VARCHAR, final_venue VARCHAR)
SELECT result FROM table_name_94 WHERE runner_up = "kirkburton" AND final_venue = "green lane"
Name Tonnage on 27 september 1941 and a Ship of hmsspringbank?
CREATE TABLE table_name_81 (tonnage VARCHAR, date VARCHAR, ship VARCHAR)
SELECT tonnage FROM table_name_81 WHERE date = "27 september 1941" AND ship = "hmsspringbank"
Name the currency for negotiable debt being 1300
CREATE TABLE table_2764267_2 (currency VARCHAR, negotiable_debt_at_mid_2005___us_dollar_bn_equivalent_ VARCHAR)
SELECT currency FROM table_2764267_2 WHERE negotiable_debt_at_mid_2005___us_dollar_bn_equivalent_ = 1300
Where did North Melbourne play as the home team?
CREATE TABLE table_name_37 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_37 WHERE home_team = "north melbourne"
What is the date with Cuba is Home team?
CREATE TABLE table_name_20 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_20 WHERE home_team = "cuba"
What is the venue of the game on 20 November 2002?
CREATE TABLE table_name_33 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_33 WHERE date = "20 november 2002"
How many losses occurred when the club team was ekranas-2 panevėžys
CREATE TABLE table_18018214_3 (loses INTEGER, club VARCHAR)
SELECT MAX(loses) FROM table_18018214_3 WHERE club = "Ekranas-2 Panevėžys"
What prize amount was awarded at the event with 453 entrants?
CREATE TABLE table_name_31 (prize VARCHAR, entrants VARCHAR)
SELECT prize FROM table_name_31 WHERE entrants = 453
Which tie number had a home team of Derby County?
CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_52 WHERE home_team = "derby county"
What is Probate Activities, when Notarial Activities is No, when Conduct of Litigation is Yes, and when Regulator is Association of Law Costs Draftsmen?
CREATE TABLE table_name_16 (probate_activities VARCHAR, regulator VARCHAR, notarial_activities VARCHAR, conduct_of_litigation VARCHAR)
SELECT probate_activities FROM table_name_16 WHERE notarial_activities = "no" AND conduct_of_litigation = "yes" AND regulator = "association of law costs draftsmen"
Which opponent in the final had a partner of Katarina Srebotnik and a championship of wimbledon (4)?
CREATE TABLE table_name_63 (opponents_in_the_final VARCHAR, partner VARCHAR, championship VARCHAR)
SELECT opponents_in_the_final FROM table_name_63 WHERE partner = "katarina srebotnik" AND championship = "wimbledon (4)"
Which rank has a Total GDP (€ bn) of €11.243??
CREATE TABLE table_name_98 (rank VARCHAR, total_gdp__€_bn__ VARCHAR)
SELECT rank FROM table_name_98 WHERE total_gdp__€_bn__ = "€11.243"
What is every value for словјански if polish is książka?
CREATE TABLE table_25008327_8 (словјански VARCHAR, polish VARCHAR)
SELECT словјански FROM table_25008327_8 WHERE polish = "książka"
Which team has a League from of ontario hockey league, and a Player of tony dehart?
CREATE TABLE table_name_22 (nhl_team VARCHAR, league_from VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_name_22 WHERE league_from = "ontario hockey league" AND player = "tony dehart"
What is KK -1 if KK -3 is 1,100?
CREATE TABLE table_name_79 (kk___1 VARCHAR, kk___3 VARCHAR)
SELECT kk___1 FROM table_name_79 WHERE kk___3 = "1,100"
When the elevator was Innocent IV what was the nationality?
CREATE TABLE table_name_98 (nationality VARCHAR, elevator VARCHAR)
SELECT nationality FROM table_name_98 WHERE elevator = "innocent iv"
What is the highest track with a length of 1:54 written by Gene Autry and Oakley Haldeman?
CREATE TABLE table_name_15 (track INTEGER, time VARCHAR, writer_s_ VARCHAR)
SELECT MAX(track) FROM table_name_15 WHERE time = "1:54" AND writer_s_ = "gene autry and oakley haldeman"
What opponent has 3-2 as the score, and anderson (2-6) as a loss?
CREATE TABLE table_name_6 (opponent VARCHAR, score VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_6 WHERE score = "3-2" AND loss = "anderson (2-6)"
What is the episode title that had a US viewership of 8.16?
CREATE TABLE table_24910737_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT title FROM table_24910737_1 WHERE us_viewers__millions_ = "8.16"
Saint-Basile has what status?
CREATE TABLE table_name_32 (status VARCHAR, official_name VARCHAR)
SELECT status FROM table_name_32 WHERE official_name = "saint-basile"
What is the Year of Rio?
CREATE TABLE table_name_14 (year VARCHAR, title VARCHAR)
SELECT year FROM table_name_14 WHERE title = "rio"
How many times does ROY SWEAZY has reserved a room.
CREATE TABLE Reservations (FirstName VARCHAR, LastName VARCHAR)
SELECT COUNT(*) FROM Reservations WHERE FirstName = "ROY" AND LastName = "SWEAZY"
On what date/s has attendance been 45010?
CREATE TABLE table_21436373_5 (date_year VARCHAR, attendance VARCHAR)
SELECT date_year FROM table_21436373_5 WHERE attendance = 45010
What did the Tournament of SR get in 1951?
CREATE TABLE table_name_25 (tournament VARCHAR)
SELECT 1951 FROM table_name_25 WHERE tournament = "sr"
What date was game number 22 on?
CREATE TABLE table_27756014_6 (date VARCHAR, game VARCHAR)
SELECT date FROM table_27756014_6 WHERE game = 22
What is the color code and description of the product named "chervil"?
CREATE TABLE products (color_code VARCHAR, product_name VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR)
SELECT t1.color_code, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = "chervil"
What is the total when the nation was Argentina, and a Goldwas smaller than 0?
CREATE TABLE table_name_4 (total VARCHAR, nation VARCHAR, gold VARCHAR)
SELECT COUNT(total) FROM table_name_4 WHERE nation = "argentina" AND gold < 0
Which Position has a Player of bernard thompson?
CREATE TABLE table_name_64 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_64 WHERE player = "bernard thompson"
Who was the home team at princes park?
CREATE TABLE table_name_25 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_25 WHERE venue = "princes park"
Which player was a running back from San Jose State?
CREATE TABLE table_name_94 (player VARCHAR, position VARCHAR, college VARCHAR)
SELECT player FROM table_name_94 WHERE position = "running back" AND college = "san jose state"
Name the week for december 4, 2009
CREATE TABLE table_name_80 (week VARCHAR, date VARCHAR)
SELECT week FROM table_name_80 WHERE date = "december 4, 2009"
What's the highest game number for a game in which Kris Humphries (8) did the high rebounds?
CREATE TABLE table_22879323_8 (game INTEGER, high_rebounds VARCHAR)
SELECT MAX(game) FROM table_22879323_8 WHERE high_rebounds = "Kris Humphries (8)"
Which Venue has Attendances of 11,045?
CREATE TABLE table_name_97 (venue VARCHAR, attendance VARCHAR)
SELECT venue FROM table_name_97 WHERE attendance = "11,045"
How many fastest laps did I.C. Team have?
CREATE TABLE table_20016339_1 (fastest_laps VARCHAR, team VARCHAR)
SELECT COUNT(fastest_laps) FROM table_20016339_1 WHERE team = "I.C. team"
how any were gained as the chan
CREATE TABLE table_1397655_1 (year_acquired VARCHAR, station VARCHAR)
SELECT COUNT(year_acquired) FROM table_1397655_1 WHERE station = "CHAN"
Name the dominant religion 2002 for village banatski despotovac
CREATE TABLE table_2562572_35 (dominant_religion__2002_ VARCHAR, type VARCHAR, settlement VARCHAR)
SELECT dominant_religion__2002_ FROM table_2562572_35 WHERE type = "village" AND settlement = "Banatski Despotovac"
Who is the player that plays position f from Fort Wayne Pistons?
CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR, position VARCHAR)
SELECT player FROM table_name_89 WHERE team = "fort wayne pistons" AND position = "f"
What was the score of the game when the team reached a record of 6-9?
CREATE TABLE table_10595672_1 (score VARCHAR, record VARCHAR)
SELECT score FROM table_10595672_1 WHERE record = "6-9"
What is the total number of goals of the club with 4 wins and less than 0 draws?
CREATE TABLE table_name_45 (goals_conceded VARCHAR, wins VARCHAR, draws VARCHAR)
SELECT COUNT(goals_conceded) FROM table_name_45 WHERE wins = 4 AND draws < 0
What's the duration of the Archers with Norman Painting as an actor?
CREATE TABLE table_name_98 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR)
SELECT duration FROM table_name_98 WHERE soap_opera = "the archers" AND actor = "norman painting"
On what Date was the Score 106-104 against the Portland Trail Blazers?
CREATE TABLE table_name_30 (date VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT date FROM table_name_30 WHERE opponent = "portland trail blazers" AND score = "106-104"
Which Against has Losses larger than 10, and Wins smaller than 4, and a Club of dunolly?
CREATE TABLE table_name_38 (against INTEGER, club VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT MIN(against) FROM table_name_38 WHERE losses > 10 AND wins < 4 AND club = "dunolly"
List the phone hardware model and company name for the phones whose screen usage in kb is between 10 and 15.
CREATE TABLE phone (Hardware_Model_name VARCHAR, Company_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, used_kb INTEGER)
SELECT DISTINCT T2.Hardware_Model_name, T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb BETWEEN 10 AND 15
what is the total when the league is less than 1?
CREATE TABLE table_name_89 (total VARCHAR, league INTEGER)
SELECT total FROM table_name_89 WHERE league < 1
WHo has a Country of united states and a To par of –3?
CREATE TABLE table_name_39 (player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_39 WHERE country = "united states" AND to_par = "–3"
What format has the call sign DZFE?
CREATE TABLE table_name_42 (format VARCHAR, call_sign VARCHAR)
SELECT format FROM table_name_42 WHERE call_sign = "dzfe"
What is the height for the player in 1968-72?
CREATE TABLE table_11734041_11 (height_in_ft VARCHAR, years_for_rockets VARCHAR)
SELECT height_in_ft FROM table_11734041_11 WHERE years_for_rockets = "1968-72"
What is the distance for the course Civitavecchia to San Vincenzo?
CREATE TABLE table_name_72 (distance VARCHAR, course VARCHAR)
SELECT distance FROM table_name_72 WHERE course = "civitavecchia to san vincenzo"
Which Catalogno was #160 us?
CREATE TABLE table_name_31 (catalogno VARCHAR, remark VARCHAR)
SELECT catalogno FROM table_name_31 WHERE remark = "#160 us"
What month before 1973 is listed for the album united we stand?
CREATE TABLE table_name_83 (month VARCHAR, year VARCHAR, album VARCHAR)
SELECT month FROM table_name_83 WHERE year < 1973 AND album = "united we stand"
What is the rank of player Jason Dunstall?
CREATE TABLE table_name_55 (rank VARCHAR, player VARCHAR)
SELECT rank FROM table_name_55 WHERE player = "jason dunstall"
What is Honor, when Singular is ẽr (his/her/its)?
CREATE TABLE table_name_97 (honor VARCHAR, singular VARCHAR)
SELECT honor FROM table_name_97 WHERE singular = "ẽr (his/her/its)"
What is the roll number of Te Puke Intermediate, which has a decile of 4?
CREATE TABLE table_name_62 (roll VARCHAR, decile VARCHAR, name VARCHAR)
SELECT roll FROM table_name_62 WHERE decile = 4 AND name = "te puke intermediate"
Which staff have contacted which engineers? List the staff name and the engineer first name and last name.
CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR, engineer_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR)
SELECT T1.staff_name, T3.first_name, T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id
What was the resolution for the fight against tom bolger by submission (guillotine choke)?
CREATE TABLE table_name_65 (res VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_65 WHERE method = "submission (guillotine choke)" AND opponent = "tom bolger"
What label had the album after 1978?
CREATE TABLE table_name_70 (label VARCHAR, year INTEGER)
SELECT label FROM table_name_70 WHERE year > 1978
How many years did he have an average start of 20.7?
CREATE TABLE table_2169966_2 (avg_finish VARCHAR, avg_start VARCHAR)
SELECT COUNT(avg_finish) FROM table_2169966_2 WHERE avg_start = "20.7"
Which nation has a gold less than 2 and a bronze less than 5?
CREATE TABLE table_name_31 (nation VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT nation FROM table_name_31 WHERE gold < 2 AND bronze < 5
What is the average rating for john kidd with more than 0 yards?
CREATE TABLE table_name_51 (rating INTEGER, player VARCHAR, yards VARCHAR)
SELECT AVG(rating) FROM table_name_51 WHERE player = "john kidd" AND yards > 0
What is the Points against for the ystradgynlais rfc club?
CREATE TABLE table_name_58 (points_against VARCHAR, club VARCHAR)
SELECT points_against FROM table_name_58 WHERE club = "ystradgynlais rfc"
under which president was gunther volz executed?
CREATE TABLE table_2861364_1 (under_president VARCHAR, executed_person VARCHAR)
SELECT under_president FROM table_2861364_1 WHERE executed_person = "Gunther Volz"
What date did Passion Pictures receive an award?
CREATE TABLE table_name_42 (date VARCHAR, recipient VARCHAR)
SELECT date FROM table_name_42 WHERE recipient = "passion pictures"
What's the production if the technology is sodium-sulfur batteries and yes to toxic materials?
CREATE TABLE table_name_39 (in_production VARCHAR, toxic_materials VARCHAR, technology VARCHAR)
SELECT in_production FROM table_name_39 WHERE toxic_materials = "yes" AND technology = "sodium-sulfur batteries"
What is the lowest number of carriers?
CREATE TABLE table_2394927_1 (number_of_carriers INTEGER)
SELECT MIN(number_of_carriers) FROM table_2394927_1
Which Length has a Year of 2000?
CREATE TABLE table_name_13 (length VARCHAR, year VARCHAR)
SELECT length FROM table_name_13 WHERE year = 2000
What is the molecular target of the organism that has a disease area of antiviral?
CREATE TABLE table_name_45 (molecular_target VARCHAR, disease_area VARCHAR)
SELECT molecular_target FROM table_name_45 WHERE disease_area = "antiviral"
Which Series has Poles of 0, and Races of 17?
CREATE TABLE table_name_72 (series VARCHAR, poles VARCHAR, races VARCHAR)
SELECT series FROM table_name_72 WHERE poles = "0" AND races = "17"
How many ties did he have when he had 1 penalties and more than 20 conversions?
CREATE TABLE table_name_33 (drawn INTEGER, penalties VARCHAR, conversions VARCHAR)
SELECT SUM(drawn) FROM table_name_33 WHERE penalties = 1 AND conversions > 20