question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many tracks have an unformatted capacity per side of 2000kb?
CREATE TABLE table_name_7 (tracks VARCHAR, unformatted_capacity_per_side VARCHAR)
SELECT COUNT(tracks) FROM table_name_7 WHERE unformatted_capacity_per_side = "2000kb"
How much Overall has a Pick # of 26?
CREATE TABLE table_name_25 (overall INTEGER, pick__number VARCHAR)
SELECT SUM(overall) FROM table_name_25 WHERE pick__number = 26
What competition was played on 2 June 1992?
CREATE TABLE table_name_4 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_4 WHERE date = "2 june 1992"
Who won the silver medal in the games where Hong Chia-yuh took home bronze?
CREATE TABLE table_name_5 (silver VARCHAR, bronze VARCHAR)
SELECT silver FROM table_name_5 WHERE bronze = "hong chia-yuh"
The Eastern Creek Raceway circuit is on what date?
CREATE TABLE table_name_56 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_56 WHERE circuit = "eastern creek raceway"
How many Pumpers have Cars of 1, and a Staffing of volunteer, and a Brigade of grovedale, and Tankers smaller than 1?
CREATE TABLE table_name_32 (pumpers VARCHAR, tankers VARCHAR, brigade VARCHAR, cars VARCHAR, staffing VARCHAR)
SELECT COUNT(pumpers) FROM table_name_32 WHERE cars = "1" AND staffing = "volunteer" AND brigade = "grovedale" AND tankers < 1
Where did Brian Hightower play when he has the Conv of 0?
CREATE TABLE table_name_47 (venue VARCHAR, conv VARCHAR, player VARCHAR)
SELECT venue FROM table_name_47 WHERE conv = "0" AND player = "brian hightower"
When has a Centerfold model of krista kelly?
CREATE TABLE table_name_20 (date VARCHAR, centerfold_model VARCHAR)
SELECT date FROM table_name_20 WHERE centerfold_model = "krista kelly"
What is the total amount of gold medals when there were more than 20 silvers and there were 135 bronze medals?
CREATE TABLE table_name_22 (gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(gold) FROM table_name_22 WHERE silver > 20 AND bronze = 135
Who is the home captain when the venue is adelaide oval?
CREATE TABLE table_name_81 (home_captain VARCHAR, venue VARCHAR)
SELECT home_captain FROM table_name_81 WHERE venue = "adelaide oval"
Where did the west indies batting team play at?
CREATE TABLE table_name_23 (venue VARCHAR, batting_team VARCHAR)
SELECT venue FROM table_name_23 WHERE batting_team = "west indies"
Which Mascot has IHSAA Class of aa, and a Enrollment larger than 369?
CREATE TABLE table_name_10 (mascot VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
SELECT mascot FROM table_name_10 WHERE ihsaa_class = "aa" AND enrollment > 369
What is the grid when the laps were 24?
CREATE TABLE table_name_69 (grid VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_69 WHERE laps = 24
What day did Yugoslavia play Luxembourg?
CREATE TABLE table_name_56 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_56 WHERE opponent = "luxembourg"
What was the away team that played Fitzroy?
CREATE TABLE table_name_96 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_96 WHERE home_team = "fitzroy"
Who built Alex Yoong's car?
CREATE TABLE table_name_84 (constructor VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_84 WHERE driver = "alex yoong"
Name the most number in series for production code of 3abc11
CREATE TABLE table_23289934_1 (no_in_series INTEGER, production_code VARCHAR)
SELECT MAX(no_in_series) FROM table_23289934_1 WHERE production_code = "3ABC11"
Which junctions have "replaced by bsi-35" listed in their remarks section?
CREATE TABLE table_11336756_6 (junctions VARCHAR, remarks VARCHAR)
SELECT junctions FROM table_11336756_6 WHERE remarks = "Replaced by BSI-35"
What is the circuit for the ADAC großer preis der tourenwagen race?
CREATE TABLE table_name_27 (circuit VARCHAR, race VARCHAR)
SELECT circuit FROM table_name_27 WHERE race = "adac großer preis der tourenwagen"
When the Year is over 2008, what is the highest Mintage for the Royal Canadian Mint Engravers Artist?
CREATE TABLE table_name_46 (mintage INTEGER, artist VARCHAR, year VARCHAR)
SELECT MAX(mintage) FROM table_name_46 WHERE artist = "royal canadian mint engravers" AND year > 2008
If the manufacturer is Yamaha, and the laps driven were under 32, what's the average of all grid sizes with that criteria?
CREATE TABLE table_name_76 (grid INTEGER, laps VARCHAR, manufacturer VARCHAR)
SELECT AVG(grid) FROM table_name_76 WHERE laps < 32 AND manufacturer = "yamaha"
What was the outcome of the tournament in Edinburgh?
CREATE TABLE table_name_82 (outcome VARCHAR, tournament VARCHAR)
SELECT outcome FROM table_name_82 WHERE tournament = "edinburgh"
Where does the customer with the first name Linda live? And what is her email?
CREATE TABLE customer (email VARCHAR, address_id VARCHAR, first_name VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR)
SELECT T2.address, T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id = T1.address_id WHERE T1.first_name = 'LINDA'
What's the sum of all phil mickelson's game scores?
CREATE TABLE table_name_36 (score INTEGER, player VARCHAR)
SELECT SUM(score) FROM table_name_36 WHERE player = "phil mickelson"
How many people attended the May 28 game?
CREATE TABLE table_name_99 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_99 WHERE date = "may 28"
What place has the score of 67-74=141?
CREATE TABLE table_name_2 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_2 WHERE score = 67 - 74 = 141
What is the highest Year with a Competition that is new york city marathon?
CREATE TABLE table_name_10 (year INTEGER, competition VARCHAR)
SELECT MAX(year) FROM table_name_10 WHERE competition = "new york city marathon"
What is the largest number of events with the Masters Tournament and less than 4 in the top-25?
CREATE TABLE table_name_77 (events INTEGER, tournament VARCHAR, top_25 VARCHAR)
SELECT MAX(events) FROM table_name_77 WHERE tournament = "masters tournament" AND top_25 < 4
Name the series result for season being 1998
CREATE TABLE table_2554479_2 (series VARCHAR, season VARCHAR)
SELECT series AS result FROM table_2554479_2 WHERE season = "1998"
what is the average points when the goal difference is less than 17, the club is getafe cf and the goals for is more than 30?
CREATE TABLE table_name_86 (points INTEGER, goals_for VARCHAR, goal_difference VARCHAR, club VARCHAR)
SELECT AVG(points) FROM table_name_86 WHERE goal_difference < 17 AND club = "getafe cf" AND goals_for > 30
Which skipper has a combine elapsed time of 174d 01h 11m 59s?
CREATE TABLE table_name_17 (skipper VARCHAR, combined_elapsed_time VARCHAR)
SELECT skipper FROM table_name_17 WHERE combined_elapsed_time = "174d 01h 11m 59s"
List the studios of each film and the number of films produced by that studio.
CREATE TABLE film (Studio VARCHAR)
SELECT Studio, COUNT(*) FROM film GROUP BY Studio
What is the number of land areas that have a place name of Ballplay?
CREATE TABLE table_249512_2 (land_area__2010_ VARCHAR, place_name VARCHAR)
SELECT COUNT(land_area__2010_) FROM table_249512_2 WHERE place_name = "Ballplay"
Which country is the player that went to Oregon?
CREATE TABLE table_11545282_12 (nationality VARCHAR, school_club_team VARCHAR)
SELECT nationality FROM table_11545282_12 WHERE school_club_team = "Oregon"
Who are the recipients that won for David Duchovny role/episode?
CREATE TABLE table_name_30 (recipients_and_nominees VARCHAR, role_episode VARCHAR, result VARCHAR)
SELECT recipients_and_nominees FROM table_name_30 WHERE role_episode = "david duchovny" AND result = "won"
After week 8, what was the Attendance on November 1, 1964?
CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT AVG(attendance) FROM table_name_43 WHERE date = "november 1, 1964" AND week > 8
Find the first and last name of all the students of age 18 who have vice president votes.
CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR, age VARCHAR); CREATE TABLE VOTING_RECORD (VICE_President_VOTE VARCHAR)
SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18
What's the season that had a lost of 9 with 72 games?
CREATE TABLE table_name_10 (season VARCHAR, games VARCHAR, lost VARCHAR)
SELECT season FROM table_name_10 WHERE games = "72" AND lost = "9"
Which Surface has an Opponent in the final of don mcneill, and a Year of 1940?
CREATE TABLE table_name_52 (surface VARCHAR, opponent_in_the_final VARCHAR, year VARCHAR)
SELECT surface FROM table_name_52 WHERE opponent_in_the_final = "don mcneill" AND year = 1940
What is the name of immunity when the finish is 3rd voted out day 9?
CREATE TABLE table_28742659_2 (immunity VARCHAR, finish VARCHAR)
SELECT immunity FROM table_28742659_2 WHERE finish = "3rd voted Out Day 9"
How much Population (2011) has a Land area (km²) larger than 15.69, and a Population density (per km²) larger than 57.3?
CREATE TABLE table_name_28 (population__2011_ INTEGER, land_area__km²_ VARCHAR, population_density__per_km²_ VARCHAR)
SELECT SUM(population__2011_) FROM table_name_28 WHERE land_area__km²_ > 15.69 AND population_density__per_km²_ > 57.3
What platform was used for the game directed by Bryan Walker after 2006?
CREATE TABLE table_name_45 (platform_s_ VARCHAR, year VARCHAR, director VARCHAR)
SELECT platform_s_ FROM table_name_45 WHERE year > 2006 AND director = "bryan walker"
Which courses are taught on days MTW?
CREATE TABLE COURSE (CName VARCHAR, Days VARCHAR)
SELECT CName FROM COURSE WHERE Days = "MTW"
What was the Set 1 game score when Set 3 game score was 15–4, and a Set 2 game score was 15–7?
CREATE TABLE table_name_75 (set_1 VARCHAR, set_3 VARCHAR, set_2 VARCHAR)
SELECT set_1 FROM table_name_75 WHERE set_3 = "15–4" AND set_2 = "15–7"
Who did they play on August 26?
CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_44 WHERE date = "august 26"
Name the segment d for bowling balls
CREATE TABLE table_15187735_13 (segment_d VARCHAR, segment_a VARCHAR)
SELECT segment_d FROM table_15187735_13 WHERE segment_a = "Bowling Balls"
How many live births where the crude birth rate is lore than 15.7, average population is less than 297 and deaths are al 4 686?
CREATE TABLE table_name_79 (live_births VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, average_population__x_1000_ VARCHAR)
SELECT live_births FROM table_name_79 WHERE crude_birth_rate__per_1000_ > 15.7 AND average_population__x_1000_ < 297 AND deaths = "4 686"
How many League Goals have an FA Cup Apps of 0 (1)?
CREATE TABLE table_name_84 (league_goals VARCHAR, fa_cup_apps VARCHAR)
SELECT COUNT(league_goals) FROM table_name_84 WHERE fa_cup_apps = "0 (1)"
List all the candidates for the seat where the incumbent is Sam Gibbons?
CREATE TABLE table_1341472_11 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341472_11 WHERE incumbent = "Sam Gibbons"
What was the manner of departure replaced by tita?
CREATE TABLE table_name_34 (manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT manner_of_departure FROM table_name_34 WHERE replaced_by = "tita"
Event number 38m was held on which date?
CREATE TABLE table_22050544_3 (date VARCHAR, event__number VARCHAR)
SELECT date FROM table_22050544_3 WHERE event__number = "38M"
Who was the away team when the home team was Ramsgate?
CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_30 WHERE home_team = "ramsgate"
How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted?
CREATE TABLE table_name_23 (bangladeshis_admitted INTEGER, nepalis_admitted VARCHAR, pakistanis_admitted VARCHAR)
SELECT AVG(bangladeshis_admitted) FROM table_name_23 WHERE nepalis_admitted = 714 AND pakistanis_admitted > 13 OFFSET 575
What is the number of bronze when the total is smaller than 1?
CREATE TABLE table_name_58 (bronze INTEGER, total INTEGER)
SELECT AVG(bronze) FROM table_name_58 WHERE total < 1
Which department offers the most number of degrees? List department name and id.
CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_name VARCHAR, department_id VARCHAR)
SELECT T2.department_name, T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY COUNT(*) DESC LIMIT 1
Name the township for kidder
CREATE TABLE table_18600760_8 (township VARCHAR, county VARCHAR)
SELECT township FROM table_18600760_8 WHERE county = "Kidder"
What is the score of game 21?
CREATE TABLE table_name_96 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_96 WHERE game = 21
What is the Date with a Score with 86–108?
CREATE TABLE table_name_7 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_7 WHERE score = "86–108"
Name the largest ethnic group for 24112
CREATE TABLE table_2562572_20 (largest_ethnic_group__2002_ VARCHAR, population__2011_ VARCHAR)
SELECT largest_ethnic_group__2002_ FROM table_2562572_20 WHERE population__2011_ = 24112
What is augusta's low rank?
CREATE TABLE table_name_58 (rank INTEGER, location VARCHAR)
SELECT MIN(rank) FROM table_name_58 WHERE location = "augusta"
Who replaced when the position in table is 5th?
CREATE TABLE table_name_58 (replaced_by VARCHAR, position_in_table VARCHAR)
SELECT replaced_by FROM table_name_58 WHERE position_in_table = "5th"
What were the results of the mens open when the womens 40 was Sydney Scorpions defeated Hunter Hornets?
CREATE TABLE table_16724844_1 (mens_open VARCHAR, womens_40 VARCHAR)
SELECT mens_open FROM table_16724844_1 WHERE womens_40 = "Sydney Scorpions defeated Hunter Hornets"
How many nationalities are there for the 2011 apertura?
CREATE TABLE table_30083499_1 (nationality VARCHAR, tournament VARCHAR)
SELECT COUNT(nationality) FROM table_30083499_1 WHERE tournament = "2011 Apertura"
Who made the report when the home team is north Melbourne?
CREATE TABLE table_14312471_7 (report VARCHAR, home_team VARCHAR)
SELECT report FROM table_14312471_7 WHERE home_team = "North Melbourne"
What tournament was on May 31, 1987?
CREATE TABLE table_name_7 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_7 WHERE date = "may 31, 1987"
What is the 2011 value with nms in 2008?
CREATE TABLE table_name_54 (Id VARCHAR)
SELECT 2011 FROM table_name_54 WHERE 2008 = "nms"
When is the latest year the venue is in gothenburg, sweden?
CREATE TABLE table_name_36 (year INTEGER, venue VARCHAR)
SELECT MAX(year) FROM table_name_36 WHERE venue = "gothenburg, sweden"
What team was the home team on 27 june 1981, at vfl park?
CREATE TABLE table_name_88 (home_team VARCHAR, date VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_88 WHERE date = "27 june 1981" AND venue = "vfl park"
Name the total number of represents for clary sermina delgado cid
CREATE TABLE table_26301697_2 (represents VARCHAR, contestant VARCHAR)
SELECT COUNT(represents) FROM table_26301697_2 WHERE contestant = "Clary Sermina Delgado Cid"
When did the player from Hawaii play for Toronto?
CREATE TABLE table_10015132_3 (years_in_toronto VARCHAR, school_club_team VARCHAR)
SELECT years_in_toronto FROM table_10015132_3 WHERE school_club_team = "Hawaii"
What is the position of Dale Craigwell?
CREATE TABLE table_name_67 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_67 WHERE player = "dale craigwell"
How many players are at the DT position?
CREATE TABLE table_21321804_3 (player VARCHAR, position VARCHAR)
SELECT COUNT(player) FROM table_21321804_3 WHERE position = "DT"
Which Home team score has an Away team of carlton?
CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_72 WHERE away_team = "carlton"
How many film are there?
CREATE TABLE film (Id VARCHAR)
SELECT COUNT(*) FROM film
Name Tag Team with a Eliminated of 5?
CREATE TABLE table_name_42 (tag_team VARCHAR, eliminated VARCHAR)
SELECT tag_team FROM table_name_42 WHERE eliminated = "5"
What is the event with a result of 3-2?
CREATE TABLE table_name_40 (competition VARCHAR, result VARCHAR)
SELECT competition FROM table_name_40 WHERE result = "3-2"
What was the lowest attendance was the opponent was chelsea?
CREATE TABLE table_name_68 (attendance INTEGER, opponent VARCHAR)
SELECT MIN(attendance) FROM table_name_68 WHERE opponent = "chelsea"
who is the developers for demon's souls?
CREATE TABLE table_name_8 (developer_s_ VARCHAR, game VARCHAR)
SELECT developer_s_ FROM table_name_8 WHERE game = "demon's souls"
How many gold medals were won in 1970?
CREATE TABLE table_name_61 (gold VARCHAR, year VARCHAR)
SELECT gold FROM table_name_61 WHERE year = "1970"
Who is the player with a 69-68-71=208 score?
CREATE TABLE table_name_23 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_23 WHERE score = 69 - 68 - 71 = 208
What shows for Report hen there is a set 1 of 19–25?
CREATE TABLE table_name_15 (report VARCHAR, set_1 VARCHAR)
SELECT report FROM table_name_15 WHERE set_1 = "19–25"
What is the name of the event that happened in the most recent year?
CREATE TABLE event (name VARCHAR, YEAR VARCHAR)
SELECT name FROM event ORDER BY YEAR DESC LIMIT 1
How many different shareholders have 2.39 % of capital?
CREATE TABLE table_206359_1 (shareholder_name VARCHAR, _percentage_of_capital VARCHAR)
SELECT COUNT(shareholder_name) FROM table_206359_1 WHERE _percentage_of_capital = "2.39"
What Notes after 1983 have a Position of 18th?
CREATE TABLE table_name_64 (notes VARCHAR, year VARCHAR, position VARCHAR)
SELECT notes FROM table_name_64 WHERE year > 1983 AND position = "18th"
Name the date when week is 9
CREATE TABLE table_14945881_1 (date VARCHAR, week VARCHAR)
SELECT date FROM table_14945881_1 WHERE week = 9
What is the CHI (Carvill Hurricane Index) when the NHC advisory number is equal to 49b?
CREATE TABLE table_15416002_1 (chi VARCHAR, nhc_advisory_number VARCHAR)
SELECT chi FROM table_15416002_1 WHERE nhc_advisory_number = "49B"
What's the record of the game in which Carlos Delfino (17) did the most high points?
CREATE TABLE table_22871316_6 (record VARCHAR, high_points VARCHAR)
SELECT record FROM table_22871316_6 WHERE high_points = "Carlos Delfino (17)"
Who was the Centerfold model in the issue in which the Interview subject was José Napoleón Duarte?
CREATE TABLE table_name_96 (centerfold_model VARCHAR, interview_subject VARCHAR)
SELECT centerfold_model FROM table_name_96 WHERE interview_subject = "josé napoleón duarte"
What is the venue of the match with the cronulla sharks as the opponent?
CREATE TABLE table_name_49 (venue VARCHAR, opponent VARCHAR)
SELECT venue FROM table_name_49 WHERE opponent = "cronulla sharks"
When 7.55 is the amount of viewers what is the lowest number?
CREATE TABLE table_24781886_2 (_number INTEGER, viewers VARCHAR)
SELECT MIN(_number) FROM table_24781886_2 WHERE viewers = "7.55"
What was the science score in the year there was a social studies score of 93.56?
CREATE TABLE table_2534578_1 (science VARCHAR, social_studies VARCHAR)
SELECT science FROM table_2534578_1 WHERE social_studies = "93.56"
How many different people had a General Classification on Stage 5?
CREATE TABLE table_27573848_18 (general_classification VARCHAR, stage VARCHAR)
SELECT COUNT(general_classification) FROM table_27573848_18 WHERE stage = 5
which year has the toyota tf102 chassis?
CREATE TABLE table_name_1 (year VARCHAR, chassis VARCHAR)
SELECT COUNT(year) FROM table_name_1 WHERE chassis = "toyota tf102"
Tell me the result for attendance of 54,462
CREATE TABLE table_name_32 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_32 WHERE attendance = "54,462"
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 points_against FROM table_name_60 WHERE drawn = "3" AND points = "50"
Teerasil Dangda who had a to club of released plays what position?
CREATE TABLE table_name_76 (pos VARCHAR, to_club VARCHAR, player VARCHAR)
SELECT pos FROM table_name_76 WHERE to_club = "released" AND player = "teerasil dangda"
What is the location of the tournament on Feb 10?
CREATE TABLE table_name_68 (location VARCHAR, date VARCHAR)
SELECT location FROM table_name_68 WHERE date = "feb 10"
What was Bryan Clay's react time?
CREATE TABLE table_name_94 (react INTEGER, name VARCHAR)
SELECT MIN(react) FROM table_name_94 WHERE name = "bryan clay"
What is the date of the game at the Pro Player Stadium that had a score of 4-1?
CREATE TABLE table_name_43 (date VARCHAR, venue VARCHAR, score VARCHAR)
SELECT date FROM table_name_43 WHERE venue = "pro player stadium" AND score = "4-1"
What was the distance (in miles) of the championship were the winning horse was Koona?
CREATE TABLE table_27833186_1 (distance__miles_ VARCHAR, horse_name VARCHAR)
SELECT distance__miles_ FROM table_27833186_1 WHERE horse_name = "Koona"