answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT owner_s_ FROM table_name_30 WHERE date = 1953 AND description = "mark 1 ck"
Which owner has a description of Mark 1 CK and is dated 1953?
CREATE TABLE table_name_30 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR)
SELECT grid FROM table_name_65 WHERE manufacturer = "yamaha" AND time_retired = "+19.435"
What is the grid with a yamaha manufacturer and a +19.435 time/retired?
CREATE TABLE table_name_65 (grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)
SELECT dept_name FROM course GROUP BY dept_name ORDER BY SUM(credits) DESC LIMIT 1
Find the name of the department that offers the highest total credits?
CREATE TABLE course (dept_name VARCHAR, credits INTEGER)
SELECT last_meeting FROM table_2846320_4 WHERE name_of_rivalry = "Iron Bowl"
when was the ending time where the enemy met in the iron bowl
CREATE TABLE table_2846320_4 (last_meeting VARCHAR, name_of_rivalry VARCHAR)
SELECT lifespan FROM table_name_56 WHERE imperial = "7ft 8 in" AND nationality = "fiji"
what is the lifespan when the imperial height is 7ft 8 in and the nationality is fiji?
CREATE TABLE table_name_56 (lifespan VARCHAR, imperial VARCHAR, nationality VARCHAR)
SELECT date FROM table_name_7 WHERE result = "win" AND score = "2-1" AND year < 2012
What day was the result a win, the score 2-1, and the year before 2012?
CREATE TABLE table_name_7 (date VARCHAR, year VARCHAR, result VARCHAR, score VARCHAR)
SELECT sport FROM table_name_93 WHERE date < 2006 AND loser = "france b"
What sport was played before 2006 with a loser of france b?
CREATE TABLE table_name_93 (sport VARCHAR, date VARCHAR, loser VARCHAR)
SELECT drawn FROM table_name_47 WHERE club = "furnace united rfc"
What is the drawn value for furnace united rfc?
CREATE TABLE table_name_47 (drawn VARCHAR, club VARCHAR)
SELECT CName FROM COURSE WHERE Days = "MTW"
Which courses are taught on days MTW?
CREATE TABLE COURSE (CName VARCHAR, Days VARCHAR)
SELECT date FROM table_name_5 WHERE visitor = "chicago black hawks" AND record = "2–2"
What is the Date that chicago black hawks has a Record of 2–2?
CREATE TABLE table_name_5 (date VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT league_goals FROM table_28730459_3 WHERE league_matches = 10 AND tebe_career = "2003"
What is the number of league goals for players with 10 league matches and a TeBe career of 2003?
CREATE TABLE table_28730459_3 (league_goals VARCHAR, league_matches VARCHAR, tebe_career VARCHAR)
SELECT winner FROM table_name_35 WHERE type = "plain stage" AND course = "nola to sora"
What is the name of the winner with a type of plain stage and a Course of nola to sora?
CREATE TABLE table_name_35 (winner VARCHAR, type VARCHAR, course VARCHAR)
SELECT COUNT(bronze) FROM table_name_67 WHERE sport = "futsal"
Tell me the total number of Bronze for futsal
CREATE TABLE table_name_67 (bronze VARCHAR, sport VARCHAR)
SELECT home_team FROM table_26847237_3 WHERE round__number = "Round 1"
what is the home team when the round # is round 1?
CREATE TABLE table_26847237_3 (home_team VARCHAR, round__number VARCHAR)
SELECT opponent FROM table_name_93 WHERE aces < 50 AND event = "2001 davis cup"
At the 2001 Davis Cup, what Opponent had less than 50 Aces?
CREATE TABLE table_name_93 (opponent VARCHAR, aces VARCHAR, event VARCHAR)
SELECT stage FROM table_name_57 WHERE points_classification = "francesco moser" AND general_classification = "bernard hinault"
Which stage had a Points Classification of Francesco Moser and a general classification of Bernard Hinault?
CREATE TABLE table_name_57 (stage VARCHAR, points_classification VARCHAR, general_classification VARCHAR)
SELECT away_team FROM table_name_53 WHERE home_team = "south melbourne"
When south Melbourne was the home team, what was the away team?
CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR)
SELECT report FROM table_19908651_3 WHERE winning_driver = "Michael Andretti" AND fastest_lap = "Nigel Mansell"
What's the report of the race won by Michael Andretti, with Nigel Mansell driving the fastest lap?
CREATE TABLE table_19908651_3 (report VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR)
SELECT first_elected FROM table_name_61 WHERE party = "republican" AND result = "retired democratic gain"
What is First elected that has republican Party and a Result of retired democratic gain?
CREATE TABLE table_name_61 (first_elected VARCHAR, party VARCHAR, result VARCHAR)
SELECT max_1_min_wind_mph__km_h_ FROM table_name_26 WHERE dates_active = "september22– september28"
Which Max 1-min wind mph (km/h) that has Dates active on september22– september28?
CREATE TABLE table_name_26 (max_1_min_wind_mph__km_h_ VARCHAR, dates_active VARCHAR)
SELECT AVG(money_requested__) AS £_ FROM table_name_96 WHERE first_aired = "18 january 2005" AND company_or_product_name = "iv cam"
What is the average money requested in the episode first aired on 18 January 2005 by the company/product name IV Cam
CREATE TABLE table_name_96 (money_requested__ INTEGER, first_aired VARCHAR, company_or_product_name VARCHAR)
SELECT T1.bname, T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business'
Find the city and name of bank branches that provide business loans.
CREATE TABLE bank (bname VARCHAR, city VARCHAR, branch_id VARCHAR); CREATE TABLE loan (branch_id VARCHAR, loan_type VARCHAR)
SELECT COUNT(*) FROM user_profiles
How many users are there?
CREATE TABLE user_profiles (Id VARCHAR)
SELECT candidates FROM table_2668264_8 WHERE result = "Retired Jacksonian gain"
Who were the candidates for election that had a result of a retired jacksonian gain?
CREATE TABLE table_2668264_8 (candidates VARCHAR, result VARCHAR)
SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs
How many different degree names are offered?
CREATE TABLE Degree_Programs (degree_summary_name VARCHAR)
SELECT SUM(round) FROM table_name_73 WHERE opponent = "brett chism"
What is the sum of the rounds of the match with brett chism as the opponent?
CREATE TABLE table_name_73 (round INTEGER, opponent VARCHAR)
SELECT date_of_birth FROM table_name_31 WHERE height = "head coach: adel shamala"
What is Date of Birth, when Height is "Head Coach: Adel Shamala"?
CREATE TABLE table_name_31 (date_of_birth VARCHAR, height VARCHAR)
SELECT AVG(long) FROM table_name_34 WHERE gp_gs < 14 AND avg_g < 0.8 AND gain < 3 AND loss > 8
What is the average Long that has a GP-GS less than 14, a AVg/G less than 0.8 and a Gain less than 3 and a Loss greater than 8?
CREATE TABLE table_name_34 (long INTEGER, loss VARCHAR, gain VARCHAR, gp_gs VARCHAR, avg_g VARCHAR)
SELECT MAX(attendance) FROM table_27893892_2 WHERE date = "Saturday, May 12"
what was the participation for saturday, may 12
CREATE TABLE table_27893892_2 (attendance INTEGER, date VARCHAR)
SELECT competition FROM table_name_77 WHERE score = "1-0" AND location = "alvor"
WHich competition was held on Alvor with a score 1-0?
CREATE TABLE table_name_77 (competition VARCHAR, score VARCHAR, location VARCHAR)
SELECT SUM(laps) FROM table_name_1 WHERE year = 2011
What is the total laps for the year 2011?
CREATE TABLE table_name_1 (laps INTEGER, year VARCHAR)
SELECT team_performance FROM table_name_28 WHERE year = 1977
What was the team performance in 1977?
CREATE TABLE table_name_28 (team_performance VARCHAR, year VARCHAR)
SELECT location_attendance FROM table_11960944_11 WHERE high_assists = "Billups , Stuckey (4)"
Where was the game played when the high assists were scored by billups , stuckey (4)?
CREATE TABLE table_11960944_11 (location_attendance VARCHAR, high_assists VARCHAR)
SELECT record FROM table_17360840_9 WHERE location = "St. Pete Times Forum" AND opponent = "Columbus Blue Jackets"
What was the record when the opposing team was the Columbus Blue Jackets at St. Pete Times Forum?
CREATE TABLE table_17360840_9 (record VARCHAR, location VARCHAR, opponent VARCHAR)
SELECT player FROM table_23670057_5 WHERE height__m_ = "2.07"
which players have a height of 2.07m?
CREATE TABLE table_23670057_5 (player VARCHAR, height__m_ VARCHAR)
SELECT us_viewers__millions_ FROM table_25246990_5 WHERE written_by = "Lazar Saric & Jed Spingarn"
How many U.S. viewers were there for the episode written by Lazar Saric & Jed Spingarn?
CREATE TABLE table_25246990_5 (us_viewers__millions_ VARCHAR, written_by VARCHAR)
SELECT date FROM table_27755784_8 WHERE team = "New Orleans"
What is the date when the team is listed as New Orleans?
CREATE TABLE table_27755784_8 (date VARCHAR, team VARCHAR)
SELECT finals FROM table_name_80 WHERE conference_finals < 12 AND semifinals = 0 AND total = 3
Can you tell me the Finals that has the Conference Finals smaller than 12, and the Semifinals of 0, and the Total of 3?
CREATE TABLE table_name_80 (finals VARCHAR, total VARCHAR, conference_finals VARCHAR, semifinals VARCHAR)
SELECT away_team FROM table_name_17 WHERE home_team = "fitzroy"
Name the away team for home team of fitzroy
CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR)
SELECT tournament FROM table_name_5 WHERE opponent = "yvonne vermaak"
What tournament has yvonne vermaak as the opponent?
CREATE TABLE table_name_5 (tournament VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_20 WHERE loss = "farrell (6-13)"
What date is associated with the Loss of Farrell (6-13)?
CREATE TABLE table_name_20 (date VARCHAR, loss VARCHAR)
SELECT studio FROM table_11222744_2 WHERE catalog_number = "81258"
where catalog number is 81258 , what are all the studio ?
CREATE TABLE table_11222744_2 (studio VARCHAR, catalog_number VARCHAR)
SELECT apt_type_code, bathroom_count, bedroom_count FROM Apartments GROUP BY apt_type_code ORDER BY SUM(room_count) DESC LIMIT 1
Show the apartment type code that has the largest number of total rooms, together with the number of bathrooms and number of bedrooms.
CREATE TABLE Apartments (apt_type_code VARCHAR, bathroom_count VARCHAR, bedroom_count VARCHAR, room_count INTEGER)
SELECT engine_code FROM table_name_11 WHERE model = "xdrive23d"
What is the engine code of the xdrive23d model?
CREATE TABLE table_name_11 (engine_code VARCHAR, model VARCHAR)
SELECT event FROM table_name_6 WHERE year = 2002 AND competition = "european indoor championships"
What is the Event, when Year is 2002, and when Competition is European Indoor Championships?
CREATE TABLE table_name_6 (event VARCHAR, year VARCHAR, competition VARCHAR)
SELECT first_us_tour_cast FROM table_name_16 WHERE original_broadway_cast = "sarah bolt"
What shows as the First US Tour Cast when the Original Broadway Cast was Sarah Bolt?
CREATE TABLE table_name_16 (first_us_tour_cast VARCHAR, original_broadway_cast VARCHAR)
SELECT COUNT(latitude) FROM table_18600760_15 WHERE water__sqmi_ = "0.081"
how many latitudes have 0.081 (sqmi) of water?
CREATE TABLE table_18600760_15 (latitude VARCHAR, water__sqmi_ VARCHAR)
SELECT to_par FROM table_name_81 WHERE place = "t1" AND score = 70 - 73 - 69 = 212
What player was place of t1 in To Par and had a score of 70-73-69=212?
CREATE TABLE table_name_81 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT COUNT(tv_season) FROM table_217785_2 WHERE viewers__in_millions_of_households_ = "10.2"
Which season received 10.2 million viewers?
CREATE TABLE table_217785_2 (tv_season VARCHAR, viewers__in_millions_of_households_ VARCHAR)
SELECT 1 AS st_leg FROM table_name_11 WHERE agg = "4-3"
What was the 1st leg of the match that had an aggregate of 4-3?
CREATE TABLE table_name_11 (agg VARCHAR)
SELECT week FROM table_name_19 WHERE record = "0-1"
Tell me the week for record of 0-1
CREATE TABLE table_name_19 (week VARCHAR, record VARCHAR)
SELECT engine FROM table_20866024_4 WHERE model_type = "CF350"
Name the Engine for model CF350.
CREATE TABLE table_20866024_4 (engine VARCHAR, model_type VARCHAR)
SELECT length FROM table_name_94 WHERE circuit = "laguna seca raceway" AND class = "gtu"
What is the length of the Laguna Seca Raceway circuit with a class of gtu?
CREATE TABLE table_name_94 (length VARCHAR, circuit VARCHAR, class VARCHAR)
SELECT height FROM table_name_49 WHERE club = "havk mladost"
What is the height for club Havk Mladost?
CREATE TABLE table_name_49 (height VARCHAR, club VARCHAR)
SELECT player FROM table_name_21 WHERE balls = 50
Which player had 50 balls?
CREATE TABLE table_name_21 (player VARCHAR, balls VARCHAR)
SELECT surface FROM table_name_14 WHERE partner = "natalia gussoni"
What surface has natalia gussoni as the partner?
CREATE TABLE table_name_14 (surface VARCHAR, partner VARCHAR)
SELECT SUM(wards__branches_in_arkansas) FROM table_name_93 WHERE stake = "north little rock arkansas"
What is the sum of the wards/branches in Arkansas of the North Little Rock Arkansas stake?
CREATE TABLE table_name_93 (wards__branches_in_arkansas INTEGER, stake VARCHAR)
SELECT AVG(began_operation) FROM table_name_12 WHERE length__km_ = "ampang" AND stations > 27
What is the average operation beginning with a length of ampang and over 27 stations?
CREATE TABLE table_name_12 (began_operation INTEGER, length__km_ VARCHAR, stations VARCHAR)
SELECT attendance FROM table_name_81 WHERE week < 4 AND record = "2–1"
How many were in attendance in a week less than 4 with a record of 2–1?
CREATE TABLE table_name_81 (attendance VARCHAR, week VARCHAR, record VARCHAR)
SELECT away_team FROM table_name_27 WHERE venue = "punt road oval"
What is the away team's score at punt road oval?
CREATE TABLE table_name_27 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(party) FROM table_19753079_35 WHERE candidates = "Richard L. Hanna (R) 53.1% Mike Arcuri (D) 46.9%"
Name the number of party for richard l. hanna (r) 53.1% mike arcuri (d) 46.9%
CREATE TABLE table_19753079_35 (party VARCHAR, candidates VARCHAR)
SELECT start FROM table_name_58 WHERE tries = "8" AND conv = "0"
Which Start has 8 Tries and 0 Convs?
CREATE TABLE table_name_58 (start VARCHAR, tries VARCHAR, conv VARCHAR)
SELECT decision FROM table_name_81 WHERE home = "detroit" AND visitor = "boston"
Who made the decision when detroit was the home team and boston was the visitor?
CREATE TABLE table_name_81 (decision VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT bronze FROM table_name_20 WHERE nation = "south korea"
How many bronze medals does South Korea have?
CREATE TABLE table_name_20 (bronze VARCHAR, nation VARCHAR)
SELECT result FROM table_name_14 WHERE record = "5–4"
Which Result has a Record of 5–4?
CREATE TABLE table_name_14 (result VARCHAR, record VARCHAR)
SELECT MIN(touchdowns) FROM table_name_74 WHERE position = "left halfback" AND player = "willie heston" AND points > 15
What is the lowest number of touchdowns for left halfback WIllie Heston who has more than 15 points?
CREATE TABLE table_name_74 (touchdowns INTEGER, points VARCHAR, position VARCHAR, player VARCHAR)
SELECT top_speed FROM table_1857216_1 WHERE production = "2006-2009" AND transmission = "5-speed manual"
What is the top speed of a 5-speed manual transmission produced in 2006-2009?
CREATE TABLE table_1857216_1 (top_speed VARCHAR, production VARCHAR, transmission VARCHAR)
SELECT MAX(gold) FROM table_name_57 WHERE nation = "lithuania (ltu)" AND total > 1
What is the number of gold medals for Lithuania (ltu), when the total is more than 1?
CREATE TABLE table_name_57 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT tournament FROM table_name_56 WHERE margin_of_victory = "2 strokes" AND date = "sep 20, 1981"
What is the name of the tournament played on Sep 20, 1981, ending with a margin of vicroty of 2 strokes?
CREATE TABLE table_name_56 (tournament VARCHAR, margin_of_victory VARCHAR, date VARCHAR)
SELECT bbc_three_weekly_ranking FROM table_24399615_3 WHERE episode_no = 5
Where where the bbc three weekly ranking for episode no. 5?
CREATE TABLE table_24399615_3 (bbc_three_weekly_ranking VARCHAR, episode_no VARCHAR)
SELECT round FROM table_name_32 WHERE college = "oregon"
Which round is the player from Oregon from?
CREATE TABLE table_name_32 (round VARCHAR, college VARCHAR)
SELECT competition FROM table_name_99 WHERE notes = "1.90 m"
In which competition(s) did Iljuštšenko jump 1.90 m?
CREATE TABLE table_name_99 (competition VARCHAR, notes VARCHAR)
SELECT trofeo_fast_team FROM table_name_10 WHERE winner = "alessandro paganessi"
Which Trofeo Fast Team has a Winner of alessandro paganessi?
CREATE TABLE table_name_10 (trofeo_fast_team VARCHAR, winner VARCHAR)
SELECT british FROM table_name_44 WHERE american = "i" AND australian = "i"
What's the British pronunciation when the American and Australian is i?
CREATE TABLE table_name_44 (british VARCHAR, american VARCHAR, australian VARCHAR)
SELECT score FROM table_name_20 WHERE away_team = "exeter city"
What is the score where the away team is Exeter City?
CREATE TABLE table_name_20 (score VARCHAR, away_team VARCHAR)
SELECT SUM(gold) FROM table_name_49 WHERE nation = "south korea"
How much gold did South Korea get?
CREATE TABLE table_name_49 (gold INTEGER, nation VARCHAR)
SELECT name FROM table_name_5 WHERE number = "8"
What name has 8 as the number?
CREATE TABLE table_name_5 (name VARCHAR, number VARCHAR)
SELECT MIN(total) FROM table_name_21 WHERE nation = "sweden (swe)" AND silver < 1
What's the total of Sweden (SWE) having less than 1 silver?
CREATE TABLE table_name_21 (total INTEGER, nation VARCHAR, silver VARCHAR)
SELECT position FROM table_name_24 WHERE pick < 15 AND college = "rice"
What position did the player from Rice College play who was picked under 15?
CREATE TABLE table_name_24 (position VARCHAR, pick VARCHAR, college VARCHAR)
SELECT time FROM table_name_15 WHERE event = "bellator 89"
what is the time when the event is bellator 89?
CREATE TABLE table_name_15 (time VARCHAR, event VARCHAR)
SELECT name FROM table_name_41 WHERE rank < 24 AND altitude__meters_ = 3085
What name is associated with a rank of less than 24, and an altitude (meters) of 3085?
CREATE TABLE table_name_41 (name VARCHAR, rank VARCHAR, altitude__meters_ VARCHAR)
SELECT high_assists FROM table_23284271_8 WHERE record = "32-19"
Who had the most high assists with a record of 32-19?
CREATE TABLE table_23284271_8 (high_assists VARCHAR, record VARCHAR)
SELECT innings FROM table_28846752_5 WHERE bbi = "4/26"
how many innings had bbi 4/26?
CREATE TABLE table_28846752_5 (innings VARCHAR, bbi VARCHAR)
SELECT constituency FROM table_22754310_1 WHERE margin = 175130
Name the constituency for 175130
CREATE TABLE table_22754310_1 (constituency VARCHAR, margin VARCHAR)
SELECT AVG(length_feet) FROM bridge
What is the average length in feet of the bridges?
CREATE TABLE bridge (length_feet INTEGER)
SELECT MIN(pick__number) FROM table_16729063_1 WHERE player = "Chris Brewer"
What draft pick was Chris Brewer?
CREATE TABLE table_16729063_1 (pick__number INTEGER, player VARCHAR)
SELECT party FROM table_name_10 WHERE member = "sydney sampson"
Which party is sydney sampson a member of?
CREATE TABLE table_name_10 (party VARCHAR, member VARCHAR)
SELECT COUNT(guest_s_) FROM table_29135051_3 WHERE broadcast_date = "11September2012"
how many guest stars did the episode that was broadcasted 11september2012 have
CREATE TABLE table_29135051_3 (guest_s_ VARCHAR, broadcast_date VARCHAR)
SELECT builder FROM table_name_12 WHERE ship = "nor"
Who was the builder of Nor?
CREATE TABLE table_name_12 (builder VARCHAR, ship VARCHAR)
SELECT record FROM table_name_27 WHERE date = "march 25"
What was the record for the game on March 25?
CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR)
SELECT report FROM table_2241101_1 WHERE year = 2010
What was the report for 2010?
CREATE TABLE table_2241101_1 (report VARCHAR, year VARCHAR)
SELECT gross_revenue__2011_ FROM table_name_78 WHERE gross_revenue__1982_ = "$156,315"
What was the 2011 gross revenue for the venue that had a gross revenue of $156,315 in 1982?
CREATE TABLE table_name_78 (gross_revenue__2011_ VARCHAR, gross_revenue__1982_ VARCHAR)
SELECT epicenter FROM table_name_10 WHERE intensity = "unknown" AND date = "march 2, 1825"
What is the epicenter of the earthquake on March 2, 1825 with an unknown intensity?
CREATE TABLE table_name_10 (epicenter VARCHAR, intensity VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_19 WHERE away_team = "south melbourne"
What home team did South Melbourne play as the away team?
CREATE TABLE table_name_19 (home_team VARCHAR, away_team VARCHAR)
SELECT result FROM table_name_26 WHERE date = "march 14, 2007"
What is the result from March 14, 2007?
CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR)
SELECT player FROM table_18621456_22 WHERE legs_lost = 41
Who is the player with 41 legs lost?
CREATE TABLE table_18621456_22 (player VARCHAR, legs_lost VARCHAR)
SELECT MAX(week) FROM table_name_61 WHERE attendance = "73,572"
What is the week with attendance of 73,572?
CREATE TABLE table_name_61 (week INTEGER, attendance VARCHAR)
SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1
How much does the most recent treatment cost?
CREATE TABLE Treatments (cost_of_treatment VARCHAR, date_of_treatment VARCHAR)
SELECT AVG(round) FROM table_name_7 WHERE time = "5:00" AND event = "hero's 9"
What is the average round of the match in the Hero's 9 event with a time of 5:00?
CREATE TABLE table_name_7 (round INTEGER, time VARCHAR, event VARCHAR)
SELECT score FROM table_name_86 WHERE champion = "vikings" AND stadium = "namyangju stadium"
What was the score when the Vikings won the championship at Namyangju Stadium?
CREATE TABLE table_name_86 (score VARCHAR, champion VARCHAR, stadium VARCHAR)