answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT home_team FROM table_name_4 WHERE away_team = "hereford united"
Who played against away team hereford united?
CREATE TABLE table_name_4 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN AS № FROM table_28195898_1 WHERE _number = 18
What is the series No when the season 4 # is 18?
CREATE TABLE table_28195898_1 (MIN VARCHAR, _number VARCHAR)
SELECT COUNT(point) FROM table_name_89 WHERE team = "happy valley" AND game < 14
How many points did Happy Valley score before game 14?
CREATE TABLE table_name_89 (point VARCHAR, team VARCHAR, game VARCHAR)
SELECT hometown FROM table_26267849_2 WHERE age_s_ = "16"
what are all the hometown where the average age is 16
CREATE TABLE table_26267849_2 (hometown VARCHAR, age_s_ VARCHAR)
SELECT circuit FROM table_name_25 WHERE round = 18
Name the circuit for round 18
CREATE TABLE table_name_25 (circuit VARCHAR, round VARCHAR)
SELECT score FROM table_1028356_3 WHERE partner = "Jim Pugh"
What is the score with partner Jim Pugh?
CREATE TABLE table_1028356_3 (score VARCHAR, partner VARCHAR)
SELECT proposed FROM table_name_56 WHERE cerclis_id = "al0001058056"
What was the Proposed date of the entry that has a CERCLIS ID of al0001058056?
CREATE TABLE table_name_56 (proposed VARCHAR, cerclis_id VARCHAR)
SELECT year FROM table_name_72 WHERE award = "tony award" AND category = "best revival of a musical"
What year was there a Tony award category of Best Revival of a Musical?
CREATE TABLE table_name_72 (year VARCHAR, award VARCHAR, category VARCHAR)
SELECT democratic_ticket FROM table_name_32 WHERE workers_ticket = "james p. cannon"
What is the name on the Democratic ticket when the Workers ticket is james p. cannon?
CREATE TABLE table_name_32 (democratic_ticket VARCHAR, workers_ticket VARCHAR)
SELECT SUM(game) FROM table_name_75 WHERE date = "june 29"
what is the game on june 29?
CREATE TABLE table_name_75 (game INTEGER, date VARCHAR)
SELECT year FROM table_name_95 WHERE laps = 200
Which year has 200 laps?
CREATE TABLE table_name_95 (year VARCHAR, laps VARCHAR)
SELECT date FROM table_17848578_1 WHERE game_site = "Arrowhead Stadium"
What is the date of the game at Arrowhead Stadium?
CREATE TABLE table_17848578_1 (date VARCHAR, game_site VARCHAR)
SELECT hppa FROM table_name_72 WHERE mips = "no" AND alpha = "no" AND ppc64 = "yes 3+"
Which hppa contains a ppc64 of yes 3+, no for mips and no for alpha?
CREATE TABLE table_name_72 (hppa VARCHAR, ppc64 VARCHAR, mips VARCHAR, alpha VARCHAR)
SELECT weeks_on_top FROM table_name_48 WHERE artist = "omc"
How many weeks on top was OMC?
CREATE TABLE table_name_48 (weeks_on_top VARCHAR, artist VARCHAR)
SELECT first_elected FROM table_1341930_24 WHERE incumbent = "John Bell Williams"
In what year was John Bell Williams first elected?
CREATE TABLE table_1341930_24 (first_elected VARCHAR, incumbent VARCHAR)
SELECT position FROM table_name_67 WHERE player = "dale craigwell"
What is the position of Dale Craigwell?
CREATE TABLE table_name_67 (position VARCHAR, player VARCHAR)
SELECT score FROM table_name_53 WHERE points = 2
what team has a score of 2
CREATE TABLE table_name_53 (score VARCHAR, points VARCHAR)
SELECT public_vote FROM table_19744915_3 WHERE couple = "Graeme & Kristina"
what is the public vote on graeme & kristina
CREATE TABLE table_19744915_3 (public_vote VARCHAR, couple VARCHAR)
SELECT 1 AS st_leg FROM table_name_25 WHERE agg = "4-3"
What is the 1st leg with a 4-3 agg.?
CREATE TABLE table_name_25 (agg VARCHAR)
SELECT stages FROM table_name_59 WHERE distance = "1,648 km"
What stage was 1,648 km achieved?
CREATE TABLE table_name_59 (stages VARCHAR, distance VARCHAR)
SELECT date FROM table_name_51 WHERE competition = "emerging nations tournament" AND result = "scotland 34-9 russia"
What date was the competition of the Emerging Nations Tournament and a result of Scotland 34-9 Russia?
CREATE TABLE table_name_51 (date VARCHAR, competition VARCHAR, result VARCHAR)
SELECT name FROM table_15700367_2 WHERE overs_bowled = "31.2"
Name the name for when overs bowled is 31.2
CREATE TABLE table_15700367_2 (name VARCHAR, overs_bowled VARCHAR)
SELECT COUNT(total) FROM table_name_50 WHERE to_par = 7
What is the total number of Total, when To Par is "7"?
CREATE TABLE table_name_50 (total VARCHAR, to_par VARCHAR)
SELECT home_team AS score FROM table_name_32 WHERE crowd > 21 OFFSET 188
What was the score when the home team had a crowd larger than 21,188?
CREATE TABLE table_name_32 (home_team VARCHAR, crowd INTEGER)
SELECT high_points FROM table_22879323_6 WHERE team = "Houston"
When we played Houston who had the most points?
CREATE TABLE table_22879323_6 (high_points VARCHAR, team VARCHAR)
SELECT AVG(lost) FROM table_name_95 WHERE goals_scored > 20 AND played < 18
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 frequency FROM table_name_78 WHERE class = "b"
Name the frequency with class of b
CREATE TABLE table_name_78 (frequency VARCHAR, class VARCHAR)
SELECT MAX(gold) FROM table_name_72 WHERE total > 13 AND silver > 9 AND bronze = 7
What is the highest amount of gold medals awarded to a team with more than 9 silver, 7 bronze and more than 13 medals total?
CREATE TABLE table_name_72 (gold INTEGER, bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT title FROM table_name_57 WHERE name = "amenemhat i"
What is the title of Amenemhat I?
CREATE TABLE table_name_57 (title VARCHAR, name VARCHAR)
SELECT name FROM table_1211545_2 WHERE heavy_vehicle__2_axles_ = "R20.50"
What is the name of the plaza where the told for heavy vehicles with 2 axles is r20.50?
CREATE TABLE table_1211545_2 (name VARCHAR, heavy_vehicle__2_axles_ VARCHAR)
SELECT opponent FROM table_name_52 WHERE venue = "mt smart stadium" AND year = 1996
Name the opponent for 1996 at the mt smart stadium venue
CREATE TABLE table_name_52 (opponent VARCHAR, venue VARCHAR, year VARCHAR)
SELECT opponent FROM table_name_98 WHERE points = 63
Which opponent has 63 points?
CREATE TABLE table_name_98 (opponent VARCHAR, points VARCHAR)
SELECT MAX(gold) FROM table_name_93 WHERE nation = "uzbekistan (uzb)"
How much gold received by nation of uzbekistan (uzb)?
CREATE TABLE table_name_93 (gold INTEGER, nation VARCHAR)
SELECT MAX(match2) FROM table_24538140_2 WHERE match4 = 0 AND total = 5
What is the highest score for match 2 where the score for match 4 is 0 and the total score is 5?
CREATE TABLE table_24538140_2 (match2 INTEGER, match4 VARCHAR, total VARCHAR)
SELECT MIN(weekly_rank) FROM table_11178271_1 WHERE air_date = "November 26, 2007"
What is the lowest weekly rank with an air date of november 26, 2007?
CREATE TABLE table_11178271_1 (weekly_rank INTEGER, air_date VARCHAR)
SELECT COUNT(longitude) FROM table_16768245_2 WHERE latitude = "9.9N"
How many longitudes have a latitude of 9.9n?
CREATE TABLE table_16768245_2 (longitude VARCHAR, latitude VARCHAR)
SELECT opponent FROM table_name_41 WHERE method = "submission (triangle choke)"
Who is the opponent of the submission (triangle choke) method of submission?
CREATE TABLE table_name_41 (opponent VARCHAR, method VARCHAR)
SELECT power_output__kw_ FROM table_name_79 WHERE total_production = "2" AND builder__family_ = "zhuzhou" AND model = "hxd1d"
What is the power output (kw) of builder zhuzhou, model hxd1d, with a total production of 2?
CREATE TABLE table_name_79 (power_output__kw_ VARCHAR, model VARCHAR, total_production VARCHAR, builder__family_ VARCHAR)
SELECT district FROM table_23214055_2 WHERE others = "18.3"
Name the district for others being 18.3
CREATE TABLE table_23214055_2 (district VARCHAR, others VARCHAR)
SELECT result FROM table_name_80 WHERE goal = 5
What result has a goal of 5?
CREATE TABLE table_name_80 (result VARCHAR, goal 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"
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 chassis FROM table_name_42 WHERE engine = "zakspeed 1500/4 1.5 l4 t"
What was the Zakspeed 1500/4 1.5 l4 t chassis?
CREATE TABLE table_name_42 (chassis VARCHAR, engine VARCHAR)
SELECT country FROM table_name_85 WHERE score = 71 - 73 - 71 = 215
What is the Country of the Player with a Score of 71-73-71=215?
CREATE TABLE table_name_85 (country VARCHAR, score VARCHAR)
SELECT SUM(total) FROM table_name_44 WHERE rank = "5" AND bronze > 3
How much Total has a Rank of 5, and a Bronze larger than 3?
CREATE TABLE table_name_44 (total INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT date FROM table_name_67 WHERE away_team = "aston villa"
What date is aston villa away?
CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_77 WHERE away_team = "melbourne"
What was the home team score at Melbourne's away match?
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
SELECT week_of FROM table_name_2 WHERE semi_finalists = "anke huber chanda rubin" AND runner_up = "meredith mcgrath larisa savchenko"
What is the Week when anke huber chanda rubin shows for Semi finalists, and the Runner-up is meredith mcgrath larisa savchenko?
CREATE TABLE table_name_2 (week_of VARCHAR, semi_finalists VARCHAR, runner_up VARCHAR)
SELECT MAX(played) FROM table_name_80 WHERE scored = 15 AND draws < 1
What's the highest Played with a Scored of 15, and Draws that's less than 1?
CREATE TABLE table_name_80 (played INTEGER, scored VARCHAR, draws VARCHAR)
SELECT m_r_romaja FROM table_name_34 WHERE capital = "cheongju"
What is the M-R Romaja for the province having a capital of Cheongju?
CREATE TABLE table_name_34 (m_r_romaja VARCHAR, capital VARCHAR)
SELECT birthdate FROM table_name_54 WHERE birthplace = "melrose, massachusetts"
On what date was the player from Melrose, Massachusetts born?
CREATE TABLE table_name_54 (birthdate VARCHAR, birthplace VARCHAR)
SELECT vinculum FROM table_name_13 WHERE parentheses = "0.(6)"
What is the value of vinculum for parentheses of 0.(6)?
CREATE TABLE table_name_13 (vinculum VARCHAR, parentheses VARCHAR)
SELECT MIN(total) FROM table_name_85 WHERE rank < 4 AND silver > 0 AND gold < 2
What is the smallest total for a rank below 4, 0 silver medals, and 2 gold medals?
CREATE TABLE table_name_85 (total INTEGER, gold VARCHAR, rank VARCHAR, silver VARCHAR)
SELECT MAX(year) FROM table_12576536_1 WHERE population__woocoo_ = 2700
Name the most year when population of woocoo is 2700
CREATE TABLE table_12576536_1 (year INTEGER, population__woocoo_ VARCHAR)
SELECT date FROM table_name_30 WHERE loss = "johnson (9-8)"
What was the date of the game that had a loss of Johnson (9-8)?
CREATE TABLE table_name_30 (date VARCHAR, loss VARCHAR)
SELECT d_43 FROM table_name_92 WHERE d_41 = "r 16"
What is the D43 associated with a D41 of r 16?
CREATE TABLE table_name_92 (d_43 VARCHAR, d_41 VARCHAR)
SELECT date FROM table_name_2 WHERE home_away_game = "away" AND week = 8
What is the date of the away game in week 8?
CREATE TABLE table_name_2 (date VARCHAR, home_away_game VARCHAR, week VARCHAR)
SELECT began_play FROM table_name_50 WHERE club = "western new york flash"
When did the Club of western new york flash begin to play?
CREATE TABLE table_name_50 (began_play VARCHAR, club VARCHAR)
SELECT method FROM table_name_30 WHERE result = "loss" AND date = "january 19, 2008"
what is the method when the result is loss on january 19, 2008?
CREATE TABLE table_name_30 (method VARCHAR, result VARCHAR, date VARCHAR)
SELECT COUNT(broadcasts__tv__1) FROM table_name_50 WHERE aired_in_japan_3 = "5 january 2003 to 30 march 2003"
What is the total number of Broadcasts (TV) 1, when Aired in Japan 3 is "5 January 2003 to 30 March 2003"?
CREATE TABLE table_name_50 (broadcasts__tv__1 VARCHAR, aired_in_japan_3 VARCHAR)
SELECT MAX(total_matches) FROM table_name_74 WHERE points__percentage = "70%"
Which Total matches is the highest one that has Points % of 70%?
CREATE TABLE table_name_74 (total_matches INTEGER, points__percentage VARCHAR)
SELECT AVG(rank_in_sp) FROM table_name_92 WHERE rank_in_fs > 2 AND final_rank > 5
What is the average SP rank for skaters with a Rank in FS larger than 2, and a Final Rank larger than 5?
CREATE TABLE table_name_92 (rank_in_sp INTEGER, rank_in_fs VARCHAR, final_rank VARCHAR)
SELECT atlantic_europe FROM table_22860_1 WHERE central_europe = "Wisconsin Stage"
What is every entry for Atlantic Europe when Central Europe is Wisconsin stage?
CREATE TABLE table_22860_1 (atlantic_europe VARCHAR, central_europe VARCHAR)
SELECT SUM(game) FROM table_name_80 WHERE record = "5–3–1" AND october < 29
Which Game has a Record of 5–3–1, and an October smaller than 29?
CREATE TABLE table_name_80 (game INTEGER, record VARCHAR, october VARCHAR)
SELECT MIN(crowd) FROM table_name_28 WHERE venue = "windy hill"
What is the lowest crowd at windy hill?
CREATE TABLE table_name_28 (crowd INTEGER, venue VARCHAR)
SELECT AVG(total) FROM table_name_70 WHERE b_score = 9.15 AND gymnast = "cheng fei ( chn )"
What is the total when the B Score was 9.15 for Cheng Fei ( chn )?
CREATE TABLE table_name_70 (total INTEGER, b_score VARCHAR, gymnast VARCHAR)
SELECT total FROM table_name_89 WHERE years = "1926–1938"
What is the Total for 1926–1938?
CREATE TABLE table_name_89 (total VARCHAR, years VARCHAR)
SELECT rank_points FROM table_name_85 WHERE event = "wc rio de janeiro" AND total = "16"
The event WC Rio De Janeiro with a total of 16 has what as rank points?
CREATE TABLE table_name_85 (rank_points VARCHAR, event VARCHAR, total VARCHAR)
SELECT MAX(strike_rate) FROM table_name_15 WHERE matches < 13 AND average < 50.25
What is the highest Strike Rate when the average is less than 50.25 with less than 13 matches played?
CREATE TABLE table_name_15 (strike_rate INTEGER, matches VARCHAR, average VARCHAR)
SELECT 2 AS nd_leg FROM table_name_84 WHERE home__2nd_leg_ = "atlético tucumán"
What was the 2nd leg score when atlético tucumán played at home?
CREATE TABLE table_name_84 (home__2nd_leg_ VARCHAR)
SELECT 1 AS st_leg FROM table_name_6 WHERE team_2 = "mufulira wanderers"
What was the 1st leg score when Mufulira Wanderers played as Team 2?
CREATE TABLE table_name_6 (team_2 VARCHAR)
SELECT MAX(comp) FROM table_name_97 WHERE rating < 52.8 AND yards < 0
What is the highest comp for ratings less than 52.8 and yards less than 0?
CREATE TABLE table_name_97 (comp INTEGER, rating VARCHAR, yards VARCHAR)
SELECT record FROM table_name_87 WHERE game > 51 AND date = "1/27/1974"
What was the record after game 51 on 1/27/1974?
CREATE TABLE table_name_87 (record VARCHAR, game VARCHAR, date VARCHAR)
SELECT AVG(goal) FROM table_name_80 WHERE result = "2–2" AND venue = "råsunda, stockholm"
What is the Goal number in Råsunda, Stockholm with a Result of 2–2?
CREATE TABLE table_name_80 (goal INTEGER, result VARCHAR, venue VARCHAR)
SELECT series_number FROM table_12995531_3 WHERE date_of_first_broadcast = "16 October 2008"
what is the series number where the date of first broadcast is 16 october 2008?
CREATE TABLE table_12995531_3 (series_number VARCHAR, date_of_first_broadcast VARCHAR)
SELECT date FROM table_name_54 WHERE week > 4 AND opponent = "new york giants"
On what date was the game where is was later than Week 4 of the season and the opponent was the New York Giants?
CREATE TABLE table_name_54 (date VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT constructor FROM table_name_28 WHERE laps > 54 AND time_retired = "+1 lap" AND grid = 20
What was the constructor when the laps were larger than 54, and the time/retired was +1 lap on a grid of 20?
CREATE TABLE table_name_28 (constructor VARCHAR, grid VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT name FROM table_name_55 WHERE decile < 10 AND roll = 297
What is the name with a Decile less than 10, and a Roll of 297?
CREATE TABLE table_name_55 (name VARCHAR, decile VARCHAR, roll VARCHAR)
SELECT title FROM table_28081876_4 WHERE production_code = 201
name the title of the episode with production code 201
CREATE TABLE table_28081876_4 (title VARCHAR, production_code VARCHAR)
SELECT date FROM table_name_52 WHERE label = "bronze" AND format = "vinyl"
What date was the bronze label in vinyl format?
CREATE TABLE table_name_52 (date VARCHAR, label VARCHAR, format VARCHAR)
SELECT winning_team FROM table_name_74 WHERE winning_driver = "teo fabi" AND pole_position = "teo fabi"
Who did Teo Fabi drive for when he won and had pole position?
CREATE TABLE table_name_74 (winning_team VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)
SELECT DISTINCT Name FROM WINE ORDER BY price
List the names of all distinct wines ordered by price.
CREATE TABLE WINE (Name VARCHAR, price VARCHAR)
SELECT music FROM table_name_35 WHERE team = "anna guzik & rafał kamiński" AND points_jury = "24 (7,5,6,6)"
What is the Music for Team anna guzik & rafał kamiński that has a Points Jury of 24 (7,5,6,6)?
CREATE TABLE table_name_35 (music VARCHAR, team VARCHAR, points_jury VARCHAR)
SELECT MIN(silver) FROM table_name_69 WHERE nation = "mexico" AND gold < 0
What is the least silver that has mexico as a nation and a gold less than 0?
CREATE TABLE table_name_69 (silver INTEGER, nation VARCHAR, gold VARCHAR)
SELECT candidates FROM table_1342149_13 WHERE incumbent = "Fred E. Busbey"
What is the candidates for fred e. busbey?
CREATE TABLE table_1342149_13 (candidates VARCHAR, incumbent VARCHAR)
SELECT SUM(races) FROM table_name_93 WHERE flaps = 0 AND podiums > 0 AND season = "2008" AND pole < 1
WHAT ARE THE RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AND POLE SMALLER THAN 1?
CREATE TABLE table_name_93 (races INTEGER, pole VARCHAR, season VARCHAR, flaps VARCHAR, podiums VARCHAR)
SELECT no_7 FROM table_name_85 WHERE region__year_ = "arizona (2010)"
What is No. 7, when Region (Year) is Arizona (2010)?
CREATE TABLE table_name_85 (no_7 VARCHAR, region__year_ VARCHAR)
SELECT MAX(week) FROM table_name_99 WHERE date = "november 5, 1978"
What's the most recent week for the day of November 5, 1978?
CREATE TABLE table_name_99 (week INTEGER, date VARCHAR)
SELECT Name FROM climber ORDER BY Points DESC
List the names of climbers in descending order of points.
CREATE TABLE climber (Name VARCHAR, Points VARCHAR)
SELECT nation FROM table_name_65 WHERE silver > 2 AND gold < 4
Which country had more than 2 silvers and less than 4 golds?
CREATE TABLE table_name_65 (nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT AVG(bronze) FROM table_name_86 WHERE gold > 0 AND silver < 0
What is the average bronze medal when gold is greater than 0, and there is less than 0 silver medals?
CREATE TABLE table_name_86 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
SELECT COUNT(position) FROM table_28059992_5 WHERE player = "Trent Bagnail"
How many positions does Trent Bagnail play?
CREATE TABLE table_28059992_5 (position VARCHAR, player VARCHAR)
SELECT MIN(first_elected) FROM table_1342379_45
What year was someone first elected?
CREATE TABLE table_1342379_45 (first_elected INTEGER)
SELECT DISTINCT artist_name FROM artist WHERE country = "Bangladesh" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7
Find the names of the artists who are from Bangladesh and have never received rating higher than 7.
CREATE TABLE artist (artist_name VARCHAR, country VARCHAR, rating INTEGER); CREATE TABLE song (artist_name VARCHAR, country VARCHAR, rating INTEGER)
SELECT player FROM table_1965650_11 WHERE college_junior_club_team = "University of Michigan (NCAA)"
Who came from the University of Michigan (NCAA) team?
CREATE TABLE table_1965650_11 (player VARCHAR, college_junior_club_team VARCHAR)
SELECT week FROM table_name_52 WHERE date = "bye"
What week did they have a bye?
CREATE TABLE table_name_52 (week VARCHAR, date VARCHAR)
SELECT MIN(series_no) FROM table_2430014_9
Name the least series number
CREATE TABLE table_2430014_9 (series_no INTEGER)
SELECT MAX(vertical) FROM table_272313_1 WHERE horizontal = 640
What was the maximum vertical measurement if the horizon measurement is 640?
CREATE TABLE table_272313_1 (vertical INTEGER, horizontal VARCHAR)
SELECT district FROM table_1341604_10 WHERE result = "New seat Democratic gain"
what's the district with result being new seat democratic gain
CREATE TABLE table_1341604_10 (district VARCHAR, result VARCHAR)
SELECT MAX(round) FROM table_name_27 WHERE player = "tommy allman" AND pick < 40
What is the highest round of Tommy Allman, who had a pick less than 40?
CREATE TABLE table_name_27 (round INTEGER, player VARCHAR, pick VARCHAR)
SELECT interview FROM table_16390001_2 WHERE average = "9.090"
What are the interview scores for contestants whose average is 9.090?
CREATE TABLE table_16390001_2 (interview VARCHAR, average VARCHAR)