answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(money___) AS $__ FROM table_name_99 WHERE country = "scotland united states"
What is the highest amount of money a play from Scotland United States has?
CREATE TABLE table_name_99 (money___ INTEGER, country VARCHAR)
SELECT MAX(tries) FROM table_name_49 WHERE player = "paul sykes" AND points > 0
How many tries did the player Paul Sykes take when he earned 0 points?
CREATE TABLE table_name_49 (tries INTEGER, player VARCHAR, points VARCHAR)
SELECT hometown FROM table_11677691_4 WHERE school = "Shanley High school"
Where was the hometown for the player that attended Shanley High School?
CREATE TABLE table_11677691_4 (hometown VARCHAR, school VARCHAR)
SELECT results FROM table_name_23 WHERE year = 2000
What was the result in 2000?
CREATE TABLE table_name_23 (results VARCHAR, year VARCHAR)
SELECT points_against FROM table_name_60 WHERE drawn = "3" AND points = "50"
How many points were scored against the club that drew 3 and scored 50 points?
CREATE TABLE table_name_60 (points_against VARCHAR, drawn VARCHAR, points VARCHAR)
SELECT location FROM table_name_87 WHERE began < 1990 AND country = "france"
what is the location when began is before 1990 and the country is france?
CREATE TABLE table_name_87 (location VARCHAR, began VARCHAR, country VARCHAR)
SELECT COUNT(duration) FROM table_17641206_4 WHERE written_by = "John Sullivan"
How many episodes of 30 minutes were written by John Sullivan?
CREATE TABLE table_17641206_4 (duration VARCHAR, written_by VARCHAR)
SELECT polling_firm FROM table_name_25 WHERE others = "1%"
What was the polling firm with others of 1%?
CREATE TABLE table_name_25 (polling_firm VARCHAR, others VARCHAR)
SELECT post FROM table_22517564_3 WHERE horse_name = "Chocolate Candy"
Which post had the horse named chocolate candy?
CREATE TABLE table_22517564_3 (post VARCHAR, horse_name VARCHAR)
SELECT weight FROM table_name_10 WHERE name = "balázs hárai category:articles with hcards"
Name the Weight which has a Name of balázs hárai category:articles with hcards?
CREATE TABLE table_name_10 (weight VARCHAR, name VARCHAR)
SELECT location_attendance FROM table_17103729_8 WHERE score = "64-74"
Name the location of 64-74
CREATE TABLE table_17103729_8 (location_attendance VARCHAR, score VARCHAR)
SELECT production_code FROM table_26259391_1 WHERE original_air_date = "February20,2011"
Which production code had original air dated february20,2011
CREATE TABLE table_26259391_1 (production_code VARCHAR, original_air_date VARCHAR)
SELECT team_captain FROM table_27374004_2 WHERE shirt_sponsor = "Quick"
What is the team captain when the shirt sponser is quick?
CREATE TABLE table_27374004_2 (team_captain VARCHAR, shirt_sponsor VARCHAR)
SELECT built FROM table_name_51 WHERE period = "1967-1987"
How many cabins were built in the time between 1967-1987?
CREATE TABLE table_name_51 (built VARCHAR, period VARCHAR)
SELECT opponent FROM table_name_18 WHERE date = "november 11, 1951"
Who was the opponent on November 11, 1951?
CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR)
SELECT lead FROM table_name_17 WHERE city = "winnipeg" AND third_vice_skip = "kevin park"
Which Lead has a City of winnipeg, and a Third/Vice skip of kevin park?
CREATE TABLE table_name_17 (lead VARCHAR, city VARCHAR, third_vice_skip VARCHAR)
SELECT COUNT(domestic_mail) FROM table_1754531_4 WHERE total_freight_and_mail = 7853
Name the total number of domestic mail for 7853 for total frieght and mail
CREATE TABLE table_1754531_4 (domestic_mail VARCHAR, total_freight_and_mail VARCHAR)
SELECT architect FROM table_name_43 WHERE built < 1915 AND building = "electric railway chambers"
Who was the architect that built the Electric Railway Chambers before 1915?
CREATE TABLE table_name_43 (architect VARCHAR, built VARCHAR, building VARCHAR)
SELECT chapter FROM table_name_5 WHERE charter_range = "1906-1991"
Which chapter was active from 1906-1991?
CREATE TABLE table_name_5 (chapter VARCHAR, charter_range VARCHAR)
SELECT MIN(number_of_bearers_2008) FROM table_name_13 WHERE surname = "jansson" AND rank < 13
What was the lowest number of 2008 total bearers with a rank less than 13 and the Surname Jansson?
CREATE TABLE table_name_13 (number_of_bearers_2008 INTEGER, surname VARCHAR, rank VARCHAR)
SELECT streak FROM table_name_26 WHERE opponent = "@ new jersey nets"
What was the streak when the opponent was @ new jersey nets?
CREATE TABLE table_name_26 (streak VARCHAR, opponent VARCHAR)
SELECT AVG(university_of_dublin) FROM table_name_75 WHERE industrial_and_commercial_panel > 4 AND national_university_of_ireland > 3
What is the average for the university of dublin when the industrial and commercial panel is greater than 4 and the total of the national university of ireland is larger than 3?
CREATE TABLE table_name_75 (university_of_dublin INTEGER, industrial_and_commercial_panel VARCHAR, national_university_of_ireland VARCHAR)
SELECT position FROM table_name_42 WHERE player = "mike dennis"
What position does Mike Dennis play?
CREATE TABLE table_name_42 (position VARCHAR, player VARCHAR)
SELECT constructor FROM table_name_44 WHERE time_retired = "collision" AND grid = "11"
What companyw as the constructor when the Time/Retired was collision, and a Grid of 11?
CREATE TABLE table_name_44 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_1 WHERE grid < 8 AND laps = 73 AND constructor = "williams - bmw"
What is the Time/Retired that has a Grid smaller than 8, 73 laps, and a Constructor of williams - bmw?
CREATE TABLE table_name_1 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT MAX(poles) FROM table_name_81 WHERE starts > 18 AND winnings = "$125,102" AND year < 1992
What is the highest number of poles of the year before 1992 with more than 18 starts and winnings of $125,102?
CREATE TABLE table_name_81 (poles INTEGER, year VARCHAR, starts VARCHAR, winnings VARCHAR)
SELECT season FROM table_name_65 WHERE round = "1r" AND away_result = "7–1"
Round of 1r, and an away result of 7–1 is what season?
CREATE TABLE table_name_65 (season VARCHAR, round VARCHAR, away_result VARCHAR)
SELECT description_of_activities FROM table_1756264_2 WHERE company_name = "CLEAR CHANNEL ENTERTAINMENT FACILITATION LIMITED"
What activities does Clear Channel Entertainment Facilitation Limited engage in?
CREATE TABLE table_1756264_2 (description_of_activities VARCHAR, company_name VARCHAR)
SELECT socket FROM table_name_40 WHERE turbo = "8/8/10/11"
What is the socked when the turbo is 8/8/10/11?
CREATE TABLE table_name_40 (socket VARCHAR, turbo VARCHAR)
SELECT SUM(round) FROM table_name_43 WHERE position = "right wing" AND player = "jessie rezansoff"
What is the round number of Jessie Rezansoff, who plays right wing?
CREATE TABLE table_name_43 (round INTEGER, position VARCHAR, player VARCHAR)
SELECT MIN(goals) FROM table_name_93 WHERE caps < 38 AND average < 1.083
What is the goal low with caps less than 38 and an average less than 1.083?
CREATE TABLE table_name_93 (goals INTEGER, caps VARCHAR, average VARCHAR)
SELECT manager FROM table_name_45 WHERE playoffs = "missed" AND year = "1999"
Name the manager for playoffs of missed for 1999
CREATE TABLE table_name_45 (manager VARCHAR, playoffs VARCHAR, year VARCHAR)
SELECT frequency_mhz FROM table_name_7 WHERE fcc_info = "fcc" AND erp_w = "9 watts"
Name the frequency mhz for fcc and ERP W of 9 watts
CREATE TABLE table_name_7 (frequency_mhz VARCHAR, fcc_info VARCHAR, erp_w VARCHAR)
SELECT COUNT(first_elected) FROM table_1342359_15 WHERE district = "Kansas 3"
how many first elected with district is kansas 3
CREATE TABLE table_1342359_15 (first_elected VARCHAR, district VARCHAR)
SELECT 2012 FROM table_name_5 WHERE 2011 = "1r"
Name the 2012 for 2011 being 1r
CREATE TABLE table_name_5 (Id VARCHAR)
SELECT chinese_name FROM table_name_85 WHERE station_name = "wudaokou"
What's the Chinese name of the wudaokou station?
CREATE TABLE table_name_85 (chinese_name VARCHAR, station_name VARCHAR)
SELECT money___$__ FROM table_name_21 WHERE place = "t8" AND score = 74 - 72 - 75 - 71 = 292
What was the money when the place was t8 and the score was 74-72-75-71=292?
CREATE TABLE table_name_21 (money___$__ VARCHAR, place VARCHAR, score VARCHAR)
SELECT score FROM table_name_22 WHERE player = "ky laffoon"
What is the score for Ky Laffoon?
CREATE TABLE table_name_22 (score VARCHAR, player VARCHAR)
SELECT grid FROM table_name_45 WHERE team = "dale coyne racing" AND driver = "bruno junqueira"
What was the grid for Bruno Junqueira for Dale Coyne Racing?
CREATE TABLE table_name_45 (grid VARCHAR, team VARCHAR, driver VARCHAR)
SELECT time FROM table_name_56 WHERE lane = 7
What time does lane 7 have?
CREATE TABLE table_name_56 (time VARCHAR, lane VARCHAR)
SELECT T1.artist_name, T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE "%Mar%"
List the name and gender for all artists who released songs in March.
CREATE TABLE song (artist_name VARCHAR, releasedate VARCHAR); CREATE TABLE artist (artist_name VARCHAR, gender VARCHAR)
SELECT division_north FROM table_17881033_1 WHERE division_south = "Kožuf" AND division_southwest = "Ilinden Velmej"
what is the division north when division south was kožuf and division southwest was ilinden velmej
CREATE TABLE table_17881033_1 (division_north VARCHAR, division_south VARCHAR, division_southwest VARCHAR)
SELECT date FROM table_name_70 WHERE venue = "hrazdan stadium, yerevan, armenia"
What date was the game played at the venue of Hrazdan Stadium, Yerevan, Armenia?
CREATE TABLE table_name_70 (date VARCHAR, venue VARCHAR)
SELECT COUNT(result) FROM table_1342379_41 WHERE candidates = "Joseph W. Byrns, Sr. (D) Unopposed"
How many times was the election joseph w. byrns, sr. (d) unopposed?
CREATE TABLE table_1342379_41 (result VARCHAR, candidates VARCHAR)
SELECT result FROM table_name_42 WHERE theme = "dolly parton"
What is the Result when the Theme was by Dolly Parton?
CREATE TABLE table_name_42 (result VARCHAR, theme VARCHAR)
SELECT title FROM table_26199130_1 WHERE production_code = "2ALF03"
What is the title of the episode with production code 2alf03?
CREATE TABLE table_26199130_1 (title VARCHAR, production_code VARCHAR)
SELECT name FROM manufacturers WHERE revenue < (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')
Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.
CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER, headquarter VARCHAR)
SELECT developer_s_ FROM table_name_90 WHERE year = 2010
Which Developer(s) has a Year of 2010?
CREATE TABLE table_name_90 (developer_s_ VARCHAR, year VARCHAR)
SELECT elevator FROM table_name_83 WHERE nationality = "crema"
Who is the elevator from crema?
CREATE TABLE table_name_83 (elevator VARCHAR, nationality VARCHAR)
SELECT season FROM table_name_40 WHERE pos = "6th" AND pts = "36"
What season had 6th position and 36 points?
CREATE TABLE table_name_40 (season VARCHAR, pos VARCHAR, pts VARCHAR)
SELECT population__2006_ FROM table_name_7 WHERE vehicle_registration_code = "g" AND population_density = "1,432.0"
What is the 2006 population of the area with vehicle registration code of G and population density of 1,432.0?
CREATE TABLE table_name_7 (population__2006_ VARCHAR, vehicle_registration_code VARCHAR, population_density VARCHAR)
SELECT event FROM table_name_98 WHERE record = "4-0"
Which event led to a 4-0 record?
CREATE TABLE table_name_98 (event VARCHAR, record VARCHAR)
SELECT engine FROM table_name_2 WHERE class = "c" AND team = "hs technik motorsport" AND driver = "philipp eng"
What c class engine did philipp eng and team hs technik motorsport use?
CREATE TABLE table_name_2 (engine VARCHAR, driver VARCHAR, class VARCHAR, team VARCHAR)
SELECT score FROM table_name_58 WHERE club = "fk austria wien"
What's the final score of the competition that features the club of fk Austria wien?
CREATE TABLE table_name_58 (score VARCHAR, club VARCHAR)
SELECT record FROM table_name_20 WHERE date = "april 6"
Name the record for april 6
CREATE TABLE table_name_20 (record VARCHAR, date VARCHAR)
SELECT MAX(administrative_panel) FROM table_name_37 WHERE nominated_by_the_taoiseach > 3 AND agricultural_panel = 5 AND cultural_and_educational_panel > 2
What is the biggest administrative panel with a nominated by the Taoiseach greater than 3 and an argricultural panel of 5, plust a cultural and educational panel larger than 2?
CREATE TABLE table_name_37 (administrative_panel INTEGER, cultural_and_educational_panel VARCHAR, nominated_by_the_taoiseach VARCHAR, agricultural_panel VARCHAR)
SELECT away_team FROM table_name_3 WHERE date = "9 february 1988"
Who was the away team on 9 February 1988?
CREATE TABLE table_name_3 (away_team VARCHAR, date VARCHAR)
SELECT loss FROM table_name_90 WHERE record = "46-48"
What was the loss of the Brewers game when the record was 46-48?
CREATE TABLE table_name_90 (loss VARCHAR, record VARCHAR)
SELECT wards__branches_in_arkansas FROM table_name_89 WHERE stake = "fort smith arkansas"
What is the wards/branches of the fort smith Arkansas stake?
CREATE TABLE table_name_89 (wards__branches_in_arkansas VARCHAR, stake VARCHAR)
SELECT score FROM table_name_70 WHERE loss = "birkbeck (0–3)"
What is the score when there was a Loss of birkbeck (0–3)?
CREATE TABLE table_name_70 (score VARCHAR, loss VARCHAR)
SELECT AVG(change) FROM table_name_31 WHERE centre = "buenos aires" AND rank < 46
Which Change is the average one that has a Centre of buenos aires, and a Rank smaller than 46?
CREATE TABLE table_name_31 (change INTEGER, centre VARCHAR, rank VARCHAR)
SELECT comments FROM table_1206114_2 WHERE vendor_and_type = "Alcatel-Lucent routers"
What are the comments when the vendor and type is alcatel-lucent routers?
CREATE TABLE table_1206114_2 (comments VARCHAR, vendor_and_type VARCHAR)
SELECT church_name FROM table_name_94 WHERE sub_parish__sokn_ = "fresvik"
What is the church in the Sub-Parish of Fresvik called?
CREATE TABLE table_name_94 (church_name VARCHAR, sub_parish__sokn_ VARCHAR)
SELECT longitude FROM table_name_74 WHERE year_named = 1994 AND name = "carmenta farra"
What is the longitude of Carmenta Farra in 1994?
CREATE TABLE table_name_74 (longitude VARCHAR, year_named VARCHAR, name VARCHAR)
SELECT T2.title, T2.film_id, T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY COUNT(*) DESC LIMIT 1
Which film has the most number of actors or actresses? List the film name, film id and description.
CREATE TABLE film_actor (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR, description VARCHAR)
SELECT away_team FROM table_name_3 WHERE home_team = "richmond"
When the home team is richmond, what was the away team playing?
CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(silver) FROM table_name_22 WHERE total = 5 AND gold > 3
What is the total number of silver medals for nations with 5 total medals and more than 3 gold medals?
CREATE TABLE table_name_22 (silver VARCHAR, total VARCHAR, gold VARCHAR)
SELECT production_company FROM table_name_61 WHERE producer_s_ = "sam mccarthy"
For which production company did Sam Mccarthy produce?
CREATE TABLE table_name_61 (production_company VARCHAR, producer_s_ VARCHAR)
SELECT points_1 FROM table_name_93 WHERE position < 13 AND goal_difference = "+16"
What are the points 1 for the team with position less than 13 and goal difference of +16?
CREATE TABLE table_name_93 (points_1 VARCHAR, position VARCHAR, goal_difference VARCHAR)
SELECT school_club_team FROM table_name_19 WHERE player = "derek fisher"
What college team did Derek Fisher play for?
CREATE TABLE table_name_19 (school_club_team VARCHAR, player VARCHAR)
SELECT cuts_made FROM table_28540609_2 WHERE player = "Gary Clark"
How many cuts did Gary Clark make?
CREATE TABLE table_28540609_2 (cuts_made VARCHAR, player VARCHAR)
SELECT date FROM table_name_78 WHERE opponent_number = "indiana"
When was the game against Indiana?
CREATE TABLE table_name_78 (date VARCHAR, opponent_number VARCHAR)
SELECT opponent FROM table_name_17 WHERE rockets_score > 86 AND streak = "won 1" AND opponents < 101
Which Opponent has a Rockets score larger than 86, a Streak of won 1, and Opponents smaller than 101?
CREATE TABLE table_name_17 (opponent VARCHAR, opponents VARCHAR, rockets_score VARCHAR, streak VARCHAR)
SELECT nationality FROM table_name_97 WHERE round = 3
WHAT NATIONALITY HAS ROUND 3?
CREATE TABLE table_name_97 (nationality VARCHAR, round VARCHAR)
SELECT catalog FROM table_name_8 WHERE format = "digipak album" AND date = "june 29, 1999"
What Catalog released on June 29, 1999 has a Digipak Album Format?
CREATE TABLE table_name_8 (catalog VARCHAR, format VARCHAR, date VARCHAR)
SELECT results_2004 FROM table_name_18 WHERE party = "npa"
Name the 2004 results for npa
CREATE TABLE table_name_18 (results_2004 VARCHAR, party VARCHAR)
SELECT place FROM table_name_49 WHERE player = "bernhard langer"
What Place has a Player of bernhard langer?
CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR)
SELECT score FROM table_name_89 WHERE total = "75–53"
What was the score when the total was 75–53?
CREATE TABLE table_name_89 (score VARCHAR, total VARCHAR)
SELECT date FROM table_30073089_2 WHERE season = 2011 AND position > 2.0
Name the date for 2011 and position larger than 2.0
CREATE TABLE table_30073089_2 (date VARCHAR, season VARCHAR, position VARCHAR)
SELECT grid FROM table_name_74 WHERE time_retired = "+ 1:24.3"
What grad has a Time/Retired of + 1:24.3?
CREATE TABLE table_name_74 (grid VARCHAR, time_retired VARCHAR)
SELECT constructor FROM table_name_84 WHERE driver = "alex yoong"
Who built Alex Yoong's car?
CREATE TABLE table_name_84 (constructor VARCHAR, driver VARCHAR)
SELECT directed_by FROM table_26561506_1 WHERE production_code = 177605
Who directed the episode with production code 177605?
CREATE TABLE table_26561506_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT period FROM table_name_36 WHERE internet_explorer = "53.52%"
What period has 53.52% as the internet explorer?
CREATE TABLE table_name_36 (period VARCHAR, internet_explorer VARCHAR)
SELECT director FROM table_18335117_3 WHERE no_in_series = 1
When 1 is the number in series who is the director?
CREATE TABLE table_18335117_3 (director VARCHAR, no_in_series VARCHAR)
SELECT fname, lname FROM employee WHERE salary > 30000
Return the first names and last names of employees who earn more than 30000 in salary.
CREATE TABLE employee (fname VARCHAR, lname VARCHAR, salary INTEGER)
SELECT field_goals__4_points_ FROM table_25711913_14 WHERE touchdowns__5_points_ = 7
How many field goals were scored by the player that got 7 touchdowns?
CREATE TABLE table_25711913_14 (field_goals__4_points_ VARCHAR, touchdowns__5_points_ VARCHAR)
SELECT additional_major_sponsor_s_ FROM table_name_58 WHERE additional_colour_s_ = "black" AND year = 1984
What are the additional major sponsors which correspond to the additional color black and a year 1984?
CREATE TABLE table_name_58 (additional_major_sponsor_s_ VARCHAR, additional_colour_s_ VARCHAR, year VARCHAR)
SELECT losing_bp FROM table_name_38 WHERE played = "22" AND lost = "5"
Can you tell me the Losing BP that has Played of 22, and the Lost of 5?
CREATE TABLE table_name_38 (losing_bp VARCHAR, played VARCHAR, lost VARCHAR)
SELECT nationality FROM table_name_66 WHERE position = "w" AND college_junior_club_team__league_ = "leninogorsk (russia-2)"
What nationality is the draft pick with w position from leninogorsk (russia-2)?
CREATE TABLE table_name_66 (nationality VARCHAR, position VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT score FROM table_name_87 WHERE place = "3"
What score has 3 as the place?
CREATE TABLE table_name_87 (score VARCHAR, place VARCHAR)
SELECT away_team FROM table_name_12 WHERE venue = "princes park"
What was the away team when the game was at Princes Park?
CREATE TABLE table_name_12 (away_team VARCHAR, venue VARCHAR)
SELECT country FROM table_name_46 WHERE location = "kunlong"
What country in Kunlong in?
CREATE TABLE table_name_46 (country VARCHAR, location VARCHAR)
SELECT MIN(average) FROM table_name_42 WHERE interview > 9.57 AND country = "delaware" AND evening_gown > 9.77
Name the lowest average for interview more than 9.57 and delaware and evening gown more than 9.77
CREATE TABLE table_name_42 (average INTEGER, evening_gown VARCHAR, interview VARCHAR, country VARCHAR)
SELECT team FROM table_name_19 WHERE pick = 31
what is the team that is pick 31?
CREATE TABLE table_name_19 (team VARCHAR, pick VARCHAR)
SELECT AVG(position) FROM table_name_47 WHERE b_score < 9.05 AND total = 15.275 AND a_score > 6.4
What was their position when the score of B was less than 9.05, a total was 15.275, and A Score larger than 6.4?
CREATE TABLE table_name_47 (position INTEGER, a_score VARCHAR, b_score VARCHAR, total VARCHAR)
SELECT rider FROM table_name_54 WHERE round_1_points = "18.185"
Tell me the rider with 18.185 points round 1
CREATE TABLE table_name_54 (rider VARCHAR, round_1_points VARCHAR)
SELECT time_retired FROM table_name_79 WHERE laps > 51 AND driver = "cristiano da matta"
Which Time/Retired entry has greater than 51 laps and driver Cristiano da Matta?
CREATE TABLE table_name_79 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT written_by FROM table_13426649_1 WHERE production_code = "1ANJ01"
Who wrote the episode with production code 1ANJ01?
CREATE TABLE table_13426649_1 (written_by VARCHAR, production_code VARCHAR)
SELECT role FROM table_name_51 WHERE registration = "s5-hpb"
What is the role of the aircraft that has a registration of s5-hpb?
CREATE TABLE table_name_51 (role VARCHAR, registration VARCHAR)
SELECT mlb_draft FROM table_name_7 WHERE school = "green valley high school"
What MLB draft has a School of green valley high school?
CREATE TABLE table_name_7 (mlb_draft VARCHAR, school VARCHAR)