answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT surface FROM table_name_88 WHERE date = "april 24, 2003"
What surface was the April 24, 2003 match played on?
CREATE TABLE table_name_88 (surface VARCHAR, date VARCHAR)
SELECT week_12_nov_19 FROM table_name_20 WHERE week_13_nov_26 = "tennessee (9-1)"
What happened in week 12 when week 13 resulted in Tennessee (9-1)?
CREATE TABLE table_name_20 (week_12_nov_19 VARCHAR, week_13_nov_26 VARCHAR)
SELECT tenure FROM table_name_95 WHERE cause_of_death = "helicopter accident" AND badge_serial_number = "16805"
What is the Tenure of the Officer who died in a helicopter accident with Badge/Serial Number 16805?
CREATE TABLE table_name_95 (tenure VARCHAR, cause_of_death VARCHAR, badge_serial_number VARCHAR)
SELECT listed FROM table_name_14 WHERE county = "cochise"
when was the site listed when the county is cochise?
CREATE TABLE table_name_14 (listed VARCHAR, county VARCHAR)
SELECT event FROM table_name_32 WHERE championship = "1959 usac championship car season"
With a Championship of 1959 USAC Championship Car Season what is the event?
CREATE TABLE table_name_32 (event VARCHAR, championship VARCHAR)
SELECT AVG(redline__rpm_) FROM table_name_49 WHERE engine_code = "m57tud30" AND year > 2002
What is the average Redline RPM of engines with engine code M57TUD30, made after 2002?
CREATE TABLE table_name_49 (redline__rpm_ INTEGER, engine_code VARCHAR, year VARCHAR)
SELECT AVG(year) FROM table_name_41 WHERE competition = "vitry-sur-seine humarathon"
What year was the competition vitry-sur-seine humarathon?
CREATE TABLE table_name_41 (year INTEGER, competition VARCHAR)
SELECT COUNT(*), gender FROM artist GROUP BY gender
What is the number of artists for each gender?
CREATE TABLE artist (gender VARCHAR)
SELECT lyrics__l____music__m_ FROM table_name_16 WHERE position > 3 AND place = "1st"
What were the Lyrics (l) and Music (m) for the Artist who was in a Position higher than 3 and who earned 1st Place?
CREATE TABLE table_name_16 (lyrics__l____music__m_ VARCHAR, position VARCHAR, place VARCHAR)
SELECT winner FROM table_1646960_3 WHERE debut_album = "Mike"
How many winners had a debut album titled "mike"?
CREATE TABLE table_1646960_3 (winner VARCHAR, debut_album VARCHAR)
SELECT COUNT(games) FROM table_2509505_1 WHERE lost = 41
Name the total number of games for lost being 41
CREATE TABLE table_2509505_1 (games VARCHAR, lost VARCHAR)
SELECT tamil_months FROM table_name_89 WHERE english_transliteration = "mun-pani"
What are the months in Tamil that has an english transliteration of Mun-pani?
CREATE TABLE table_name_89 (tamil_months VARCHAR, english_transliteration VARCHAR)
SELECT MIN(gold) FROM table_name_62 WHERE total < 2 AND rank = 17 AND silver > 0
What is the lowest amount of gold a team with less than 2 total medals, ranked 17, and more than 0 silver medals, has?
CREATE TABLE table_name_62 (gold INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR)
SELECT COUNT(*) FROM teacher
How many teachers are there?
CREATE TABLE teacher (Id VARCHAR)
SELECT score FROM table_11959669_7 WHERE date = "March 26"
What was the final score on March 26?
CREATE TABLE table_11959669_7 (score VARCHAR, date VARCHAR)
SELECT starter FROM table_14342367_5 WHERE player = "Herb Graver"
was herb graver a starter?
CREATE TABLE table_14342367_5 (starter VARCHAR, player VARCHAR)
SELECT verb_meaning FROM table_name_88 WHERE part_2 = "*bar"
What is the verb meaning for *bar as Part 2?
CREATE TABLE table_name_88 (verb_meaning VARCHAR, part_2 VARCHAR)
SELECT bid_pronar_investment__us$_ FROM table_17118006_2 WHERE farmers = 1326
What was the BID/PRONAR investment (in $) in the department that included 1326 farmers in its projects?
CREATE TABLE table_17118006_2 (bid_pronar_investment__us$_ VARCHAR, farmers VARCHAR)
SELECT MAX(pick) FROM table_name_21 WHERE overall > 308 AND position = "rb"
Which Pick has an Overall larger than 308, and a Position of rb?
CREATE TABLE table_name_21 (pick INTEGER, overall VARCHAR, position VARCHAR)
SELECT icao FROM table_name_28 WHERE country = "norway"
what is the icao when the country is norway?
CREATE TABLE table_name_28 (icao VARCHAR, country VARCHAR)
SELECT score FROM table_name_86 WHERE tie_no = "13"
WHAT IS THE SCORE WITH A TIE NUMBER OF 13?
CREATE TABLE table_name_86 (score VARCHAR, tie_no VARCHAR)
SELECT tie_no FROM table_name_38 WHERE away_team = "southampton"
What tie happened with Southampton?
CREATE TABLE table_name_38 (tie_no VARCHAR, away_team VARCHAR)
SELECT COUNT(silver) FROM table_name_44 WHERE total > 2 AND bronze < 3 AND rank = "7"
What is the number of silver when the total is more than 2, and bronze is less than 3, with a rank of 7?
CREATE TABLE table_name_44 (silver VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT original_air_date FROM table_23242933_2 WHERE us_viewers__millions_ = "6.09"
When did 6.09 million people in the US see the original airing of an episode of the show?
CREATE TABLE table_23242933_2 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT builder FROM table_1157867_2 WHERE wheel_arrangement = "2-4-2 T"
Who is the builder of the locomotives with wheel arrangement of 2-4-2 T?
CREATE TABLE table_1157867_2 (builder VARCHAR, wheel_arrangement VARCHAR)
SELECT year FROM table_225880_1 WHERE runner_s__up = "Willie Goggin"
Name the year for willie goggin
CREATE TABLE table_225880_1 (year VARCHAR, runner_s__up VARCHAR)
SELECT model FROM table_name_87 WHERE sensor_size = "48x36 mm" AND active_pixels = "6726 x 5040" AND resolution = "33 mp"
Which model has a sensor sized 48x36 mm, pixels of 6726 x 5040, and a 33 mp resolution?
CREATE TABLE table_name_87 (model VARCHAR, resolution VARCHAR, sensor_size VARCHAR, active_pixels VARCHAR)
SELECT county FROM table_name_32 WHERE school = "bloomfield"
Which County has a School of bloomfield?
CREATE TABLE table_name_32 (county VARCHAR, school VARCHAR)
SELECT AVG(attendance) FROM table_name_61 WHERE venue = "a" AND date = "2 january 2008"
When the venue was A and the date was 2 january 2008, what was the average attendance?
CREATE TABLE table_name_61 (attendance INTEGER, venue VARCHAR, date VARCHAR)
SELECT AVG(total) FROM table_name_8 WHERE 2010 = "1st"
What is the average total that is 1st in 2010?
CREATE TABLE table_name_8 (total INTEGER)
SELECT location FROM table_29788320_2 WHERE first_year = 2001
Which locations had their first year in 2001?
CREATE TABLE table_29788320_2 (location VARCHAR, first_year VARCHAR)
SELECT location FROM table_name_49 WHERE home_team = "japan"
What was the location of the home game for Japan?
CREATE TABLE table_name_49 (location VARCHAR, home_team VARCHAR)
SELECT AVG(starts) FROM table_name_86 WHERE wins < 0
On average, how many Starts have Wins that are smaller than 0?
CREATE TABLE table_name_86 (starts INTEGER, wins INTEGER)
SELECT per_capita_income FROM table_name_38 WHERE median_family_income = "$50,755"
What Per capita income has a Median family income of $50,755?
CREATE TABLE table_name_38 (per_capita_income VARCHAR, median_family_income VARCHAR)
SELECT colorado FROM table_17425749_1 WHERE alaska = "Connecticut"
Name the colorado when alaska is connecticut
CREATE TABLE table_17425749_1 (colorado VARCHAR, alaska VARCHAR)
SELECT average_ratings FROM table_name_26 WHERE romaji_title = "mendol"
What's the average rating when the Romanji title was Mendol?
CREATE TABLE table_name_26 (average_ratings VARCHAR, romaji_title VARCHAR)
SELECT result FROM table_1342292_45 WHERE first_elected = 1918
What was the election result for the candidate first elected in 1918?
CREATE TABLE table_1342292_45 (result VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_name_43 WHERE first_elected = "1876"
Who was the incumbent who was first elected in 1876?
CREATE TABLE table_name_43 (incumbent VARCHAR, first_elected VARCHAR)
SELECT surface FROM table_name_45 WHERE date = "15 august 2009"
What is the surface on 15 August 2009?
CREATE TABLE table_name_45 (surface VARCHAR, date VARCHAR)
SELECT COUNT(season) FROM table_23927423_4 WHERE relegated_from_league = "Barking Birmingham & Solihull Stourbridge"
How many seasons did Barking Birmingham & Solihull Stourbridge were relegated from league?
CREATE TABLE table_23927423_4 (season VARCHAR, relegated_from_league VARCHAR)
SELECT MIN(matches) FROM table_30085411_1
what is the number of the least matches
CREATE TABLE table_30085411_1 (matches INTEGER)
SELECT AVG(week) FROM table_name_16 WHERE opponent = "minnesota vikings"
What is the average Week, when Opponent is Minnesota Vikings?
CREATE TABLE table_name_16 (week INTEGER, opponent VARCHAR)
SELECT position FROM table_name_78 WHERE years_for_jazz = "1982-84"
What position did someone play from 1982-84?
CREATE TABLE table_name_78 (position VARCHAR, years_for_jazz VARCHAR)
SELECT submitting_country FROM table_12842068_1 WHERE original_title = "Miehen työ"
What country submitted miehen työ?
CREATE TABLE table_12842068_1 (submitting_country VARCHAR, original_title VARCHAR)
SELECT la_roche FROM table_29728787_1 WHERE year = "1971"
When 1971 is the year what is the la roche?
CREATE TABLE table_29728787_1 (la_roche VARCHAR, year VARCHAR)
SELECT date FROM table_name_8 WHERE high_points = "suns" AND record = "33–13"
On what date did the Suns have high points with a record of 33–13?
CREATE TABLE table_name_8 (date VARCHAR, high_points VARCHAR, record VARCHAR)
SELECT rank FROM table_name_86 WHERE rider = "tom silver"
What was Tom Silver's rank?
CREATE TABLE table_name_86 (rank VARCHAR, rider VARCHAR)
SELECT date FROM table_name_3 WHERE result = "missed*" AND game_time = "2nd quarter (0:00)" AND kicker = "mason crosby"
Result of missed*, and a Game time of 2nd quarter (0:00), and a Kicker of mason crosby involves what date?
CREATE TABLE table_name_3 (date VARCHAR, kicker VARCHAR, result VARCHAR, game_time VARCHAR)
SELECT MAX(season) FROM table_name_52 WHERE score = "3 – 3 aet , 4–3 pen"
Which Seasonhas a Score of 3 – 3 aet , 4–3 pen?
CREATE TABLE table_name_52 (season INTEGER, score VARCHAR)
SELECT COUNT(lost) FROM table_name_23 WHERE points > 15 AND name = "ev pegnitz"
How much Lost has Points larger than 15, and a Name of ev pegnitz?
CREATE TABLE table_name_23 (lost VARCHAR, points VARCHAR, name VARCHAR)
SELECT kickoff FROM table_27764201_2 WHERE opponent = "Frankfurt Galaxy"
What time was the kickoff against the Frankfurt Galaxy?
CREATE TABLE table_27764201_2 (kickoff VARCHAR, opponent VARCHAR)
SELECT MIN(attendance) FROM table_name_79 WHERE date = "september 28"
What was the lowest attendance recorded at a game on September 28?
CREATE TABLE table_name_79 (attendance INTEGER, date VARCHAR)
SELECT MIN(capacity) FROM table_name_75 WHERE year_opened = "1903"
What is the lowest capacity for 1903?
CREATE TABLE table_name_75 (capacity INTEGER, year_opened VARCHAR)
SELECT SUM(purse__) AS ¥_ FROM table_name_42 WHERE year > 2012
How much is the purse worth (¥) after 2012?
CREATE TABLE table_name_42 (purse__ INTEGER, year INTEGER)
SELECT position FROM table_2679061_2 WHERE nhl_team = "Toronto Maple Leafs"
what is the position for the nhl team toronto maple leafs?
CREATE TABLE table_2679061_2 (position VARCHAR, nhl_team VARCHAR)
SELECT imperfect_stem FROM table_name_93 WHERE future_stem = "ikusiko"
What is the imperfect stem for the word that has a future stem of ikusiko?
CREATE TABLE table_name_93 (imperfect_stem VARCHAR, future_stem VARCHAR)
SELECT SUM(fixtures) FROM table_name_67 WHERE round = "sixth round" AND clubs_involved > 15
In the sixth round, what is the sum of fixtures when there were more than 15 clubs involved?
CREATE TABLE table_name_67 (fixtures INTEGER, round VARCHAR, clubs_involved VARCHAR)
SELECT centerfold_model FROM table_1566852_8 WHERE pictorials = "Kimberly Bell , Bunnies of the New Playboy Club"
Who was the centerfold model when the issue's pictorial was kimberly bell , bunnies of the new playboy club?
CREATE TABLE table_1566852_8 (centerfold_model VARCHAR, pictorials VARCHAR)
SELECT COUNT(*) FROM game WHERE NOT id IN (SELECT game_id FROM injury_accident)
How many games are free of injury accidents?
CREATE TABLE injury_accident (id VARCHAR, game_id VARCHAR); CREATE TABLE game (id VARCHAR, game_id VARCHAR)
SELECT country_region FROM table_20780285_1 WHERE title = "Marele câștigător The Big Winner"
What country uses the title Marele Câștigător The Big Winner?
CREATE TABLE table_20780285_1 (country_region VARCHAR, title VARCHAR)
SELECT builder’s_model FROM table_name_61 WHERE service = "freight" AND prr_class = "gf28a"
What was the model for PRR class of gf28a freight?
CREATE TABLE table_name_61 (builder’s_model VARCHAR, service VARCHAR, prr_class VARCHAR)
SELECT gregorian_months FROM table_name_96 WHERE season_in_tamil = "குளிர்"
What are the gregorian months for the season குளிர் in Tamil?
CREATE TABLE table_name_96 (gregorian_months VARCHAR, season_in_tamil VARCHAR)
SELECT AVG(total) FROM table_name_75 WHERE bronze > 0 AND silver > 0 AND gold > 2 AND nation = "soviet union"
What is the average Total, when Bronze is greater than 0, when Silver is greater than 0, when Gold is greater than 2, and when Nation is Soviet Union?
CREATE TABLE table_name_75 (total INTEGER, nation VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT new_returning_same_network FROM table_name_29 WHERE last_aired = 1982
Which New/Returning/Same Network has a Last Aired of 1982?
CREATE TABLE table_name_29 (new_returning_same_network VARCHAR, last_aired VARCHAR)
SELECT school_club_team FROM table_name_57 WHERE player = "jim goodman"
what is the school that hosts jim goodman
CREATE TABLE table_name_57 (school_club_team VARCHAR, player VARCHAR)
SELECT team FROM table_name_52 WHERE rank > 2 AND name = "paolo maldini"
Ranking higher than 2, what Team has Player Paolo Maldini?
CREATE TABLE table_name_52 (team VARCHAR, rank VARCHAR, name VARCHAR)
SELECT circumstances FROM table_name_3 WHERE location = "mazar-i-sharif"
What happened in Mazar-i-sharif?
CREATE TABLE table_name_3 (circumstances VARCHAR, location VARCHAR)
SELECT points FROM table_name_17 WHERE entrant = "brabham racing organisation" AND year = 1964 AND chassis = "brabham bt7"
what is the points when the entrant is brabham racing organisation, the year is 1964 and the chassis is brabham bt7?
CREATE TABLE table_name_17 (points VARCHAR, chassis VARCHAR, entrant VARCHAR, year VARCHAR)
SELECT MIN(silver) FROM table_name_80 WHERE bronze > 1 AND rank < 11
What is the low silver medal total for nations with over 1 bronze ranked above 11?
CREATE TABLE table_name_80 (silver INTEGER, bronze VARCHAR, rank VARCHAR)
SELECT away_team FROM table_name_96 WHERE round = "6th" AND home_team = "bahia"
In the 6th round match with home team Bahia, who was the away team?
CREATE TABLE table_name_96 (away_team VARCHAR, round VARCHAR, home_team VARCHAR)
SELECT year_signed FROM table_name_82 WHERE year_separated = "1987" AND chinese_name = "蘇永康"
What was the signed year for the Chinese name 蘇永康 who separated in 1987?
CREATE TABLE table_name_82 (year_signed VARCHAR, year_separated VARCHAR, chinese_name VARCHAR)
SELECT opponent FROM table_name_25 WHERE week = 4
Who was the opponent in the Week 4 game?
CREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR)
SELECT country FROM table_name_2 WHERE place = "t10" AND player = "tony jacklin"
Which Country has a Place of t10, and a Player of tony jacklin?
CREATE TABLE table_name_2 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT COUNT(till_mathura) FROM table_19787093_1 WHERE till_agra = 500
How many have the Till Agra of 500?
CREATE TABLE table_19787093_1 (till_mathura VARCHAR, till_agra VARCHAR)
SELECT MAX(number_of_dairy_cows) FROM table_29012710_1 WHERE province = "British Columbia"
what is the most amount of cattle where they live in british columbia
CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR)
SELECT score FROM table_name_53 WHERE record = "12-57"
What is Score, when Record is 12-57?
CREATE TABLE table_name_53 (score VARCHAR, record VARCHAR)
SELECT aug_2008 FROM table_23680576_2 WHERE sep_2008 = "5.0%"
What was the polling average in Aug 2009 when is was 5.0% in Sep 2009?
CREATE TABLE table_23680576_2 (aug_2008 VARCHAR, sep_2008 VARCHAR)
SELECT SUM(position) FROM table_name_40 WHERE points_1 = "61"
What is the position when the points 1 is 61?
CREATE TABLE table_name_40 (position INTEGER, points_1 VARCHAR)
SELECT sat_29_aug FROM table_23465864_4 WHERE mon_24_aug = "24' 17.26 93.208mph"
What time was achieved on Saturday 29th August by the rider who recorded 24' 17.26 93.208mph on Monday 24th August?
CREATE TABLE table_23465864_4 (sat_29_aug VARCHAR, mon_24_aug VARCHAR)
SELECT COUNT(location_attendance) FROM table_17326036_6 WHERE date = "December 5"
How many location attendance was recorded for December 5?
CREATE TABLE table_17326036_6 (location_attendance VARCHAR, date VARCHAR)
SELECT 2006 FROM table_name_26 WHERE 2010 = "27"
Name the 2006 when the 2010 is 27
CREATE TABLE table_name_26 (Id VARCHAR)
SELECT no_8 FROM table_name_48 WHERE no_1 = "michael" AND no_4 = "logan"
Who was No. 8 when No. 1 Michael and No. 4 Logan?
CREATE TABLE table_name_48 (no_8 VARCHAR, no_1 VARCHAR, no_4 VARCHAR)
SELECT home_team FROM table_name_92 WHERE visiting_team = "san francisco 49ers" AND result = "42-14"
Who is the home team when the san francisco 49ers are visiting with a result of 42-14?
CREATE TABLE table_name_92 (home_team VARCHAR, visiting_team VARCHAR, result VARCHAR)
SELECT week_10_nov_5 FROM table_name_13 WHERE week_9_oct_29 = "dropped: maryland south carolina"
What is the week 10 result where the week 9 result was Dropped: Maryland South Carolina?
CREATE TABLE table_name_13 (week_10_nov_5 VARCHAR, week_9_oct_29 VARCHAR)
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) > 10
Find all airlines that have at least 10 flights.
CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR)
SELECT MAX(extra_points) FROM table_14342480_5 WHERE position = "Right halfback"
Name the most extra points for right halfback
CREATE TABLE table_14342480_5 (extra_points INTEGER, position VARCHAR)
SELECT vessel_type FROM table_26168687_5 WHERE vessel_operator = "DOF Subsea"
Name the vessel type for dof subsea
CREATE TABLE table_26168687_5 (vessel_type VARCHAR, vessel_operator VARCHAR)
SELECT AVG(in_de_creased_by) FROM table_name_66 WHERE governorate = "al anbar governorate" AND seats_2005 < 9
Name the average In/de-creased by which has a Governorate of al anbar governorate, and Seats 2005 smaller than 9?
CREATE TABLE table_name_66 (in_de_creased_by INTEGER, governorate VARCHAR, seats_2005 VARCHAR)
SELECT score_in_the_final FROM table_name_88 WHERE surface = "clay" AND date = "18 april 2011"
What is the score in the final of the tournament with a clay surface on 18 April 2011?
CREATE TABLE table_name_88 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)
SELECT rID FROM Reviewer WHERE name LIKE "%Mike%"
What is the id of the reviewer whose name has substring “Mike”?
CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR)
SELECT test FROM table_name_86 WHERE number_of_students = "49,608"
What test had 49,608 students?
CREATE TABLE table_name_86 (test VARCHAR, number_of_students VARCHAR)
SELECT power__kw_ FROM table_name_12 WHERE coverage__transmitter_site_ = "lucena"
What is Power (kW), when Coverage (Transmitter Site) is "Lucena"?
CREATE TABLE table_name_12 (power__kw_ VARCHAR, coverage__transmitter_site_ VARCHAR)
SELECT age__before_ FROM table_22860_1 WHERE maghreb = "Maarifiense"
What are all ages for Maghreb is Maarifiense?
CREATE TABLE table_22860_1 (age__before_ VARCHAR, maghreb VARCHAR)
SELECT iphone_certified FROM table_24384861_1 WHERE version = "SoundDock series I v2"
Was the sounddock series I v2 iphone certified?
CREATE TABLE table_24384861_1 (iphone_certified VARCHAR, version VARCHAR)
SELECT region_code, region_name FROM region ORDER BY region_code
Show all region code and region name sorted by the codes.
CREATE TABLE region (region_code VARCHAR, region_name VARCHAR)
SELECT SUM(silver) FROM table_name_15 WHERE nation = "cuba"
How many silver medals does Cuba have?
CREATE TABLE table_name_15 (silver INTEGER, nation VARCHAR)
SELECT MIN(age) FROM table_21346767_3 WHERE geographical_regions = "Cibao Central" AND hometown = "Santo Domingo"
Name the least age for cibao central and santo domingo
CREATE TABLE table_21346767_3 (age INTEGER, geographical_regions VARCHAR, hometown VARCHAR)
SELECT week_5 FROM table_name_68 WHERE week_1 = "mandy ashford"
what kind of Week 5 that has a Week 1 of mandy ashford?
CREATE TABLE table_name_68 (week_5 VARCHAR, week_1 VARCHAR)
SELECT player FROM table_name_20 WHERE college = "vanderbilt"
Which player went to Vanderbilt?
CREATE TABLE table_name_20 (player VARCHAR, college VARCHAR)
SELECT date FROM table_name_95 WHERE home = "boston bruins"
When were the boston bruins the home team?
CREATE TABLE table_name_95 (date VARCHAR, home VARCHAR)