question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
On what Surface was the match with a Score of 6–4, 6–3 and Runner-up Outcome played?
CREATE TABLE table_name_30 (surface VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT surface FROM table_name_30 WHERE outcome = "runner-up" AND score = "6–4, 6–3"
What is the away team's score at brunswick street oval?
CREATE TABLE table_name_80 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_80 WHERE venue = "brunswick street oval"
How many book clubs are there?
CREATE TABLE book_club (Id VARCHAR)
SELECT COUNT(*) FROM book_club
What was the manner of departure when the outgoing manager was andrea mandorlini?
CREATE TABLE table_26976615_3 (manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT manner_of_departure FROM table_26976615_3 WHERE outgoing_manager = "Andrea Mandorlini"
Who was the player with a score of 70-69=139?
CREATE TABLE table_name_37 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_37 WHERE score = 70 - 69 = 139
What is the sum of Game, when Date is 29 January 2008?
CREATE TABLE table_name_59 (game INTEGER, date VARCHAR)
SELECT SUM(game) FROM table_name_59 WHERE date = "29 january 2008"
Which team has home game with tie of 4?
CREATE TABLE table_name_88 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_88 WHERE tie_no = "4"
What is the highest attendance for December 14, 1958 for after week 12
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_40 WHERE date = "december 14, 1958" AND week > 12
What total has a position smaller than 4, a B score higher than 9.125, and an A score less than 6.6?
CREATE TABLE table_name_89 (total INTEGER, a_score VARCHAR, position VARCHAR, b_score VARCHAR)
SELECT AVG(total) FROM table_name_89 WHERE position < 4 AND b_score > 9.125 AND a_score < 6.6
State average scores of participants from arizona
CREATE TABLE table_17088705_2 (average VARCHAR, country VARCHAR)
SELECT average FROM table_17088705_2 WHERE country = "Arizona"
Which Pick has a Round larger than 17, and a Name of gene stewart?
CREATE TABLE table_name_46 (pick VARCHAR, round VARCHAR, name VARCHAR)
SELECT COUNT(pick) FROM table_name_46 WHERE round > 17 AND name = "gene stewart"
What was the total number of wins that had an against greater than 1136 but losses less than 15 with Ultima with less than 2 byes?
CREATE TABLE table_name_62 (wins INTEGER, byes VARCHAR, golden_rivers VARCHAR, against VARCHAR, losses VARCHAR)
SELECT SUM(wins) FROM table_name_62 WHERE against > 1136 AND losses < 15 AND golden_rivers = "ultima" AND byes < 2
What is the 3utr sequence when the genbank id is hq021437?
CREATE TABLE table_14332822_1 (genbank_id VARCHAR)
SELECT 3 AS ’utr_sequence FROM table_14332822_1 WHERE genbank_id = "HQ021437"
display job Title, the difference between minimum and maximum salaries for those jobs which max salary within the range 12000 to 18000.
CREATE TABLE jobs (job_title VARCHAR, max_salary INTEGER, min_salary VARCHAR)
SELECT job_title, max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000
What Mountain Pass has an Elevation of 10,001 feet 3048 m?
CREATE TABLE table_name_44 (mountain_pass VARCHAR, elevation VARCHAR)
SELECT mountain_pass FROM table_name_44 WHERE elevation = "10,001 feet 3048 m"
For what episode was the nominee (s) Walon Green, Joe Sachs nominated as a result?
CREATE TABLE table_name_52 (episode VARCHAR, result VARCHAR, nominee_s_ VARCHAR)
SELECT episode FROM table_name_52 WHERE result = "nominated" AND nominee_s_ = "walon green, joe sachs"
For the functional type of light ball, what were the other features?
CREATE TABLE table_1036189_1 (other_features VARCHAR, functional_type VARCHAR)
SELECT other_features FROM table_1036189_1 WHERE functional_type = "Light Ball"
What is the Record for a game less than 3 and the score was l 91–96 (ot)?
CREATE TABLE table_name_19 (record VARCHAR, game VARCHAR, score VARCHAR)
SELECT record FROM table_name_19 WHERE game < 3 AND score = "l 91–96 (ot)"
What is the sum of all from the Cultural and Educational Panel with less than 7 from the Labour Panel and less than 1 from the Agricultural Panel?
CREATE TABLE table_name_23 (cultural_and_educational_panel INTEGER, labour_panel VARCHAR, agricultural_panel VARCHAR)
SELECT SUM(cultural_and_educational_panel) FROM table_name_23 WHERE labour_panel < 7 AND agricultural_panel < 1
With Round 3 and Pick # over 10, what is the higher Overall number?
CREATE TABLE table_name_38 (overall INTEGER, round VARCHAR, pick__number VARCHAR)
SELECT MAX(overall) FROM table_name_38 WHERE round = 3 AND pick__number > 10
What round was the debut of defender Stephen Laybutt?
CREATE TABLE table_name_11 (debut VARCHAR, position VARCHAR, name VARCHAR)
SELECT debut FROM table_name_11 WHERE position = "defender" AND name = "stephen laybutt"
What time was the fastest lap during Stoh's 200 in 1982?
CREATE TABLE table_name_74 (fastest_lap VARCHAR, name VARCHAR)
SELECT fastest_lap FROM table_name_74 WHERE name = "stoh's 200"
Who constructed the car in round 1 with a Chassis of 250F?
CREATE TABLE table_name_86 (constructor VARCHAR, chassis VARCHAR, rounds VARCHAR)
SELECT constructor FROM table_name_86 WHERE chassis = "250f" AND rounds = "1"
Name the polyunsaturated fat with a saturated fat of 25g
CREATE TABLE table_name_31 (polyunsaturated_fat VARCHAR, saturated_fat VARCHAR)
SELECT polyunsaturated_fat FROM table_name_31 WHERE saturated_fat = "25g"
who is the winners where season result is 9th
CREATE TABLE table_1139835_3 (winners VARCHAR, season_result VARCHAR)
SELECT winners FROM table_1139835_3 WHERE season_result = "9th"
What is the highest draw number when 23 points are scored?
CREATE TABLE table_name_36 (draw INTEGER, points VARCHAR)
SELECT MAX(draw) FROM table_name_36 WHERE points = 23
Who is the Driver, when the Date is October 6?
CREATE TABLE table_name_98 (driver VARCHAR, date VARCHAR)
SELECT driver FROM table_name_98 WHERE date = "october 6"
Name the round of 32 in conference usa
CREATE TABLE table_10722506_6 (round_of_32 VARCHAR, conference VARCHAR)
SELECT round_of_32 FROM table_10722506_6 WHERE conference = "conference USA"
What was the reason for change to the successor that was seated on December 13, 1880?
CREATE TABLE table_2417395_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
SELECT reason_for_change FROM table_2417395_4 WHERE date_successor_seated = "December 13, 1880"
What is the address of the location "UK Gallery"?
CREATE TABLE LOCATIONS (Address VARCHAR, Location_Name VARCHAR)
SELECT Address FROM LOCATIONS WHERE Location_Name = "UK Gallery"
What is High Rebounds, when Date is "March 13"?
CREATE TABLE table_name_93 (high_rebounds VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_name_93 WHERE date = "march 13"
What rank was Lassi Karonen?
CREATE TABLE table_name_9 (rank VARCHAR, athlete VARCHAR)
SELECT COUNT(rank) FROM table_name_9 WHERE athlete = "lassi karonen"
What happened to the incombent who was elected in 1980?
CREATE TABLE table_1341586_14 (result VARCHAR, first_elected VARCHAR)
SELECT result FROM table_1341586_14 WHERE first_elected = 1980
Which score has a Date of august 17?
CREATE TABLE table_name_58 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_58 WHERE date = "august 17"
How many oricon's have a romaji title of rakuen -memorial tracks- (maxi-single)?
CREATE TABLE table_name_13 (oricon VARCHAR, romaji_title VARCHAR)
SELECT COUNT(oricon) FROM table_name_13 WHERE romaji_title = "rakuen -memorial tracks- (maxi-single)"
Which Award Ceremony has a Result of nominated, and a Category of best revival of a musical?
CREATE TABLE table_name_75 (award_ceremony VARCHAR, result VARCHAR, category VARCHAR)
SELECT award_ceremony FROM table_name_75 WHERE result = "nominated" AND category = "best revival of a musical"
Which game has a high rebound of Evans (7) and a high assist of Evans, Ollie (3)?
CREATE TABLE table_name_11 (game INTEGER, high_rebounds VARCHAR, high_assists VARCHAR)
SELECT MAX(game) FROM table_name_11 WHERE high_rebounds = "evans (7)" AND high_assists = "evans, ollie (3)"
which countries have more than 2 airports?
CREATE TABLE airport (country VARCHAR)
SELECT country FROM airport GROUP BY country HAVING COUNT(*) > 2
Name the Silver that has a Total smaller than 2, and a Nation of south korea?
CREATE TABLE table_name_49 (silver INTEGER, total VARCHAR, nation VARCHAR)
SELECT AVG(silver) FROM table_name_49 WHERE total < 2 AND nation = "south korea"
What is the Venue of the Competition with a Result of 2–2 (d)?
CREATE TABLE table_name_6 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_6 WHERE result = "2–2 (d)"
how many years has сенки been nominated?
CREATE TABLE table_14928423_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT COUNT(year__ceremony_) FROM table_14928423_1 WHERE original_title = "Сенки"
Name the position for 2.16
CREATE TABLE table_23670057_1 (position VARCHAR, height__m_ VARCHAR)
SELECT position FROM table_23670057_1 WHERE height__m_ = "2.16"
What is the number of wins when there are 14 matches, and the No Result was less than 0?
CREATE TABLE table_name_94 (wins INTEGER, matches VARCHAR, no_result VARCHAR)
SELECT AVG(wins) FROM table_name_94 WHERE matches = 14 AND no_result < 0
The building with 48 floors has an address in Las Vegas of what?
CREATE TABLE table_name_2 (street_address VARCHAR, floors VARCHAR)
SELECT street_address FROM table_name_2 WHERE floors = 48
List the name of all products along with the number of complaints that they have received.
CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE complaints (product_id VARCHAR)
SELECT t1.product_name, COUNT(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name
What is Game, when Team is "Philadelphia"
CREATE TABLE table_name_48 (game VARCHAR, team VARCHAR)
SELECT game FROM table_name_48 WHERE team = "philadelphia"
What is Stella Farentino's current relationship status?
CREATE TABLE table_24143253_2 (current_marital_status VARCHAR, name VARCHAR)
SELECT current_marital_status FROM table_24143253_2 WHERE name = "Stella Farentino"
What city did Yugoslavia play Norway in?
CREATE TABLE table_name_2 (city VARCHAR, opponent VARCHAR)
SELECT city FROM table_name_2 WHERE opponent = "norway"
Which Superfund site has the CERCLIS ID fld980494959?
CREATE TABLE table_name_78 (partially_deleted VARCHAR, cerclis_id VARCHAR)
SELECT partially_deleted FROM table_name_78 WHERE cerclis_id = "fld980494959"
Who won the mixed doubles when ji xinpeng won the mens singles?
CREATE TABLE table_12027364_1 (mixed_doubles VARCHAR, mens_singles VARCHAR)
SELECT mixed_doubles FROM table_12027364_1 WHERE mens_singles = "Ji Xinpeng"
What is the most recent year in which the score was 4–6, 6–3, 7–5?
CREATE TABLE table_name_91 (year INTEGER, score VARCHAR)
SELECT MAX(year) FROM table_name_91 WHERE score = "4–6, 6–3, 7–5"
What is the lowest crowd with home team richmond?
CREATE TABLE table_name_79 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_79 WHERE home_team = "richmond"
For a release price of $72, what is the TDP of the microprocessor?
CREATE TABLE table_16729930_18 (tdp VARCHAR, release_price___usd__ VARCHAR)
SELECT tdp FROM table_16729930_18 WHERE release_price___usd__ = "$72"
What rank is Turkmenistan, who had 0 silver's and Less than 2 golds?
CREATE TABLE table_name_93 (rank VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT rank FROM table_name_93 WHERE silver = 0 AND gold < 2 AND nation = "turkmenistan"
What is Esperance pipeline co total diameter?
CREATE TABLE table_17918238_1 (maximum_diameter VARCHAR, owner_operator VARCHAR)
SELECT maximum_diameter FROM table_17918238_1 WHERE owner_operator = "Esperance Pipeline Co"
What channel had the prize of €100,000?
CREATE TABLE table_14523485_9 (channel VARCHAR, top_prize VARCHAR)
SELECT channel FROM table_14523485_9 WHERE top_prize = "€100,000"
How many episodes aired Saturday, July 11, 2009
CREATE TABLE table_17525955_2 (episode__number VARCHAR, us_air_date VARCHAR)
SELECT COUNT(episode__number) FROM table_17525955_2 WHERE us_air_date = "Saturday, July 11, 2009"
What was the share for the first episode that ranked 85?
CREATE TABLE table_11274401_2 (share INTEGER, rank___number_ VARCHAR)
SELECT MIN(share) FROM table_11274401_2 WHERE rank___number_ = "85"
What institution won 2nd more recently than 2007 with Peter Agre as Chief Judge?
CREATE TABLE table_name_67 (institution VARCHAR, chief_judge VARCHAR, year VARCHAR, award VARCHAR)
SELECT institution FROM table_name_67 WHERE year > 2007 AND award = "2nd" AND chief_judge = "peter agre"
For Once Municipal, what were the goals scored that had less than 27 points and greater than place 1?
CREATE TABLE table_name_69 (goals_scored INTEGER, points VARCHAR, place VARCHAR, team VARCHAR)
SELECT AVG(goals_scored) FROM table_name_69 WHERE place > 1 AND team = "once municipal" AND points < 27
Which Alpha contains ia64 with discontinued 3.5-3.8 4.1-4.7?
CREATE TABLE table_name_34 (alpha VARCHAR, ia64 VARCHAR)
SELECT alpha FROM table_name_34 WHERE ia64 = "discontinued 3.5-3.8 4.1-4.7"
What is the attendance when the result was w61-7?
CREATE TABLE table_name_12 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_12 WHERE result = "w61-7"
How many different final scores were there in 1963?
CREATE TABLE table_2201724_2 (score_in_the_final VARCHAR, year VARCHAR)
SELECT COUNT(score_in_the_final) FROM table_2201724_2 WHERE year = 1963
Which All Games have a Nonconference Games of 1–10?
CREATE TABLE table_name_93 (all_games VARCHAR, nonconference_games VARCHAR)
SELECT all_games FROM table_name_93 WHERE nonconference_games = "1–10"
WHat was the result of the friendly match that was played on october 8, 2012?
CREATE TABLE table_name_6 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT result FROM table_name_6 WHERE competition = "friendly match" AND date = "october 8, 2012"
When they played San Lorenzo, what was the score of the second leg?
CREATE TABLE table_17282875_3 (team__number1 VARCHAR)
SELECT 2 AS nd_leg FROM table_17282875_3 WHERE team__number1 = "San Lorenzo"
Which regio has a date of 24 march 2006?
CREATE TABLE table_name_15 (region VARCHAR, date VARCHAR)
SELECT region FROM table_name_15 WHERE date = "24 march 2006"
What's the record after week 16?
CREATE TABLE table_name_80 (record VARCHAR, week INTEGER)
SELECT record FROM table_name_80 WHERE week > 16
Who had the high rebounds in Philips Arena 12,088?
CREATE TABLE table_name_17 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT high_rebounds FROM table_name_17 WHERE location_attendance = "philips arena 12,088"
the sum of Events that has a Rank larger than 5 is 3
CREATE TABLE table_name_97 (events INTEGER, rank INTEGER)
SELECT SUM(events) FROM table_name_97 WHERE rank > 5
What medal did Michael Conlon, with a weight of fly, win?
CREATE TABLE table_name_48 (medal VARCHAR, weight VARCHAR, boxer VARCHAR)
SELECT medal FROM table_name_48 WHERE weight = "fly" AND boxer = "michael conlon"
When did Sydney Barnes debut in England?
CREATE TABLE table_name_35 (debut VARCHAR, country VARCHAR, name VARCHAR)
SELECT debut FROM table_name_35 WHERE country = "england" AND name = "sydney barnes"
In 2007, what player won player of the year?
CREATE TABLE table_name_35 (player VARCHAR, year_s__won VARCHAR)
SELECT player FROM table_name_35 WHERE year_s__won = "2007"
How many people tuned in to the finale on May 16, 2007?
CREATE TABLE table_name_27 (viewers__in_millions_ VARCHAR, finale VARCHAR)
SELECT COUNT(viewers__in_millions_) FROM table_name_27 WHERE finale = "may 16, 2007"
What is the Latin word for the English word bone?
CREATE TABLE table_name_33 (latin VARCHAR, english VARCHAR)
SELECT latin FROM table_name_33 WHERE english = "bone"
What is the enrollment for Augsburg college?
CREATE TABLE table_261913_1 (enrollment INTEGER, institution VARCHAR)
SELECT MIN(enrollment) FROM table_261913_1 WHERE institution = "Augsburg College"
In what district was the incumbent Charles A. Wickliffe?
CREATE TABLE table_2668254_8 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_2668254_8 WHERE incumbent = "Charles A. Wickliffe"
When was the game before week 8 with a result of bye?
CREATE TABLE table_name_44 (date VARCHAR, week VARCHAR, result VARCHAR)
SELECT date FROM table_name_44 WHERE week < 8 AND result = "bye"
what type of school is the institution nicknamed seminoles?
CREATE TABLE table_28744929_1 (school_type VARCHAR, nickname VARCHAR)
SELECT school_type FROM table_28744929_1 WHERE nickname = "Seminoles"
What is the land area of Switzerland with a population density fewer than 188 km²?
CREATE TABLE table_name_98 (land_area__km²_ INTEGER, country VARCHAR, population_density__pop_per_km²_ VARCHAR)
SELECT AVG(land_area__km²_) FROM table_name_98 WHERE country = "switzerland" AND population_density__pop_per_km²_ < 188
what is the ngc number when the constellation is leo and the declination (j2000) is °42′13″?
CREATE TABLE table_name_70 (ngc_number INTEGER, constellation VARCHAR, declination___j2000__ VARCHAR)
SELECT AVG(ngc_number) FROM table_name_70 WHERE constellation = "leo" AND declination___j2000__ = "°42′13″"
How many contestants where from mitteldeutschland?
CREATE TABLE table_23495048_2 (age VARCHAR, represent VARCHAR)
SELECT COUNT(age) FROM table_23495048_2 WHERE represent = "Mitteldeutschland"
What are all the conjugated forms of the verb moler where the vosotros / vosotras is moláis for the yo tense?
CREATE TABLE table_1977630_2 (yo VARCHAR, vosotros___vosotras VARCHAR)
SELECT yo FROM table_1977630_2 WHERE vosotros___vosotras = "moláis"
Which skip (club) had 28 PA?
CREATE TABLE table_29546030_2 (skip__club_ VARCHAR, pa VARCHAR)
SELECT skip__club_ FROM table_29546030_2 WHERE pa = 28
What position is drafted from Grambling?
CREATE TABLE table_name_47 (position VARCHAR, college VARCHAR)
SELECT position FROM table_name_47 WHERE college = "grambling"
Which Total Goals have a League Cup Goals larger than 0, and FA Cup Goals larger than 0?
CREATE TABLE table_name_82 (total_goals INTEGER, league_cup_goals VARCHAR, fa_cup_goals VARCHAR)
SELECT AVG(total_goals) FROM table_name_82 WHERE league_cup_goals > 0 AND fa_cup_goals > 0
When dwhr-tv is the call sign how many station types are there?
CREATE TABLE table_23394920_1 (station_type VARCHAR, callsign VARCHAR)
SELECT COUNT(station_type) FROM table_23394920_1 WHERE callsign = "DWHR-TV"
What is the Tournament against Vladimir Zednik?
CREATE TABLE table_name_67 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_67 WHERE opponent = "vladimir zednik"
How many games are played for all students?
CREATE TABLE Sportsinfo (gamesplayed INTEGER)
SELECT SUM(gamesplayed) FROM Sportsinfo
When nicole dubuc duane capizzi is the writer who is the director?
CREATE TABLE table_29475589_3 (director VARCHAR, writer_s_ VARCHAR)
SELECT director FROM table_29475589_3 WHERE writer_s_ = "Nicole Dubuc Duane Capizzi"
How many steals were the in games that andy kaufmann played?
CREATE TABLE table_22824324_2 (steals VARCHAR, player VARCHAR)
SELECT COUNT(steals) FROM table_22824324_2 WHERE player = "Andy Kaufmann"
Show names of actors that have appeared in musical with name "The Phantom of the Opera".
CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR); CREATE TABLE musical (Musical_ID VARCHAR, Name VARCHAR)
SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = "The Phantom of the Opera"
What is the average attendance when Brewers are the opponent with a score of 6–3?
CREATE TABLE table_name_68 (attendance INTEGER, opponent VARCHAR, score VARCHAR)
SELECT AVG(attendance) FROM table_name_68 WHERE opponent = "brewers" AND score = "6–3"
Which gymnast had a b score of 8.95 and an a score less than 6.9
CREATE TABLE table_name_94 (gymnast VARCHAR, b_score VARCHAR, a_score VARCHAR)
SELECT gymnast FROM table_name_94 WHERE b_score = 8.95 AND a_score < 6.9
Who came as a replacement in Sheffield United?
CREATE TABLE table_19359427_6 (replaced_by VARCHAR, team VARCHAR)
SELECT replaced_by FROM table_19359427_6 WHERE team = "Sheffield United"
What is the title when the director is Maynard C. Virgil i ?
CREATE TABLE table_28140588_1 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_28140588_1 WHERE directed_by = "Maynard C. Virgil I"
How many Rounds have a Defensive End Pick?
CREATE TABLE table_name_16 (round VARCHAR, position VARCHAR)
SELECT COUNT(round) FROM table_name_16 WHERE position = "defensive end"
Show id and location of railways that are associated with more than one train.
CREATE TABLE railway (Location VARCHAR, Railway_ID VARCHAR); CREATE TABLE train (Railway_ID VARCHAR)
SELECT T2.Railway_ID, T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID HAVING COUNT(*) > 1
Who directed the episode with 899000 viewers?
CREATE TABLE table_27547668_3 (directed_by VARCHAR, viewers VARCHAR)
SELECT directed_by FROM table_27547668_3 WHERE viewers = 899000
After Round 5, which player was drafted for Defensive Tackle?
CREATE TABLE table_name_68 (player VARCHAR, round VARCHAR, position VARCHAR)
SELECT player FROM table_name_68 WHERE round > 5 AND position = "defensive tackle"