question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the decision when new jersey was away?
CREATE TABLE table_name_96 (decision VARCHAR, visitor VARCHAR)
SELECT decision FROM table_name_96 WHERE visitor = "new jersey"
What episode number is the episode with a segment on thinning shears?
CREATE TABLE table_15187735_20 (episode INTEGER, segment_a VARCHAR)
SELECT MIN(episode) FROM table_15187735_20 WHERE segment_a = "Thinning Shears"
Name the number of first elected for kentucky 3
CREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR)
SELECT COUNT(first_elected) FROM table_2668378_5 WHERE district = "Kentucky 3"
what's the party with district being alabama 3
CREATE TABLE table_1342292_2 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1342292_2 WHERE district = "Alabama 3"
What year was the Line of Gardermobanen completed?
CREATE TABLE table_name_20 (year_completed VARCHAR, line VARCHAR)
SELECT year_completed FROM table_name_20 WHERE line = "gardermobanen"
What is the Name of the SS11 Stage?
CREATE TABLE table_name_3 (name VARCHAR, stage VARCHAR)
SELECT name FROM table_name_3 WHERE stage = "ss11"
What is the year for the country of Morocco?
CREATE TABLE table_name_22 (year INTEGER, country VARCHAR)
SELECT MAX(year) FROM table_name_22 WHERE country = "morocco"
What is the To par of the T6 Place Player with a Score of 68-69-70=207?
CREATE TABLE table_name_77 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_77 WHERE place = "t6" AND score = 68 - 69 - 70 = 207
What was the Air Force - Navy score in the 1983 season?
CREATE TABLE table_1850339_2 (air_force___navy_score VARCHAR, season VARCHAR)
SELECT air_force___navy_score FROM table_1850339_2 WHERE season = 1983
List the name and tonnage ordered by in descending alphaetical order for the names.
CREATE TABLE ship (name VARCHAR, tonnage VARCHAR)
SELECT name, tonnage FROM ship ORDER BY name DESC
What was the score when the Washington Nationals had a record of 11-10?
CREATE TABLE table_name_90 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_90 WHERE record = "11-10"
Who won the episode in which Sean Lock was Rufus's guest?
CREATE TABLE table_19930660_2 (winner VARCHAR, rufus_guest VARCHAR)
SELECT winner FROM table_19930660_2 WHERE rufus_guest = "Sean Lock"
Which nation had 14 goals?
CREATE TABLE table_name_89 (nationality VARCHAR, goals VARCHAR)
SELECT nationality FROM table_name_89 WHERE goals = 14
Who was the runner-up in 1980 at the Pocking venue?
CREATE TABLE table_name_93 (runner_up VARCHAR, venue VARCHAR, year VARCHAR)
SELECT runner_up FROM table_name_93 WHERE venue = "pocking" AND year = "1980"
What is the sum of Magnitude on february 12, 1953?
CREATE TABLE table_name_44 (magnitude INTEGER, date VARCHAR)
SELECT SUM(magnitude) FROM table_name_44 WHERE date = "february 12, 1953"
When 1.67 is the height how many contestants are there?
CREATE TABLE table_18618707_1 (contestant VARCHAR, height VARCHAR)
SELECT COUNT(contestant) FROM table_18618707_1 WHERE height = "1.67"
What is the total population of the country that has a GDP per capita (US$) of 15,054?
CREATE TABLE table_name_15 (population VARCHAR, gdp_per_capita__us$_ VARCHAR)
SELECT population FROM table_name_15 WHERE gdp_per_capita__us$_ = "15,054"
What is Event, when Record is "3-0"?
CREATE TABLE table_name_13 (event VARCHAR, record VARCHAR)
SELECT event FROM table_name_13 WHERE record = "3-0"
What is the sum of Rank that when the Singapore Cup is 0 (1), and the Name is masrezwan masturi?
CREATE TABLE table_name_80 (rank INTEGER, singapore_cup VARCHAR, name VARCHAR)
SELECT SUM(rank) FROM table_name_80 WHERE singapore_cup = "0 (1)" AND name = "masrezwan masturi"
WHAT IS THE PLACE WITH A SCORE OF 73-65-73-71=282?
CREATE TABLE table_name_84 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_84 WHERE score = 73 - 65 - 73 - 71 = 282
What is the average Year, when Outcome is "Winner"?
CREATE TABLE table_name_98 (year INTEGER, outcome VARCHAR)
SELECT AVG(year) FROM table_name_98 WHERE outcome = "winner"
What was the lowest attendance figure at Football Park?
CREATE TABLE table_1161065_28 (lowest VARCHAR, venue VARCHAR)
SELECT lowest FROM table_1161065_28 WHERE venue = "Football Park"
Name the date for mark cavendish
CREATE TABLE table_name_10 (date VARCHAR, winner VARCHAR)
SELECT date FROM table_name_10 WHERE winner = "mark cavendish"
Name the least established
CREATE TABLE table_1641054_2 (established INTEGER)
SELECT MIN(established) FROM table_1641054_2
On what date was Richmond playing as an away team?
CREATE TABLE table_name_32 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_32 WHERE away_team = "richmond"
Show the average amount of transactions for different investors.
CREATE TABLE TRANSACTIONS (investor_id VARCHAR, amount_of_transaction INTEGER)
SELECT investor_id, AVG(amount_of_transaction) FROM TRANSACTIONS GROUP BY investor_id
What is the lowest Matches, when Against is less than 7, and when Wins is greater than 1?
CREATE TABLE table_name_74 (matches INTEGER, against VARCHAR, wins VARCHAR)
SELECT MIN(matches) FROM table_name_74 WHERE against < 7 AND wins > 1
What is the highest to par that is less than 153
CREATE TABLE table_name_54 (to_par INTEGER, total INTEGER)
SELECT MAX(to_par) FROM table_name_54 WHERE total < 153
what is the imprint when the title is owari no chronicle (ahead series)?
CREATE TABLE table_name_22 (imprint VARCHAR, title VARCHAR)
SELECT imprint FROM table_name_22 WHERE title = "owari no chronicle (ahead series)"
When the goals against were higher than 30, what was the average number of draws?
CREATE TABLE table_name_23 (draws INTEGER, goals_against INTEGER)
SELECT AVG(draws) FROM table_name_23 WHERE goals_against > 30
What rnds were there for the phoenix international raceway?
CREATE TABLE table_10707176_2 (rnd VARCHAR, circuit VARCHAR)
SELECT rnd FROM table_10707176_2 WHERE circuit = "Phoenix International Raceway"
What manufacturer made the car that won in 2004?
CREATE TABLE table_2241841_1 (manufacturer VARCHAR, year VARCHAR)
SELECT manufacturer FROM table_2241841_1 WHERE year = "2004"
How many candidates had 0 percent of the vote in 1999?
CREATE TABLE table_name_71 (candidates VARCHAR, seats_won VARCHAR, _percentage_of_vote VARCHAR, election VARCHAR)
SELECT COUNT(candidates) FROM table_name_71 WHERE _percentage_of_vote = 0 AND election = 1999 AND seats_won > 0
What was the venue where the result was 2-1?
CREATE TABLE table_name_33 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_33 WHERE result = "2-1"
What is largest series number for the episode that aired February 16, 1957?
CREATE TABLE table_25800134_1 (series__number INTEGER, airdate VARCHAR)
SELECT MAX(series__number) FROM table_25800134_1 WHERE airdate = "February 16, 1957"
When 1873-12-25 is the founding date how many organizations are there?
CREATE TABLE table_28436909_4 (organization VARCHAR, founding_date VARCHAR)
SELECT COUNT(organization) FROM table_28436909_4 WHERE founding_date = "1873-12-25"
Find the type and weight of the youngest pet.
CREATE TABLE pets (pettype VARCHAR, weight VARCHAR, pet_age VARCHAR)
SELECT pettype, weight FROM pets ORDER BY pet_age LIMIT 1
What term did an Electorate of indi have in office?
CREATE TABLE table_name_73 (term_in_office VARCHAR, electorate VARCHAR)
SELECT term_in_office FROM table_name_73 WHERE electorate = "indi"
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 MAX(round) FROM table_name_27 WHERE player = "tommy allman" AND pick < 40
How much was the cost of in-county tuition per credit hour at the Gloucester College by the fall of 2009?
CREATE TABLE table_22308881_2 (in_county_tuition_per_credit_hour__fall_2009_ VARCHAR, college VARCHAR)
SELECT in_county_tuition_per_credit_hour__fall_2009_ FROM table_22308881_2 WHERE college = "Gloucester"
What is the location where aaron grundy was the loser?
CREATE TABLE table_name_27 (location VARCHAR, loser VARCHAR)
SELECT location FROM table_name_27 WHERE loser = "aaron grundy"
Name the sepal lengh when sepal width is 2.9 and petal width 1.3
CREATE TABLE table_10477224_1 (sepal_length VARCHAR, sepal_width VARCHAR, petal_width VARCHAR)
SELECT sepal_length FROM table_10477224_1 WHERE sepal_width = "2.9" AND petal_width = "1.3"
What date was the opposing team Milwaukee?
CREATE TABLE table_17001658_7 (date VARCHAR, team VARCHAR)
SELECT date FROM table_17001658_7 WHERE team = "Milwaukee"
What is the attendance total of the game with the Lakers as the home team?
CREATE TABLE table_name_67 (attendance VARCHAR, home VARCHAR)
SELECT COUNT(attendance) FROM table_name_67 WHERE home = "lakers"
If the latitude is 77°28′n, what is the longitude?
CREATE TABLE table_name_27 (longitude VARCHAR, latitude VARCHAR)
SELECT longitude FROM table_name_27 WHERE latitude = "77°28′n"
What displacement has a model of 2000?
CREATE TABLE table_name_78 (displacement VARCHAR, model VARCHAR)
SELECT displacement FROM table_name_78 WHERE model = "2000"
Who had the high points when the score was w 112-110?
CREATE TABLE table_27902171_7 (high_points VARCHAR, score VARCHAR)
SELECT high_points FROM table_27902171_7 WHERE score = "W 112-110"
Which production won the drama desk award as well as the category of outstanding sound design?
CREATE TABLE table_name_88 (result VARCHAR, award VARCHAR, category VARCHAR)
SELECT result FROM table_name_88 WHERE award = "drama desk award" AND category = "outstanding sound design"
Which Week has an Attendance larger than 63,369?
CREATE TABLE table_name_90 (week INTEGER, attendance INTEGER)
SELECT MIN(week) FROM table_name_90 WHERE attendance > 63 OFFSET 369
What is Home Team Score, when Time is 12:00 PM, and when Ground is Waverley Park?
CREATE TABLE table_name_39 (home_team VARCHAR, time VARCHAR, ground VARCHAR)
SELECT home_team AS score FROM table_name_39 WHERE time = "12:00 pm" AND ground = "waverley park"
Can you tell me the Annual change that has the Location of manaus?
CREATE TABLE table_name_48 (annual_change VARCHAR, location VARCHAR)
SELECT annual_change FROM table_name_48 WHERE location = "manaus"
Name the average year for much ado about nothing and recipient of ray virta
CREATE TABLE table_name_50 (year INTEGER, play VARCHAR, recipient VARCHAR)
SELECT AVG(year) FROM table_name_50 WHERE play = "much ado about nothing" AND recipient = "ray virta"
Which Venue has a Date of 1 march 2006?
CREATE TABLE table_name_41 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_41 WHERE date = "1 march 2006"
Which First elected is the lowest one that has an Incumbent of william stewart?
CREATE TABLE table_name_9 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_name_9 WHERE incumbent = "william stewart"
Who was the opponent in the mallorca 2, spain tournament?
CREATE TABLE table_name_54 (opponent VARCHAR, tournament VARCHAR)
SELECT opponent FROM table_name_54 WHERE tournament = "mallorca 2, spain"
What is the Torque that has a Power of hp (kw), and a Trim of xr (2009)? Question 6
CREATE TABLE table_name_18 (torque VARCHAR, power VARCHAR, trim VARCHAR)
SELECT torque FROM table_name_18 WHERE power = "hp (kw)" AND trim = "xr (2009)"
What is Date, when Away Team is "Barnet"?
CREATE TABLE table_name_7 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_7 WHERE away_team = "barnet"
Who were the cover models in the edition that included Benicio Del Toro as the interview subject?
CREATE TABLE table_1566852_10 (cover_model VARCHAR, interview_subject VARCHAR)
SELECT cover_model FROM table_1566852_10 WHERE interview_subject = "Benicio del Toro"
What is the school with the nickname Tornadoes Lady Tornadoes?
CREATE TABLE table_name_65 (school VARCHAR, nickname_s_ VARCHAR)
SELECT school FROM table_name_65 WHERE nickname_s_ = "tornadoes lady tornadoes"
Find all the songs performed by artist with last name "Heilo"
CREATE TABLE Songs (Title VARCHAR, SongId VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, Lastname VARCHAR)
SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = "Heilo"
What was his money list rank in 2001?
CREATE TABLE table_22839669_12 (money_list_rank INTEGER, year VARCHAR)
SELECT MIN(money_list_rank) FROM table_22839669_12 WHERE year = 2001
What is the attendance total when Southend Manor is the away team and there are less than 93 ties?
CREATE TABLE table_name_12 (attendance VARCHAR, away_team VARCHAR, tie_no VARCHAR)
SELECT COUNT(attendance) FROM table_name_12 WHERE away_team = "southend manor" AND tie_no < 93
Show the average amount of transactions for different lots.
CREATE TABLE TRANSACTIONS (transaction_id VARCHAR); CREATE TABLE Transactions_Lots (lot_id VARCHAR, transaction_id VARCHAR)
SELECT T2.lot_id, AVG(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id
When Hawthorn is the away team, what is their score?
CREATE TABLE table_name_84 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_84 WHERE away_team = "hawthorn"
What is his record at ufc 67?
CREATE TABLE table_name_20 (record VARCHAR, event VARCHAR)
SELECT record FROM table_name_20 WHERE event = "ufc 67"
What was the numer of the game when the record was 4-0?
CREATE TABLE table_21034801_1 (game INTEGER, record VARCHAR)
SELECT MAX(game) FROM table_21034801_1 WHERE record = "4-0"
Who won the series when the San Francisco Giants lost?
CREATE TABLE table_name_92 (winning_team VARCHAR, losing_team VARCHAR)
SELECT winning_team FROM table_name_92 WHERE losing_team = "san francisco giants"
Which tie number had an away team of the Tranmere Rovers?
CREATE TABLE table_name_36 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_36 WHERE away_team = "tranmere rovers"
What is the average number of audience for festivals?
CREATE TABLE festival_detail (Num_of_Audience INTEGER)
SELECT AVG(Num_of_Audience) FROM festival_detail
what's the result with streak of won 6?
CREATE TABLE table_name_21 (result VARCHAR, streak VARCHAR)
SELECT result FROM table_name_21 WHERE streak = "won 6"
What division is Traktor Tashkent in 2005?
CREATE TABLE table_name_83 (division VARCHAR, team VARCHAR, season VARCHAR)
SELECT division FROM table_name_83 WHERE team = "traktor tashkent" AND season = "2005"
What is the 1993 value of the 1994 atp masters series?
CREATE TABLE table_name_59 (Id VARCHAR)
SELECT 1993 FROM table_name_59 WHERE 1994 = "atp masters series"
How many appearances by Meek Mill?
CREATE TABLE table_29160596_1 (appearances INTEGER, top_mc VARCHAR)
SELECT MAX(appearances) FROM table_29160596_1 WHERE top_mc = "Meek Mill"
What year is the result 6th in munich, west germany?
CREATE TABLE table_name_25 (year INTEGER, result VARCHAR, venue VARCHAR)
SELECT SUM(year) FROM table_name_25 WHERE result = "6th" AND venue = "munich, west germany"
what is the power when the name is 1.2 16v lpg?
CREATE TABLE table_name_13 (power VARCHAR, name VARCHAR)
SELECT power FROM table_name_13 WHERE name = "1.2 16v lpg"
which Surface has Opponents in the final of mark edmondson sherwood stewart, and a Tournament of dallas , u.s.?
CREATE TABLE table_name_74 (surface VARCHAR, opponents_in_the_final VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_74 WHERE opponents_in_the_final = "mark edmondson sherwood stewart" AND tournament = "dallas , u.s."
What was the name of the entrant with an owner named David Johnson?
CREATE TABLE table_20668268_1 (name VARCHAR, owner VARCHAR)
SELECT name FROM table_20668268_1 WHERE owner = "David Johnson"
What number episode in the series was written by David Zuckerman?
CREATE TABLE table_23242958_1 (no_in_series VARCHAR, written_by VARCHAR)
SELECT no_in_series FROM table_23242958_1 WHERE written_by = "David Zuckerman"
What is the lowest attendance that has l 42-35 as the result, with a week less than 13?
CREATE TABLE table_name_82 (attendance INTEGER, result VARCHAR, week VARCHAR)
SELECT MIN(attendance) FROM table_name_82 WHERE result = "l 42-35" AND week < 13
In what week was the first game played at the Commerzbank-Arena?
CREATE TABLE table_10392906_2 (week INTEGER, game_site VARCHAR)
SELECT MIN(week) FROM table_10392906_2 WHERE game_site = "Commerzbank-Arena"
What is the Chinese name that has a 31 average?
CREATE TABLE table_11926114_1 (chinese_title VARCHAR, average VARCHAR)
SELECT chinese_title FROM table_11926114_1 WHERE average = 31
Who was the incumbent in Virginia 3?
CREATE TABLE table_2668374_18 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_2668374_18 WHERE district = "Virginia 3"
What is the poision/klesha word for the tibetan word gti mug ma rig pa?
CREATE TABLE table_name_14 (poison_klesha VARCHAR, tibetan VARCHAR)
SELECT poison_klesha FROM table_name_14 WHERE tibetan = "gti mug ma rig pa"
What is the highest series # directed by ken whittingham?
CREATE TABLE table_27720737_1 (series__number INTEGER, directed_by VARCHAR)
SELECT MAX(series__number) FROM table_27720737_1 WHERE directed_by = "Ken Whittingham"
What was John Jones's pick#?
CREATE TABLE table_name_30 (pick INTEGER, player VARCHAR)
SELECT SUM(pick) FROM table_name_30 WHERE player = "john jones"
What is the Fri 3 June time for the rider whose Tues 31 May time was 19' 18.80 117.215mph?
CREATE TABLE table_29218221_1 (fri_3_june VARCHAR, tues_31_may VARCHAR)
SELECT fri_3_june FROM table_29218221_1 WHERE tues_31_may = "19' 18.80 117.215mph"
who is the home team when the away team is ipswich town?
CREATE TABLE table_name_34 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_34 WHERE away_team = "ipswich town"
Calvin Abueva Calvin Abueva had what statistic?
CREATE TABLE table_name_70 (statistic VARCHAR, name VARCHAR)
SELECT statistic FROM table_name_70 WHERE name = "calvin abueva calvin abueva"
When did the season premiere that had a viewer rank of #6?
CREATE TABLE table_name_12 (season VARCHAR, viewer_rank___number_ VARCHAR)
SELECT season AS premiere FROM table_name_12 WHERE viewer_rank___number_ = "#6"
Which one of the tournaments had a QF in 1996?
CREATE TABLE table_name_42 (tournament VARCHAR)
SELECT tournament FROM table_name_42 WHERE 1996 = "qf"
find the name and age of the pilot who has won the most number of times among the pilots who are younger than 30.
CREATE TABLE MATCH (winning_pilot VARCHAR); CREATE TABLE pilot (name VARCHAR, age INTEGER, pilot_id VARCHAR)
SELECT t1.name, t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot ORDER BY COUNT(*) DESC LIMIT 1
What is the total number of countries where Spanish is spoken by the largest percentage of people?
CREATE TABLE countrylanguage (Percentage INTEGER, CountryCode VARCHAR, LANGUAGE VARCHAR)
SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode
Who are the Semifinalists, when the Week is May 12?
CREATE TABLE table_name_52 (semifinalists VARCHAR, week VARCHAR)
SELECT semifinalists FROM table_name_52 WHERE week = "may 12"
What is the score of the game with 4 goals?
CREATE TABLE table_name_46 (score VARCHAR, goal VARCHAR)
SELECT score FROM table_name_46 WHERE goal = 4
Name the launched for 13 september 1934 completion
CREATE TABLE table_name_91 (launched VARCHAR, completed VARCHAR)
SELECT launched FROM table_name_91 WHERE completed = "13 september 1934"
Who conducted the poll with sample size of 2000 that shows 18% undecided?
CREATE TABLE table_20683381_2 (conductor VARCHAR, undecided VARCHAR, sample_size VARCHAR)
SELECT conductor FROM table_20683381_2 WHERE undecided = "18%" AND sample_size = 2000
Which Points have a Record of 21–36–9, and an Attendance larger than 14,768?
CREATE TABLE table_name_9 (points INTEGER, record VARCHAR, attendance VARCHAR)
SELECT SUM(points) FROM table_name_9 WHERE record = "21–36–9" AND attendance > 14 OFFSET 768
Name the judges for 4 public
CREATE TABLE table_26375386_22 (judges VARCHAR, public VARCHAR)
SELECT judges FROM table_26375386_22 WHERE public = 4
What were the laps of aprilia with a grid of 10?
CREATE TABLE table_name_72 (laps VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT laps FROM table_name_72 WHERE manufacturer = "aprilia" AND grid = 10
What is the To par of the New Zealand Player?
CREATE TABLE table_name_79 (to_par VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_79 WHERE country = "new zealand"