answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(league) AS Cup FROM table_name_18 WHERE fa_cup = 5 AND club = "boston united" AND league < 16
Which League Cup has a FA Cup of 5, and a Club of boston united, and a League smaller than 16?
CREATE TABLE table_name_18 (league INTEGER, fa_cup VARCHAR, club VARCHAR)
SELECT undecided FROM table_name_22 WHERE roy_barnes = "47%"
What was the undecided with Roy Barnes at 47%?
CREATE TABLE table_name_22 (undecided VARCHAR, roy_barnes VARCHAR)
SELECT weight FROM pets ORDER BY pet_age LIMIT 1
Find the weight of the youngest dog.
CREATE TABLE pets (weight VARCHAR, pet_age VARCHAR)
SELECT date FROM table_name_5 WHERE venue = "away" AND result = "lost 6-4 (lost 9-7 on agg)"
On what date was the venue Away and the result was lost 6-4 (lost 9-7 on agg)?
CREATE TABLE table_name_5 (date VARCHAR, venue VARCHAR, result VARCHAR)
SELECT district FROM table_name_82 WHERE estd = 1942
Which district was established in 1942?
CREATE TABLE table_name_82 (district VARCHAR, estd VARCHAR)
SELECT COUNT(district) FROM table_29486189_4 WHERE representative = "Andy Thompson"
which district does andy thompson represent
CREATE TABLE table_29486189_4 (district VARCHAR, representative VARCHAR)
SELECT producer FROM table_18943444_1 WHERE product = "磊磊牌嬰幼兒配方乳粉"
What are the producers of 磊磊牌嬰幼兒配方乳粉 ?
CREATE TABLE table_18943444_1 (producer VARCHAR, product VARCHAR)
SELECT AVG(crowd) FROM table_name_54 WHERE home_team = "st kilda"
What was the attendance at the St Kilda home game?
CREATE TABLE table_name_54 (crowd INTEGER, home_team VARCHAR)
SELECT AVG(goal_difference) FROM table_name_63 WHERE points > 27 AND losses < 9 AND club = "cultural leonesa"
What is the average goal difference of club cultural leonesa, which has more than 27 points and less than 9 losses?
CREATE TABLE table_name_63 (goal_difference INTEGER, club VARCHAR, points VARCHAR, losses VARCHAR)
SELECT MIN(number_of_fixtures) FROM table_27973624_1
What is the lowest number of fixtures?
CREATE TABLE table_27973624_1 (number_of_fixtures INTEGER)
SELECT MIN(highest_position) FROM table_13805432_2 WHERE artist = "Paul Evans"
what is the minimum highest position with artbeingt being paul evans
CREATE TABLE table_13805432_2 (highest_position INTEGER, artist VARCHAR)
SELECT species FROM table_name_78 WHERE length__bp_aa_ = "1154bp/358aa"
Which Species has a Length (bp/aa) of 1154bp/358aa?
CREATE TABLE table_name_78 (species VARCHAR, length__bp_aa_ VARCHAR)
SELECT power_rpm FROM table_name_91 WHERE model_engine = "1.8 duratorq"
Name the power for 1.8 duratorq
CREATE TABLE table_name_91 (power_rpm VARCHAR, model_engine VARCHAR)
SELECT place FROM table_name_3 WHERE score = 68 - 70 - 68 = 206
what is the place when the score is 68-70-68=206?
CREATE TABLE table_name_3 (place VARCHAR, score VARCHAR)
SELECT player FROM table_name_66 WHERE place = "1"
What is Player, when Place is "1"?
CREATE TABLE table_name_66 (player VARCHAR, place VARCHAR)
SELECT series FROM table_name_15 WHERE days > 99 AND prize = "€50,000"
What is Series, when Days is greater than 99, and when Prize is €50,000?
CREATE TABLE table_name_15 (series VARCHAR, days VARCHAR, prize VARCHAR)
SELECT player FROM table_name_88 WHERE year_s__won = "1931"
What is the Player who won in 1931?
CREATE TABLE table_name_88 (player VARCHAR, year_s__won VARCHAR)
SELECT director FROM table_name_13 WHERE producer = "raintree pictures"
What is the name of the director who directed the movie that Raintree Pictures produced?
CREATE TABLE table_name_13 (director VARCHAR, producer VARCHAR)
SELECT tournament FROM table_name_33 WHERE partner = "nicole thijssen" AND opponent_in_the_final = "nina bratchikova & frederica piedade"
What Tournament did Silva Partner with Nicole Thijssen with Opponent in the final Nina Bratchikova & Frederica Piedade?
CREATE TABLE table_name_33 (tournament VARCHAR, partner VARCHAR, opponent_in_the_final VARCHAR)
SELECT outcome FROM table_24901152_2 WHERE partner = "Alicia Molik"
When alicia molik is the partner what is the outcome?
CREATE TABLE table_24901152_2 (outcome VARCHAR, partner VARCHAR)
SELECT date FROM table_name_23 WHERE away_team = "hawthorn"
What day is hawthorn the away side?
CREATE TABLE table_name_23 (date VARCHAR, away_team VARCHAR)
SELECT attendance FROM table_name_20 WHERE score = "88-98"
What was the attendance when the score was 88-98?
CREATE TABLE table_name_20 (attendance VARCHAR, score VARCHAR)
SELECT opponents FROM table_name_21 WHERE partner = "yvonne meusburger"
Tell me the opponents for partner of yvonne meusburger
CREATE TABLE table_name_21 (opponents VARCHAR, partner VARCHAR)
SELECT release AS date FROM table_28540539_2 WHERE release = "1.1.10"
What's the release date in the 1.1.10 release?
CREATE TABLE table_28540539_2 (release VARCHAR)
SELECT AVG(ties) FROM table_name_68 WHERE played > 5
What is the average Ties, when Played is greater than 5?
CREATE TABLE table_name_68 (ties INTEGER, played INTEGER)
SELECT composition_name FROM table_23829490_1 WHERE music_library = "Heart of Asia" AND media_type = "Album" AND genre = "Trance"
What is every composition name when the music library is Heart of Asia and media type is album with the Trance genre?
CREATE TABLE table_23829490_1 (composition_name VARCHAR, genre VARCHAR, music_library VARCHAR, media_type VARCHAR)
SELECT tournament FROM table_name_61 WHERE 2009 = "f" AND 2010 = "f"
Which tournament had the result with 2009 was F and 2010 was F?
CREATE TABLE table_name_61 (tournament VARCHAR)
SELECT length FROM table_name_32 WHERE version = "single version"
What is listed for the Lengtht that has a Version of Single Version?
CREATE TABLE table_name_32 (length VARCHAR, version VARCHAR)
SELECT date FROM table_name_8 WHERE result = "16-0"
What is Date, when Result is 16-0?
CREATE TABLE table_name_8 (date VARCHAR, result VARCHAR)
SELECT prince_xml FROM table_name_63 WHERE gecko = "no" AND webkit = "nightly build"
What is the Prince XML value for the engine that has a Gecko value of 'no' and webkit value of 'nightly build'?
CREATE TABLE table_name_63 (prince_xml VARCHAR, gecko VARCHAR, webkit VARCHAR)
SELECT winner FROM table_name_76 WHERE tournament = "h.e.b. texas open"
Who is the winner of the H.E.B. Texas open?
CREATE TABLE table_name_76 (winner VARCHAR, tournament VARCHAR)
SELECT score FROM table_27902171_9 WHERE record = "47-34"
What were the scores of the games with a record of 47-34?
CREATE TABLE table_27902171_9 (score VARCHAR, record VARCHAR)
SELECT tournament FROM table_11622840_1 WHERE location = "Rhode Island"
Name all the tournaments that took place in Rhode Island.
CREATE TABLE table_11622840_1 (tournament VARCHAR, location VARCHAR)
SELECT COUNT(davids_team) FROM table_23575917_4 WHERE lees_team = "Deborah Meaden and Mark Watson"
How many David's team for the Lees Team of Deborah Meaden and Mark Watson?
CREATE TABLE table_23575917_4 (davids_team VARCHAR, lees_team VARCHAR)
SELECT COUNT(reason_for_change) FROM table_225200_4 WHERE date_successor_seated = "Not filled this congress"
Name the total number of reason for change for not filled this congress
CREATE TABLE table_225200_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
SELECT winning_score FROM table_name_4 WHERE margin_of_victory = "playoff" AND tournament = "safeco classic"
What was the winning score when the margin of victory was a playoff for the Tournament of safeco classic?
CREATE TABLE table_name_4 (winning_score VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT channel_tv___dt__ FROM table_1553485_1 WHERE station = "KPIX"
What channel tv (dt) plays the KPIX station?
CREATE TABLE table_1553485_1 (channel_tv___dt__ VARCHAR, station VARCHAR)
SELECT tournament FROM table_name_59 WHERE 2004 = "1r"
Which Tournament has a 2004 of 1r?
CREATE TABLE table_name_59 (tournament VARCHAR)
SELECT _percentage_of_seats FROM table_name_74 WHERE net_gain_loss = "+34"
When there was a net gain/loss of +34, what was the percentage of seats that party held?
CREATE TABLE table_name_74 (_percentage_of_seats VARCHAR, net_gain_loss VARCHAR)
SELECT race FROM table_name_98 WHERE position = "dnf"
Whice race ended with a DNF?
CREATE TABLE table_name_98 (race VARCHAR, position VARCHAR)
SELECT method FROM table_name_87 WHERE round = 1 AND event = "ufc 20"
What was the method in round 1 of the UFC 20 event?
CREATE TABLE table_name_87 (method VARCHAR, round VARCHAR, event VARCHAR)
SELECT MAX(_number) FROM table_197638_7 WHERE french_open = 1974
What is the number for the french open 1974?
CREATE TABLE table_197638_7 (_number INTEGER, french_open VARCHAR)
SELECT home_team FROM table_name_93 WHERE venue = "western oval"
What home team played at the western oval?
CREATE TABLE table_name_93 (home_team VARCHAR, venue VARCHAR)
SELECT visitor FROM table_name_86 WHERE date = "april 2"
What is the Visitor of the game on April 2?
CREATE TABLE table_name_86 (visitor VARCHAR, date VARCHAR)
SELECT AVG(rank) FROM table_name_86 WHERE goals = 230 AND matches > 535
What is the mean rank number when goals are 230 and there are more than 535?
CREATE TABLE table_name_86 (rank INTEGER, goals VARCHAR, matches VARCHAR)
SELECT game_site FROM table_27893892_2 WHERE date = "Saturday, April 21"
what is the location for saturday, april 21
CREATE TABLE table_27893892_2 (game_site VARCHAR, date VARCHAR)
SELECT league FROM table_name_87 WHERE school = "reed"
In what League is the Reed School?
CREATE TABLE table_name_87 (league VARCHAR, school VARCHAR)
SELECT position FROM table_11545282_11 WHERE years_for_jazz = "1998-99"
What is the position for the years 1998-99
CREATE TABLE table_11545282_11 (position VARCHAR, years_for_jazz VARCHAR)
SELECT name_athlete FROM table_name_97 WHERE semi = "1:43.79"
Who was the athlete who had SEMI of 1:43.79?
CREATE TABLE table_name_97 (name_athlete VARCHAR, semi VARCHAR)
SELECT AVG(loss) FROM table_name_12 WHERE avg_g < 16.7 AND long > 4 AND gain = 104
What is the loss when the average/gain is less than 16.7, gain is 104 and long is larger than 4?
CREATE TABLE table_name_12 (loss INTEGER, gain VARCHAR, avg_g VARCHAR, long VARCHAR)
SELECT transfer_fee FROM table_name_9 WHERE transfer_window = "summer" AND type = "transfer" AND country = "hun"
What is the transfer fee when summer is the transfer window, the type is transfer and the country is Hun?
CREATE TABLE table_name_9 (transfer_fee VARCHAR, country VARCHAR, transfer_window VARCHAR, type VARCHAR)
SELECT COUNT(high_rebounds) FROM table_22871239_5 WHERE _number = 5
How many high rebound catagories are listed for game number 5?
CREATE TABLE table_22871239_5 (high_rebounds VARCHAR, _number VARCHAR)
SELECT DISTINCT card_type_code FROM Customers_Cards
Show all card type codes.
CREATE TABLE Customers_Cards (card_type_code VARCHAR)
SELECT south FROM table_name_92 WHERE east = "germering wanderers" AND season = "2001-02"
What is south in the 2001-02 season, which had germering wanderers east?
CREATE TABLE table_name_92 (south VARCHAR, east VARCHAR, season VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_72 WHERE ngc_number < 6575 AND declination___j2000__ = "°38′00″"
I want to know the right ascension which has an NGC less than 6575 and declination of °38′00″
CREATE TABLE table_name_72 (right_ascension___j2000__ VARCHAR, ngc_number VARCHAR, declination___j2000__ VARCHAR)
SELECT power FROM table_name_67 WHERE chassis_code = "w123.130"
What is the power of the Chassis code w123.130?
CREATE TABLE table_name_67 (power VARCHAR, chassis_code VARCHAR)
SELECT area__km²_ FROM table_298550_1 WHERE capital = "Port-au-Prince"
What is every entry for area if capital is Port-au-Prince?
CREATE TABLE table_298550_1 (area__km²_ VARCHAR, capital VARCHAR)
SELECT MIN(events) FROM table_name_77 WHERE top_10 > 1 AND wins > 0
What is the lowest number of events a tournament with more than 1 top-10 and more than 0 wins has?
CREATE TABLE table_name_77 (events INTEGER, top_10 VARCHAR, wins VARCHAR)
SELECT delegate FROM table_14009909_1 WHERE first_elected = 2003
Name the delegate first elected in 2003?
CREATE TABLE table_14009909_1 (delegate VARCHAR, first_elected VARCHAR)
SELECT original_airdate FROM table_name_5 WHERE writer_s_ = "sidney slon" AND episode = "7-17 (195)"
What is the original airdate for episode 7-17 (195) from writer Sidney Slon?
CREATE TABLE table_name_5 (original_airdate VARCHAR, writer_s_ VARCHAR, episode VARCHAR)
SELECT COUNT(details) FROM table_211615_2 WHERE station = "Emlyn Road"
Name the number of details for emlyn road
CREATE TABLE table_211615_2 (details VARCHAR, station VARCHAR)
SELECT SUM(drawn) FROM table_name_41 WHERE points_difference = "31 - 33" AND lost < 4
How many games drawn with a Points difference of 31 - 33, and under 4 games lost?
CREATE TABLE table_name_41 (drawn INTEGER, points_difference VARCHAR, lost VARCHAR)
SELECT COUNT(attendance) FROM table_name_62 WHERE date = "november 1, 1942"
What was the attendance on November 1, 1942?
CREATE TABLE table_name_62 (attendance VARCHAR, date VARCHAR)
SELECT mascot FROM table_name_51 WHERE school = "north valleys"
What is North Valleys School Mascot?
CREATE TABLE table_name_51 (mascot VARCHAR, school VARCHAR)
SELECT station FROM table_19131921_1 WHERE frequency = "107.3"
Which station has the frequency of 107.3?
CREATE TABLE table_19131921_1 (station VARCHAR, frequency VARCHAR)
SELECT high_assists FROM table_name_57 WHERE high_points = "keon clark (19)"
What is High Assists, when High Points is Keon Clark (19)?
CREATE TABLE table_name_57 (high_assists VARCHAR, high_points VARCHAR)
SELECT event FROM table_name_7 WHERE location = "tokyo, japan" AND record = "6-1"
what is the even when the location is tokyo, japan and the record is 6-1?
CREATE TABLE table_name_7 (event VARCHAR, location VARCHAR, record VARCHAR)
SELECT born FROM table_name_27 WHERE age_at_first_step = "38y 9m 7d"
The Apollo astronaut who was 38y 9m 7d when first stepping on the moon is who?
CREATE TABLE table_name_27 (born VARCHAR, age_at_first_step VARCHAR)
SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = "Cancelled"
What is the total number of products that are in orders with status "Cancelled"?
CREATE TABLE customer_orders (order_id VARCHAR, order_status VARCHAR); CREATE TABLE order_items (order_quantity INTEGER, order_id VARCHAR)
SELECT client FROM table_13150274_1 WHERE area_of_operation = "EchiraX Concession"
Whose address of operation was the Echirax Concession?
CREATE TABLE table_13150274_1 (client VARCHAR, area_of_operation VARCHAR)
SELECT T2.FirstName, T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = "Leonie"
What is the first name and last name employee helps the customer with first name Leonie?
CREATE TABLE CUSTOMER (SupportRepId VARCHAR, FirstName VARCHAR); CREATE TABLE EMPLOYEE (FirstName VARCHAR, LastName VARCHAR, EmployeeId VARCHAR)
SELECT fa_cup_apps FROM table_19730892_1 WHERE name = "George Green"
Name the fa cup apps for george green
CREATE TABLE table_19730892_1 (fa_cup_apps VARCHAR, name VARCHAR)
SELECT outgoing_manager FROM table_name_55 WHERE team = "heart of midlothian"
Who was the outgoing manager of the Heart of Midlothian?
CREATE TABLE table_name_55 (outgoing_manager VARCHAR, team VARCHAR)
SELECT date FROM table_name_84 WHERE share = "39.1%"
When were the shares 39.1%?
CREATE TABLE table_name_84 (date VARCHAR, share VARCHAR)
SELECT rally_base FROM table_23385853_1 WHERE rally_name = "Rallye de France Alsace"
Name the rally base for rallye de france alsace
CREATE TABLE table_23385853_1 (rally_base VARCHAR, rally_name VARCHAR)
SELECT score FROM table_name_78 WHERE home = "detroit" AND date = "december 9"
What score has detroit as the home, and December 9 as the date?
CREATE TABLE table_name_78 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT away FROM table_name_40 WHERE home = "1-2" AND league = "bundesliga"
Playing in the Bundesliga league, what was the Away record for the team with an At Home record of 1-2?
CREATE TABLE table_name_40 (away VARCHAR, home VARCHAR, league VARCHAR)
SELECT capacity FROM table_name_11 WHERE volts = "2.7v" AND power_to_weight_ratio = "5.44 w/kg c/1 (1.875a)"
What is the capacity with 2.7v volts and a power-to-weight ratio of 5.44 w/kg c/1 (1.875a)?
CREATE TABLE table_name_11 (capacity VARCHAR, volts VARCHAR, power_to_weight_ratio VARCHAR)
SELECT date FROM table_name_23 WHERE loss = "trout (4-2)"
On which day did the Chicago Cubs have a loss of trout (4-2)?
CREATE TABLE table_name_23 (date VARCHAR, loss VARCHAR)
SELECT COUNT(opening_weekend_net_gross) FROM table_name_82 WHERE year > 2012 AND rank = 1
What's the Total number of Opening Weekend Net Gross that occured after the year 2012 with a Rank of 1?
CREATE TABLE table_name_82 (opening_weekend_net_gross VARCHAR, year VARCHAR, rank VARCHAR)
SELECT school_club_team_country FROM table_11734041_17 WHERE height_in_ft = "7-4"
What school did the 7-4 player attend?
CREATE TABLE table_11734041_17 (school_club_team_country VARCHAR, height_in_ft VARCHAR)
SELECT final_score FROM table_name_52 WHERE opponent = "real españa" AND season = "2008–09"
What is the final score when the opponent was Real España, in the 2008–09 season?
CREATE TABLE table_name_52 (final_score VARCHAR, opponent VARCHAR, season VARCHAR)
SELECT MIN(total) FROM table_name_63 WHERE rank > 8 AND routine_score > 27.6 AND difficulty_score = "13.8"
What is the total with lower than rank 8, and higher than 27.6 score and 13.8 difficulty?
CREATE TABLE table_name_63 (total INTEGER, difficulty_score VARCHAR, rank VARCHAR, routine_score VARCHAR)
SELECT source FROM table_21535453_1 WHERE brian_moran = "26%"
What source gave 26% of the votes to Brian Moran?
CREATE TABLE table_21535453_1 (source VARCHAR, brian_moran VARCHAR)
SELECT opponent FROM table_name_19 WHERE week < 6 AND game_site = "cleveland municipal stadium"
Who was the opponent before week 6 at cleveland municipal stadium?
CREATE TABLE table_name_19 (opponent VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT t1.name, t1.sex, MIN(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex
Find the name of the candidates whose oppose percentage is the lowest for each sex.
CREATE TABLE candidate (people_id VARCHAR); CREATE TABLE people (name VARCHAR, sex VARCHAR, people_id VARCHAR)
SELECT AVG(events) FROM table_name_51 WHERE top_5 = 1
What is the mean number of events when top-5 is 1?
CREATE TABLE table_name_51 (events INTEGER, top_5 VARCHAR)
SELECT results FROM table_14154271_2 WHERE gt2_winning_team = "Lars-Erik Nielsen Allan Simonsen Richard Westbrook"
The results for gt2 winning team is all lars-erik nielsen allan simonsen richard westbrook.
CREATE TABLE table_14154271_2 (results VARCHAR, gt2_winning_team VARCHAR)
SELECT planet FROM table_180802_3 WHERE transcription = "wan suk"
Which planet has the transcription of wan suk?
CREATE TABLE table_180802_3 (planet VARCHAR, transcription VARCHAR)
SELECT local_affairs FROM table_name_9 WHERE year = "2012-2013"
Who was in local affairs in 2012-2013?
CREATE TABLE table_name_9 (local_affairs VARCHAR, year VARCHAR)
SELECT MIN(weight__kg_) FROM table_name_62 WHERE jersey__number > 22 AND position = "f" AND birthdate = "march 19, 1980"
What is the lightest Weight (kg), when the Jersey # is greater than 22, when the Position is F, and when the Birthdate is March 19, 1980?
CREATE TABLE table_name_62 (weight__kg_ INTEGER, birthdate VARCHAR, jersey__number VARCHAR, position VARCHAR)
SELECT AVG(total) FROM table_name_34 WHERE year_s__won = "1988"
What total average has 1988 has the year (s) won?
CREATE TABLE table_name_34 (total INTEGER, year_s__won VARCHAR)
SELECT unit FROM table_name_95 WHERE location = "greenland"
What is the unit of the non-mammal from greenland?
CREATE TABLE table_name_95 (unit VARCHAR, location VARCHAR)
SELECT COUNT(opponent) FROM table_21007615_1 WHERE sun_devils_points = 41
How many opponents did the Sun Devils play when they scored 41 points?
CREATE TABLE table_21007615_1 (opponent VARCHAR, sun_devils_points VARCHAR)
SELECT vacator FROM table_225206_3 WHERE reason_for_change = "Failure to elect"
Who was the vacator when the reason for change was failure to elect?
CREATE TABLE table_225206_3 (vacator VARCHAR, reason_for_change VARCHAR)
SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship
Show different citizenship of singers and the number of singers of each citizenship.
CREATE TABLE singer (Citizenship VARCHAR)
SELECT away_leg FROM table_name_60 WHERE opposition = "aarhus gymnastik forening"
What ist the Away Leg with an Opposition that is aarhus gymnastik forening?
CREATE TABLE table_name_60 (away_leg VARCHAR, opposition VARCHAR)
SELECT name FROM table_name_42 WHERE moving_from = "treviso" AND type = "loan return"
Who is moving from Treviso with a loan return?
CREATE TABLE table_name_42 (name VARCHAR, moving_from VARCHAR, type VARCHAR)
SELECT opponents FROM table_name_73 WHERE record = "3-0"
Who are the opponents with a record of 3-0?
CREATE TABLE table_name_73 (opponents VARCHAR, record VARCHAR)
SELECT result FROM table_name_12 WHERE venue = "stuttgart, west germany" AND goal < 9
What was the result of the game in Stuttgart, West Germany and a goal number of less than 9?
CREATE TABLE table_name_12 (result VARCHAR, venue VARCHAR, goal VARCHAR)