answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(money___) AS $__ FROM table_name_57 WHERE score = 69 - 74 - 70 - 73 = 286
What is the Money ($) of the game with a score of 69-74-70-73=286?
CREATE TABLE table_name_57 (money___ INTEGER, score VARCHAR)
SELECT attendance FROM table_name_63 WHERE site = "dowdy-ficklen stadium • greenville, nc" AND opponent = "ohio"
What is the number in attendance at Dowdy-Ficklen stadium • Greenville, NC, and the opponent was Ohio?
CREATE TABLE table_name_63 (attendance VARCHAR, site VARCHAR, opponent VARCHAR)
SELECT year FROM table_141541_5 WHERE change = "+8.0%"
what's the year with change being +8.0%
CREATE TABLE table_141541_5 (year VARCHAR, change VARCHAR)
SELECT tournament FROM table_name_85 WHERE partner = "barbara jordan" AND score = "6-2, 3-6, 3-6"
In what Tournament was Barbara Jordan a Partner with a Score of 6-2, 3-6, 3-6?
CREATE TABLE table_name_85 (tournament VARCHAR, partner VARCHAR, score VARCHAR)
SELECT MIN(crowd) FROM table_name_3 WHERE home_team = "fitzroy"
What is Fitzroy's smallest crowd size?
CREATE TABLE table_name_3 (crowd INTEGER, home_team VARCHAR)
SELECT 2009 FROM table_name_79 WHERE 2010 = "a"
What is the 2009 value with a 2010 A value?
CREATE TABLE table_name_79 (Id VARCHAR)
SELECT date FROM table_name_86 WHERE game > 4 AND team = "san antonio" AND record = "4-3"
When Date has a Game larger than 4 and a Team of san antonio, and a Record of 4-3?
CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR, game VARCHAR, team VARCHAR)
SELECT opponent FROM table_name_3 WHERE date = "july 15"
Which opponent played on July 15?
CREATE TABLE table_name_3 (opponent VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_38 WHERE 2013 = "1r" AND 2012 = "1r"
Which tournament has a 2013 of 1r, and a 2012 of 1r?
CREATE TABLE table_name_38 (tournament VARCHAR)
SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id
Show names of all high school students who do not have any friends.
CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Highschooler (name VARCHAR); CREATE TABLE Friend (student_id VARCHAR)
SELECT director_s_ FROM table_name_74 WHERE leading_lady = "phyllis welch"
Who directed the film that had phyllis welch as the leading lady?
CREATE TABLE table_name_74 (director_s_ VARCHAR, leading_lady VARCHAR)
SELECT part_number_s_ FROM table_23028629_2 WHERE model_number = "Core i5-670"
What is every part number with model number core i5-670?
CREATE TABLE table_23028629_2 (part_number_s_ VARCHAR, model_number VARCHAR)
SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.booked_amount = 102.76
What is the product description of the product booked with an amount of 102.76?
CREATE TABLE products_for_hire (product_description VARCHAR, product_id VARCHAR); CREATE TABLE products_booked (product_id VARCHAR, booked_amount VARCHAR)
SELECT backed_with FROM table_name_24 WHERE record_label = "wild world" AND date > 2008
What's the Backed after 2008 with a label of Wild World?
CREATE TABLE table_name_24 (backed_with VARCHAR, record_label VARCHAR, date VARCHAR)
SELECT current_status FROM table_1353096_2 WHERE station = "KDAF **"
What is the current status of the KDAF ** Station?
CREATE TABLE table_1353096_2 (current_status VARCHAR, station VARCHAR)
SELECT SUM(week) FROM table_name_3 WHERE date = "october 18, 1992"
What was the Week on October 18, 1992?
CREATE TABLE table_name_3 (week INTEGER, date VARCHAR)
SELECT player FROM table_name_90 WHERE nationality = "turkey" AND height < 183 AND shirt_no < 19 AND birth_date = "june 27, 1993 (age20)"
What player that has a Nationality of Turkey, a Height smaller than 183, a shirt no smaller than 19, and a birth date of June 27, 1993 (age20)?
CREATE TABLE table_name_90 (player VARCHAR, birth_date VARCHAR, shirt_no VARCHAR, nationality VARCHAR, height VARCHAR)
SELECT name FROM table_name_69 WHERE period = "1945-1949 & 1953-1954 1949-1952"
What name is for the period 1945-1949 & 1953-1954 1949-1952?
CREATE TABLE table_name_69 (name VARCHAR, period VARCHAR)
SELECT COUNT(injured) FROM table_name_83 WHERE place = "east champaran, bihar" AND killed > 2
How many people were injured in total in East Champaran, Bihar with more than 2 people killed?
CREATE TABLE table_name_83 (injured VARCHAR, place VARCHAR, killed VARCHAR)
SELECT venue FROM table_name_13 WHERE date = "23,24,25,26 july 1992"
Where was a game played on 23,24,25,26 july 1992?
CREATE TABLE table_name_13 (venue VARCHAR, date VARCHAR)
SELECT conductor FROM table_29728787_1 WHERE count = "Hermann Uhde"
When hermann uhde is the count who is the conductor?
CREATE TABLE table_29728787_1 (conductor VARCHAR, count VARCHAR)
SELECT COUNT(fin_pos) FROM table_17330069_1 WHERE points = "15"
If the points is 15, what is the fin. pos?
CREATE TABLE table_17330069_1 (fin_pos VARCHAR, points VARCHAR)
SELECT percentage FROM table_22825679_1 WHERE team = "Georgia"
Name the percentage for georgia
CREATE TABLE table_22825679_1 (percentage VARCHAR, team VARCHAR)
SELECT title FROM table_name_83 WHERE type = "ep" AND year > 2003
Which Title has a Type of ep and a Year larger than 2003?
CREATE TABLE table_name_83 (title VARCHAR, type VARCHAR, year VARCHAR)
SELECT title FROM table_name_12 WHERE catalog__number = "pcr 502"
What CD has a catalog # of PCR 502?
CREATE TABLE table_name_12 (title VARCHAR, catalog__number VARCHAR)
SELECT AVG(other_apps) FROM table_name_76 WHERE division = "one" AND league_goals < 1
What is Division One's average Other Apps, with a League Goal less than 1?
CREATE TABLE table_name_76 (other_apps INTEGER, division VARCHAR, league_goals VARCHAR)
SELECT royal_house FROM table_name_30 WHERE name = "ding"
Which Royal house has a name of ding?
CREATE TABLE table_name_30 (royal_house VARCHAR, name VARCHAR)
SELECT time FROM table_name_77 WHERE lane = 7
What was the time of the swimmer in lane 7?
CREATE TABLE table_name_77 (time VARCHAR, lane VARCHAR)
SELECT SUM(goals_for) FROM table_name_5 WHERE draws > 9 AND played > 38
How many goals have more than 38 played and more than 9 draws?
CREATE TABLE table_name_5 (goals_for INTEGER, draws VARCHAR, played VARCHAR)
SELECT affiliation FROM table_name_37 WHERE location = "towson, md"
What is the affiliation for towson, md?
CREATE TABLE table_name_37 (affiliation VARCHAR, location VARCHAR)
SELECT MIN(first_elected) FROM table_1341423_49 WHERE incumbent = "Ron Kind"
When was the first election in the district whose incumbent is Ron Kind?
CREATE TABLE table_1341423_49 (first_elected INTEGER, incumbent VARCHAR)
SELECT branding FROM table_name_23 WHERE frequency = "93.1mhz" AND callsign = "dwrx"
What is the branding for the station with a frequency of 93.1mhz and a callsign of DWRX?
CREATE TABLE table_name_23 (branding VARCHAR, frequency VARCHAR, callsign VARCHAR)
SELECT SUM(Rating_in_percent), OWNER FROM channel GROUP BY OWNER
Find the total rating ratio for each channel owner.
CREATE TABLE channel (OWNER VARCHAR, Rating_in_percent INTEGER)
SELECT T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed > 60 INTERSECT SELECT T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed < 55
What are the country names, area and population which has both roller coasters with speed higher
CREATE TABLE country (name VARCHAR, area VARCHAR, population VARCHAR, Country_ID VARCHAR); CREATE TABLE roller_coaster (Country_ID VARCHAR, speed INTEGER)
SELECT village FROM table_name_57 WHERE region = "côte de nuits" AND wine_style = "red wine" AND grand_cru = "latricières-chambertin"
Which Village has a Region of Côte De Nuits, Wine Styles of Red Wine, and a Grand Cru of Latricières-Chambertin?
CREATE TABLE table_name_57 (village VARCHAR, grand_cru VARCHAR, region VARCHAR, wine_style VARCHAR)
SELECT T1.Player, T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew"
Show the players and years played for players from team "Columbus Crew".
CREATE TABLE player (Player VARCHAR, Years_Played VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR)
SELECT dist__f_ FROM table_name_75 WHERE race = "irish derby"
Which Dist (f) has a Race of irish derby?
CREATE TABLE table_name_75 (dist__f_ VARCHAR, race VARCHAR)
SELECT Name FROM pilot ORDER BY Name
List all pilot names in ascending alphabetical order.
CREATE TABLE pilot (Name VARCHAR)
SELECT rounds FROM table_name_89 WHERE chassis = "b195"
Which rounds had the B195 chassis?
CREATE TABLE table_name_89 (rounds VARCHAR, chassis VARCHAR)
SELECT year FROM table_name_59 WHERE laps < 64 AND finish = "25"
In what year were laps less than 64 and the finish at 25?
CREATE TABLE table_name_59 (year VARCHAR, laps VARCHAR, finish VARCHAR)
SELECT date FROM table_name_37 WHERE week = 17
On what date was the week 17 game?
CREATE TABLE table_name_37 (date VARCHAR, week VARCHAR)
SELECT record FROM table_name_96 WHERE result = "win" AND date = "2004-06-26"
what is the record when the result is win on 2004-06-26?
CREATE TABLE table_name_96 (record VARCHAR, result VARCHAR, date VARCHAR)
SELECT home FROM table_name_6 WHERE date = "april 6"
Was it a home game on the date of April 6?
CREATE TABLE table_name_6 (home VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_90 WHERE away_team = "wrexham"
What is the Home team with an Away team that is wrexham?
CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR)
SELECT tournament FROM table_name_62 WHERE score = "6–4, 6–2"
Which Tournament has a Score of 6–4, 6–2?
CREATE TABLE table_name_62 (tournament VARCHAR, score VARCHAR)
SELECT MAX(game) FROM table_name_44 WHERE attendance > 65 OFFSET 042
Which is the most recent game with an attendance larger than 65,042?
CREATE TABLE table_name_44 (game INTEGER, attendance INTEGER)
SELECT year_erected FROM table_name_51 WHERE artist = "enrique alciati"
what year did enrique alciati make a statue
CREATE TABLE table_name_51 (year_erected VARCHAR, artist VARCHAR)
SELECT pregame_host FROM table_17628022_2 WHERE sideline_reporters = "Steve Armitage and Brenda Irving"
Who were the pregame hosts when the sideline reporters were Steve Armitage and Brenda Irving?
CREATE TABLE table_17628022_2 (pregame_host VARCHAR, sideline_reporters VARCHAR)
SELECT credentials_presented FROM table_name_59 WHERE state = "new jersey" AND status = "foreign service officer"
When were the credentials presented for new jersey with a status of foreign service officer?
CREATE TABLE table_name_59 (credentials_presented VARCHAR, state VARCHAR, status VARCHAR)
SELECT home_team FROM table_name_39 WHERE venue = "western oval"
What's the home team for the western oval venue?
CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR)
SELECT born_died FROM table_name_54 WHERE active_service = "1972–1995"
What were the birth and death years when active service was 1972–1995?
CREATE TABLE table_name_54 (born_died VARCHAR, active_service VARCHAR)
SELECT major_version FROM table_24257833_4 WHERE release_date = "May 12, 2009" AND minor_version = "3.2.3"
List major versions released on May 12, 2009, that had a minor version of 3.2.3.
CREATE TABLE table_24257833_4 (major_version VARCHAR, release_date VARCHAR, minor_version VARCHAR)
SELECT score FROM table_name_33 WHERE player = "tom gillis"
What is Tom Gillis' score?
CREATE TABLE table_name_33 (score VARCHAR, player VARCHAR)
SELECT AVG(nets_points) FROM table_name_62 WHERE game < 9 AND opponents < 95
What was the average point total for the nets in games before game 9 where the opponents scored less than 95?
CREATE TABLE table_name_62 (nets_points INTEGER, game VARCHAR, opponents VARCHAR)
SELECT points_difference FROM table_20760802_1 WHERE points_for = "134"
How many points differ from 134?
CREATE TABLE table_20760802_1 (points_difference VARCHAR, points_for VARCHAR)
SELECT time FROM table_name_17 WHERE score = "46-82"
What is the Time with a Score that is 46-82?
CREATE TABLE table_name_17 (time VARCHAR, score VARCHAR)
SELECT written_by FROM table_17467447_1 WHERE production_code = "2T6268"
Who were the writers for production code 2t6268?
CREATE TABLE table_17467447_1 (written_by VARCHAR, production_code VARCHAR)
SELECT MAX(points) FROM table_name_53 WHERE chassis = "jbw" AND engine = "climax straight-4" AND year > 1961
What is the highest points for the JBW chassis with a climax straight-4 engine, later than 1961?
CREATE TABLE table_name_53 (points INTEGER, year VARCHAR, chassis VARCHAR, engine VARCHAR)
SELECT position FROM table_name_34 WHERE school_club_team = "mcmaster"
What is Position, when School/Club Team is McMaster?
CREATE TABLE table_name_34 (position VARCHAR, school_club_team VARCHAR)
SELECT channel_tv___dt__ FROM table_name_88 WHERE city_of_license__market = "baltimore"
Which Channel TV is located in Baltimore?
CREATE TABLE table_name_88 (channel_tv___dt__ VARCHAR, city_of_license__market VARCHAR)
SELECT trainer FROM table_24915874_1 WHERE jockey = "Luke Nolen"
Who was the trainer when the jockey was Luke Nolen?
CREATE TABLE table_24915874_1 (trainer VARCHAR, jockey VARCHAR)
SELECT date FROM table_name_46 WHERE opponents = "roma" AND h___a = "a"
Which date has roma as opponent and a H/A of A?
CREATE TABLE table_name_46 (date VARCHAR, opponents VARCHAR, h___a VARCHAR)
SELECT MIN(year) FROM table_name_54 WHERE location = "giants stadium" AND winner = "new york giants"
WHAT YEAR WAS AT GIANTS STADIUM, WITH WINNER OF NEW YORK GIANTS?
CREATE TABLE table_name_54 (year INTEGER, location VARCHAR, winner VARCHAR)
SELECT constructor FROM table_name_2 WHERE rounds = "all" AND engine = "peugeot a12 ev5 3.0 v10"
Who is the constructor of the car with a Peugeot A12 EV5 3.0 V10 engine that competed in all rounds?
CREATE TABLE table_name_2 (constructor VARCHAR, rounds VARCHAR, engine VARCHAR)
SELECT points_classification FROM table_name_92 WHERE stage = "15"
What is the point classification of stage 15?
CREATE TABLE table_name_92 (points_classification VARCHAR, stage VARCHAR)
SELECT entrant FROM table_name_64 WHERE year = 1999
What is the entrant in 1999?
CREATE TABLE table_name_64 (entrant VARCHAR, year VARCHAR)
SELECT COUNT(year) FROM table_name_24 WHERE entrant = "scuderia guastalla"
What is the total number of years that Scuderia Guastalla was an entrant?
CREATE TABLE table_name_24 (year VARCHAR, entrant VARCHAR)
SELECT player FROM table_name_69 WHERE pick__number < 3 AND mls_team = "fc dallas"
Name the player for fc dallas pick number less than 3
CREATE TABLE table_name_69 (player VARCHAR, pick__number VARCHAR, mls_team VARCHAR)
SELECT COUNT(DISTINCT template_id) FROM Documents
How many different templates do all document use?
CREATE TABLE Documents (template_id VARCHAR)
SELECT team FROM table_name_29 WHERE score = "103-96"
Which team had a score of 103-96?
CREATE TABLE table_name_29 (team VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_30049462_4 WHERE team = "Los Angeles"
What was the location and it's corresponding attendance during the game against Los Angeles?
CREATE TABLE table_30049462_4 (location_attendance VARCHAR, team VARCHAR)
SELECT tries_against FROM table_17675675_2 WHERE club = "Swansea Uplands RFC"
For club Swansea Uplands RFC, what is the amount of tries against?
CREATE TABLE table_17675675_2 (tries_against VARCHAR, club VARCHAR)
SELECT nationality FROM table_2679061_2 WHERE player = "Randy Heath"
What is the nationality when the player is randy heath?
CREATE TABLE table_2679061_2 (nationality VARCHAR, player VARCHAR)
SELECT AVG(population__2006_) FROM table_name_14 WHERE population__2011_ > 5 AND area__km_2__ = 5.84
What is the average population in 2006 that has more than 5 people in 2011 and an area 5.84km?
CREATE TABLE table_name_14 (population__2006_ INTEGER, population__2011_ VARCHAR, area__km_2__ VARCHAR)
SELECT SUM(cuts_made) FROM table_name_90 WHERE top_25 < 6 AND top_5 > 0
What is the total of cuts made where the top 25 is less than 6 and the top-5 is more than 0?
CREATE TABLE table_name_90 (cuts_made INTEGER, top_25 VARCHAR, top_5 VARCHAR)
SELECT SUM(occ_championships) FROM table_name_96 WHERE school = "central crossing"
How many times have Central Crossing won the OCC Championship?
CREATE TABLE table_name_96 (occ_championships INTEGER, school VARCHAR)
SELECT MIN(first_elected) FROM table_1342393_42 WHERE incumbent = "Tom Connally"
What was the total number of votes for Tom Connally
CREATE TABLE table_1342393_42 (first_elected INTEGER, incumbent VARCHAR)
SELECT hometown FROM table_18626383_2 WHERE country = "Belarus"
When belarus is the country what is the hometown?
CREATE TABLE table_18626383_2 (hometown VARCHAR, country VARCHAR)
SELECT week_3 FROM table_name_95 WHERE week_4 = "gina blair"
What Week 3 has a Week 4 of gina blair?
CREATE TABLE table_name_95 (week_3 VARCHAR, week_4 VARCHAR)
SELECT venue FROM table_name_45 WHERE opposition = "surrey" AND wicket = "2nd"
In what Venue was Surrey the Opposition in the 2nd Wicket?
CREATE TABLE table_name_45 (venue VARCHAR, opposition VARCHAR, wicket VARCHAR)
SELECT COUNT(poles) FROM table_10420426_1 WHERE team = "Arden International"
What is the total number of poles for arden international?
CREATE TABLE table_10420426_1 (poles VARCHAR, team VARCHAR)
SELECT COUNT(DISTINCT claim_outcome_code) FROM claims_processing
How many distinct claim outcome codes are there?
CREATE TABLE claims_processing (claim_outcome_code VARCHAR)
SELECT SUM(rank) FROM table_name_19 WHERE total < 1
What's the rank that has a total of less than 1?
CREATE TABLE table_name_19 (rank INTEGER, total INTEGER)
SELECT name FROM table_name_86 WHERE score > 22 AND song = "林俊杰 - 木乃伊"
Wjat score is greater than 22 with this song: 林俊杰 - 木乃伊?
CREATE TABLE table_name_86 (name VARCHAR, score VARCHAR, song VARCHAR)
SELECT MAX(money_list_rank) FROM table_24747844_2 WHERE player = "Matt Hansen"
What is the maximum money list rank for Matt Hansen?
CREATE TABLE table_24747844_2 (money_list_rank INTEGER, player VARCHAR)
SELECT mark FROM table_name_73 WHERE group = "a" AND nationality = "grenada"
What is the mark for Grenada in group A?
CREATE TABLE table_name_73 (mark VARCHAR, group VARCHAR, nationality VARCHAR)
SELECT away_team FROM table_name_90 WHERE home_team = "ipswich town" AND date = "6 february 1986"
What is Away Team, when Home Team is "Ipswich Town", and when Date is "6 February 1986"?
CREATE TABLE table_name_90 (away_team VARCHAR, home_team VARCHAR, date VARCHAR)
SELECT winner FROM table_name_56 WHERE runner_up = "waseda" AND title = "32nd"
Who was the winner in the game that had a title of 32nd, and Waseda as the runner-up?
CREATE TABLE table_name_56 (winner VARCHAR, runner_up VARCHAR, title VARCHAR)
SELECT AVG(position) FROM table_name_97 WHERE speed = "143.5km/h"
What is the average Position, when Speed is "143.5km/h"?
CREATE TABLE table_name_97 (position INTEGER, speed VARCHAR)
SELECT percentage_of_land_area FROM table_15555661_2 WHERE percentage_protected = "7.96"
What is the percentage of land area in the ecozone that the percentage protected is 7.96?
CREATE TABLE table_15555661_2 (percentage_of_land_area VARCHAR, percentage_protected VARCHAR)
SELECT title FROM table_14637853_3 WHERE original_air_date = "September23,1995"
what's the title with original air date being september23,1995
CREATE TABLE table_14637853_3 (title VARCHAR, original_air_date VARCHAR)
SELECT SUM(grid) FROM table_name_96 WHERE time_retired = "+1:12.208" AND laps > 24
How many grids have more than 24 laps with a time/retired of +1:12.208?
CREATE TABLE table_name_96 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT 1 AS st_member FROM table_name_82 WHERE summoned = "14 july 1302"
What is 1st Member, when Summoned is "14 July 1302"?
CREATE TABLE table_name_82 (summoned VARCHAR)
SELECT athlete FROM table_name_15 WHERE run_1 > 57.37 AND run_4 < 59.05 AND run_3 = 58.08
Which Athlete has a Run 1 larger than 57.37, and a Run 4 smaller than 59.05, and a Run 3 of 58.08?
CREATE TABLE table_name_15 (athlete VARCHAR, run_3 VARCHAR, run_1 VARCHAR, run_4 VARCHAR)
SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35
Show the nations that have both hosts older than 45 and hosts younger than 35.
CREATE TABLE HOST (Nationality VARCHAR, Age INTEGER)
SELECT song_title FROM table_13805773_2 WHERE points = 259
What is the title of the song that received 259 points?
CREATE TABLE table_13805773_2 (song_title VARCHAR, points VARCHAR)
SELECT position FROM table_name_81 WHERE round < 4 AND overall = "17"
What is the position of a player from a round less than 4 and an overall of 17?
CREATE TABLE table_name_81 (position VARCHAR, round VARCHAR, overall VARCHAR)
SELECT longitude FROM table_16799784_4 WHERE name = "Grechukha Tholi"
Grechukha Tholi has what longitude?
CREATE TABLE table_16799784_4 (longitude VARCHAR, name VARCHAR)
SELECT SUM(average) FROM table_name_62 WHERE interview = 8.75 AND evening_gown > 8.75
What is the total number of averages with an interview of 8.75 when the evening gown number was bigger than 8.75?
CREATE TABLE table_name_62 (average INTEGER, interview VARCHAR, evening_gown VARCHAR)
SELECT rank FROM table_name_72 WHERE place = "burghley"
What is the rank for Burghley?
CREATE TABLE table_name_72 (rank VARCHAR, place VARCHAR)