question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
what's the date with attendance being 40657
CREATE TABLE table_14951643_1 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_14951643_1 WHERE attendance = 40657
What is the away team for the tie no. 29?
CREATE TABLE table_name_81 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_81 WHERE tie_no = "29"
Who won an award of £3,000 on 4/9/02?
CREATE TABLE table_name_37 (recipient VARCHAR, date VARCHAR, award VARCHAR)
SELECT recipient FROM table_name_37 WHERE date = "4/9/02" AND award = "£3,000"
What's the lowest Losses recorded wiht a Wins of 1, Team of Dallas Stars, and a Win % that's smaller than 0.25?
CREATE TABLE table_name_60 (losses INTEGER, win__percentage VARCHAR, wins VARCHAR, team VARCHAR)
SELECT MIN(losses) FROM table_name_60 WHERE wins = 1 AND team = "dallas stars" AND win__percentage < 0.25
Where is the club that was founded in 1946 located that has an unknown coach?
CREATE TABLE table_name_45 (location VARCHAR, coach VARCHAR, founded VARCHAR)
SELECT location FROM table_name_45 WHERE coach = "unknown" AND founded = 1946
How many nominees had a net voice of 15.17%
CREATE TABLE table_15162479_8 (nominee VARCHAR, net_vote VARCHAR)
SELECT COUNT(nominee) FROM table_15162479_8 WHERE net_vote = "15.17%"
what's the result with record being 0–1
CREATE TABLE table_14984126_1 (result VARCHAR, record VARCHAR)
SELECT result FROM table_14984126_1 WHERE record = "0–1"
What is the record of team utah?
CREATE TABLE table_name_61 (record VARCHAR, team VARCHAR)
SELECT record FROM table_name_61 WHERE team = "utah"
what's the year with change being +8.0%
CREATE TABLE table_141541_5 (year VARCHAR, change VARCHAR)
SELECT year FROM table_141541_5 WHERE change = "+8.0%"
What is the average lane of the athlete from cuba who has a time greater than 22.57 and react less than 0.245?
CREATE TABLE table_name_8 (lane INTEGER, country VARCHAR, time VARCHAR, react VARCHAR)
SELECT AVG(lane) FROM table_name_8 WHERE time > 22.57 AND react < 0.245 AND country = "cuba"
What is the average time span of contact channels in the database?
CREATE TABLE customer_contact_channels (active_to_date VARCHAR, active_from_date VARCHAR)
SELECT AVG(active_to_date - active_from_date) FROM customer_contact_channels
How many wins occurred for 6th rank?
CREATE TABLE table_name_31 (wins VARCHAR, rank VARCHAR)
SELECT COUNT(wins) FROM table_name_31 WHERE rank = "6th"
What date did the episode that was written by Fintan Ryan originally air?
CREATE TABLE table_27218002_2 (originalairdate VARCHAR, written_by VARCHAR)
SELECT originalairdate FROM table_27218002_2 WHERE written_by = "Fintan Ryan"
What is the largest amount of sunlight hours for the City of Pontevedra?
CREATE TABLE table_name_23 (sunlight_hours INTEGER, city_town VARCHAR)
SELECT MAX(sunlight_hours) FROM table_name_23 WHERE city_town = "pontevedra"
What's the total with silver being less than 0, less than 1 gold, and 3 bronze?
CREATE TABLE table_name_25 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT SUM(total) FROM table_name_25 WHERE bronze = 3 AND gold < 1 AND silver < 0
What is every value for cores if TDP is 17 W?
CREATE TABLE table_2467150_2 (cores VARCHAR, tdp VARCHAR)
SELECT cores FROM table_2467150_2 WHERE tdp = "17 W"
What team plays at home at Windy Hill?
CREATE TABLE table_name_28 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_28 WHERE venue = "windy hill"
What game number was played on March 4?
CREATE TABLE table_name_67 (game__number INTEGER, date VARCHAR)
SELECT AVG(game__number) FROM table_name_67 WHERE date = "march 4"
Show the names of authors from college "Florida" or "Temple"
CREATE TABLE submission (Author VARCHAR, College VARCHAR)
SELECT Author FROM submission WHERE College = "Florida" OR College = "Temple"
Who won Division West when Division North was won by Alumina?
CREATE TABLE table_name_69 (division_west VARCHAR, division_north VARCHAR)
SELECT division_west FROM table_name_69 WHERE division_north = "alumina"
What is the average number of ties when goals against is less than 56 for Ottawa Hockey Club and the goals for is more than 47?
CREATE TABLE table_name_41 (ties INTEGER, goals_for VARCHAR, goals_against VARCHAR, team VARCHAR)
SELECT AVG(ties) FROM table_name_41 WHERE goals_against < 56 AND team = "ottawa hockey club" AND goals_for > 47
What is the comment on the issue dated 14 March 1987?
CREATE TABLE table_18305523_2 (comments VARCHAR, cover_date VARCHAR)
SELECT comments FROM table_18305523_2 WHERE cover_date = "14 March 1987"
In Ca/Nv, what are all of the regional page #s?
CREATE TABLE table_287659_2 (regional_page__number VARCHAR, state_name VARCHAR)
SELECT regional_page__number FROM table_287659_2 WHERE state_name = "CA/NV"
What is the height of the player born on June 24, 1964, with a weight over 84 kg?
CREATE TABLE table_name_21 (height__cm_ INTEGER, weight__kg_ VARCHAR, birthdate VARCHAR)
SELECT AVG(height__cm_) FROM table_name_21 WHERE weight__kg_ > 84 AND birthdate = "june 24, 1964"
Which home team is on April 21?
CREATE TABLE table_name_64 (home_team VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_64 WHERE date = "april 21"
What is the method of the match where there was a loss to Carlos Newton in round 1?
CREATE TABLE table_name_61 (method VARCHAR, opponent VARCHAR, round VARCHAR, res VARCHAR)
SELECT method FROM table_name_61 WHERE round = "1" AND res = "loss" AND opponent = "carlos newton"
Who was Louise when Tracy Venner was Dainty June?
CREATE TABLE table_name_83 (louise VARCHAR, dainty_june VARCHAR)
SELECT louise FROM table_name_83 WHERE dainty_june = "tracy venner"
For the event with index f9, what's the talent segment?
CREATE TABLE table_name_49 (talent_segment VARCHAR, index VARCHAR)
SELECT talent_segment FROM table_name_49 WHERE index = "f9"
What is the total population in 2010 for the township located in Mountrail which has land less than 34.424 sq miles and a GEO ID less than 3806159940?
CREATE TABLE table_name_17 (pop__2010_ INTEGER, geo_id VARCHAR, land___sqmi__ VARCHAR, county VARCHAR)
SELECT SUM(pop__2010_) FROM table_name_17 WHERE land___sqmi__ < 34.424 AND county = "mountrail" AND geo_id < 3806159940
Opponent of at san francisco 49ers had what lowest week?
CREATE TABLE table_name_43 (week INTEGER, opponent VARCHAR)
SELECT MIN(week) FROM table_name_43 WHERE opponent = "at san francisco 49ers"
In how many countries was the total freshwater withdrawal (km 3 /yr) 169.39?
CREATE TABLE table_15909409_2 (country VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR)
SELECT COUNT(country) FROM table_15909409_2 WHERE total_freshwater_withdrawal__km_3__yr_ = "169.39"
WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALLER THAN 331?
CREATE TABLE table_name_74 (ast_avg INTEGER, total_assists VARCHAR, games VARCHAR, rank VARCHAR)
SELECT AVG(ast_avg) FROM table_name_74 WHERE games > 101 AND rank = 5 AND total_assists < 331
What is the date of the Sydney, Australia tournament with a hard surface?
CREATE TABLE table_name_50 (date VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_50 WHERE surface = "hard" AND tournament = "sydney, australia"
Name the Date which has Opponents in the final of patrick mcenroe tim wilkison?
CREATE TABLE table_name_12 (date VARCHAR, opponents_in_the_final VARCHAR)
SELECT date FROM table_name_12 WHERE opponents_in_the_final = "patrick mcenroe tim wilkison"
What venue is on the date of 8/6/03
CREATE TABLE table_name_5 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_5 WHERE date = "8/6/03"
Which poll source has a lead of 17?
CREATE TABLE table_name_87 (poll_source VARCHAR, lead_margin VARCHAR)
SELECT poll_source FROM table_name_87 WHERE lead_margin = 17
Name the least touchdowns for 11 points
CREATE TABLE table_14342592_8 (touchdowns INTEGER, points VARCHAR)
SELECT MIN(touchdowns) FROM table_14342592_8 WHERE points = 11
How many pages does the edition with a volume # smaller than 8 and an ISBM of 1-40122-892-5 have?
CREATE TABLE table_name_30 (pages INTEGER, vol__number VARCHAR, isbn VARCHAR)
SELECT SUM(pages) FROM table_name_30 WHERE vol__number < 8 AND isbn = "1-40122-892-5"
Which is the Outcome on 13 november 2006?
CREATE TABLE table_name_44 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_44 WHERE date = "13 november 2006"
What is the PRR class for wheel arrangement c-c and total less than 15?
CREATE TABLE table_name_80 (prr_class VARCHAR, wheel_arrangement VARCHAR, total_produced VARCHAR)
SELECT prr_class FROM table_name_80 WHERE wheel_arrangement = "c-c" AND total_produced < 15
What number did Moño Negro peak at before 1996?
CREATE TABLE table_name_81 (peak INTEGER, track VARCHAR, year VARCHAR)
SELECT MAX(peak) FROM table_name_81 WHERE track = "moño negro" AND year < 1996
when did the institution at chapel hill, North carolina join acc?
CREATE TABLE table_28744929_1 (joined_acc VARCHAR, location VARCHAR)
SELECT joined_acc FROM table_28744929_1 WHERE location = "Chapel Hill, North Carolina"
What is the 2002 result where 2011 and 2000 are 1R?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT 2002 FROM table_name_22 WHERE 2011 = "1r" AND 2000 = "1r"
Which Thumb stick has a Wrist pad of no, and a Supplier of sharkoon?
CREATE TABLE table_name_76 (thumb_stick VARCHAR, wrist_pad VARCHAR, supplier VARCHAR)
SELECT thumb_stick FROM table_name_76 WHERE wrist_pad = "no" AND supplier = "sharkoon"
I want to know the opponent that ha a week of 3
CREATE TABLE table_name_61 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_61 WHERE week = "3"
What's the average annual interchange for a rank over 26 in liverpool with an annual entry/exit less than 14.209 and more than 10 platforms?
CREATE TABLE table_name_28 (annual_interchanges__millions__2011_12 INTEGER, number_of_platforms VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR, rank VARCHAR, location VARCHAR)
SELECT AVG(annual_interchanges__millions__2011_12) FROM table_name_28 WHERE rank > 26 AND location = "liverpool" AND annual_entry_exit__millions__2011_12 < 14.209 AND number_of_platforms > 10
Who took office under the government of Matthew E. Welsh?
CREATE TABLE table_name_8 (took_office VARCHAR, governor VARCHAR)
SELECT took_office FROM table_name_8 WHERE governor = "matthew e. welsh"
What is the score in the final of the tournament with a hard surface?
CREATE TABLE table_name_8 (score_in_the_final VARCHAR, surface VARCHAR)
SELECT score_in_the_final FROM table_name_8 WHERE surface = "hard"
What is the average bronze medals of Uganda's swimmers when they earned over 2 medals?
CREATE TABLE table_name_29 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT AVG(bronze) FROM table_name_29 WHERE nation = "uganda" AND total > 2
What was the match points score for the match won by Connacht?
CREATE TABLE table_28068063_2 (match_points VARCHAR, winners VARCHAR)
SELECT match_points FROM table_28068063_2 WHERE winners = "Connacht"
Name the number of number in series for production code of 06-04-621
CREATE TABLE table_1876825_7 (no_in_series VARCHAR, production_code VARCHAR)
SELECT COUNT(no_in_series) FROM table_1876825_7 WHERE production_code = "06-04-621"
What is the away team when solon was the home team?
CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_63 WHERE home_team = "solon"
What was the finish of the Kentucky Derby?
CREATE TABLE table_name_32 (finish VARCHAR, race VARCHAR)
SELECT finish FROM table_name_32 WHERE race = "kentucky derby"
Which European election (UK) has a Share of votes of 19%?
CREATE TABLE table_name_41 (european_election__uk_ VARCHAR, share_of_votes VARCHAR)
SELECT european_election__uk_ FROM table_name_41 WHERE share_of_votes = "19%"
Name the performance nominated for a Capif Award.
CREATE TABLE table_name_60 (nominated VARCHAR, award VARCHAR)
SELECT nominated FROM table_name_60 WHERE award = "capif award"
What kind of Week 4 has a Week 2 of tiffany logan?
CREATE TABLE table_name_65 (week_4 VARCHAR, week_2 VARCHAR)
SELECT week_4 FROM table_name_65 WHERE week_2 = "tiffany logan"
Which gender makes up the majority of the staff?
CREATE TABLE staff (gender VARCHAR)
SELECT gender FROM staff GROUP BY gender ORDER BY COUNT(*) DESC LIMIT 1
What are the category of music festivals with result "Awarded"?
CREATE TABLE music_festival (Category VARCHAR, RESULT VARCHAR)
SELECT Category FROM music_festival WHERE RESULT = "Awarded"
Which home team score has an Away team of melbourne?
CREATE TABLE table_name_71 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_71 WHERE away_team = "melbourne"
Find the first names of professors who are teaching more than one class.
CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR)
SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING COUNT(*) > 1
List the company name and rank for all companies in the decreasing order of their sales.
CREATE TABLE company (company VARCHAR, rank VARCHAR, Sales_billion VARCHAR)
SELECT company, rank FROM company ORDER BY Sales_billion DESC
What is the highest number of FCWC in the Years of 1958–1965, and an ICFC smaller than 11?
CREATE TABLE table_name_38 (fcwc INTEGER, years VARCHAR, icfc VARCHAR)
SELECT MAX(fcwc) FROM table_name_38 WHERE years = "1958–1965" AND icfc < 11
Tell me the surface of 2 december 1974
CREATE TABLE table_name_58 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_58 WHERE date = "2 december 1974"
What is the type when £120,000 is the transfer fee?
CREATE TABLE table_name_49 (type VARCHAR, transfer_fee VARCHAR)
SELECT type FROM table_name_49 WHERE transfer_fee = "£120,000"
Find the name of the user who has the largest number of followers.
CREATE TABLE user_profiles (name VARCHAR, followers VARCHAR)
SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 1
What date was the Competition of 2014 fifa world cup qualification, with a Score of 1–0?
CREATE TABLE table_name_26 (date VARCHAR, competition VARCHAR, score VARCHAR)
SELECT date FROM table_name_26 WHERE competition = "2014 fifa world cup qualification" AND score = "1–0"
Which week starts on December 28, 1997?
CREATE TABLE table_name_1 (week VARCHAR, date VARCHAR)
SELECT week FROM table_name_1 WHERE date = "december 28, 1997"
What MLB draft has a School of green valley high school?
CREATE TABLE table_name_7 (mlb_draft VARCHAR, school VARCHAR)
SELECT mlb_draft FROM table_name_7 WHERE school = "green valley high school"
What is the average distance and average price for flights from Los Angeles.
CREATE TABLE Flight (distance INTEGER, price INTEGER, origin VARCHAR)
SELECT AVG(distance), AVG(price) FROM Flight WHERE origin = "Los Angeles"
What is the distance for the team time trial?
CREATE TABLE table_name_26 (distance VARCHAR, type VARCHAR)
SELECT distance FROM table_name_26 WHERE type = "team time trial"
What college did the placekicker go to?
CREATE TABLE table_name_67 (college VARCHAR, position VARCHAR)
SELECT college FROM table_name_67 WHERE position = "placekicker"
What is the 2nd leg of dinamo minsk team #2?
CREATE TABLE table_name_20 (team__number2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_20 WHERE team__number2 = "dinamo minsk"
What team does Anthony Redmond ride for?
CREATE TABLE table_name_32 (team VARCHAR, rider VARCHAR)
SELECT team FROM table_name_32 WHERE rider = "anthony redmond"
what is the average number lost when points is 14 and position is more than 1?
CREATE TABLE table_name_64 (lost INTEGER, points VARCHAR, position VARCHAR)
SELECT AVG(lost) FROM table_name_64 WHERE points = 14 AND position > 1
What date had the patent number US plant patent 12098?
CREATE TABLE table_name_97 (date VARCHAR, plant_patent_number VARCHAR)
SELECT date FROM table_name_97 WHERE plant_patent_number = "us plant patent 12098"
What is the day 3 when day 4 is fr.?
CREATE TABLE table_name_45 (day_3 VARCHAR, day_4 VARCHAR)
SELECT day_3 FROM table_name_45 WHERE day_4 = "fr."
Date of september 25, 1983 is what game site?
CREATE TABLE table_name_68 (game_site VARCHAR, date VARCHAR)
SELECT game_site FROM table_name_68 WHERE date = "september 25, 1983"
What is Score, when Opponent is "@ New York Knicks"?
CREATE TABLE table_name_9 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_9 WHERE opponent = "@ new york knicks"
Tell me the period for red rock
CREATE TABLE table_name_25 (period VARCHAR, place VARCHAR)
SELECT period FROM table_name_25 WHERE place = "red rock"
What is the lowest area km2 of the member state of the Czech Republic and has a population in millions lesss than 10.3?
CREATE TABLE table_name_61 (area_km_2 INTEGER, member_state VARCHAR, population_in_millions VARCHAR)
SELECT MIN(area_km_2) FROM table_name_61 WHERE member_state = "czech republic" AND population_in_millions < 10.3
What is Score, when Tie No is "109"?
CREATE TABLE table_name_67 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_67 WHERE tie_no = "109"
Name the total number of party for willis alston
CREATE TABLE table_2668243_18 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(party) FROM table_2668243_18 WHERE incumbent = "Willis Alston"
In what category is Carmen Salinas nominated?
CREATE TABLE table_name_81 (category VARCHAR, nominee VARCHAR)
SELECT category FROM table_name_81 WHERE nominee = "carmen salinas"
When was John Hoan Trinh Doan / St. John Hoan, who was beatified in 1909 and canonised after 1988, martyred?
CREATE TABLE table_name_64 (martyred INTEGER, canonised VARCHAR, beatified VARCHAR, name VARCHAR)
SELECT MAX(martyred) FROM table_name_64 WHERE beatified = 1909 AND name = "john hoan trinh doan / st. john hoan" AND canonised > 1988
Which date has a To par of –12?
CREATE TABLE table_name_53 (date VARCHAR, to_par VARCHAR)
SELECT date FROM table_name_53 WHERE to_par = "–12"
Which Losses have a Season larger than 1941, and a Team of hamilton wildcats, and Ties of 0?
CREATE TABLE table_name_95 (losses VARCHAR, ties VARCHAR, season VARCHAR, team VARCHAR)
SELECT losses FROM table_name_95 WHERE season > 1941 AND team = "hamilton wildcats" AND ties = 0
state the opponent on halliwell jones stadium in super league xiv
CREATE TABLE table_21256068_3 (opponent VARCHAR, venue VARCHAR, competition VARCHAR)
SELECT opponent FROM table_21256068_3 WHERE venue = "Halliwell Jones Stadium" AND competition = "Super League XIV"
During what period was the career average 44.10?
CREATE TABLE table_21100348_10 (period VARCHAR, average VARCHAR)
SELECT period FROM table_21100348_10 WHERE average = "44.10"
What is the manner of departure for the team racing santander?
CREATE TABLE table_24231638_3 (manner_of_departure VARCHAR, team VARCHAR)
SELECT manner_of_departure FROM table_24231638_3 WHERE team = "Racing Santander"
What date was the game at Williams-Brice stadium • Columbia, SC?
CREATE TABLE table_name_75 (date VARCHAR, site VARCHAR)
SELECT date FROM table_name_75 WHERE site = "williams-brice stadium • columbia, sc"
Which Built by has a Name of northern jaeger?
CREATE TABLE table_name_44 (built_by VARCHAR, name VARCHAR)
SELECT built_by FROM table_name_44 WHERE name = "northern jaeger"
What is Award, when Category is "Best Actor", and when Year is less than 1988?
CREATE TABLE table_name_35 (award VARCHAR, category VARCHAR, year VARCHAR)
SELECT award FROM table_name_35 WHERE category = "best actor" AND year < 1988
how many people come to visit when the 1654 exhibitions
CREATE TABLE table_27685921_1 (visitors__total_ VARCHAR, exhibitors__total_ VARCHAR)
SELECT COUNT(visitors__total_) FROM table_27685921_1 WHERE exhibitors__total_ = 1654
What are the vocal types used in song "Badlands"?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"
What episode number had 14.41 million viewers?
CREATE TABLE table_27553627_2 (episodes INTEGER, viewers__in_millions_ VARCHAR)
SELECT MAX(episodes) FROM table_27553627_2 WHERE viewers__in_millions_ = "14.41"
Which Event has a Competition of chicago marathon, and a Year larger than 2004?
CREATE TABLE table_name_79 (event VARCHAR, competition VARCHAR, year VARCHAR)
SELECT event FROM table_name_79 WHERE competition = "chicago marathon" AND year > 2004
What is the lowest female number of the hiroo 1-chōme district, which has more than 1,666 households?
CREATE TABLE table_name_66 (female INTEGER, district VARCHAR, number_of_households VARCHAR)
SELECT MIN(female) FROM table_name_66 WHERE district = "hiroo 1-chōme" AND number_of_households > 1 OFFSET 666
What is the score of the match with a 3-2 result?
CREATE TABLE table_name_61 (score VARCHAR, result VARCHAR)
SELECT score FROM table_name_61 WHERE result = "3-2"
What was the record of the game when Lebron James (4) had the high assists?
CREATE TABLE table_name_43 (record VARCHAR, high_assists VARCHAR)
SELECT record FROM table_name_43 WHERE high_assists = "lebron james (4)"
What is the Place when the score is less than 71, and Country is zimbabwe?
CREATE TABLE table_name_86 (place VARCHAR, score VARCHAR, country VARCHAR)
SELECT place FROM table_name_86 WHERE score < 71 AND country = "zimbabwe"