answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT cash_fare FROM table_20803241_1 WHERE type_of_fare = "Mega Pass* (Senior/Disabled)"
When mega pass* (senior/disabled) is the type of fare what is the cash fare?
CREATE TABLE table_20803241_1 (cash_fare VARCHAR, type_of_fare VARCHAR)
SELECT stadium FROM table_name_11 WHERE date = "november 20"
Which stadium hosted the November 20 game?
CREATE TABLE table_name_11 (stadium VARCHAR, date VARCHAR)
SELECT location FROM table_name_36 WHERE year > 1974 AND date = "september 19"
what is the location when the year is after 1974 and the date is september 19?
CREATE TABLE table_name_36 (location VARCHAR, year VARCHAR, date VARCHAR)
SELECT MAX(losses) FROM table_name_23 WHERE club = "cd toledo" AND points > 56
What is the top losses that with Club of cd toledo and Points more than 56?
CREATE TABLE table_name_23 (losses INTEGER, club VARCHAR, points VARCHAR)
SELECT record FROM table_name_57 WHERE date = "january 29"
Can you tell me the Record that has the Date of january 29?
CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR)
SELECT home FROM table_name_26 WHERE date = "october 13"
Which team was home on October 13?
CREATE TABLE table_name_26 (home VARCHAR, date VARCHAR)
SELECT AVG(played) FROM table_name_83 WHERE years = "1905"
How many games did they play in 1905?
CREATE TABLE table_name_83 (played INTEGER, years VARCHAR)
SELECT week_3 FROM table_name_99 WHERE team = "mark/jennifer"
Name the week 3 for team of mark/jennifer
CREATE TABLE table_name_99 (week_3 VARCHAR, team VARCHAR)
SELECT MIN(bodyweight) FROM table_name_84 WHERE snatch < 55
What lowest Bodyweight has a Snatch smaller than 55?
CREATE TABLE table_name_84 (bodyweight INTEGER, snatch INTEGER)
SELECT DISTINCT T1.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.market_share > 15
What distinct accelerator names are compatible with the browswers that have market share higher than 15?
CREATE TABLE web_client_accelerator (name VARCHAR, id VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE browser (id VARCHAR, market_share INTEGER)
SELECT streak FROM table_name_35 WHERE game = 3
Which Streak has a Game of 3?
CREATE TABLE table_name_35 (streak VARCHAR, game VARCHAR)
SELECT owner FROM table_name_53 WHERE horse_name = "icabad crane"
Who is the owner of Icabad Crane?
CREATE TABLE table_name_53 (owner VARCHAR, horse_name VARCHAR)
SELECT home FROM table_name_52 WHERE geust = "fc st. gallen (asl)"
What is the home of fc st. gallen (asl) geust?
CREATE TABLE table_name_52 (home VARCHAR, geust VARCHAR)
SELECT time FROM table_name_72 WHERE team = "kawasaki zx10 1000cc"
What time did team kawasaki zx10 1000cc have?
CREATE TABLE table_name_72 (time VARCHAR, team VARCHAR)
SELECT height_of_bridge_structure FROM table_name_8 WHERE opened < 2011 AND name = "anqing bridge"
How tall is the Anqing Bridge which opened prior to 2011?
CREATE TABLE table_name_8 (height_of_bridge_structure VARCHAR, opened VARCHAR, name VARCHAR)
SELECT event_type FROM table_name_57 WHERE body = "cmas" AND year = "1980" AND sport = "underwater hockey"
What event type had BODY CMAS in 1980 and underwater hockey?
CREATE TABLE table_name_57 (event_type VARCHAR, sport VARCHAR, body VARCHAR, year VARCHAR)
SELECT MIN(mccain_number) FROM table_20453681_1 WHERE obama_percentage = "35.7%" AND others_percentage = "1.9%"
What's the number of McCain votes in the county where Obama got 35.7% and others got 1.9% of the votes?
CREATE TABLE table_20453681_1 (mccain_number INTEGER, obama_percentage VARCHAR, others_percentage VARCHAR)
SELECT COUNT(population__2010_census_) FROM table_232458_1 WHERE pop_density__per_km²_ = "7,447.32"
If the population density is 7,447.32, what is the population total number?
CREATE TABLE table_232458_1 (population__2010_census_ VARCHAR, pop_density__per_km²_ VARCHAR)
SELECT written_by FROM table_29087004_3 WHERE united_states_original_airdate = "June 9, 2012"
Who were the writers of episode/s first aired in the US on June 9, 2012?
CREATE TABLE table_29087004_3 (written_by VARCHAR, united_states_original_airdate VARCHAR)
SELECT height FROM table_name_40 WHERE school = "franklin high school"
Which height is associated with Franklin High School?
CREATE TABLE table_name_40 (height VARCHAR, school VARCHAR)
SELECT circuit FROM table_name_35 WHERE winning_driver = "innes ireland" AND race_name = "i lombank trophy"
What circuit did Innes Ireland win at for the I lombank trophy?
CREATE TABLE table_name_35 (circuit VARCHAR, winning_driver VARCHAR, race_name VARCHAR)
SELECT team FROM table_name_24 WHERE points_for = "118"
What team has a 118 Point for?
CREATE TABLE table_name_24 (team VARCHAR, points_for VARCHAR)
SELECT COUNT(crowd) FROM table_name_42 WHERE home_team = "essendon"
What was the attendance when Essendon played as the home team?
CREATE TABLE table_name_42 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(league_cup_goals) FROM table_name_76 WHERE total_apps = "36" AND total_goals < 1
How many League Cup Goals have Total Apps of 36, and Total Goals smaller than 1?
CREATE TABLE table_name_76 (league_cup_goals VARCHAR, total_apps VARCHAR, total_goals VARCHAR)
SELECT no_in_season FROM table_19995378_1 WHERE us_viewers__millions_ = "10.11"
What is the season number of the episode seen by 10.11 million people in the US?
CREATE TABLE table_19995378_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MAX(total_number_of_students) FROM table_142950_1
What is the largest number of students?
CREATE TABLE table_142950_1 (total_number_of_students INTEGER)
SELECT directed_by FROM table_16384596_4 WHERE broadcast_order = "S02 E08"
Who directed the episode for s02 e08?
CREATE TABLE table_16384596_4 (directed_by VARCHAR, broadcast_order VARCHAR)
SELECT score FROM table_name_53 WHERE to_par = "+1"
What was the score for the To par of +1?
CREATE TABLE table_name_53 (score VARCHAR, to_par VARCHAR)
SELECT Sex FROM Student WHERE Fname = "Linda" AND Lname = "Smith"
What is the gender of the student Linda Smith?
CREATE TABLE Student (Sex VARCHAR, Fname VARCHAR, Lname VARCHAR)
SELECT position FROM table_name_16 WHERE division = "west" AND week = "february 12"
on week of february 12, in the west division, what is the position?
CREATE TABLE table_name_16 (position VARCHAR, division VARCHAR, week VARCHAR)
SELECT time_retired FROM table_name_81 WHERE constructor = "brm" AND grid = 13
What is the time/retired for brm with a grid of 13?
CREATE TABLE table_name_81 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR)
SELECT outcome FROM table_name_44 WHERE year = 2009 AND opponent_in_final = "chong wei feng"
What was the outcome from the 2009 match in the final against Chong Wei Feng?
CREATE TABLE table_name_44 (outcome VARCHAR, year VARCHAR, opponent_in_final VARCHAR)
SELECT gender FROM table_name_14 WHERE romanized_name = "kim yoon-yeong"
What gender has Romanized name and kim yoon-yeong?
CREATE TABLE table_name_14 (gender VARCHAR, romanized_name VARCHAR)
SELECT COUNT(height) FROM table_12962773_16 WHERE no = 8
How many players wore number 8?
CREATE TABLE table_12962773_16 (height VARCHAR, no VARCHAR)
SELECT round FROM table_name_54 WHERE year > 2011
Which Round has a Year later than 2011?
CREATE TABLE table_name_54 (round VARCHAR, year INTEGER)
SELECT film_name FROM table_10236830_1 WHERE director = "Michaylo Ilyenko" AND nomination = "Best Actor in a Supporting Role"
What film did michaylo ilyenko make with best actor in a supporting role?
CREATE TABLE table_10236830_1 (film_name VARCHAR, director VARCHAR, nomination VARCHAR)
SELECT venue FROM table_name_50 WHERE away_team = "st kilda"
Where did St Kilda play as the away team?
CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR)
SELECT position FROM table_12962773_2 WHERE player = "Ido Kozikaro"
What is Ido Kozikaro's position?
CREATE TABLE table_12962773_2 (position VARCHAR, player VARCHAR)
SELECT djurgården_scorers FROM table_name_87 WHERE score = "2-1"
What are the Djurgården scorers that have a Score of 2-1?
CREATE TABLE table_name_87 (djurgården_scorers VARCHAR, score VARCHAR)
SELECT 2012 FROM table_name_58 WHERE 2011 = "qf"
Name the 2012 for 2011 being qf
CREATE TABLE table_name_58 (Id VARCHAR)
SELECT rank FROM table_name_83 WHERE floors > 47
Which rank is above floor 47?
CREATE TABLE table_name_83 (rank VARCHAR, floors INTEGER)
SELECT opponent FROM table_name_57 WHERE record = "1-3"
Who is the opponent the Seattle Seahawks played when their record was 1-3?
CREATE TABLE table_name_57 (opponent VARCHAR, record VARCHAR)
SELECT all_bills_cosponsored FROM table_18852984_2 WHERE bills_originally_cosponsored = 113
How many bill cosponsored during those years where bills originally cosponsored is 113?
CREATE TABLE table_18852984_2 (all_bills_cosponsored VARCHAR, bills_originally_cosponsored VARCHAR)
SELECT original_air_date FROM table_29583441_1 WHERE directed_by = "Christian I. Nyby II"
What date did the episode that was directed by Christian i. nyby ii originally air on?
CREATE TABLE table_29583441_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT opponent FROM table_name_19 WHERE march = 31
Which opponent's march was 31?
CREATE TABLE table_name_19 (opponent VARCHAR, march VARCHAR)
SELECT MAX(gold) FROM table_name_78 WHERE silver < 0
What was the highest number of gold medals when there were 0 silver medals?
CREATE TABLE table_name_78 (gold INTEGER, silver INTEGER)
SELECT 3 AS rd_placed FROM table_19317584_2 WHERE city_and_venue = "Krško , Slovenia Matije Gubca Stadium"
Who came in 3rd place in Krško , Slovenia Matije Gubca Stadium
CREATE TABLE table_19317584_2 (city_and_venue VARCHAR)
SELECT other_account_details FROM Accounts WHERE account_name = "338"
Show other account details for account with name 338.
CREATE TABLE Accounts (other_account_details VARCHAR, account_name VARCHAR)
SELECT MAX(wins) FROM table_24330803_1 WHERE series = "Formula 3 Euro series"
What is the maximum number of wins in the formula 3 euro series?
CREATE TABLE table_24330803_1 (wins INTEGER, series VARCHAR)
SELECT opponent FROM table_name_10 WHERE record = "5-0-1"
Which opponent has a record of 5-0-1?
CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR)
SELECT incumbent FROM table_2668378_18 WHERE first_elected = "1807"
Who was the incumbent in the district that first elected someone in 1807?
CREATE TABLE table_2668378_18 (incumbent VARCHAR, first_elected VARCHAR)
SELECT MAX(overall) FROM table_name_71 WHERE college = "kansas state" AND pick > 35
When Kansas State had a pick of over 35, what's the highest Overall pick found?
CREATE TABLE table_name_71 (overall INTEGER, college VARCHAR, pick VARCHAR)
SELECT competition FROM table_name_94 WHERE club = "costa rica u-20"
What is the Competition when the Club was costa rica u-20?
CREATE TABLE table_name_94 (competition VARCHAR, club VARCHAR)
SELECT hand_guards FROM table_12834315_8 WHERE rear_sight = "A1" AND stock = "A2"
What kind of hand guards are associated with a rear sight of A1 and stock of A2?
CREATE TABLE table_12834315_8 (hand_guards VARCHAR, rear_sight VARCHAR, stock VARCHAR)
SELECT AVG(played) FROM table_name_9 WHERE against = 51 AND drawn > 1
What is the average Played when the against is 51, and the drawn is more than 1?
CREATE TABLE table_name_9 (played INTEGER, against VARCHAR, drawn VARCHAR)
SELECT date FROM table_name_62 WHERE away_team = "essendon"
If the Away team is essendon, what was the Date they played?
CREATE TABLE table_name_62 (date VARCHAR, away_team VARCHAR)
SELECT MAX(races) FROM table_21457754_2
Name the most races
CREATE TABLE table_21457754_2 (races INTEGER)
SELECT MIN(crowd) FROM table_name_57 WHERE away_team = "richmond"
What was the lowest crowd seen at a game that Richmond was the Away team in?
CREATE TABLE table_name_57 (crowd INTEGER, away_team VARCHAR)
SELECT course_description FROM Courses WHERE course_name = 'math'
How is the math course described?
CREATE TABLE Courses (course_description VARCHAR, course_name VARCHAR)
SELECT result FROM table_name_69 WHERE date = "august 30, 1968"
What was the result of the game on august 30, 1968?
CREATE TABLE table_name_69 (result VARCHAR, date VARCHAR)
SELECT year__ceremony_ FROM table_name_84 WHERE film_title_used_in_nomination = "sangrador"
What year has a nomination title of "sangrador"?
CREATE TABLE table_name_84 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT MIN(wins) FROM table_name_1 WHERE goals_for > 72
What is the low win count with more than 72 goals?
CREATE TABLE table_name_1 (wins INTEGER, goals_for INTEGER)
SELECT score FROM table_name_5 WHERE year > 2007 AND country = "england"
What is the Score, when the Year is after 2007, and when the Country is England?
CREATE TABLE table_name_5 (score VARCHAR, year VARCHAR, country VARCHAR)
SELECT home_team AS score FROM table_name_2 WHERE away_team = "geelong"
When Geelong is the Away team, what did the Home team score?
CREATE TABLE table_name_2 (home_team VARCHAR, away_team VARCHAR)
SELECT home FROM table_name_38 WHERE attendance = "n/a"
What home team has an n/a attendance?
CREATE TABLE table_name_38 (home VARCHAR, attendance VARCHAR)
SELECT Headquarters, Industry FROM company
What are the headquarters and industries of all companies?
CREATE TABLE company (Headquarters VARCHAR, Industry VARCHAR)
SELECT iata FROM table_name_80 WHERE city = "jessore"
Name the IATA for jessore
CREATE TABLE table_name_80 (iata VARCHAR, city VARCHAR)
SELECT home_team FROM table_name_29 WHERE away_team = "richmond"
Which home team played the Away team from Richmond?
CREATE TABLE table_name_29 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN(enrollment) FROM table_name_73 WHERE ihsaa_class = "a" AND mascot = "trojans"
How many people enrolled a the school with an IHSAA Class of a, and the trojans as their mascot?
CREATE TABLE table_name_73 (enrollment INTEGER, ihsaa_class VARCHAR, mascot VARCHAR)
SELECT production_code FROM table_22347090_6 WHERE us_viewers__million_ = "1.32"
What is the production code for the episode that had 1.32 million U.S. viewers?
CREATE TABLE table_22347090_6 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT position FROM table_name_85 WHERE pick < 29 AND school_club_team = "arizona"
Which Position has a Pick smaller than 29, and a School/Club Team of arizona?
CREATE TABLE table_name_85 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR)
SELECT result FROM table_name_77 WHERE road_team = "san francisco" AND game = "game 2"
Which Result has a Road Team of san francisco, and a Game of game 2?
CREATE TABLE table_name_77 (result VARCHAR, road_team VARCHAR, game VARCHAR)
SELECT natural_wood_keyboard FROM table_name_21 WHERE model = "clp380"
Which Natural Wood Keyboard has a CLP380 ?
CREATE TABLE table_name_21 (natural_wood_keyboard VARCHAR, model VARCHAR)
SELECT player FROM table_11734041_16 WHERE school_club_team_country = "Long Beach State"
What are the players that attented long beach state?
CREATE TABLE table_11734041_16 (player VARCHAR, school_club_team_country VARCHAR)
SELECT AVG(yards) FROM table_name_53 WHERE average < 4 AND long = 12 AND attempts < 29
What is the average Yards with an average of less than 4 and the long is 12 with less than 29 attempts?
CREATE TABLE table_name_53 (yards INTEGER, attempts VARCHAR, average VARCHAR, long VARCHAR)
SELECT MIN(top_10) FROM table_name_57 WHERE cuts_made > 42
Which Top-10 has a Cuts made larger than 42?
CREATE TABLE table_name_57 (top_10 INTEGER, cuts_made INTEGER)
SELECT 2011 FROM table_name_9 WHERE 2002 = "1r" AND 2009 = "a"
Name the 2011 with 2002 of 1r and 2009 of a
CREATE TABLE table_name_9 (Id VARCHAR)
SELECT crs_credit, crs_description FROM course WHERE crs_code = 'QM-261'
Find the description and credit for the course QM-261?
CREATE TABLE course (crs_credit VARCHAR, crs_description VARCHAR, crs_code VARCHAR)
SELECT indianapolis_concerts FROM table_17085724_1 WHERE brighton_cast = "Paul Baker"
Name the indianapolis concerts for paul baker
CREATE TABLE table_17085724_1 (indianapolis_concerts VARCHAR, brighton_cast VARCHAR)
SELECT score FROM table_name_52 WHERE game < 56 AND february > 18 AND opponent = "chicago black hawks"
What is the score of the game before 56 held after February 18 against the Chicago Black Hawks.
CREATE TABLE table_name_52 (score VARCHAR, opponent VARCHAR, game VARCHAR, february VARCHAR)
SELECT venue FROM table_name_69 WHERE year < 2008 AND tournament = "world race walking cup"
What Venue held the World Race Walking Cup tourney before 2008?
CREATE TABLE table_name_69 (venue VARCHAR, year VARCHAR, tournament VARCHAR)
SELECT score FROM table_27723526_10 WHERE team = "Portland"
What was the score of the game against portland?
CREATE TABLE table_27723526_10 (score VARCHAR, team VARCHAR)
SELECT score FROM table_name_91 WHERE date = "1978-12-16"
Tell me the score on 1978-12-16
CREATE TABLE table_name_91 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_8 WHERE time = "3:27"
What was the score at 3:27?
CREATE TABLE table_name_8 (score VARCHAR, time VARCHAR)
SELECT score FROM table_name_2 WHERE record = "7–10–3–1"
What was the score of the game with a record of 7–10–3–1?
CREATE TABLE table_name_2 (score VARCHAR, record VARCHAR)
SELECT nationality FROM table_name_11 WHERE player = "daniel goneau"
What is Nationality of daniel goneau?
CREATE TABLE table_name_11 (nationality VARCHAR, player VARCHAR)
SELECT velocity_angle_η_in_i_radians FROM table_15314901_1 WHERE coordinate_velocity_v_dx_dt_in_units_of_c = "(e 2 − 1)/(e 2 + 1) ≅ 0.761"
If the coordinate velocity v dx/dt in units of c is (e 2 − 1)/(e 2 + 1) ≅ 0.761, what is the velocity angle η in i-radians?
CREATE TABLE table_15314901_1 (velocity_angle_η_in_i_radians VARCHAR, coordinate_velocity_v_dx_dt_in_units_of_c VARCHAR)
SELECT crowd FROM table_name_53 WHERE home_team = "hawthorn"
What was the crowd size when the home team was Hawthorn?
CREATE TABLE table_name_53 (crowd VARCHAR, home_team VARCHAR)
SELECT MAX(top_division_titles) FROM table_name_56 WHERE club = "tammeka"
What is the largest amount of top division titles featuring the tammeka club?
CREATE TABLE table_name_56 (top_division_titles INTEGER, club VARCHAR)
SELECT attendance FROM table_name_48 WHERE game_site = "foxboro stadium"
What was the attendance for each game held at Foxboro Stadium?
CREATE TABLE table_name_48 (attendance VARCHAR, game_site VARCHAR)
SELECT opened FROM table_name_84 WHERE major_series = "nascar"
What shows for opened for the Nascar Major Series?
CREATE TABLE table_name_84 (opened VARCHAR, major_series VARCHAR)
SELECT round FROM table_name_84 WHERE loser = "barbara hawcroft"
In which round was Barbara Hawcroft the loser?
CREATE TABLE table_name_84 (round VARCHAR, loser VARCHAR)
SELECT winner FROM table_name_96 WHERE prize = "€93,000"
Who is the winner of the prize of €93,000?
CREATE TABLE table_name_96 (winner VARCHAR, prize VARCHAR)
SELECT co_presenter FROM table_14345690_15 WHERE series = "Seven (2007)"
Who is the co-presenter of the series Seven (2007)?
CREATE TABLE table_14345690_15 (co_presenter VARCHAR, series VARCHAR)
SELECT COUNT(week) FROM table_name_15 WHERE opponent = "at cleveland browns"
What is the total number of Week, when Opponent is At Cleveland Browns?
CREATE TABLE table_name_15 (week VARCHAR, opponent VARCHAR)
SELECT COUNT(height__cm_) FROM table_18626383_2 WHERE contestant = "Valora Roucek"
When valora roucek is the contestant how many heights in centimeters are there?
CREATE TABLE table_18626383_2 (height__cm_ VARCHAR, contestant VARCHAR)
SELECT opponent FROM table_name_89 WHERE attendance > 59 OFFSET 000
Who is the opponent of the match with an attendance larger than 59,000?
CREATE TABLE table_name_89 (opponent VARCHAR, attendance INTEGER)
SELECT MIN(age) FROM table_1859855_2 WHERE hometown = "Columbia, South Carolina"
When columbia, south carolina is the hometown what is the lowest age?
CREATE TABLE table_1859855_2 (age INTEGER, hometown VARCHAR)
SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10
What are the ids and names of the battles that led to more than 10 people killed in total.
CREATE TABLE death (caused_by_ship_id VARCHAR, killed INTEGER); CREATE TABLE battle (id VARCHAR, name VARCHAR); CREATE TABLE ship (lost_in_battle VARCHAR, id VARCHAR)
SELECT attendance FROM table_name_64 WHERE date = "november 4, 1973"
What was November 4, 1973 attendance?
CREATE TABLE table_name_64 (attendance VARCHAR, date VARCHAR)