answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT metropolitan_area FROM table_22916979_2 WHERE rank = 60
which area has a rank of 60?
CREATE TABLE table_22916979_2 (metropolitan_area VARCHAR, rank VARCHAR)
SELECT week FROM table_name_98 WHERE date = "october 28, 2001"
October 28, 2001 was what week of the season?
CREATE TABLE table_name_98 (week VARCHAR, date VARCHAR)
SELECT total_apps FROM table_name_78 WHERE name = "paul wilson"
What is the Total Apps listing for Paul Wilson?
CREATE TABLE table_name_78 (total_apps VARCHAR, name VARCHAR)
SELECT MAX(attendance) FROM table_name_38 WHERE time = "2:07"
What is the attendance amount of the race with a time of 2:07?
CREATE TABLE table_name_38 (attendance INTEGER, time VARCHAR)
SELECT MIN(dcsf_number) FROM table_name_77 WHERE name = "aycliffe drive" AND ofsted_number < 117335
What's the lowest DCSF number in Aycliffe Drive but an Ofsted number smaller than 117335?
CREATE TABLE table_name_77 (dcsf_number INTEGER, name VARCHAR, ofsted_number VARCHAR)
SELECT ht FROM table_13869651_3 WHERE model_number = "Athlon X2 5200B"
What is the HT value of threw Athlon x2 5200b model?
CREATE TABLE table_13869651_3 (ht VARCHAR, model_number VARCHAR)
SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> "Live final"
What are the maximum and minimum share of performances whose type is not "Live final".
CREATE TABLE performance (SHARE INTEGER, TYPE VARCHAR)
SELECT issue_price__proof_ FROM table_11916083_1 WHERE issue_price__bu_[_clarification_needed_] = "34.95"
What is the issue price (proof) where the issue price (bu) is 34.95?
CREATE TABLE table_11916083_1 (issue_price__proof_ VARCHAR, issue_price__bu_ VARCHAR, _clarification_needed_ VARCHAR)
SELECT location FROM table_name_71 WHERE state = "oregon" AND rank < 121 AND mountain_peak = "mount mcloughlin"
Which location is in Oregon, ranked under 121, and contains Mount McLoughlin?
CREATE TABLE table_name_71 (location VARCHAR, mountain_peak VARCHAR, state VARCHAR, rank VARCHAR)
SELECT nationality FROM table_name_79 WHERE position = "c"
What is the nationality of the C?
CREATE TABLE table_name_79 (nationality VARCHAR, position VARCHAR)
SELECT MAX(number_one_s_) FROM table_19542477_8
What is the highest overall number one(s)?
CREATE TABLE table_19542477_8 (number_one_s_ INTEGER)
SELECT record FROM table_name_66 WHERE game = 54
What was their record bfore game 54?
CREATE TABLE table_name_66 (record VARCHAR, game VARCHAR)
SELECT MAX(difference) FROM table_name_98 WHERE drew < 0
What is the highest difference for the team that had less than 0 draws?
CREATE TABLE table_name_98 (difference INTEGER, drew INTEGER)
SELECT name FROM table_name_8 WHERE pos = "cf" AND date_of_birth = "1973-08-21"
born on 1973-08-21, what is the cf's name?
CREATE TABLE table_name_8 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR)
SELECT region FROM table_name_5 WHERE catalog = "sm 2965-05"
What is the Region, when the Catalog is SM 2965-05?
CREATE TABLE table_name_5 (region VARCHAR, catalog VARCHAR)
SELECT nielsen_ranking FROM table_name_99 WHERE season = "season 8"
What is the Nielsen ranking for Season 8?
CREATE TABLE table_name_99 (nielsen_ranking VARCHAR, season VARCHAR)
SELECT MIN(overall) FROM table_name_61 WHERE name = "mike harris"
What is Mike Harris' lowest overall?
CREATE TABLE table_name_61 (overall INTEGER, name VARCHAR)
SELECT guest_3 FROM table_20466963_9 WHERE guest_1 = "Jim White"
On episodes where guest 1 is Jim White, who was guest 3?
CREATE TABLE table_20466963_9 (guest_3 VARCHAR, guest_1 VARCHAR)
SELECT COUNT(game_site) FROM table_27764201_2 WHERE opponent = "Rhein Fire"
How many times did the Centurions play the Rhein Fire?
CREATE TABLE table_27764201_2 (game_site VARCHAR, opponent VARCHAR)
SELECT country FROM table_2351952_1 WHERE serial_numbers = "713096-713119"
The serial numbers 713096-713119 are in which country?
CREATE TABLE table_2351952_1 (country VARCHAR, serial_numbers VARCHAR)
SELECT venue FROM table_name_18 WHERE home = "irfu all-stars" AND season = 1958
In 1958, what has the IRFU All-Stars Home Venue?
CREATE TABLE table_name_18 (venue VARCHAR, home VARCHAR, season VARCHAR)
SELECT years_played FROM table_10023387_1 WHERE singles_w_l = "3–2"
what's the years played with singles w-l of 3–2
CREATE TABLE table_10023387_1 (years_played VARCHAR, singles_w_l VARCHAR)
SELECT finish FROM table_24122653_2 WHERE vote = "3-2"
What is the finish associated with a 3-2 vote?
CREATE TABLE table_24122653_2 (finish VARCHAR, vote VARCHAR)
SELECT COUNT(losses) FROM table_name_1 WHERE golden_rivers = "hay" AND byes > 2
What is the total losses when Hay is the golden river and there are more than 2 byes?
CREATE TABLE table_name_1 (losses VARCHAR, golden_rivers VARCHAR, byes VARCHAR)
SELECT SUM(year) FROM table_name_37 WHERE team = "porsche kremer racing"
What's the total of Year that's got a Team of Porsche Kremer Racing?
CREATE TABLE table_name_37 (year INTEGER, team VARCHAR)
SELECT away_team AS score FROM table_name_31 WHERE venue = "arden street oval"
What was the away team score in the game at Arden Street Oval?
CREATE TABLE table_name_31 (away_team VARCHAR, venue VARCHAR)
SELECT season FROM table_name_84 WHERE level = "2nd" AND points = 29
What season has a Level of 2nd, 29 points?
CREATE TABLE table_name_84 (season VARCHAR, level VARCHAR, points VARCHAR)
SELECT COUNT(*) FROM Courses
How many courses in total are listed?
CREATE TABLE Courses (Id VARCHAR)
SELECT away_team FROM table_name_2 WHERE home_team = "blackpool"
Who played Blackpool when Blackpool was at home?
CREATE TABLE table_name_2 (away_team VARCHAR, home_team VARCHAR)
SELECT match FROM table_name_13 WHERE team = "start gniezno"
What was the match number for Start Gniezno?
CREATE TABLE table_name_13 (match VARCHAR, team VARCHAR)
SELECT volume AS :issue FROM table_name_47 WHERE weeks_on_top = "3" AND artist = "third eye blind"
What volume 3 weeks on top for Third Eye Blind?
CREATE TABLE table_name_47 (volume VARCHAR, weeks_on_top VARCHAR, artist VARCHAR)
SELECT chemical_class FROM table_name_90 WHERE example = "chloroethane (ethyl chloride)"
Which chemical class uses the example Chloroethane (ethyl chloride)?
CREATE TABLE table_name_90 (chemical_class VARCHAR, example VARCHAR)
SELECT under_15 FROM table_26368963_1 WHERE under_19 = "Julian Illingworth"
When Julian Illingworth was the under-19, who was the under-15?
CREATE TABLE table_26368963_1 (under_15 VARCHAR, under_19 VARCHAR)
SELECT T2.name, COUNT(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id
Show the name of track and the number of races in each track.
CREATE TABLE track (name VARCHAR, track_id VARCHAR); CREATE TABLE race (track_id VARCHAR)
SELECT Player, Years_Played FROM player
Show the players and the years played.
CREATE TABLE player (Player VARCHAR, Years_Played VARCHAR)
SELECT date FROM table_15872814_5 WHERE high_points = "Jalen Rose (32)"
What were the dates of the games where Jalen Rose (32) had the highest points?
CREATE TABLE table_15872814_5 (date VARCHAR, high_points VARCHAR)
SELECT outcome FROM table_name_25 WHERE year = 1975
What was the outcome in 1975?
CREATE TABLE table_name_25 (outcome VARCHAR, year VARCHAR)
SELECT constructor FROM table_name_80 WHERE grid > 21 AND time_retired = "suspension"
Who built the 21 grid car that retired due to suspension?
CREATE TABLE table_name_80 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT name FROM player WHERE points > (SELECT AVG(points) FROM player)
what are the name of players who get more than the average points.
CREATE TABLE player (name VARCHAR, points INTEGER)
SELECT MIN(national_titles) FROM table_14115168_4 WHERE school = "Concordia University"
how many overall championships does concordia university have
CREATE TABLE table_14115168_4 (national_titles INTEGER, school VARCHAR)
SELECT year FROM table_name_70 WHERE film = "your national gallery"
In what Year was the Film Your National Gallery winner?
CREATE TABLE table_name_70 (year VARCHAR, film VARCHAR)
SELECT class FROM table_name_28 WHERE identifier = "cbon-fm-23"
What class has cbon-fm-23 as the identifier?
CREATE TABLE table_name_28 (class VARCHAR, identifier VARCHAR)
SELECT MAX(avg) FROM table_name_57 WHERE fuml < 0
What was the highest average when Fuml was 0?
CREATE TABLE table_name_57 (avg INTEGER, fuml INTEGER)
SELECT club FROM table_1676073_13 WHERE points_for = "693"
What club has 693 points for?
CREATE TABLE table_1676073_13 (club VARCHAR, points_for VARCHAR)
SELECT AVG(number_on_map) FROM table_name_42 WHERE name = "northgate" AND construction_commenced < 1951
What is the average number for Northgate which commenced its construction before 1951?
CREATE TABLE table_name_42 (number_on_map INTEGER, name VARCHAR, construction_commenced VARCHAR)
SELECT music_video FROM table_name_96 WHERE album = "map of the human soul"
Which music video was from the album Map of the Human Soul?
CREATE TABLE table_name_96 (music_video VARCHAR, album VARCHAR)
SELECT team FROM table_name_8 WHERE owner_s_ = "mark smith" AND crew_chief = "paul clapprood"
What team is owned by Mark Smith and has Paul Clapprood as a crew chief?
CREATE TABLE table_name_8 (team VARCHAR, owner_s_ VARCHAR, crew_chief VARCHAR)
SELECT covered_location FROM table_name_32 WHERE frequency = "90.7 fm"
What covered location has a frequency of 90.7 FM
CREATE TABLE table_name_32 (covered_location VARCHAR, frequency VARCHAR)
SELECT MAX(year) FROM table_name_41 WHERE venue = "kyalami" AND driver = "keke rosberg"
What was the most recent race at Kyalami with Keke Rosberg competing?
CREATE TABLE table_name_41 (year INTEGER, venue VARCHAR, driver VARCHAR)
SELECT position FROM table_name_77 WHERE overall > 22 AND school_club_team = "cal state-los angeles"
What was Cal State-Los Angeles' position with an Overall above 22?
CREATE TABLE table_name_77 (position VARCHAR, overall VARCHAR, school_club_team VARCHAR)
SELECT building FROM table_name_81 WHERE floors > 15 AND year = "2013"
For the Year 2013 what building(s) had more than 15 Floors?
CREATE TABLE table_name_81 (building VARCHAR, floors VARCHAR, year VARCHAR)
SELECT original_air_date FROM table_11694832_1 WHERE us_viewers__millions_ = "3.57"
When was the show first aired that was viewed by 3.57 million U.S. viewers?
CREATE TABLE table_11694832_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT country FROM table_name_5 WHERE play = "medea"
What country had the play Medea?
CREATE TABLE table_name_5 (country VARCHAR, play VARCHAR)
SELECT name FROM table_name_22 WHERE rank < 71 AND year > 2005 AND out_of = "220"
Can you tell me the Name that has the Rank smaller than 71, and the Year larger than 2005, and the Out of 220?
CREATE TABLE table_name_22 (name VARCHAR, out_of VARCHAR, rank VARCHAR, year VARCHAR)
SELECT opponent FROM table_19789597_6 WHERE date = "July 7"
Who was the game on July 7 played against?
CREATE TABLE table_19789597_6 (opponent VARCHAR, date VARCHAR)
SELECT college_junior_club_team FROM table_2781227_4 WHERE nhl_team = "San Jose Sharks"
For nhl team is san jose sharks mention all the college/junior/club team
CREATE TABLE table_2781227_4 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT television_service FROM table_name_30 WHERE package_option = "sky tv" AND language = "italian english"
What is the television service that has package with sky tv, and it in Italian English?
CREATE TABLE table_name_30 (television_service VARCHAR, package_option VARCHAR, language VARCHAR)
SELECT COUNT(score) FROM table_21260421_1 WHERE location = "Alabama"
How many tournaments were held at Alabama?
CREATE TABLE table_21260421_1 (score VARCHAR, location VARCHAR)
SELECT coverage_area FROM table_name_25 WHERE city_of_license = "hillsboro, west virginia"
Name the coverage area for licesne of hillsboro, west virginia
CREATE TABLE table_name_25 (coverage_area VARCHAR, city_of_license VARCHAR)
SELECT COUNT(other_placings) FROM table_2305948_1 WHERE federation = "ROH, WWE"
How many times has a wrestler whose federation was roh, wwe competed in this event?
CREATE TABLE table_2305948_1 (other_placings VARCHAR, federation VARCHAR)
SELECT MIN(year) FROM table_name_81 WHERE top_goalscorer = "ortiz" AND goals > 25
Name the least year for goalscore of ortiz and goals more than 25
CREATE TABLE table_name_81 (year INTEGER, top_goalscorer VARCHAR, goals VARCHAR)
SELECT 2005 AS _world_aids_day_benefit_dream_cast FROM table_1901751_1 WHERE original_australian_performer = "Susan-Ann Walker"
Who is the 2005 World AIDS Day Benefit "Dream" Cast when the Original Australian performer is Susan-Ann Walker?
CREATE TABLE table_1901751_1 (original_australian_performer VARCHAR)
SELECT team FROM table_name_79 WHERE game = 34
Who was the team for game 34?
CREATE TABLE table_name_79 (team VARCHAR, game VARCHAR)
SELECT h___a FROM table_name_53 WHERE round = "semi-final"
Was the semi-final round held at home or away?
CREATE TABLE table_name_53 (h___a VARCHAR, round VARCHAR)
SELECT name FROM table_name_96 WHERE time > 53.06 AND lane < 8 AND rank > 2 AND nationality = "japan"
Which Name has a Time larger than 53.06, and a Lane smaller than 8, and a Rank larger than 2, and a Nationality of japan?
CREATE TABLE table_name_96 (name VARCHAR, nationality VARCHAR, rank VARCHAR, time VARCHAR, lane VARCHAR)
SELECT Player_name FROM player ORDER BY Votes
List the names of players in ascending order of votes.
CREATE TABLE player (Player_name VARCHAR, Votes VARCHAR)
SELECT transfers_out FROM table_name_76 WHERE country = "peru"
What are the Transfers out for Peru?
CREATE TABLE table_name_76 (transfers_out VARCHAR, country VARCHAR)
SELECT COUNT(weight__kg_) FROM table_name_42 WHERE race = "chelmsford stakes"
What was the combined weight in kilograms of the horses in the race at Chelmsford stakes?
CREATE TABLE table_name_42 (weight__kg_ VARCHAR, race VARCHAR)
SELECT MAX(total) FROM table_1161065_27 WHERE team = "Port Adelaide"
What is the total of port adelaide
CREATE TABLE table_1161065_27 (total INTEGER, team VARCHAR)
SELECT icb_sector FROM table_name_81 WHERE company = "vallourec"
Which ICB Sector belongs to vallourec?
CREATE TABLE table_name_81 (icb_sector VARCHAR, company VARCHAR)
SELECT MIN(wins) FROM table_name_5 WHERE draws > 0
How many wins were there when draws were more than 0?
CREATE TABLE table_name_5 (wins INTEGER, draws INTEGER)
SELECT COUNT(total) FROM table_name_41 WHERE player = "gene littler"
How many totals does gene littler have?
CREATE TABLE table_name_41 (total VARCHAR, player VARCHAR)
SELECT team__number2 FROM table_23812628_1 WHERE team__number1 = "River Plate"
Name the team #2 for river plate
CREATE TABLE table_23812628_1 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT call_sign FROM table_name_20 WHERE erp_w = 4
Name the call sign for ERP W of 4
CREATE TABLE table_name_20 (call_sign VARCHAR, erp_w VARCHAR)
SELECT type FROM table_name_21 WHERE reported_price = "$500,000" AND person_s_ = "angelina jolie"
What type of photos of Angelina Jolie cost $500,000?
CREATE TABLE table_name_21 (type VARCHAR, reported_price VARCHAR, person_s_ VARCHAR)
SELECT tie_no FROM table_name_46 WHERE home_team = "middlesbrough"
What is the tie number for Middlesbrough?
CREATE TABLE table_name_46 (tie_no VARCHAR, home_team VARCHAR)
SELECT COUNT(code) FROM table_name_41 WHERE population > 87 OFFSET 585
What is the total code number for places with a population greater than 87,585?
CREATE TABLE table_name_41 (code VARCHAR, population INTEGER)
SELECT pts FROM table_name_96 WHERE div = "glasgow rocks"
Tell me the pts for glasgow rocks
CREATE TABLE table_name_96 (pts VARCHAR, div VARCHAR)
SELECT COUNT(rank) FROM table_name_69 WHERE lane = 7
Name the total number of rank for lane 7
CREATE TABLE table_name_69 (rank VARCHAR, lane VARCHAR)
SELECT away_team FROM table_name_85 WHERE venue = "victoria park"
Who was the away team at Victoria Park?
CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR)
SELECT charity FROM table_28730873_2 WHERE occupation = "Actor and Singer"
What is the charity for the celebrity with an occupation title of actor and singer?
CREATE TABLE table_28730873_2 (charity VARCHAR, occupation VARCHAR)
SELECT bronze FROM table_name_2 WHERE rank > 5
What is the bronze value associated with ranks over 5?
CREATE TABLE table_name_2 (bronze VARCHAR, rank INTEGER)
SELECT entrant FROM table_name_13 WHERE chassis = "dallara f398"
Which entrant has a Dallara F398 chassis?
CREATE TABLE table_name_13 (entrant VARCHAR, chassis VARCHAR)
SELECT games FROM table_name_60 WHERE name = "patrick etolu"
In what Games did Patrick Etolu compete?
CREATE TABLE table_name_60 (games VARCHAR, name VARCHAR)
SELECT name__year_commissioned_ FROM table_name_74 WHERE from_to = "karratha to port hedland"
What is the name of the line from Karratha to Port Hedland?
CREATE TABLE table_name_74 (name__year_commissioned_ VARCHAR, from_to VARCHAR)
SELECT member FROM table_name_6 WHERE party = "national" AND electorate = "hinkler"
Which member of the National Party is from the Hinkler electorate?
CREATE TABLE table_name_6 (member VARCHAR, party VARCHAR, electorate VARCHAR)
SELECT points FROM table_23812628_1 WHERE team__number1 = "Zamora"
Name the points for zamora
CREATE TABLE table_23812628_1 (points VARCHAR, team__number1 VARCHAR)
SELECT nationality FROM table_name_79 WHERE player = "rod langway"
What nationality is Rod Langway?
CREATE TABLE table_name_79 (nationality VARCHAR, player VARCHAR)
SELECT previous_conference FROM table_name_46 WHERE year_joined = "1932" AND mascot = "tigers"
what is the previous conference when the year joined is 1932 and the mascot is tigers?
CREATE TABLE table_name_46 (previous_conference VARCHAR, year_joined VARCHAR, mascot VARCHAR)
SELECT date FROM table_name_93 WHERE result = "won" AND score = "2-1" AND competition = "2004 tiger cup third place match"
What date has won as the result and 2-1 as the score with a competition of 2004 tiger cup third place match?
CREATE TABLE table_name_93 (date VARCHAR, competition VARCHAR, result VARCHAR, score VARCHAR)
SELECT Group AS song FROM table_name_29 WHERE name = "alice 林芯糸"
What is Group Song, when Name is Alice 林芯糸?
CREATE TABLE table_name_29 (Group VARCHAR, name VARCHAR)
SELECT date FROM table_name_39 WHERE score = "1-0"
What day was the score 1-0?
CREATE TABLE table_name_39 (date VARCHAR, score VARCHAR)
SELECT score FROM table_name_89 WHERE record = "43-26"
With a record of 43-26, what was the score that game?
CREATE TABLE table_name_89 (score VARCHAR, record VARCHAR)
SELECT SUM(match) FROM table_name_83 WHERE points > 22
How many matches ended with more than 22 points?
CREATE TABLE table_name_83 (match INTEGER, points INTEGER)
SELECT name FROM table_name_43 WHERE location = "gulf of mexico" AND type = "ship" AND entered_service = "1999"
What is the name of the location and ship type in the Gulf of Mexico that entered service in 1999?
CREATE TABLE table_name_43 (name VARCHAR, entered_service VARCHAR, location VARCHAR, type VARCHAR)
SELECT open_cup FROM table_1243601_1 WHERE year = "2004"
What was the open cup results in 2004?
CREATE TABLE table_1243601_1 (open_cup VARCHAR, year VARCHAR)
SELECT theme FROM table_name_96 WHERE winner = "dani"
What is the theme with dani as the winner?
CREATE TABLE table_name_96 (theme VARCHAR, winner VARCHAR)
SELECT attendance FROM table_name_21 WHERE week = 17
What was the Jets week 17 attendance?
CREATE TABLE table_name_21 (attendance VARCHAR, week VARCHAR)
SELECT bandwidth_included FROM table_name_85 WHERE internet_plan = "8mb"
What is Bandwidth Included, when Internet Plan is "8mb"?
CREATE TABLE table_name_85 (bandwidth_included VARCHAR, internet_plan VARCHAR)
SELECT competition FROM table_name_19 WHERE venue = "daugava stadium, riga, latvia"
What competition was at the Daugava Stadium, Riga, Latvia?
CREATE TABLE table_name_19 (competition VARCHAR, venue VARCHAR)