answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT location FROM table_name_59 WHERE distance = "10,000 m"
Which Location has a Distance of 10,000 m?
CREATE TABLE table_name_59 (location VARCHAR, distance VARCHAR)
SELECT club FROM table_name_95 WHERE league_division = "fourth division"
What club has a league/division of fourth division?
CREATE TABLE table_name_95 (club VARCHAR, league_division VARCHAR)
SELECT nationality FROM table_name_5 WHERE player = "cuttino mobley"
Cuttino Mobley is what nationality?
CREATE TABLE table_name_5 (nationality VARCHAR, player VARCHAR)
SELECT intergiro_classification FROM table_name_10 WHERE trofeo_fast_team = "asics-c.g.a." AND stage = "13"
In stage 13, what is the intergiro classification and is on the team of Asics-c.g.a.?
CREATE TABLE table_name_10 (intergiro_classification VARCHAR, trofeo_fast_team VARCHAR, stage VARCHAR)
SELECT incoming_manager FROM table_26914854_3 WHERE date_of_appointment = "9 March 2011"
Who is the incoming manager when the date of appointment is 9 march 2011?
CREATE TABLE table_26914854_3 (incoming_manager VARCHAR, date_of_appointment VARCHAR)
SELECT opponent FROM table_name_25 WHERE date = "december 3, 1979"
What is the Opponent on December 3, 1979?
CREATE TABLE table_name_25 (opponent VARCHAR, date VARCHAR)
SELECT guest FROM table_25691838_12 WHERE original_airdate = "December 07"
Who were the guests for the episode with an original airdate of december 07?
CREATE TABLE table_25691838_12 (guest VARCHAR, original_airdate VARCHAR)
SELECT home__1st_leg_ FROM table_14219514_2 WHERE aggregate = "0-1"
When 0-1 is the aggregate what are the home (1st leg)?
CREATE TABLE table_14219514_2 (home__1st_leg_ VARCHAR, aggregate VARCHAR)
SELECT COUNT(result) FROM table_1342013_12 WHERE incumbent = "Noah M. Mason"
How many results are listed for the election where Noah M. Mason was elected?
CREATE TABLE table_1342013_12 (result VARCHAR, incumbent VARCHAR)
SELECT mascot FROM table_name_82 WHERE county = "43 kosciusko"
what is the mascot when the county is 43 kosciusko?
CREATE TABLE table_name_82 (mascot VARCHAR, county VARCHAR)
SELECT opponent FROM table_name_50 WHERE date = "jul 31" AND score = "w 5-1"
Name the opponent for jul 31 and score of w 5-1
CREATE TABLE table_name_50 (opponent VARCHAR, date VARCHAR, score VARCHAR)
SELECT chassis_code FROM table_name_17 WHERE model = "280s"
What's the chassis code for the 280s model?
CREATE TABLE table_name_17 (chassis_code VARCHAR, model VARCHAR)
SELECT date FROM table_name_95 WHERE opponent = "chicago bears"
Opponent of chicago bears involved what date?
CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR)
SELECT MAX(year) FROM table_name_38 WHERE remixed_by = "laurent boutonnat"
What the highest Year with a Remixed by Laurent Boutonnat?
CREATE TABLE table_name_38 (year INTEGER, remixed_by VARCHAR)
SELECT away_team AS score FROM table_name_42 WHERE venue = "victoria park"
What is the away team score at victoria park?
CREATE TABLE table_name_42 (away_team VARCHAR, venue VARCHAR)
SELECT match FROM table_name_19 WHERE competition = "semifinal" AND location = "san francisco"
Which Match played in a Location of San Francisco has a Competition of Semifinal?
CREATE TABLE table_name_19 (match VARCHAR, competition VARCHAR, location VARCHAR)
SELECT opponent FROM table_26108103_2 WHERE rushing_yards = 81
Who was the opponent when there was 81 rushing yards?
CREATE TABLE table_26108103_2 (opponent VARCHAR, rushing_yards VARCHAR)
SELECT MAX(purse__) AS $__ FROM table_11622392_1
What is the sum of the largest purse?
CREATE TABLE table_11622392_1 (purse__ INTEGER)
SELECT report FROM table_name_66 WHERE winning_driver = "raymond sommer"
Name the report for raymond sommer
CREATE TABLE table_name_66 (report VARCHAR, winning_driver VARCHAR)
SELECT dates_administered FROM table_name_87 WHERE lead_margin < 5.5 AND poll_source = "survey usa"
What was the date of the poll from Survey USA that showed a lead margin smaller than 5.5?
CREATE TABLE table_name_87 (dates_administered VARCHAR, lead_margin VARCHAR, poll_source VARCHAR)
SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 2
Show the names of students who have at least 2 likes.
CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR)
SELECT year_joined FROM table_name_63 WHERE enrollment < 438 AND ihsaa_class = "aa"
What year joined had an enrollment less than 438 and an AA as the IHSAA Class?
CREATE TABLE table_name_63 (year_joined VARCHAR, enrollment VARCHAR, ihsaa_class VARCHAR)
SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5
Find the names of the products with length smaller than 3 or height greater than 5.
CREATE TABLE catalog_contents (catalog_entry_name VARCHAR, LENGTH VARCHAR, width VARCHAR)
SELECT format FROM table_name_23 WHERE catalog = "sbp 234999"
What is the Format of the Label with Catalog SBP 234999?
CREATE TABLE table_name_23 (format VARCHAR, catalog VARCHAR)
SELECT COUNT(poll_winner) FROM table_15781170_2 WHERE original_air_date = "March 19, 2008"
Name the poll winner for march 19, 2008
CREATE TABLE table_15781170_2 (poll_winner VARCHAR, original_air_date VARCHAR)
SELECT MAX(total) FROM table_name_64 WHERE rank = "8"
What is the maximum total medals when the rank is 8?
CREATE TABLE table_name_64 (total INTEGER, rank VARCHAR)
SELECT stadium FROM table_name_43 WHERE club = "pro patria"
In which stadium does Club Pro Patria play?
CREATE TABLE table_name_43 (stadium VARCHAR, club VARCHAR)
SELECT winning_span FROM table_1953516_1 WHERE country = "England" AND name = "Paul Casey"
What is the winning span in the country of England with the name of paul casey?
CREATE TABLE table_1953516_1 (winning_span VARCHAR, country VARCHAR, name VARCHAR)
SELECT melbourne FROM table_name_71 WHERE sydney = "yes" AND gold_coast = "yes" AND perth = "yes"
Which Melbourne has Sydney yes, Gold Coast yes, and Perth yes?
CREATE TABLE table_name_71 (melbourne VARCHAR, perth VARCHAR, sydney VARCHAR, gold_coast VARCHAR)
SELECT last_5_meetings FROM table_name_38 WHERE overall_record = "ksu, 118-117"
With an overall record of KSU, 118-117 what is the last 5 meetings?
CREATE TABLE table_name_38 (last_5_meetings VARCHAR, overall_record VARCHAR)
SELECT second FROM table_name_65 WHERE tenth = "dan black"
WHAT IS THE SECOND WITH A TENTH OF DAN BLACK?
CREATE TABLE table_name_65 (second VARCHAR, tenth VARCHAR)
SELECT gas_storage FROM table_21690339_1 WHERE alternative_fuel = "Yes"
What was the gas storage status for the nation that had "yes" for alternative fuel?
CREATE TABLE table_21690339_1 (gas_storage VARCHAR, alternative_fuel VARCHAR)
SELECT COUNT(rank) FROM table_name_13 WHERE alliance = "star alliance" AND country = "brazil"
How many airlines have the star alliance and are in brazil?
CREATE TABLE table_name_13 (rank VARCHAR, alliance VARCHAR, country VARCHAR)
SELECT road_team FROM table_name_61 WHERE home_team = "rochester" AND game = "game 2"
Which Road Team has a Home Team of rochester, and a Game of game 2?
CREATE TABLE table_name_61 (road_team VARCHAR, home_team VARCHAR, game VARCHAR)
SELECT score FROM table_name_86 WHERE winner = "suntory sungoliath" AND attendance = "n/a"
What is the Score when the winner was suntory sungoliath, and the number attendance was n/a?
CREATE TABLE table_name_86 (score VARCHAR, winner VARCHAR, attendance VARCHAR)
SELECT release_date FROM table_11602313_4 WHERE sspec_number = "SLA4H(M0)"
What is the release date for the model with sspec number sla4h(m0)?
CREATE TABLE table_11602313_4 (release_date VARCHAR, sspec_number VARCHAR)
SELECT country FROM table_name_52 WHERE year < 2011 AND rank > 1 AND publication = "q"
What country did Day & Age rank number 1 in Q prior to 2011?
CREATE TABLE table_name_52 (country VARCHAR, publication VARCHAR, year VARCHAR, rank VARCHAR)
SELECT score FROM table_name_78 WHERE place = "4"
Which Score has a Place of 4?
CREATE TABLE table_name_78 (score VARCHAR, place VARCHAR)
SELECT party FROM table_name_33 WHERE opinion_research_centre__opc_ = "1.5%"
What is Party, when Opinion Research Centre (OPC) is 1.5%?
CREATE TABLE table_name_33 (party VARCHAR, opinion_research_centre__opc_ VARCHAR)
SELECT date FROM table_name_77 WHERE game_site = "candlestick park"
What day did they play at candlestick park?
CREATE TABLE table_name_77 (date VARCHAR, game_site VARCHAR)
SELECT away_team FROM table_name_23 WHERE home_team = "footscray"
What is the name of the away team who played Footscray?
CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR)
SELECT result FROM table_22736523_1 WHERE week__number = "Top 9"
For week of top 9, what were the results?
CREATE TABLE table_22736523_1 (result VARCHAR, week__number VARCHAR)
SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1
Show all information on the airport that has the largest number of international passengers.
CREATE TABLE airport (International_Passengers VARCHAR)
SELECT rowers FROM table_name_41 WHERE notes = "fa"
What rowers have FA as the notes?
CREATE TABLE table_name_41 (rowers VARCHAR, notes VARCHAR)
SELECT category FROM table_name_20 WHERE year > 2005 AND for_the_show = "kasautii zindagii kay"
What category was Kasautii Zindagii Kay nominated for after 2005?
CREATE TABLE table_name_20 (category VARCHAR, year VARCHAR, for_the_show VARCHAR)
SELECT percentage FROM table_16186152_1 WHERE state_delegate = 1662
What's the percentage when the state delegate is 1662?
CREATE TABLE table_16186152_1 (percentage VARCHAR, state_delegate VARCHAR)
SELECT colour FROM table_name_31 WHERE compound_name = "super-soft"
What color is the super-soft compound?
CREATE TABLE table_name_31 (colour VARCHAR, compound_name VARCHAR)
SELECT place FROM table_name_83 WHERE score = 68 - 68 = 136 AND player = "craig parry"
Craig Parry with a score of 68-68=136 is in what place?
CREATE TABLE table_name_83 (place VARCHAR, player VARCHAR, score VARCHAR)
SELECT MAX(lead_margin) FROM table_16751596_5 WHERE dates_administered = "August 5, 2008"
what is the maximum lead margin on august 5, 2008?
CREATE TABLE table_16751596_5 (lead_margin INTEGER, dates_administered VARCHAR)
SELECT COUNT(rank) FROM table_name_8 WHERE nation = "netherlands" AND silver > 2
What is the total rank for the Netherlands when more than 2 silver medals were won?
CREATE TABLE table_name_8 (rank VARCHAR, nation VARCHAR, silver VARCHAR)
SELECT COUNT(points) FROM table_26454128_9 WHERE distance__metres_ = "41.05"
What is the total number of times points were listed when the distance was 41.05 metres?
CREATE TABLE table_26454128_9 (points VARCHAR, distance__metres_ VARCHAR)
SELECT COUNT(draws) FROM table_name_28 WHERE wins < 6 AND goal_difference < -15
How many draws when there are fewer than 6 wins and the goal difference is less than -15?
CREATE TABLE table_name_28 (draws VARCHAR, wins VARCHAR, goal_difference VARCHAR)
SELECT money___$__ FROM table_name_40 WHERE place = "t4" AND player = "nick price"
What is T4 Place Player Nick Price's Money?
CREATE TABLE table_name_40 (money___$__ VARCHAR, place VARCHAR, player VARCHAR)
SELECT party FROM table_name_98 WHERE elected > 1983 AND district = 28
What party has a district of 28 and was elected after 1983?
CREATE TABLE table_name_98 (party VARCHAR, elected VARCHAR, district VARCHAR)
SELECT COUNT(no_votes) FROM table_256286_8 WHERE description = "$1500 Tax Exemption Amendment"
How many data are there under NO vote with a description of $1500 tax exemption amendment?
CREATE TABLE table_256286_8 (no_votes VARCHAR, description VARCHAR)
SELECT english_name FROM table_1976898_1 WHERE post_code = 246400
What's the English name of the county with a postcode 246400?
CREATE TABLE table_1976898_1 (english_name VARCHAR, post_code VARCHAR)
SELECT team FROM table_name_36 WHERE location = "leicester"
Which team is located in Leicester?
CREATE TABLE table_name_36 (team VARCHAR, location VARCHAR)
SELECT period FROM table_name_36 WHERE internet_explorer = "53.52%"
What period has 53.52% as the internet explorer?
CREATE TABLE table_name_36 (period VARCHAR, internet_explorer VARCHAR)
SELECT COUNT(year) FROM table_name_15 WHERE playoffs = "conference semifinals"
What year did the team make conference semifinals?
CREATE TABLE table_name_15 (year VARCHAR, playoffs VARCHAR)
SELECT team FROM table_name_39 WHERE laps = 64 AND points = 13
Which team had 64 laps and 13 points?
CREATE TABLE table_name_39 (team VARCHAR, laps VARCHAR, points VARCHAR)
SELECT total_female FROM table_26214389_3 WHERE qatari_female = 918
If the qatari female is 918, what is the total number of females?
CREATE TABLE table_26214389_3 (total_female VARCHAR, qatari_female VARCHAR)
SELECT publication FROM table_name_75 WHERE country = "uk"
Which publication happened in the UK?
CREATE TABLE table_name_75 (publication VARCHAR, country VARCHAR)
SELECT nomination FROM table_name_12 WHERE director = "goran paskaljevic"
Tell me the nomination for goran paskaljevic
CREATE TABLE table_name_12 (nomination VARCHAR, director VARCHAR)
SELECT SUM(podiums) FROM table_name_20 WHERE season = "2006" AND races > 16
Can you tell me the sum of Podiums that has the Season of 2006, and the Races larger than 16?
CREATE TABLE table_name_20 (podiums INTEGER, season VARCHAR, races VARCHAR)
SELECT COUNT(percentage_of_marine_area__foreez_) FROM table_name_78 WHERE ecozone = "atlantic marine" AND area__km²__exclusive_economic_zone < 996 OFFSET 439
How many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439?
CREATE TABLE table_name_78 (percentage_of_marine_area__foreez_ VARCHAR, ecozone VARCHAR, area__km²__exclusive_economic_zone VARCHAR)
SELECT protein_name FROM table_name_2 WHERE sequence_identity_to_human_protein = "32%"
What is the protein name of the protein with a sequence identity to human protein of 32%?
CREATE TABLE table_name_2 (protein_name VARCHAR, sequence_identity_to_human_protein VARCHAR)
SELECT joined FROM table_10577579_3 WHERE women’s_nickname = "Wolfpack"
Name the joined for the wolfpack women's nickname
CREATE TABLE table_10577579_3 (joined VARCHAR, women’s_nickname VARCHAR)
SELECT SUM(overall) FROM table_name_22 WHERE college = "arkansas state" AND pick < 17
What is the sum of Overall, when College is "Arkansas State", and when Pick is less than 17?
CREATE TABLE table_name_22 (overall INTEGER, college VARCHAR, pick VARCHAR)
SELECT frequency FROM table_name_33 WHERE facility_id = 13598
Which Frequency has a Facility ID of 13598?
CREATE TABLE table_name_33 (frequency VARCHAR, facility_id VARCHAR)
SELECT MIN(weight) FROM table_name_78 WHERE spike < 330 AND block = 315 AND height > 187
What is the smallest Weight, when Spike is less than 330, when Block is 315, and when Height is greater than 187?
CREATE TABLE table_name_78 (weight INTEGER, height VARCHAR, spike VARCHAR, block VARCHAR)
SELECT SUM(no_of_customers) FROM bank
How many customers are there?
CREATE TABLE bank (no_of_customers INTEGER)
SELECT COUNT(year_named) FROM table_16799784_9 WHERE longitude = "20.0E"
How many years have a longitude measure of 20.0e?
CREATE TABLE table_16799784_9 (year_named VARCHAR, longitude VARCHAR)
SELECT Major AS facility FROM table_25346763_1 WHERE year_opened = "1968"
Is the facility opened in 1968 a major facility?
CREATE TABLE table_25346763_1 (Major VARCHAR, year_opened VARCHAR)
SELECT MAX(enrollment) FROM table_261906_2 WHERE joined_mac = 1997
What is the highest enrollment schools that joined the mac in 1997?
CREATE TABLE table_261906_2 (enrollment INTEGER, joined_mac VARCHAR)
SELECT date FROM table_name_38 WHERE record = "62–84"
On what date was the record 62–84?
CREATE TABLE table_name_38 (date VARCHAR, record VARCHAR)
SELECT points FROM table_name_64 WHERE time_retired = "1:44:59.557"
How many points were scored in 1:44:59.557 of time?
CREATE TABLE table_name_64 (points VARCHAR, time_retired VARCHAR)
SELECT MAX(power__hp_) FROM table_name_5 WHERE engine = "om314"
What is the highest power (hp) of an OM314 engine?
CREATE TABLE table_name_5 (power__hp_ INTEGER, engine VARCHAR)
SELECT original_artist FROM table_21501564_1 WHERE result = "Selected"
Who was the originally artist when Jasmine Murray was selected?
CREATE TABLE table_21501564_1 (original_artist VARCHAR, result VARCHAR)
SELECT AVG(credit_score) FROM customer WHERE NOT cust_id IN (SELECT cust_id FROM loan)
Find the average credit score of the customers who do not have any loan.
CREATE TABLE loan (credit_score INTEGER, cust_id VARCHAR); CREATE TABLE customer (credit_score INTEGER, cust_id VARCHAR)
SELECT works_number FROM table_name_39 WHERE date = "1916" AND number = "153"
What is the Works Number that has a Number of 153 in 1916?
CREATE TABLE table_name_39 (works_number VARCHAR, date VARCHAR, number VARCHAR)
SELECT AVG(price) FROM products WHERE Manufacturer = 2
Compute the average price of all products with manufacturer code equal to 2.
CREATE TABLE products (price INTEGER, Manufacturer VARCHAR)
SELECT date FROM table_name_56 WHERE tie_no = "3"
What was the date of the game that tied at 3?
CREATE TABLE table_name_56 (date VARCHAR, tie_no VARCHAR)
SELECT man_of_the_match FROM table_name_19 WHERE opponent = "milton keynes lightning" AND venue = "away"
Who was the Man of the Match when the opponent was Milton Keynes Lightning and the venue was Away?
CREATE TABLE table_name_19 (man_of_the_match VARCHAR, opponent VARCHAR, venue VARCHAR)
SELECT band FROM table_name_99 WHERE ratio = "13/9"
Which Band has a Ratio of 13/9?
CREATE TABLE table_name_99 (band VARCHAR, ratio VARCHAR)
SELECT SUM(crowd) FROM table_name_47 WHERE venue = "brunswick street oval"
How big is the Venue of Brunswick Street Oval?
CREATE TABLE table_name_47 (crowd INTEGER, venue VARCHAR)
SELECT AVG(frequency) FROM table_name_44 WHERE website = "•" AND webcast = "•" AND city_of_license = "san antonio"
Which Frequency has a Website of •, and a Webcast of •in san antonio?
CREATE TABLE table_name_44 (frequency INTEGER, city_of_license VARCHAR, website VARCHAR, webcast VARCHAR)
SELECT frequency FROM table_name_24 WHERE coverage = "oaxaca guerrero puebla"
What is the frequency of the station with a coverage of oaxaca guerrero puebla?
CREATE TABLE table_name_24 (frequency VARCHAR, coverage VARCHAR)
SELECT MAX(founded) FROM table_1973729_2
What is the latest founded year?
CREATE TABLE table_1973729_2 (founded INTEGER)
SELECT MIN(height__ft_) FROM table_name_24 WHERE city = "frankfurt" AND height__m_ = 257 AND floors < 55
What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors?
CREATE TABLE table_name_24 (height__ft_ INTEGER, floors VARCHAR, city VARCHAR, height__m_ VARCHAR)
SELECT college_junior_club_team FROM table_2679061_6 WHERE player = "Don Barber"
What is the college/junior/club team for player don barber?
CREATE TABLE table_2679061_6 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT MIN(bronze) FROM table_name_75 WHERE silver < 1 AND rank < 5
What is the fewest bronze medals for a team with fewer than 1 silver and rank lower than 5?
CREATE TABLE table_name_75 (bronze INTEGER, silver VARCHAR, rank VARCHAR)
SELECT MIN(position) FROM table_name_6 WHERE pilot = "bruce taylor"
What is the lowest position for bruce taylor?
CREATE TABLE table_name_6 (position INTEGER, pilot VARCHAR)
SELECT MAX(uni_number) FROM table_name_32 WHERE first = "todd"
What is the highest uni# of the person with the first name Todd?
CREATE TABLE table_name_32 (uni_number INTEGER, first VARCHAR)
SELECT state FROM table_name_63 WHERE talent = "classical piano" AND hometown = "lancaster, ny"
What is the state having a contestant with a talent of classical piano and a hometown from Lancaster, NY?
CREATE TABLE table_name_63 (state VARCHAR, talent VARCHAR, hometown VARCHAR)
SELECT MAX(hull_numbers) FROM table_12232526_2 WHERE ship_name = "KRI Yos Sudarso"
what is the maximum number of hull nunbers where ship name is kri yos sudarso?
CREATE TABLE table_12232526_2 (hull_numbers INTEGER, ship_name VARCHAR)
SELECT quarterback FROM table_name_33 WHERE career_wins > 81 AND teams = "seattle" AND team_wins < 70
Which Seattle quarterback has more than 81 career wins and less than 70 team wins?
CREATE TABLE table_name_33 (quarterback VARCHAR, team_wins VARCHAR, career_wins VARCHAR, teams VARCHAR)
SELECT score FROM table_name_48 WHERE to_par = "–1" AND player = "henrik stenson"
With a To par of –1, what is Player Henrik Stenson's Score?
CREATE TABLE table_name_48 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT COUNT(*), T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code
Find the number of classes in each school.
CREATE TABLE department (school_code VARCHAR, dept_code VARCHAR); CREATE TABLE CLASS (crs_code VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR)
SELECT MIN(drawn) FROM table_name_24 WHERE position = 2 AND lost > 2
Which Drawn has a Position of 2, and a Lost larger than 2?
CREATE TABLE table_name_24 (drawn INTEGER, position VARCHAR, lost VARCHAR)
SELECT manufacturer FROM table_2268216_1 WHERE team = "Ranier-Lundy"
Whose is the manufacturer for team Ranier-Lundy?
CREATE TABLE table_2268216_1 (manufacturer VARCHAR, team VARCHAR)