question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which team was Roy de Walt a player on?
CREATE TABLE table_name_20 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_20 WHERE player = "roy de walt"
What kind of IATA that has a Airport of berlin schönefeld airport?
CREATE TABLE table_name_83 (iata VARCHAR, airport VARCHAR)
SELECT iata FROM table_name_83 WHERE airport = "berlin schönefeld airport"
What is Briar Cliff University's nickname?
CREATE TABLE table_262508_1 (nickname VARCHAR, institution VARCHAR)
SELECT nickname FROM table_262508_1 WHERE institution = "Briar Cliff University"
List the names of all players who have a crossing score higher than 90 and prefer their right foot.
CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (player_api_id VARCHAR, crossing VARCHAR, preferred_foot VARCHAR)
SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = "right"
How many rounds had a selection of 165?
CREATE TABLE table_name_74 (round INTEGER, selection VARCHAR)
SELECT SUM(round) FROM table_name_74 WHERE selection = 165
Which Drawn has a Lost larger than 8, and Points smaller than 7?
CREATE TABLE table_name_80 (drawn INTEGER, lost VARCHAR, points VARCHAR)
SELECT SUM(drawn) FROM table_name_80 WHERE lost > 8 AND points < 7
Who was the runner-up after season 2 when the total prize money was $108,000?
CREATE TABLE table_name_27 (runner_up VARCHAR, season VARCHAR, total_prize_money VARCHAR)
SELECT runner_up FROM table_name_27 WHERE season > 2 AND total_prize_money = "$108,000"
What is the win % of the 2003 atp world tour finals?
CREATE TABLE table_name_14 (win__percentage VARCHAR)
SELECT win__percentage FROM table_name_14 WHERE 2003 = "atp world tour finals"
What is the lowest silver that has 1 as the rank, with a bronze greater than 5?
CREATE TABLE table_name_76 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT MIN(silver) FROM table_name_76 WHERE rank = 1 AND bronze > 5
Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance.
CREATE TABLE checking (custid VARCHAR, balance INTEGER); CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE savings (balance INTEGER); CREATE TABLE checking (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM savings)
Which Supercopa 1994 has a Team of estudiantes?
CREATE TABLE table_name_10 (supercopa_1994 VARCHAR, team VARCHAR)
SELECT supercopa_1994 FROM table_name_10 WHERE team = "estudiantes"
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 years_for_grizzlies FROM table_name_56 WHERE position = "point guard" AND school_club_team = "florida"
what is the arrival time for no. 14?
CREATE TABLE table_14688744_2 (arrival VARCHAR, no VARCHAR)
SELECT arrival FROM table_14688744_2 WHERE no = 14
What was the final score when the Buffalo Bills were the visiting team?
CREATE TABLE table_name_94 (final_score VARCHAR, visiting_team VARCHAR)
SELECT final_score FROM table_name_94 WHERE visiting_team = "buffalo bills"
What's the first elected year of the district whose incumbent is Jim Greenwood?
CREATE TABLE table_1341423_38 (first_elected INTEGER, incumbent VARCHAR)
SELECT MAX(first_elected) FROM table_1341423_38 WHERE incumbent = "Jim Greenwood"
What is the Home team in the game with a Score of 2–3?
CREATE TABLE table_name_17 (home_team VARCHAR, score VARCHAR)
SELECT home_team FROM table_name_17 WHERE score = "2–3"
How many high assist are on the date December 13?
CREATE TABLE table_17325580_6 (high_assists VARCHAR, date VARCHAR)
SELECT COUNT(high_assists) FROM table_17325580_6 WHERE date = "December 13"
What Displacement has 185hp (138kw) Power o
CREATE TABLE table_name_57 (displacement VARCHAR, power VARCHAR)
SELECT displacement FROM table_name_57 WHERE power = "185hp (138kw)"
Score of 33-22 had what round?
CREATE TABLE table_name_14 (round VARCHAR, score VARCHAR)
SELECT round FROM table_name_14 WHERE score = "33-22"
What season had Belgium and 1 goal?
CREATE TABLE table_name_29 (season VARCHAR, country VARCHAR, goals VARCHAR)
SELECT season FROM table_name_29 WHERE country = "belgium" AND goals = "1"
Which Platform is the one that has a Stop number of 99014?
CREATE TABLE table_name_28 (platform VARCHAR, stop_no VARCHAR)
SELECT platform FROM table_name_28 WHERE stop_no = "99014"
What is the latest year that Cicely Tyson is the Golden Globe Award actor?
CREATE TABLE table_name_76 (year INTEGER, actor VARCHAR)
SELECT MAX(year) FROM table_name_76 WHERE actor = "cicely tyson"
Please show the countries and the number of climbers from each country.
CREATE TABLE climber (Country VARCHAR)
SELECT Country, COUNT(*) FROM climber GROUP BY Country
What are the tries against when points against 287?
CREATE TABLE table_13564637_5 (tries_against VARCHAR, points_against VARCHAR)
SELECT tries_against FROM table_13564637_5 WHERE points_against = "287"
On what date was the lead 8.6%?
CREATE TABLE table_name_25 (date_s__conducted VARCHAR, lead VARCHAR)
SELECT date_s__conducted FROM table_name_25 WHERE lead = "8.6%"
Which type of surface do Amer Delic Robert Kendrick's opponents have?
CREATE TABLE table_name_53 (surface VARCHAR, opponents VARCHAR)
SELECT surface FROM table_name_53 WHERE opponents = "amer delic robert kendrick"
When 13,895 (27.3) is the percentage against what is the toll poll percentage?
CREATE TABLE table_20683381_3 (total_poll___percentage_ VARCHAR, against___percentage_ VARCHAR)
SELECT total_poll___percentage_ FROM table_20683381_3 WHERE against___percentage_ = "13,895 (27.3)"
What is the sum of the swimsuit scores from Missouri that have evening gown scores less than 8.77 and average scores less than 8.823?
CREATE TABLE table_name_77 (swimsuit INTEGER, average VARCHAR, evening_gown VARCHAR, state VARCHAR)
SELECT SUM(swimsuit) FROM table_name_77 WHERE evening_gown < 8.77 AND state = "missouri" AND average < 8.823
How many Goals have a Pct % larger than 0.557, a points value smaller than 90, and a games value larger than 68?
CREATE TABLE table_name_6 (goals_for VARCHAR, games VARCHAR, pct__percentage VARCHAR, points VARCHAR)
SELECT COUNT(goals_for) FROM table_name_6 WHERE pct__percentage > 0.557 AND points < 90 AND games > 68
What is the least game that was played in Alexander Memorial Coliseum on October 16?
CREATE TABLE table_name_98 (game INTEGER, location_attendance VARCHAR, date VARCHAR)
SELECT MIN(game) FROM table_name_98 WHERE location_attendance = "alexander memorial coliseum" AND date = "october 16"
What League's Round is Sup and Position is Right Wing?
CREATE TABLE table_name_38 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_38 WHERE position = "right wing" AND round = "sup"
what are all the overall with viewers (m) being 2.61
CREATE TABLE table_13110459_2 (overall VARCHAR, viewers__m_ VARCHAR)
SELECT overall FROM table_13110459_2 WHERE viewers__m_ = "2.61"
Which Road Team has a Home Team of rochester, and a Result of 89-92?
CREATE TABLE table_name_9 (road_team VARCHAR, home_team VARCHAR, result VARCHAR)
SELECT road_team FROM table_name_9 WHERE home_team = "rochester" AND result = "89-92"
Who is the opponent of the match with a win result and a time of 3:02?
CREATE TABLE table_name_13 (opponent VARCHAR, res VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_13 WHERE res = "win" AND time = "3:02"
Who is the original broadway performer for the character Colin Craven?
CREATE TABLE table_1901751_1 (original_broadway_performer VARCHAR, character VARCHAR)
SELECT original_broadway_performer FROM table_1901751_1 WHERE character = "Colin Craven"
Name the lowest Green with a Year larger than 2010, and a Labour larger than 29? Question 3
CREATE TABLE table_name_82 (green INTEGER, year VARCHAR, labour VARCHAR)
SELECT MIN(green) FROM table_name_82 WHERE year > 2010 AND labour > 29
How many titles have an original air date of November 17, 1998?
CREATE TABLE table_234886_2 (title VARCHAR, original_air_date VARCHAR)
SELECT COUNT(title) FROM table_234886_2 WHERE original_air_date = "November 17, 1998"
Which nationality has Years for Jazz of 1984-85?
CREATE TABLE table_name_92 (nationality VARCHAR, years_for_jazz VARCHAR)
SELECT nationality FROM table_name_92 WHERE years_for_jazz = "1984-85"
Tell me the date for johanna konta
CREATE TABLE table_name_8 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_8 WHERE opponent_in_the_final = "johanna konta"
What was the aggregate for the celebrity who was known for being a singer and had 7 dances?
CREATE TABLE table_25931938_1 (aggregate VARCHAR, dances VARCHAR, known_for VARCHAR)
SELECT aggregate FROM table_25931938_1 WHERE dances = 7 AND known_for = "Singer"
Who wrote the album recorded at funhouse studios with a time of 3:27?
CREATE TABLE table_name_64 (writer_s_ VARCHAR, recorded_at VARCHAR, time VARCHAR)
SELECT writer_s_ FROM table_name_64 WHERE recorded_at = "funhouse studios" AND time = "3:27"
What are the id and name of the photos for mountains?
CREATE TABLE photos (mountain_id VARCHAR); CREATE TABLE mountain (id VARCHAR, name VARCHAR, height INTEGER)
SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000
List the status shared by more than two roller coaster.
CREATE TABLE roller_coaster (Status VARCHAR)
SELECT Status FROM roller_coaster GROUP BY Status HAVING COUNT(*) > 2
How tall is the player from Chicago, IL?
CREATE TABLE table_name_48 (height VARCHAR, hometown VARCHAR)
SELECT height FROM table_name_48 WHERE hometown = "chicago, il"
Which class has a Year of 1968?
CREATE TABLE table_name_36 (class VARCHAR, year VARCHAR)
SELECT class FROM table_name_36 WHERE year = 1968
what's the score where year is 2007
CREATE TABLE table_11214772_1 (score VARCHAR, year VARCHAR)
SELECT score FROM table_11214772_1 WHERE year = "2007"
How many bronzes have a Total of 9?
CREATE TABLE table_name_68 (bronze INTEGER, total VARCHAR)
SELECT SUM(bronze) FROM table_name_68 WHERE total = 9
What pick number is Kevan George?
CREATE TABLE table_29836557_2 (pick__number VARCHAR, player VARCHAR)
SELECT pick__number FROM table_29836557_2 WHERE player = "Kevan George"
What place was Bill Glasson in?
CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_49 WHERE player = "bill glasson"
What are the most againsts with more than 11 losses and central murray is Nyah Nyah West Utd?
CREATE TABLE table_name_83 (against INTEGER, central_murray VARCHAR, losses VARCHAR)
SELECT MAX(against) FROM table_name_83 WHERE central_murray = "nyah nyah west utd" AND losses > 11
What is the Points with a Played larger than 14?
CREATE TABLE table_name_18 (points VARCHAR, played INTEGER)
SELECT COUNT(points) FROM table_name_18 WHERE played > 14
What shows for notes when rank is more than 4, and country is South Korea?
CREATE TABLE table_name_31 (notes VARCHAR, rank VARCHAR, country VARCHAR)
SELECT notes FROM table_name_31 WHERE rank > 4 AND country = "south korea"
What is the position of the team that played at the venue with more than 6,500 capacity?
CREATE TABLE table_name_70 (position_in_1999 VARCHAR, capacity INTEGER)
SELECT position_in_1999 FROM table_name_70 WHERE capacity > 6 OFFSET 500
What year has a nomination title of "sangrador"?
CREATE TABLE table_name_84 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT year__ceremony_ FROM table_name_84 WHERE film_title_used_in_nomination = "sangrador"
What date was the game played in where hegarty was the scorer?
CREATE TABLE table_name_94 (date VARCHAR, scorers VARCHAR)
SELECT date FROM table_name_94 WHERE scorers = "hegarty"
What is the score in the touranament of Antalya-Belek?
CREATE TABLE table_name_66 (score VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_66 WHERE tournament = "antalya-belek"
What venue features carlton as the home side?
CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_40 WHERE home_team = "carlton"
What is 1st Round, when Team 1 is Sporting Toulon Var (D2)?
CREATE TABLE table_name_65 (team_1 VARCHAR)
SELECT 1 AS st_round FROM table_name_65 WHERE team_1 = "sporting toulon var (d2)"
Who is the opponent of Game 1 with a 3-2-0 record?
CREATE TABLE table_name_21 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_21 WHERE game > 1 AND record = "3-2-0"
Who directed episode number 3?
CREATE TABLE table_158088_2 (directed_by VARCHAR, episode_no VARCHAR)
SELECT directed_by FROM table_158088_2 WHERE episode_no = 3
What is the GPU frequency for the processor released in June 2013, with a sSpec number of sr17l(c0)?
CREATE TABLE table_name_27 (gpu_frequency VARCHAR, release_date VARCHAR, sspec_number VARCHAR)
SELECT gpu_frequency FROM table_name_27 WHERE release_date = "june 2013" AND sspec_number = "sr17l(c0)"
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 tournament FROM table_name_85 WHERE partner = "barbara jordan" AND score = "6-2, 3-6, 3-6"
What is Andy North with a To par greater than 8 Country?
CREATE TABLE table_name_53 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT country FROM table_name_53 WHERE to_par > 8 AND player = "andy north"
Which region has 0.6% none?
CREATE TABLE table_25042332_26 (region VARCHAR, none VARCHAR)
SELECT region FROM table_25042332_26 WHERE none = "0.6%"
What is the average pick number of Pennsylvania?
CREATE TABLE table_name_97 (pick INTEGER, school_club_team VARCHAR)
SELECT AVG(pick) FROM table_name_97 WHERE school_club_team = "pennsylvania"
What is Res., when Location is "Butte, Montana , United States", and when Opponent is "Jerome Smith"?
CREATE TABLE table_name_81 (res VARCHAR, location VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_81 WHERE location = "butte, montana , united states" AND opponent = "jerome smith"
What is the original air date of the episode with production code is 319?
CREATE TABLE table_29436059_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_29436059_1 WHERE production_code = 319
How many field goals were made by someone playing position of right end?
CREATE TABLE table_14342592_5 (field_goals VARCHAR, position VARCHAR)
SELECT COUNT(field_goals) FROM table_14342592_5 WHERE position = "Right end"
Which Colony Name was Founded on january 19, 2012?
CREATE TABLE table_name_1 (colony_name VARCHAR, date_founded VARCHAR)
SELECT colony_name FROM table_name_1 WHERE date_founded = "january 19, 2012"
What team name belongs to Seaford?
CREATE TABLE table_name_57 (team VARCHAR, school VARCHAR)
SELECT team FROM table_name_57 WHERE school = "seaford"
Which Payment has a Type of 2d, and a Release date of january 2003?
CREATE TABLE table_name_31 (payment VARCHAR, type VARCHAR, release_date VARCHAR)
SELECT payment FROM table_name_31 WHERE type = "2d" AND release_date = "january 2003"
What is the part 4 of the word with the part 1 "heizan"?
CREATE TABLE table_1745843_8 (part_4 VARCHAR, part_1 VARCHAR)
SELECT part_4 FROM table_1745843_8 WHERE part_1 = "heizan"
What Date has a Rank of 2?
CREATE TABLE table_name_23 (date VARCHAR, rank VARCHAR)
SELECT date FROM table_name_23 WHERE rank = 2
What internet explorer has 7.89% as the safari, and 8.22% as the chrome?
CREATE TABLE table_name_31 (internet_explorer VARCHAR, safari VARCHAR, chrome VARCHAR)
SELECT internet_explorer FROM table_name_31 WHERE safari = "7.89%" AND chrome = "8.22%"
Show the attendances of the performances at location "TD Garden" or "Bell Centre"
CREATE TABLE performance (Attendance VARCHAR, LOCATION VARCHAR)
SELECT Attendance FROM performance WHERE LOCATION = "TD Garden" OR LOCATION = "Bell Centre"
Name the host for john rotz and howard cosell
CREATE TABLE table_22514845_5 (s_host VARCHAR, s_analyst VARCHAR)
SELECT s_host FROM table_22514845_5 WHERE s_analyst = "John Rotz and Howard Cosell"
How many played where the points were 80?
CREATE TABLE table_12807904_5 (played VARCHAR, points VARCHAR)
SELECT played FROM table_12807904_5 WHERE points = "80"
Which Points have a Drawn larger than 0, and a Lost larger than 1?
CREATE TABLE table_name_38 (points INTEGER, drawn VARCHAR, lost VARCHAR)
SELECT AVG(points) FROM table_name_38 WHERE drawn > 0 AND lost > 1
What season had less than 301 points and 17 races?
CREATE TABLE table_name_28 (season VARCHAR, points VARCHAR, races VARCHAR)
SELECT season FROM table_name_28 WHERE points < 301 AND races = 17
What is reserved for the constituency of 228?
CREATE TABLE table_name_65 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_65 WHERE constituency_number = "228"
How many number of athletes were in round of 64 was llagostera Vives ( esp ) l 6–2, 3–6, 5–7?
CREATE TABLE table_17289604_38 (athlete VARCHAR, round_of_64 VARCHAR)
SELECT COUNT(athlete) FROM table_17289604_38 WHERE round_of_64 = "Llagostera Vives ( ESP ) L 6–2, 3–6, 5–7"
What is the value for 2005 when A is 2009 and 2000?
CREATE TABLE table_name_98 (Id VARCHAR)
SELECT 2005 FROM table_name_98 WHERE 2009 = "a" AND 2000 = "a"
What was the score when Pittsburgh was the visitor?
CREATE TABLE table_name_42 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_42 WHERE visitor = "pittsburgh"
During what week was the game attended by 20114 people?
CREATE TABLE table_23685152_2 (week INTEGER, attendance VARCHAR)
SELECT MAX(week) FROM table_23685152_2 WHERE attendance = 20114
What is the total of q > 1.4 when q > 1.3 is 455, and q >1.2 is less than 3,028?
CREATE TABLE table_name_51 (q_ INTEGER)
SELECT SUM(q_) > _1.4 FROM table_name_51 WHERE q_ > _1.3 = 455 AND q_ > _1.2 < 3 OFFSET 028
How many Runners have a Placing that isn't 1?
CREATE TABLE table_name_55 (runners VARCHAR, placing INTEGER)
SELECT COUNT(runners) FROM table_name_55 WHERE placing > 1
Which location has an Opponent of masanori suda?
CREATE TABLE table_name_84 (location VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_84 WHERE opponent = "masanori suda"
What is the number of silver where the rank is higher than 4 and bronze is smaller than 1?
CREATE TABLE table_name_16 (silver VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT COUNT(silver) FROM table_name_16 WHERE rank > 4 AND bronze < 1
What is the method of opponent georges st-pierre?
CREATE TABLE table_name_22 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_22 WHERE opponent = "georges st-pierre"
Who was the opponent at the game with a score of 35-14?
CREATE TABLE table_name_33 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_33 WHERE score = "35-14"
What is the lowest amount of draws with less than 12 wins and less than 30 played?
CREATE TABLE table_name_27 (draws INTEGER, wins VARCHAR, played VARCHAR)
SELECT MIN(draws) FROM table_name_27 WHERE wins < 12 AND played < 30
How many points were scored against with a losing bonus of 1 for Blaenavon RFC?
CREATE TABLE table_name_67 (points_against VARCHAR, losing_bonus VARCHAR, club VARCHAR)
SELECT points_against FROM table_name_67 WHERE losing_bonus = "1" AND club = "blaenavon rfc"
What suburb/town has school years of k-6, was founded before 1875, and has Ashfield Public School as its school?
CREATE TABLE table_name_11 (suburb_town VARCHAR, school VARCHAR, years VARCHAR, founded VARCHAR)
SELECT suburb_town FROM table_name_11 WHERE years = "k-6" AND founded < 1875 AND school = "ashfield public school"
how many locations have a record of 14-38?
CREATE TABLE table_13464416_7 (location_attendance VARCHAR, record VARCHAR)
SELECT COUNT(location_attendance) FROM table_13464416_7 WHERE record = "14-38"
What Week 2 that has a Week 1 of mackenzie ryan?
CREATE TABLE table_name_81 (week_2 VARCHAR, week_1 VARCHAR)
SELECT week_2 FROM table_name_81 WHERE week_1 = "mackenzie ryan"
Which Record has a Game larger than 34, and a Date of january 9?
CREATE TABLE table_name_34 (record VARCHAR, game VARCHAR, date VARCHAR)
SELECT record FROM table_name_34 WHERE game > 34 AND date = "january 9"
Which player has 1299 goals?
CREATE TABLE table_name_6 (player VARCHAR, goals VARCHAR)
SELECT player FROM table_name_6 WHERE goals = "1299"
What is the Score with an Opponent that is amanda brown brenda remilton?
CREATE TABLE table_name_45 (score VARCHAR, opponents VARCHAR)
SELECT score FROM table_name_45 WHERE opponents = "amanda brown brenda remilton"
What is the record of the match on 2009-07-18?
CREATE TABLE table_name_21 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_21 WHERE date = "2009-07-18"
What eagle riders where ova (harmony gold dub) is lord zortek?
CREATE TABLE table_17480471_3 (eagle_riders VARCHAR, ova__harmony_gold_dub_ VARCHAR)
SELECT eagle_riders FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = "Lord Zortek"