question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the average start for the season with $7,220 in winnings?
CREATE TABLE table_1637041_6 (avg_start VARCHAR, winnings VARCHAR)
SELECT avg_start FROM table_1637041_6 WHERE winnings = "$7,220"
How many seasons were directed by Bryan Spicer?
CREATE TABLE table_18481791_3 (no_in_season INTEGER, directed_by VARCHAR)
SELECT MIN(no_in_season) FROM table_18481791_3 WHERE directed_by = "Bryan Spicer"
What was the average amount of losses for teams with played less than 14?
CREATE TABLE table_name_5 (lost INTEGER, played INTEGER)
SELECT AVG(lost) FROM table_name_5 WHERE played < 14
What is the host in Georgia?
CREATE TABLE table_name_51 (host VARCHAR, state VARCHAR)
SELECT host FROM table_name_51 WHERE state = "georgia"
What is the lowest grid number when Colin Edwards is the rider?
CREATE TABLE table_name_46 (grid INTEGER, rider VARCHAR)
SELECT MIN(grid) FROM table_name_46 WHERE rider = "colin edwards"
What was the finish of the player who had a total of 282?
CREATE TABLE table_name_80 (finish VARCHAR, total VARCHAR)
SELECT finish FROM table_name_80 WHERE total = 282
Who is every successor for the Washington 3rd District?
CREATE TABLE table_2159571_2 (successor VARCHAR, district VARCHAR)
SELECT successor FROM table_2159571_2 WHERE district = "Washington 3rd"
How many attended the game with north melbourne as the away side?
CREATE TABLE table_name_58 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_58 WHERE away_team = "melbourne"
Name the team for december 18
CREATE TABLE table_27712180_7 (team VARCHAR, date VARCHAR)
SELECT team FROM table_27712180_7 WHERE date = "December 18"
Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season?
CREATE TABLE table_name_74 (section VARCHAR, season VARCHAR, level VARCHAR, position VARCHAR)
SELECT section FROM table_name_74 WHERE level = "tier 3" AND position = "6th" AND season = "1937-38"
Name the tournament when margin of victory is 3 strokes and winning score is 71-66-70-67=274
CREATE TABLE table_1569625_1 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_1569625_1 WHERE margin_of_victory = "3 strokes" AND winning_score = 71 - 66 - 70 - 67 = 274
What is the lowest gold when there are 0 bronze and the total is less than 2, and silver is less than 0?
CREATE TABLE table_name_24 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT MIN(gold) FROM table_name_24 WHERE bronze = 0 AND total < 2 AND silver < 0
What is the average number of gold medals won among the nations that won more than 1 bronze?
CREATE TABLE table_name_40 (gold INTEGER, bronze INTEGER)
SELECT AVG(gold) FROM table_name_40 WHERE bronze > 1
Which opponents are on the date September 5?
CREATE TABLE table_23612439_2 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_23612439_2 WHERE date = "September 5"
Who got the decision in the game, when the final score was 1-7?
CREATE TABLE table_27537518_7 (decision VARCHAR, score VARCHAR)
SELECT decision FROM table_27537518_7 WHERE score = "1-7"
Name the total number of first elected for sol bloom
CREATE TABLE table_1342233_32 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(first_elected) FROM table_1342233_32 WHERE incumbent = "Sol Bloom"
How long does track Fast As a Shark has?
CREATE TABLE tracks (milliseconds VARCHAR, name VARCHAR)
SELECT milliseconds FROM tracks WHERE name = "Fast As a Shark"
What was the result when John Barrow was the incumbent first elected in 2004?
CREATE TABLE table_19753079_13 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT result FROM table_19753079_13 WHERE first_elected = 2004 AND incumbent = "John Barrow"
How much money did gaming alerts ask for?
CREATE TABLE table_name_6 (money_requested__ VARCHAR, company_or_product_name VARCHAR)
SELECT COUNT(money_requested__) AS £_ FROM table_name_6 WHERE company_or_product_name = "gaming alerts"
When was the date that week 9 started?
CREATE TABLE table_name_65 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_65 WHERE week = "9"
What is the enrollment at the institution in New London, Connecticut?
CREATE TABLE table_261931_2 (enrollment VARCHAR, location VARCHAR)
SELECT enrollment FROM table_261931_2 WHERE location = "New London, Connecticut"
What's the process technology of the Intel WiFi Link 5100 wireless LAN?
CREATE TABLE table_199666_1 (process_technology VARCHAR, wireless_lan VARCHAR)
SELECT process_technology FROM table_199666_1 WHERE wireless_lan = "Intel WiFi Link 5100"
What is the Venue of the Competition with a Result of 2–2 (d)?
CREATE TABLE table_name_36 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_36 WHERE result = "2–2 (d)"
Name the starter for position being left end
CREATE TABLE table_14342480_6 (starter VARCHAR, position VARCHAR)
SELECT starter FROM table_14342480_6 WHERE position = "Left end"
How many tries against got the club with 62 tries for?
CREATE TABLE table_13564702_4 (tries_against VARCHAR, tries_for VARCHAR)
SELECT tries_against FROM table_13564702_4 WHERE tries_for = "62"
Who was the opponent in the final on 5 July 1992?
CREATE TABLE table_name_46 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_46 WHERE date = "5 july 1992"
What is the alpha 2 code for the area also known as NZL?
CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, alpha_3_code VARCHAR)
SELECT alpha_2_code FROM table_222771_1 WHERE alpha_3_code = "NZL"
What day was Wales the opposing team?
CREATE TABLE table_name_17 (date VARCHAR, opposing_teams VARCHAR)
SELECT date FROM table_name_17 WHERE opposing_teams = "wales"
What is the average value for Lost, when the value for Goals Scored is greater than 20, and when the value for Played is less than 18?
CREATE TABLE table_name_95 (lost INTEGER, goals_scored VARCHAR, played VARCHAR)
SELECT AVG(lost) FROM table_name_95 WHERE goals_scored > 20 AND played < 18
Who was the visitor when vancouver was at home?
CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR)
SELECT visitor FROM table_name_77 WHERE home = "vancouver"
what is 2009 when 2004 is 107?
CREATE TABLE table_name_5 (Id VARCHAR)
SELECT 2009 FROM table_name_5 WHERE 2004 = "107"
What structure is in Chile?
CREATE TABLE table_name_88 (structure VARCHAR, country VARCHAR)
SELECT structure FROM table_name_88 WHERE country = "chile"
What is the number of cuts made when the top-5 is 0, top-10 is 1 and events are fewer than 12?
CREATE TABLE table_name_33 (cuts_made INTEGER, events VARCHAR, top_5 VARCHAR, top_10 VARCHAR)
SELECT AVG(cuts_made) FROM table_name_33 WHERE top_5 = 0 AND top_10 = 1 AND events < 12
What is the average number of wins before the season in 1906 where there were 0 draws?
CREATE TABLE table_name_72 (wins INTEGER, season VARCHAR, draws VARCHAR)
SELECT AVG(wins) FROM table_name_72 WHERE season < 1906 AND draws < 0
What was the host of the round at Hammons Student Center?
CREATE TABLE table_name_12 (host VARCHAR, venue VARCHAR)
SELECT host FROM table_name_12 WHERE venue = "hammons student center"
what is the lowest apparent magnitude when the object type is spiral galaxy, the constellation is leo minor and the ngc number is more than 3021?
CREATE TABLE table_name_66 (apparent_magnitude INTEGER, ngc_number VARCHAR, object_type VARCHAR, constellation VARCHAR)
SELECT MIN(apparent_magnitude) FROM table_name_66 WHERE object_type = "spiral galaxy" AND constellation = "leo minor" AND ngc_number > 3021
Find the capacity and gender type of the dorm whose name has substring ‘Donor’.
CREATE TABLE dorm (student_capacity VARCHAR, gender VARCHAR, dorm_name VARCHAR)
SELECT student_capacity, gender FROM dorm WHERE dorm_name LIKE '%Donor%'
Which Third has a Nation of hungary?
CREATE TABLE table_name_6 (third VARCHAR, nation VARCHAR)
SELECT third FROM table_name_6 WHERE nation = "hungary"
At the UFC 78, what is the average round when the time is 5:00?
CREATE TABLE table_name_32 (round INTEGER, time VARCHAR, event VARCHAR)
SELECT AVG(round) FROM table_name_32 WHERE time = "5:00" AND event = "ufc 78"
What was the average lead maragin for the dates administered of october 6, 2008?
CREATE TABLE table_name_16 (lead_maragin INTEGER, dates_administered VARCHAR)
SELECT AVG(lead_maragin) FROM table_name_16 WHERE dates_administered = "october 6, 2008"
HOw many no votes were there when there were 45.60% yes votes
CREATE TABLE table_256286_20 (no_votes INTEGER, _percentage_yes VARCHAR)
SELECT MIN(no_votes) FROM table_256286_20 WHERE _percentage_yes = "45.60%"
List the open date of open year of the shop named "Apple".
CREATE TABLE shop (Open_Date VARCHAR, Open_Year VARCHAR, Shop_Name VARCHAR)
SELECT Open_Date, Open_Year FROM shop WHERE Shop_Name = "Apple"
What was the lowest attendance at a Fitzroy match?
CREATE TABLE table_name_68 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_68 WHERE home_team = "fitzroy"
What's the most area of Bochum Part 2 with a population less than 15,911?
CREATE TABLE table_name_72 (area__km_2__ INTEGER, place VARCHAR, population VARCHAR)
SELECT MAX(area__km_2__) FROM table_name_72 WHERE place = "bochum part 2" AND population < 15 OFFSET 911
Show the names of climbers and the heights of mountains they climb.
CREATE TABLE mountain (Height VARCHAR, Mountain_ID VARCHAR); CREATE TABLE climber (Name VARCHAR, Mountain_ID VARCHAR)
SELECT T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID
List the weight for 56 kilograms.
CREATE TABLE table_2581397_3 (distance VARCHAR, weight__kg_ VARCHAR)
SELECT distance FROM table_2581397_3 WHERE weight__kg_ = "56"
how many porphyria have substrate δ-aminolevulinic acid
CREATE TABLE table_182499_1 (porphyria VARCHAR, substrate VARCHAR)
SELECT COUNT(porphyria) FROM table_182499_1 WHERE substrate = "δ-Aminolevulinic acid"
What was the surface type at Takao Suzuki?
CREATE TABLE table_name_83 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT surface FROM table_name_83 WHERE opponent_in_the_final = "takao suzuki"
What is the bronze value associated with ranks over 5?
CREATE TABLE table_name_2 (bronze VARCHAR, rank INTEGER)
SELECT bronze FROM table_name_2 WHERE rank > 5
Find the number of rooms for different block code?
CREATE TABLE room (blockfloor VARCHAR, blockcode VARCHAR); CREATE TABLE BLOCK (blockcode VARCHAR, blockfloor VARCHAR)
SELECT COUNT(*), T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockcode
What tie number featured Chelsea as the home team?
CREATE TABLE table_17736890_5 (tie_no INTEGER, home_team VARCHAR)
SELECT MIN(tie_no) FROM table_17736890_5 WHERE home_team = "Chelsea"
What is the attendance of the match with F.C. central chugoku as the home team?
CREATE TABLE table_name_24 (attendance VARCHAR, home_team VARCHAR)
SELECT attendance FROM table_name_24 WHERE home_team = "f.c. central chugoku"
How many teams have 62 tries against?
CREATE TABLE table_15467476_3 (points_difference VARCHAR, tries_against VARCHAR)
SELECT COUNT(points_difference) FROM table_15467476_3 WHERE tries_against = "62"
Name the record for march 16
CREATE TABLE table_22871239_9 (record VARCHAR, date VARCHAR)
SELECT record FROM table_22871239_9 WHERE date = "March 16"
What was the score for the player from Scotland?
CREATE TABLE table_name_76 (score VARCHAR, country VARCHAR)
SELECT score FROM table_name_76 WHERE country = "scotland"
What school did Patrick O'Bryant play for?
CREATE TABLE table_10015132_14 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_10015132_14 WHERE player = "Patrick O'Bryant"
Which Nation has a Second of tomas pitonak?
CREATE TABLE table_name_72 (nation VARCHAR, second VARCHAR)
SELECT nation FROM table_name_72 WHERE second = "tomas pitonak"
What is the position of the player with a 143 overall?
CREATE TABLE table_name_68 (position VARCHAR, overall VARCHAR)
SELECT position FROM table_name_68 WHERE overall = 143
Who has a nationality of Czech Republic and a position of right wing?
CREATE TABLE table_name_49 (player VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT player FROM table_name_49 WHERE position = "right wing" AND nationality = "czech republic"
William Fadjo Cravens is the only candidate who was first elected in 1939.
CREATE TABLE table_1342270_5 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(first_elected) FROM table_1342270_5 WHERE incumbent = "William Fadjo Cravens"
How many fb players were drafted?
CREATE TABLE table_10960039_6 (pick__number VARCHAR, position VARCHAR)
SELECT COUNT(pick__number) FROM table_10960039_6 WHERE position = "FB"
How many offensive line players played for a college in Alabama?
CREATE TABLE table_11677691_1 (hometown VARCHAR, college VARCHAR, position VARCHAR)
SELECT COUNT(hometown) FROM table_11677691_1 WHERE college = "Alabama" AND position = "Offensive line"
what is the maximum international mail with total freight and mail being 145044
CREATE TABLE table_141541_5 (international_mail INTEGER, total_freight_and_mail VARCHAR)
SELECT MAX(international_mail) FROM table_141541_5 WHERE total_freight_and_mail = 145044
What Canadian Championship has Ashtone Morgan Category:Articles with hcards as the name?
CREATE TABLE table_name_45 (canadian_championship VARCHAR, name VARCHAR)
SELECT canadian_championship FROM table_name_45 WHERE name = "ashtone morgan category:articles with hcards"
What is the Away team at the game with a Score of 1 – 0 and Attendance of 1,791?
CREATE TABLE table_name_4 (away_team VARCHAR, score VARCHAR, attendance VARCHAR)
SELECT away_team FROM table_name_4 WHERE score = "1 – 0" AND attendance = "1,791"
How many points are in the scored category for the team that has 8 total points and a position that is less than 10?
CREATE TABLE table_name_38 (scored INTEGER, points VARCHAR, position VARCHAR)
SELECT SUM(scored) FROM table_name_38 WHERE points = 8 AND position < 10
What is the lowest grid with time of +0.499,when laps are larger than 21?
CREATE TABLE table_name_33 (grid INTEGER, time VARCHAR, laps VARCHAR)
SELECT MIN(grid) FROM table_name_33 WHERE time = "+0.499" AND laps > 21
What company was the constructor when Nick Heidfeld was the driver/
CREATE TABLE table_name_50 (constructor VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_50 WHERE driver = "nick heidfeld"
How many party events do we have?
CREATE TABLE party_events (Id VARCHAR)
SELECT COUNT(*) FROM party_events
What was the score for the opponent florida panthers?
CREATE TABLE table_27501030_3 (score VARCHAR, opponent VARCHAR)
SELECT COUNT(score) FROM table_27501030_3 WHERE opponent = "Florida Panthers"
What is the Traditional when the Pinyin is hédōng qū?
CREATE TABLE table_name_27 (traditional VARCHAR, pinyin VARCHAR)
SELECT traditional FROM table_name_27 WHERE pinyin = "hédōng qū"
What is the date of the match for the lineal super lightweight (140)?
CREATE TABLE table_12262182_2 (date VARCHAR, titles VARCHAR)
SELECT date FROM table_12262182_2 WHERE titles = "Lineal Super lightweight (140)"
What is the number for D. Shulman if C. Abate has 728 (43%)
CREATE TABLE table_name_9 (d_shulman VARCHAR, c_abate VARCHAR)
SELECT d_shulman FROM table_name_9 WHERE c_abate = "728 (43%)"
What is the Location of the Event with a Time of 2:22.32?
CREATE TABLE table_name_93 (location VARCHAR, time VARCHAR)
SELECT location FROM table_name_93 WHERE time = "2:22.32"
What was bruce baldwin's pick #?
CREATE TABLE table_2508633_5 (pick__number VARCHAR, player VARCHAR)
SELECT pick__number FROM table_2508633_5 WHERE player = "Bruce Baldwin"
For a team with a goals against less than 58, a position of 10, and a points 2 more than 53, what is the average lost?
CREATE TABLE table_name_37 (lost INTEGER, points_2 VARCHAR, goals_against VARCHAR, position VARCHAR)
SELECT AVG(lost) FROM table_name_37 WHERE goals_against < 58 AND position = 10 AND points_2 > 53
When was the average year that the number of floors was greater than 75?
CREATE TABLE table_name_78 (year INTEGER, floors INTEGER)
SELECT AVG(year) FROM table_name_78 WHERE floors > 75
How many points did the Orangemen score in game 1?
CREATE TABLE table_23346983_1 (orangemen_points INTEGER, game VARCHAR)
SELECT MAX(orangemen_points) FROM table_23346983_1 WHERE game = 1
which player played on Team Hamilton?
CREATE TABLE table_name_33 (player VARCHAR, cfl_team VARCHAR)
SELECT player FROM table_name_33 WHERE cfl_team = "hamilton"
What 2009 has grand slam tournaments of 2008?
CREATE TABLE table_name_43 (Id VARCHAR)
SELECT 2009 FROM table_name_43 WHERE 2008 = "grand slam tournaments"
Name the sum against for byes less than 0
CREATE TABLE table_name_92 (against INTEGER, byes INTEGER)
SELECT SUM(against) FROM table_name_92 WHERE byes < 0
What was her Giant Slalom score when her Overall was greater than 3 and her Super G score was 12?
CREATE TABLE table_name_28 (Giant VARCHAR, overall VARCHAR, super_g VARCHAR)
SELECT Giant AS slalom FROM table_name_28 WHERE overall > 3 AND super_g = 12
What's the latest episode in a season where the U.S. viewers totaled 14.37 million?
CREATE TABLE table_10842344_1 (no_in_season INTEGER, us_viewers__millions_ VARCHAR)
SELECT MAX(no_in_season) FROM table_10842344_1 WHERE us_viewers__millions_ = "14.37"
How many attended the game that was a Loss of k. gross (1-1)?
CREATE TABLE table_name_68 (attendance INTEGER, loss VARCHAR)
SELECT MAX(attendance) FROM table_name_68 WHERE loss = "k. gross (1-1)"
How many days had both mean humidity above 50 and mean visibility above 8?
CREATE TABLE weather (mean_humidity VARCHAR, mean_visibility_miles VARCHAR)
SELECT COUNT(*) FROM weather WHERE mean_humidity > 50 AND mean_visibility_miles > 8
what was the away team with st kilda as the away team?
CREATE TABLE table_name_15 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_15 WHERE away_team = "st kilda"
Name the total number of serial number for 24 wd no
CREATE TABLE table_20236726_2 (serial_no VARCHAR, wd_no VARCHAR)
SELECT COUNT(serial_no) FROM table_20236726_2 WHERE wd_no = 24
Name the week number for the beatles
CREATE TABLE table_19508635_1 (week__number VARCHAR, theme VARCHAR)
SELECT week__number FROM table_19508635_1 WHERE theme = "The Beatles"
Which country in the 2008 summer olympics is vadim devyatovskiy from?
CREATE TABLE table_name_16 (country VARCHAR, olympics VARCHAR, name VARCHAR)
SELECT country FROM table_name_16 WHERE olympics = "2008 summer olympics" AND name = "vadim devyatovskiy"
What record has points greater than 39, with 38 as the game?
CREATE TABLE table_name_1 (record VARCHAR, points VARCHAR, game VARCHAR)
SELECT record FROM table_name_1 WHERE points > 39 AND game = 38
How many pilots are there?
CREATE TABLE pilot (Id VARCHAR)
SELECT COUNT(*) FROM pilot
What was the rank of the team with a run 2 of 1:20.8 and a run 4 of 1:23.0?
CREATE TABLE table_name_71 (rank VARCHAR, run_2 VARCHAR, run_4 VARCHAR)
SELECT rank FROM table_name_71 WHERE run_2 = "1:20.8" AND run_4 = "1:23.0"
Who is the winner of the H.E.B. Texas open?
CREATE TABLE table_name_76 (winner VARCHAR, tournament VARCHAR)
SELECT winner FROM table_name_76 WHERE tournament = "h.e.b. texas open"
Which Track(s) is on 18 november 1985?
CREATE TABLE table_name_86 (track_s_ VARCHAR, date VARCHAR)
SELECT track_s_ FROM table_name_86 WHERE date = "18 november 1985"
What is the content of the Television service of Vesti?
CREATE TABLE table_name_58 (content VARCHAR, television_service VARCHAR)
SELECT content FROM table_name_58 WHERE television_service = "vesti"
Which Average has Yards larger than 167, and a Team of at tb, and a Week larger than 7?
CREATE TABLE table_name_98 (average INTEGER, week VARCHAR, yards VARCHAR, team VARCHAR)
SELECT MIN(average) FROM table_name_98 WHERE yards > 167 AND team = "at tb" AND week > 7
What is the Opponent of the game in Week 3?
CREATE TABLE table_name_21 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_21 WHERE week = 3
What was the result of the home game against Derby County?
CREATE TABLE table_name_71 (win_draw_lose VARCHAR, venue VARCHAR, team VARCHAR)
SELECT win_draw_lose FROM table_name_71 WHERE venue = "home" AND team = "derby county"
What are the age and hometown of teachers?
CREATE TABLE teacher (Age VARCHAR, Hometown VARCHAR)
SELECT Age, Hometown FROM teacher
What's the date the score was 379?
CREATE TABLE table_name_5 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_5 WHERE score = "379"