answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT week_1 FROM table_name_69 WHERE week_3 = "alinna d penta"
When Alinna D Penta was the cyber girl in week 3, who was the cyber girl in week 1?
CREATE TABLE table_name_69 (week_1 VARCHAR, week_3 VARCHAR)
SELECT opponent FROM table_name_38 WHERE result = "l 24–14"
What was the Opponent in the game with a Result of L 24–14?
CREATE TABLE table_name_38 (opponent VARCHAR, result VARCHAR)
SELECT region FROM table_name_77 WHERE country = "laos"
The country of Laos is in what region?
CREATE TABLE table_name_77 (region VARCHAR, country VARCHAR)
SELECT MIN(points) FROM table_name_42 WHERE goal_difference > 29
What is the fewest points that has more than 29 goals?
CREATE TABLE table_name_42 (points INTEGER, goal_difference INTEGER)
SELECT MIN(shot_pct) FROM table_name_2 WHERE blank_ends > 6
What is the lowest Shot Pct., when Blank Ends is greater than 6?
CREATE TABLE table_name_2 (shot_pct INTEGER, blank_ends INTEGER)
SELECT h_a_n FROM table_name_64 WHERE record = "20-48"
What is H/A/N, when Record is 20-48?
CREATE TABLE table_name_64 (h_a_n VARCHAR, record VARCHAR)
SELECT player FROM table_name_78 WHERE score = 73 - 68 - 66 = 207
What player scored 73-68-66=207?
CREATE TABLE table_name_78 (player VARCHAR, score VARCHAR)
SELECT COUNT(year) FROM table_name_71 WHERE venue = "latakia , syria"
COunt the Year which has a Venue of latakia , syria?
CREATE TABLE table_name_71 (year VARCHAR, venue VARCHAR)
SELECT finish FROM table_name_20 WHERE total = 306
What is Finish, when Total is "306"?
CREATE TABLE table_name_20 (finish VARCHAR, total VARCHAR)
SELECT MIN(total_matches) FROM table_name_11 WHERE points_won = 3 AND year = "1994"
Can you tell me the lowest Total natches that has the Points won of 3, and the Year of 1994?
CREATE TABLE table_name_11 (total_matches INTEGER, points_won VARCHAR, year VARCHAR)
SELECT opening FROM table_name_77 WHERE white = "kramnik" AND year < 2001 AND tournament = "siemens giants"
What is Opening, when White is Kramnik, when Year is less than 2001, and when Tournament is "Siemens Giants"?
CREATE TABLE table_name_77 (opening VARCHAR, tournament VARCHAR, white VARCHAR, year VARCHAR)
SELECT record FROM table_name_23 WHERE date = "july 31"
Which Record is on july 31?
CREATE TABLE table_name_23 (record VARCHAR, date 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 assists_per_game FROM table_2387461_1 WHERE rebounds_per_game = "4.2"
How many assists per game have 4.2 rebounds per game?
CREATE TABLE table_2387461_1 (assists_per_game VARCHAR, rebounds_per_game VARCHAR)
SELECT mascot FROM table_name_48 WHERE school = "borden"
What is the mascot at Borden?
CREATE TABLE table_name_48 (mascot VARCHAR, school VARCHAR)
SELECT MAX(ends) FROM table_name_41 WHERE name = "zambrano"
Which Ends have a Name of zambrano?
CREATE TABLE table_name_41 (ends INTEGER, name VARCHAR)
SELECT date FROM table_name_32 WHERE result = "w 20-17" AND record = "1-0"
What date has w 20-17 as the result, and 1-0 as the record?
CREATE TABLE table_name_32 (date VARCHAR, result VARCHAR, record VARCHAR)
SELECT ofsted FROM table_name_83 WHERE capacity = 1677
Which Ofsted has a Capacity of 1677?
CREATE TABLE table_name_83 (ofsted VARCHAR, capacity VARCHAR)
SELECT settlement FROM table_2562572_53 WHERE population__2011_ = 9443
What is the name of the settlement that had a population of 9443 in 2011?
CREATE TABLE table_2562572_53 (settlement VARCHAR, population__2011_ VARCHAR)
SELECT type_of_game FROM table_name_5 WHERE results¹ = "1:6"
What was the type of game with a 1:6 result?
CREATE TABLE table_name_5 (type_of_game VARCHAR, results¹ VARCHAR)
SELECT COUNT(genre) FROM table_26488540_1 WHERE artist = "The Jimi Hendrix Experience"
How many different genres appear for the Jimi Hendrix Experience?
CREATE TABLE table_26488540_1 (genre VARCHAR, artist VARCHAR)
SELECT SUM(gross_tonnage) FROM table_name_94 WHERE ship = "isis" AND date_commissioned < 1842
Tell me the sum of Gross Tonnage for isis ship on date commisioned less than 1842
CREATE TABLE table_name_94 (gross_tonnage INTEGER, ship VARCHAR, date_commissioned VARCHAR)
SELECT model_number FROM table_name_57 WHERE frequency = "2000mhz" AND voltage = "0.75-1.2"
Which Model number has a Frequency of 2000mhz and a Voltage of 0.75-1.2?
CREATE TABLE table_name_57 (model_number VARCHAR, frequency VARCHAR, voltage VARCHAR)
SELECT SUM(height__m_) FROM table_name_70 WHERE year_built > 1984 AND name = "commerzbank tower"
What is the sum of the heights in meters for the commerzbank tower built after 1984?
CREATE TABLE table_name_70 (height__m_ INTEGER, year_built VARCHAR, name VARCHAR)
SELECT score FROM table_name_18 WHERE opponent = "orioles" AND loss = "morehead (5–4)"
What was the score when the opponent was the Orioles and the loss shows morehead (5–4)?
CREATE TABLE table_name_18 (score VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT gender FROM table_name_16 WHERE decile > 1 AND name = "south auckland seventh-day adventist school"
Which gender had a decile of more than 1 and featured the South Auckland Seventh-Day Adventist School?
CREATE TABLE table_name_16 (gender VARCHAR, decile VARCHAR, name VARCHAR)
SELECT money___$__ FROM table_name_73 WHERE player = "larry nelson"
How much did Larry Nelson win?
CREATE TABLE table_name_73 (money___$__ VARCHAR, player VARCHAR)
SELECT MIN(samples_taken) FROM table_18943444_1 WHERE product = "蒙牛牌嬰幼兒配方乳粉"
What is the smallest amount sampled of product 蒙牛牌嬰幼兒配方乳粉 ?
CREATE TABLE table_18943444_1 (samples_taken INTEGER, product VARCHAR)
SELECT class FROM table_name_32 WHERE laps = 325
What was the class when there were 325 laps?
CREATE TABLE table_name_32 (class VARCHAR, laps VARCHAR)
SELECT song_name FROM song WHERE rating < (SELECT MAX(rating) FROM song WHERE genre_is = "blues")
What are the names of all songs that have a lower rating than some song of blues genre?
CREATE TABLE song (song_name VARCHAR, rating INTEGER, genre_is VARCHAR)
SELECT MAX(gold) FROM table_name_31 WHERE nation = "canada" AND bronze > 7
What is the largest number of gold medals for Canada with more than 7 bronze medals?
CREATE TABLE table_name_31 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT broadcaster FROM table_24919137_2 WHERE opposition = "Melbourne"
Which network broadcast the game when the Western Bulldogs played melbourne?
CREATE TABLE table_24919137_2 (broadcaster VARCHAR, opposition VARCHAR)
SELECT MIN(viewership__millions_) FROM table_name_54 WHERE broadcast_date = "7 september 2001"
What is the lowest viewership in millions of the episode broadcast on 7 September 2001?
CREATE TABLE table_name_54 (viewership__millions_ INTEGER, broadcast_date VARCHAR)
SELECT AVG(laps) FROM table_name_15 WHERE year = "1949"
What is the average number of laps in 1949?
CREATE TABLE table_name_15 (laps INTEGER, year VARCHAR)
SELECT round FROM table_name_32 WHERE opposition = "adelaide united" AND attendance = "18,345"
What round was adelaide united the opposition with an attendance of 18,345?
CREATE TABLE table_name_32 (round VARCHAR, opposition VARCHAR, attendance VARCHAR)
SELECT name FROM table_name_14 WHERE total_tenure_time = "36 years, 0 days" AND uninterrupted_time = "36 years, 0 days" AND total_tenure_rank = 49
Who has a total tenure time and uninterrupted time of 36 years, 0 days, as well as a total tenure rank of 49?
CREATE TABLE table_name_14 (name VARCHAR, total_tenure_rank VARCHAR, total_tenure_time VARCHAR, uninterrupted_time VARCHAR)
SELECT SUM(wins) FROM table_name_19 WHERE goals_against < 21
What is the total wins with less than 21 goals taken?
CREATE TABLE table_name_19 (wins INTEGER, goals_against INTEGER)
SELECT years_for_grizzlies FROM table_name_56 WHERE position = "point guard" AND school_club_team = "florida"
What are the years when the grizzlies had a point guard who attended the school/club Florida?
CREATE TABLE table_name_56 (years_for_grizzlies VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT MIN(population_112008) FROM table_name_62 WHERE population_per_square_km = 1.957 AND population_112006 < 12.67
Name the least population 1.1.2008 with population per square km of 1.957 and population 1.1.2006 less than 12.67
CREATE TABLE table_name_62 (population_112008 INTEGER, population_per_square_km VARCHAR, population_112006 VARCHAR)
SELECT party FROM table_1341672_14 WHERE incumbent = "Tim Lee Hall"
Name the party for tim lee hall
CREATE TABLE table_1341672_14 (party VARCHAR, incumbent VARCHAR)
SELECT race FROM table_2062148_3 WHERE distance = "1200 m"
What race has a distance of 1200 m?
CREATE TABLE table_2062148_3 (race VARCHAR, distance VARCHAR)
SELECT title FROM table_28582091_2 WHERE production_code = "2J5515"
What was the title of the episode with production code 2J5515?
CREATE TABLE table_28582091_2 (title VARCHAR, production_code VARCHAR)
SELECT date FROM table_name_31 WHERE record = "90-60"
Name the date that had a record of 90-60
CREATE TABLE table_name_31 (date VARCHAR, record VARCHAR)
SELECT MIN(attendance) FROM table_name_19 WHERE date = "september 4, 1983"
What is the lowest attendance on September 4, 1983?
CREATE TABLE table_name_19 (attendance INTEGER, date VARCHAR)
SELECT race_winner FROM table_name_1 WHERE round = "europe"
Who won the round in Europe?
CREATE TABLE table_name_1 (race_winner VARCHAR, round VARCHAR)
SELECT result FROM table_name_69 WHERE competition = "friendly"
What was the result of the friendly competition?
CREATE TABLE table_name_69 (result VARCHAR, competition VARCHAR)
SELECT opponent FROM table_name_40 WHERE date = "september 26"
What is the Opponent of the game on September 26?
CREATE TABLE table_name_40 (opponent VARCHAR, date VARCHAR)
SELECT first_aired FROM table_name_98 WHERE episode = "episode 6" AND entrepreneur_s_ = "guy portelli"
When did episode 6 first air with entrepreneur Guy Portelli?
CREATE TABLE table_name_98 (first_aired VARCHAR, episode VARCHAR, entrepreneur_s_ VARCHAR)
SELECT young_rider_classification FROM table_28538368_2 WHERE winner = "Paolo Tiralongo"
What is the name of the young rider classification when Paolo Tiralongo won?
CREATE TABLE table_28538368_2 (young_rider_classification VARCHAR, winner VARCHAR)
SELECT COUNT(gymnast) FROM table_18662026_10 WHERE parallel_bars = "14.025"
If the parallel bars is 14.025, what is the total number of gymnasts?
CREATE TABLE table_18662026_10 (gymnast VARCHAR, parallel_bars VARCHAR)
SELECT producer_s_ FROM table_name_7 WHERE track = 7
Who produced track 7?
CREATE TABLE table_name_7 (producer_s_ VARCHAR, track VARCHAR)
SELECT MIN(votes) FROM table_name_97 WHERE rank = "5th" AND occupation = "retired" AND riding = "brant"
What's the lowest in Votes with a Rank of 5th, has an Occupation of retired, along with a Riding of Brant?
CREATE TABLE table_name_97 (votes INTEGER, riding VARCHAR, rank VARCHAR, occupation VARCHAR)
SELECT SUM(points) FROM table_name_66 WHERE against < 24 AND played < 20
What is the sum of Points when the against is less than 24 and played is less than 20?
CREATE TABLE table_name_66 (points INTEGER, against VARCHAR, played VARCHAR)
SELECT height FROM table_name_93 WHERE player = "daniel orton"
How tall is Daniel Orton?
CREATE TABLE table_name_93 (height VARCHAR, player VARCHAR)
SELECT years FROM table_14962287_2 WHERE total = "139"
What years have a total of 139?
CREATE TABLE table_14962287_2 (years VARCHAR, total VARCHAR)
SELECT player FROM table_name_34 WHERE transfer_fee = "£750,000 [x]"
Which Player has a Transfer fee of £750,000 [x]?
CREATE TABLE table_name_34 (player VARCHAR, transfer_fee VARCHAR)
SELECT year FROM table_name_35 WHERE assists = "48"
What year had 48 assists?
CREATE TABLE table_name_35 (year VARCHAR, assists VARCHAR)
SELECT penalty FROM table_name_42 WHERE team = "det" AND player = "andreas lilja"
What is the penalty for the DET team player Andreas Lilja?
CREATE TABLE table_name_42 (penalty VARCHAR, team VARCHAR, player VARCHAR)
SELECT venue FROM table_name_83 WHERE home_team = "st kilda"
What is the name of the venue where home team st kilda played?
CREATE TABLE table_name_83 (venue VARCHAR, home_team VARCHAR)
SELECT category FROM table_name_40 WHERE result = "nominated" AND lost_to = "jennifer westfeldt ( kissing jessica stein )"
which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )?
CREATE TABLE table_name_40 (category VARCHAR, result VARCHAR, lost_to VARCHAR)
SELECT MIN(rank__night_) FROM table_11253290_2 WHERE viewers__millions_ = "5.25"
What is the lowest rank (night) for having viewers (millions) 5.25?
CREATE TABLE table_11253290_2 (rank__night_ INTEGER, viewers__millions_ VARCHAR)
SELECT * FROM employees WHERE hire_date > '1987-09-07'
display those employees who joined after 7th September, 1987.
CREATE TABLE employees (hire_date INTEGER)
SELECT MIN(season) FROM table_name_34 WHERE driver = "farad bathena"
What is the earliest season with driver Farad Bathena?
CREATE TABLE table_name_34 (season INTEGER, driver VARCHAR)
SELECT date FROM table_name_83 WHERE game < 4 AND opponent = "calgary flames" AND score = "4–5"
Which Date has a Game smaller than 4, and an Opponent of calgary flames, and a Score of 4–5?
CREATE TABLE table_name_83 (date VARCHAR, score VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT COUNT(crowd) FROM table_name_15 WHERE away_team = "hawthorn"
What is the total Crowd number for the Away team of Hawthorn?
CREATE TABLE table_name_15 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(season) FROM table_12028543_3 WHERE losingteam = "Adelaide City"
How many seasons was the losing team Adelaide City?
CREATE TABLE table_12028543_3 (season VARCHAR, losingteam VARCHAR)
SELECT away_team AS score FROM table_16388439_2 WHERE crowd = 8642
When the crowd was 8642 what was the away team's score?
CREATE TABLE table_16388439_2 (away_team VARCHAR, crowd VARCHAR)
SELECT year_s__won FROM table_name_36 WHERE total < 300 AND to_par = 9
What year did the player with a total less than 300 and a to par of 9 have a win?
CREATE TABLE table_name_36 (year_s__won VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT winning_score FROM table_name_7 WHERE runner_s__up = "ernie els"
What is the winning score for the runner-up Ernie Els?
CREATE TABLE table_name_7 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT competition FROM table_name_97 WHERE result = "draw" AND date = "29 november 1997"
What was the competition on 29 November 1997 that resulted in a draw?
CREATE TABLE table_name_97 (competition VARCHAR, result VARCHAR, date VARCHAR)
SELECT winning_team FROM table_name_11 WHERE date = "july 13"
Who was the winning team on July 13?
CREATE TABLE table_name_11 (winning_team VARCHAR, date VARCHAR)
SELECT points_against FROM table_14058433_4 WHERE lost = "13"
what's the points against with lost being 13
CREATE TABLE table_14058433_4 (points_against VARCHAR, lost VARCHAR)
SELECT studio FROM table_name_13 WHERE title = "the oregon trail"
Which studio did The Oregon Trail?
CREATE TABLE table_name_13 (studio VARCHAR, title VARCHAR)
SELECT MIN(pos) FROM table_23385853_20 WHERE finishes = 10
If finishes is 10, what is the POS minimum?
CREATE TABLE table_23385853_20 (pos INTEGER, finishes VARCHAR)
SELECT training FROM table_20065425_1 WHERE presentation_of_credentials = "February 24, 1950"
Who trained the representative whose presentation of credentials happened on February 24, 1950?
CREATE TABLE table_20065425_1 (training VARCHAR, presentation_of_credentials VARCHAR)
SELECT score FROM table_name_47 WHERE date = "may 2"
What is the Score with a Date with may 2?
CREATE TABLE table_name_47 (score VARCHAR, date VARCHAR)
SELECT LANGUAGE, CountryCode, MAX(Percentage) FROM countrylanguage GROUP BY CountryCode
What is the language spoken by the largest percentage of people in each country?
CREATE TABLE countrylanguage (LANGUAGE VARCHAR, CountryCode VARCHAR, Percentage INTEGER)
SELECT genre FROM table_name_29 WHERE year = 2007
What genre is the game from the year 2007?
CREATE TABLE table_name_29 (genre VARCHAR, year VARCHAR)
SELECT name FROM table_name_96 WHERE propulsion = "turbojet" AND year > 1985 AND launched_by = "surface, sub"
What is the name of the anti-ship missile that had a turbojet propulsion that was launched by a surface, sub after 1985?
CREATE TABLE table_name_96 (name VARCHAR, launched_by VARCHAR, propulsion VARCHAR, year VARCHAR)
SELECT COUNT(position) FROM table_24565004_13 WHERE nationality² = "Democratic Republic of the Congo"
Name the number of position for democratic republic of the congo
CREATE TABLE table_24565004_13 (position VARCHAR, nationality² VARCHAR)
SELECT maximum_diameter FROM table_name_57 WHERE name__year_commissioned_ = "mid west gas pipeline (1999)"
What is the maximum diameter of the Mid West Gas Pipeline (1999)?
CREATE TABLE table_name_57 (maximum_diameter VARCHAR, name__year_commissioned_ VARCHAR)
SELECT ground FROM table_name_37 WHERE figures = "4/23"
At which ground did Dirk Nannes have a figure of 4/23?
CREATE TABLE table_name_37 (ground VARCHAR, figures VARCHAR)
SELECT COUNT(qb_rating) FROM table_19418696_3 WHERE completions = 1069
How many QB ratings for the player with 1069 completions?
CREATE TABLE table_19418696_3 (qb_rating VARCHAR, completions VARCHAR)
SELECT AVG(position) FROM table_name_31 WHERE points < 11 AND pilot = "petr krejcirik"
What is the average position of pilot petr krejcirik, who has less than 11 points?
CREATE TABLE table_name_31 (position INTEGER, points VARCHAR, pilot VARCHAR)
SELECT MIN(season) FROM table_16857_2
When was the first season?
CREATE TABLE table_16857_2 (season INTEGER)
SELECT College, COUNT(*) FROM submission GROUP BY College
Show different colleges along with the number of authors of submission from each college.
CREATE TABLE submission (College VARCHAR)
SELECT operator_name FROM table_26745820_1 WHERE distance = "3105km"
What is the operator name when the distance is 3105km?
CREATE TABLE table_26745820_1 (operator_name VARCHAR, distance VARCHAR)
SELECT date FROM table_name_69 WHERE score1 = "2 - 4" AND opponent = "chelsea under 18s"
On what date is there a score1 of 2 - 4 with the opponent Chelsea under 18s?
CREATE TABLE table_name_69 (date VARCHAR, score1 VARCHAR, opponent VARCHAR)
SELECT completion_percentage FROM table_19517448_3 WHERE yards_per_attempt = "Steve McNair : 2003"
What is the completion percentage when yards per attempt was done by Steve McNair : 2003?
CREATE TABLE table_19517448_3 (completion_percentage VARCHAR, yards_per_attempt VARCHAR)
SELECT stadium FROM table_name_85 WHERE visiting_team = "los angeles raiders"
At which stadium did the Los Angeles Raiders play as the visiting team?
CREATE TABLE table_name_85 (stadium VARCHAR, visiting_team VARCHAR)
SELECT result FROM table_name_93 WHERE guest = "fc zürich (asl)"
What was the result when the guest was fc zürich (asl)?
CREATE TABLE table_name_93 (result VARCHAR, guest VARCHAR)
SELECT MIN(year_built) FROM table_name_26 WHERE location = "sonnemannstraße/rückertstraße, ostend" AND height__m_ > 185
What is the earliest year that the building in sonnemannstraße/rückertstraße, ostend was built with a height larger than 185 meters?
CREATE TABLE table_name_26 (year_built INTEGER, location VARCHAR, height__m_ VARCHAR)
SELECT office FROM table_name_63 WHERE republican_ticket = "seymour lowman"
What is the Office when the Republican ticket shows seymour lowman?
CREATE TABLE table_name_63 (office VARCHAR, republican_ticket VARCHAR)
SELECT MIN(laps) FROM table_name_58 WHERE driver = "jo siffert"
What is the least number of laps for the driver Jo Siffert?
CREATE TABLE table_name_58 (laps INTEGER, driver VARCHAR)
SELECT date FROM table_name_28 WHERE home = "dallas"
What was the date when the home team was Dallas?
CREATE TABLE table_name_28 (date VARCHAR, home VARCHAR)
SELECT lead FROM table_name_58 WHERE others = "5%"
I want the lead for others being 5%
CREATE TABLE table_name_58 (lead VARCHAR, others VARCHAR)
SELECT SUM(enrollment) FROM table_name_5 WHERE team_nickname = "wildcats"
The school nicknamed the wildcats has what sum of enrollment?
CREATE TABLE table_name_5 (enrollment INTEGER, team_nickname VARCHAR)
SELECT wheels FROM table_name_33 WHERE built = 1920
Which wheels were built 1920?
CREATE TABLE table_name_33 (wheels VARCHAR, built VARCHAR)
SELECT candidates FROM table_2668378_5 WHERE incumbent = "John Boyle"
Name the candidates for john boyle
CREATE TABLE table_2668378_5 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(college_junior_club_team) FROM table_2850912_5 WHERE nationality = "Sweden"
How many college/junior/club teams are from Sweden?
CREATE TABLE table_2850912_5 (college_junior_club_team VARCHAR, nationality VARCHAR)