question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the score of the game with a 3-0 record?
CREATE TABLE table_name_67 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_67 WHERE record = "3-0"
How many tourists did not make any visit?
CREATE TABLE Visitors (Tourist_ID VARCHAR); CREATE TABLE Visits (Tourist_ID VARCHAR)
SELECT COUNT(*) FROM Visitors WHERE NOT Tourist_ID IN (SELECT Tourist_ID FROM Visits)
Name the least attendance
CREATE TABLE table_15173650_2 (attendance INTEGER)
SELECT MIN(attendance) FROM table_15173650_2
What was the lowest number of points scored in the league cup?
CREATE TABLE table_22683369_8 (league INTEGER)
SELECT MIN(league) AS Cup FROM table_22683369_8
Name the least clock rate mhz when designation is rimm 4200
CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER, designation VARCHAR)
SELECT MIN(clock_rate__mhz_) FROM table_142573_1 WHERE designation = "RIMM 4200"
Who is the director when there are 2.70 million viewers?
CREATE TABLE table_29574579_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR)
SELECT directed_by FROM table_29574579_1 WHERE uk_viewers__million_ = "2.70"
Lowest against for tour match on 21 july 1990?
CREATE TABLE table_name_46 (against INTEGER, status VARCHAR, date VARCHAR)
SELECT MIN(against) FROM table_name_46 WHERE status = "tour match" AND date = "21 july 1990"
What is the division with wins of 2?
CREATE TABLE table_name_76 (division VARCHAR, wins VARCHAR)
SELECT division FROM table_name_76 WHERE wins = "2"
A major third of C has what listed for the Minor seventh?
CREATE TABLE table_name_29 (minor_seventh VARCHAR, major_third VARCHAR)
SELECT minor_seventh FROM table_name_29 WHERE major_third = "c"
On what Date is the Minnesota Vikings the Opponent?
CREATE TABLE table_name_71 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_71 WHERE opponent = "minnesota vikings"
What name has pembroke as the built by hm dockyard, and may 1825 as the laid down?
CREATE TABLE table_name_79 (name VARCHAR, built_by_hm_dockyard VARCHAR, laid_down VARCHAR)
SELECT name FROM table_name_79 WHERE built_by_hm_dockyard = "pembroke" AND laid_down = "may 1825"
What is the April 28th rank when the Final is 20, and Mar 17 is 22?
CREATE TABLE table_name_91 (april_28 VARCHAR, final VARCHAR, mar_17 VARCHAR)
SELECT april_28 FROM table_name_91 WHERE final = "20" AND mar_17 = "22"
What is the name of the episode that was written by Michael Rauch?
CREATE TABLE table_23117208_5 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_23117208_5 WHERE written_by = "Michael Rauch"
Who was the winner for the Winton Motor Raceway circuit?
CREATE TABLE table_name_51 (winner VARCHAR, circuit VARCHAR)
SELECT winner FROM table_name_51 WHERE circuit = "winton motor raceway"
What is the total number of episodes listed with a production code of 306?
CREATE TABLE table_18424435_4 (_number VARCHAR, production_code VARCHAR)
SELECT COUNT(_number) FROM table_18424435_4 WHERE production_code = 306
If the third name is Bruno Bonifacio, what is the champion?
CREATE TABLE table_25563779_4 (champion VARCHAR, third VARCHAR)
SELECT champion FROM table_25563779_4 WHERE third = "Bruno Bonifacio"
What is the ioc code when the country is listed as Singapore?
CREATE TABLE table_2879165_1 (ioc_code VARCHAR, country VARCHAR)
SELECT ioc_code FROM table_2879165_1 WHERE country = "Singapore"
How many Losses have a Name of blair kiel?
CREATE TABLE table_name_45 (losses VARCHAR, name VARCHAR)
SELECT COUNT(losses) FROM table_name_45 WHERE name = "blair kiel"
Where was the tournament played on Oct. 8, 2006?
CREATE TABLE table_name_56 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_56 WHERE date = "oct. 8, 2006"
Which Away has a Home of 1–0?
CREATE TABLE table_name_41 (away VARCHAR, home VARCHAR)
SELECT away FROM table_name_41 WHERE home = "1–0"
For all games with calgary as home, what is the average number of attendees?
CREATE TABLE table_name_1 (attendance INTEGER, home VARCHAR)
SELECT AVG(attendance) FROM table_name_1 WHERE home = "calgary"
What county is the St. Augustine bridge in?
CREATE TABLE table_name_98 (county VARCHAR, location VARCHAR)
SELECT county FROM table_name_98 WHERE location = "st. augustine"
What is the fewest draws for teams with a 0 goal difference and under 55 goals against?
CREATE TABLE table_name_45 (drawn INTEGER, goal_difference VARCHAR, goals_against VARCHAR)
SELECT MIN(drawn) FROM table_name_45 WHERE goal_difference = "0" AND goals_against < 55
Name the total number of tier 1 capital for allied irish banks
CREATE TABLE table_22368322_2 (_€_million VARCHAR, tier_1_capital VARCHAR, institution VARCHAR)
SELECT COUNT(tier_1_capital), _€_million FROM table_22368322_2 WHERE institution = "Allied Irish Banks"
What is the lowest value for Wins, when South West DFL is "Cavendish", and when Byes is less than 0?
CREATE TABLE table_name_58 (wins INTEGER, south_west_dfl VARCHAR, byes VARCHAR)
SELECT MIN(wins) FROM table_name_58 WHERE south_west_dfl = "cavendish" AND byes < 0
How many years was Jiyai Shin the champion?
CREATE TABLE table_1529260_2 (year VARCHAR, champion VARCHAR)
SELECT COUNT(year) FROM table_1529260_2 WHERE champion = "Jiyai Shin"
What production code does episode 174 of Melrose place have?
CREATE TABLE table_name_92 (production_code VARCHAR, no_in_series VARCHAR)
SELECT production_code FROM table_name_92 WHERE no_in_series = 174
Is the Washington Corrections Center for Women (WCCW) a major facility?
CREATE TABLE table_25346763_1 (Major VARCHAR, facility VARCHAR)
SELECT Major AS facility FROM table_25346763_1 WHERE facility = "Washington Corrections Center for Women (WCCW)"
Name the company for desha county
CREATE TABLE table_25794010_1 (company VARCHAR, county VARCHAR)
SELECT company FROM table_25794010_1 WHERE county = "Desha"
Name the total number of step 6 for 11 gs grade
CREATE TABLE table_2319437_1 (step_6 VARCHAR, gs_grade VARCHAR)
SELECT COUNT(step_6) FROM table_2319437_1 WHERE gs_grade = 11
What percentage of the votes did Obama get in the county where McCain got 3648 votes?
CREATE TABLE table_20539826_1 (obama_percentage VARCHAR, mccain_number VARCHAR)
SELECT obama_percentage FROM table_20539826_1 WHERE mccain_number = 3648
What is the name of the catalog issued with the title of 1958 Miles on the Sony label at a year prior to 2006?
CREATE TABLE table_name_62 (catalog VARCHAR, year VARCHAR, issued_title VARCHAR, label VARCHAR)
SELECT catalog FROM table_name_62 WHERE issued_title = "1958 miles" AND label = "sony" AND year < 2006
Who was the Democrat when the Republican was Mike Huckabee, and the sample size was less than 495?
CREATE TABLE table_name_33 (democrat VARCHAR, sample_size VARCHAR, republican VARCHAR)
SELECT democrat FROM table_name_33 WHERE sample_size < 495 AND republican = "mike huckabee"
Which Year has a Binibining Pilipinas International of alma concepcion?
CREATE TABLE table_name_54 (year VARCHAR, binibining_pilipinas_international VARCHAR)
SELECT year FROM table_name_54 WHERE binibining_pilipinas_international = "alma concepcion"
What was the original name for the song performed by Brad Kavanagh?
CREATE TABLE table_name_42 (original_name VARCHAR, singer_s_ VARCHAR)
SELECT original_name FROM table_name_42 WHERE singer_s_ = "brad kavanagh"
Which Bullet diameter has a Neck diameter of 12.17 (.479)?
CREATE TABLE table_name_32 (bullet_diameter VARCHAR, neck_diameter VARCHAR)
SELECT bullet_diameter FROM table_name_32 WHERE neck_diameter = "12.17 (.479)"
What Club has Fiba European Champion's Cup and an Italian Cup?
CREATE TABLE table_name_27 (club VARCHAR, european_cup VARCHAR, national_cup VARCHAR)
SELECT club FROM table_name_27 WHERE european_cup = "fiba european champion's cup" AND national_cup = "italian cup"
With a gain of 1,380, what is the highest Avg/G?
CREATE TABLE table_name_35 (avg_g INTEGER, gain VARCHAR)
SELECT MAX(avg_g) FROM table_name_35 WHERE gain = 1 OFFSET 380
What is the lowest positioned club with points greater than 40, 16 wins and losses less than 3?
CREATE TABLE table_name_45 (position INTEGER, loses VARCHAR, points VARCHAR, wins VARCHAR)
SELECT MIN(position) FROM table_name_45 WHERE points > 40 AND wins = 16 AND loses < 3
Find the number of students in each major.
CREATE TABLE student (major VARCHAR)
SELECT COUNT(*), major FROM student GROUP BY major
For the film titled 1997, what was the gross in Singapore?
CREATE TABLE table_name_3 (singapore_gross VARCHAR, title VARCHAR)
SELECT singapore_gross FROM table_name_3 WHERE title = "1997"
What is the number of weeks where the result was listed at bye?
CREATE TABLE table_name_12 (week VARCHAR, result VARCHAR)
SELECT COUNT(week) FROM table_name_12 WHERE result = "bye"
On what date was there a tv time of ABC 8:00pm and after week 9?
CREATE TABLE table_name_58 (date VARCHAR, week VARCHAR, tv_time VARCHAR)
SELECT date FROM table_name_58 WHERE week > 9 AND tv_time = "abc 8:00pm"
What was the score of the away team at Junction Oval?
CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_77 WHERE venue = "junction oval"
What is the highest tourism arrivals in 2011 in millions with a 3.82 tourism competitiveness in 2011 and more than 1,102 US$ per arrival in 2011 tourism receipts?
CREATE TABLE table_name_92 (tourist_arrivals__2011___millions_ INTEGER, tourism_competitiveness__2011___ttci_ VARCHAR, tourism_receipts__2011___us$_per_arrival_ VARCHAR)
SELECT MAX(tourist_arrivals__2011___millions_) FROM table_name_92 WHERE tourism_competitiveness__2011___ttci_ = "3.82" AND tourism_receipts__2011___us$_per_arrival_ > 1 OFFSET 102
What is the theme where the original artist is Noemi feat. Fiorella Mannoia?
CREATE TABLE table_25374338_1 (theme VARCHAR, original_artist VARCHAR)
SELECT theme FROM table_25374338_1 WHERE original_artist = "Noemi feat. Fiorella Mannoia"
What is the earliest pick listed in the table.
CREATE TABLE table_10812938_4 (pick__number INTEGER)
SELECT MIN(pick__number) FROM table_10812938_4
Name the years for marton and decile of 3 for turakina maori girls' college?
CREATE TABLE table_name_91 (years VARCHAR, name VARCHAR, area VARCHAR, decile VARCHAR)
SELECT years FROM table_name_91 WHERE area = "marton" AND decile = 3 AND name = "turakina maori girls' college"
Which new team has a compensation-a round, and Frank Catalanotto as a player?
CREATE TABLE table_name_27 (new_team VARCHAR, round VARCHAR, player VARCHAR)
SELECT new_team FROM table_name_27 WHERE round = "compensation-a" AND player = "frank catalanotto"
How many rounds did Ken Wharton go?
CREATE TABLE table_name_64 (rounds VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_64 WHERE driver = "ken wharton"
How many schools are in Bloomington, IN?
CREATE TABLE table_10082596_1 (founded VARCHAR, location VARCHAR)
SELECT COUNT(founded) FROM table_10082596_1 WHERE location = "Bloomington, IN"
For language Aymara Simi, what was the maximum San Javier municipality percentage?
CREATE TABLE table_19998428_3 (san_javier_municipality___percentage_ INTEGER, language VARCHAR)
SELECT MAX(san_javier_municipality___percentage_) FROM table_19998428_3 WHERE language = "Aymara simi"
what's the grsecurity with dbeingtribution being debian / ubuntu
CREATE TABLE table_1357052_6 (grsecurity VARCHAR, distribution VARCHAR)
SELECT grsecurity FROM table_1357052_6 WHERE distribution = "Debian / Ubuntu"
What is the total goals with 12 assists, and less than 291 apps?
CREATE TABLE table_name_52 (goals INTEGER, assists VARCHAR, apps VARCHAR)
SELECT SUM(goals) FROM table_name_52 WHERE assists = 12 AND apps < 291
What was the earliest year a game was played in Athens?
CREATE TABLE table_name_95 (year INTEGER, location VARCHAR)
SELECT MIN(year) FROM table_name_95 WHERE location = "athens"
What is the score for the match where the opponent in the final was james cerretani todd perry?
CREATE TABLE table_name_5 (score VARCHAR, opponents_in_the_final VARCHAR)
SELECT score FROM table_name_5 WHERE opponents_in_the_final = "james cerretani todd perry"
What is henry transfer fee at fcbarcelona.cat in fra?
CREATE TABLE table_name_41 (transfer_fee VARCHAR, name VARCHAR, source VARCHAR, country VARCHAR)
SELECT transfer_fee FROM table_name_41 WHERE source = "fcbarcelona.cat" AND country = "fra" AND name = "henry"
What is the capacity for the stadium of kadrioru stadium and a current manager of sergei ratnikov?
CREATE TABLE table_name_14 (capacity INTEGER, stadium VARCHAR, current_manager VARCHAR)
SELECT AVG(capacity) FROM table_name_14 WHERE stadium = "kadrioru stadium" AND current_manager = "sergei ratnikov"
What team was the away team when the Deportes Savio was the home team?
CREATE TABLE table_name_49 (away VARCHAR, home VARCHAR)
SELECT away FROM table_name_49 WHERE home = "deportes savio"
Where was the friendly competition that Andriy Yarmolenko won on 28 may 2012?
CREATE TABLE table_name_78 (venue VARCHAR, date VARCHAR, result VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_78 WHERE result = "won" AND competition = "friendly" AND date = "28 may 2012"
What is Run 2, when Run 1 is 2:09.09?
CREATE TABLE table_name_84 (run_2 VARCHAR, run_1 VARCHAR)
SELECT run_2 FROM table_name_84 WHERE run_1 = "2:09.09"
Which Grid has a Time of +13.999?
CREATE TABLE table_name_65 (grid INTEGER, time VARCHAR)
SELECT MIN(grid) FROM table_name_65 WHERE time = "+13.999"
Name the most year with start more than 2
CREATE TABLE table_name_59 (year INTEGER, start INTEGER)
SELECT MAX(year) FROM table_name_59 WHERE start > 2
What is the total gdp world rank when the gdp per capita was listed at $1,163?
CREATE TABLE table_2248991_2 (total_gdp_world_rank INTEGER, gdp_per_capita VARCHAR)
SELECT MIN(total_gdp_world_rank) FROM table_2248991_2 WHERE gdp_per_capita = "$1,163"
How many positions for denis patry?
CREATE TABLE table_1965650_6 (position VARCHAR, player VARCHAR)
SELECT COUNT(position) FROM table_1965650_6 WHERE player = "Denis Patry"
What is the resolution of the network Carismatv?
CREATE TABLE table_name_47 (resolution VARCHAR, network VARCHAR)
SELECT resolution FROM table_name_47 WHERE network = "carismatv"
How much Col (m) has a Prominence (m) of 2,344?
CREATE TABLE table_name_15 (col__m_ VARCHAR, prominence__m_ VARCHAR)
SELECT COUNT(col__m_) FROM table_name_15 WHERE prominence__m_ = 2 OFFSET 344
Name the sprint with mass start of 2nd
CREATE TABLE table_name_28 (sprint VARCHAR, mass_start VARCHAR)
SELECT sprint FROM table_name_28 WHERE mass_start = "2nd"
How many military or civilians were wounded in the conflict that had an unknown number of civilian and total deaths?
CREATE TABLE table_name_39 (military_and_or_civilian_wounded VARCHAR, civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR)
SELECT military_and_or_civilian_wounded FROM table_name_39 WHERE civilian_deaths = "unknown" AND total_deaths__not_including_foreigners_ = "unknown"
Where was the March 24 game played?
CREATE TABLE table_23286223_8 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_23286223_8 WHERE date = "March 24"
Which race resulted in 2nd place in the 1996 season on 20-Jan-1996?
CREATE TABLE table_name_80 (race VARCHAR, date VARCHAR, place VARCHAR, season VARCHAR)
SELECT race FROM table_name_80 WHERE place = "2nd" AND season = 1996 AND date = "20-jan-1996"
What venue had footscray play at it?
CREATE TABLE table_name_87 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_87 WHERE away_team = "footscray"
What was the average rank for team with more than 44 gold, more and 76 bronze and a higher total than 73?
CREATE TABLE table_name_26 (rank INTEGER, bronze VARCHAR, total VARCHAR, gold VARCHAR)
SELECT AVG(rank) FROM table_name_26 WHERE total > 73 AND gold > 44 AND bronze > 76
Who is the rower from Canada?
CREATE TABLE table_name_80 (rowers VARCHAR, country VARCHAR)
SELECT rowers FROM table_name_80 WHERE country = "canada"
What Country's ICAO is VOTR?
CREATE TABLE table_name_36 (country VARCHAR, icao VARCHAR)
SELECT country FROM table_name_36 WHERE icao = "votr"
Which 2012 has a 2007 of 1r?
CREATE TABLE table_name_51 (Id VARCHAR)
SELECT 2012 FROM table_name_51 WHERE 2007 = "1r"
What is the sum of wins for casey mears when the player ranked 22nd and was in teh top fives 3 times?
CREATE TABLE table_name_35 (wins INTEGER, rank VARCHAR, top_fives VARCHAR)
SELECT SUM(wins) FROM table_name_35 WHERE rank = "22nd" AND top_fives = 3
What are the years of TeBe career for the players whose league matches are exactly 163?
CREATE TABLE table_28730459_3 (tebe_career VARCHAR, league_matches VARCHAR)
SELECT tebe_career FROM table_28730459_3 WHERE league_matches = 163
What were the lowest points of game 60?
CREATE TABLE table_name_99 (points INTEGER, game VARCHAR)
SELECT MIN(points) FROM table_name_99 WHERE game = 60
What is the lowest played with a lost bigger than 10?
CREATE TABLE table_name_85 (played INTEGER, lost INTEGER)
SELECT MIN(played) FROM table_name_85 WHERE lost > 10
What is the location attendance when the team is Golden State?
CREATE TABLE table_name_32 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_name_32 WHERE team = "golden state"
Find the name and email for the users who have more than one follower.
CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, email VARCHAR, uid VARCHAR)
SELECT T1.name, T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > 1
Name the replaced by for 8 july 2009
CREATE TABLE table_22640051_3 (replaced_by VARCHAR, date_of_appointment VARCHAR)
SELECT replaced_by FROM table_22640051_3 WHERE date_of_appointment = "8 July 2009"
Name the score with record of 68-66
CREATE TABLE table_name_69 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_69 WHERE record = "68-66"
What's the most recent week for the day of November 5, 1978?
CREATE TABLE table_name_99 (week INTEGER, date VARCHAR)
SELECT MAX(week) FROM table_name_99 WHERE date = "november 5, 1978"
What was the result of the open cup when they finished 4th in the regular season?
CREATE TABLE table_12002388_1 (open_cup VARCHAR, reg_season VARCHAR)
SELECT open_cup FROM table_12002388_1 WHERE reg_season = "4th"
Name the height for the player born in 1981
CREATE TABLE table_23670057_6 (height__m_ VARCHAR, year_born VARCHAR)
SELECT height__m_ FROM table_23670057_6 WHERE year_born = 1981
Which Total has a Set 2 of 19–25?
CREATE TABLE table_name_60 (total VARCHAR, set_2 VARCHAR)
SELECT total FROM table_name_60 WHERE set_2 = "19–25"
How many maximum points were there when the left tackle was played and there were 5 extra points?
CREATE TABLE table_14342592_7 (points INTEGER, position VARCHAR, extra_points VARCHAR)
SELECT MAX(points) FROM table_14342592_7 WHERE position = "Left tackle" AND extra_points = 5
Where did the ol go to college?
CREATE TABLE table_20649850_1 (college VARCHAR, position VARCHAR)
SELECT college FROM table_20649850_1 WHERE position = "OL"
Which Frequency has a Facility ID of 13598?
CREATE TABLE table_name_33 (frequency VARCHAR, facility_id VARCHAR)
SELECT frequency FROM table_name_33 WHERE facility_id = 13598
What was Law Hiu Fung's time?
CREATE TABLE table_name_26 (time VARCHAR, athlete VARCHAR)
SELECT time FROM table_name_26 WHERE athlete = "law hiu fung"
Name the date for venue of lord's
CREATE TABLE table_name_78 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_78 WHERE venue = "lord's"
What is the weight and dimensions of an N800?
CREATE TABLE table_name_42 (weight VARCHAR, _dimensions VARCHAR, model VARCHAR)
SELECT weight, _dimensions FROM table_name_42 WHERE model = "n800"
What is the number of Justin Jeffries?
CREATE TABLE table_name_31 (number VARCHAR, name VARCHAR)
SELECT COUNT(number) FROM table_name_31 WHERE name = "justin jeffries"
Which Proto-Oceanic has a Proto-Polynesian of *lima?
CREATE TABLE table_name_48 (proto_oceanic VARCHAR, proto_polynesian VARCHAR)
SELECT proto_oceanic FROM table_name_48 WHERE proto_polynesian = "*lima"
What season number was assigned to the episode identified with the production code 401?
CREATE TABLE table_28081876_6 (season_no VARCHAR, production_code VARCHAR)
SELECT season_no FROM table_28081876_6 WHERE production_code = 401
What was the rank in the 2009 Hanoi Games?
CREATE TABLE table_name_75 (rank VARCHAR, games VARCHAR)
SELECT rank FROM table_name_75 WHERE games = "2009 hanoi"
What is the average number of points in the 2012 season, which has less than 1 wins and less than 0 podiums?
CREATE TABLE table_name_11 (points INTEGER, podiums VARCHAR, wins VARCHAR, season VARCHAR)
SELECT AVG(points) FROM table_name_11 WHERE wins < 1 AND season = "2012" AND podiums < 0
The EVA that started on 8 July 12:38 went for how long?
CREATE TABLE table_name_83 (duration VARCHAR, start_date_time VARCHAR)
SELECT duration FROM table_name_83 WHERE start_date_time = "8 july 12:38"