question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the Coombe Road time with a Selsdon evening peak?
CREATE TABLE table_name_17 (coombe_road VARCHAR, selsdon VARCHAR)
SELECT coombe_road FROM table_name_17 WHERE selsdon = "evening peak"
Who was the entrant in 1971?
CREATE TABLE table_name_3 (entrant VARCHAR, year VARCHAR)
SELECT entrant FROM table_name_3 WHERE year = 1971
Which title was directed by Joyce Bernal?
CREATE TABLE table_name_76 (title VARCHAR, director VARCHAR)
SELECT title FROM table_name_76 WHERE director = "joyce bernal"
Can you tell me the Attendance that has the Date of april 12?
CREATE TABLE table_name_63 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_63 WHERE date = "april 12"
What is the total number of assists of the player with 0 goals, more than 1 points, and more than 0 pims?
CREATE TABLE table_name_85 (assists VARCHAR, pims VARCHAR, goals VARCHAR, points VARCHAR)
SELECT COUNT(assists) FROM table_name_85 WHERE goals = 0 AND points > 1 AND pims > 0
What is the best time from patrick carpentier from the forsythe racing team?
CREATE TABLE table_name_33 (best VARCHAR, team VARCHAR, name VARCHAR)
SELECT best FROM table_name_33 WHERE team = "forsythe racing" AND name = "patrick carpentier"
What is the average weeks of a song with a larger than 3 position after 1977?
CREATE TABLE table_name_40 (weeks_on_chart INTEGER, position VARCHAR, year VARCHAR)
SELECT AVG(weeks_on_chart) FROM table_name_40 WHERE position > 3 AND year > 1977
What is the minimum score given in judging panel points?
CREATE TABLE table_26485957_1 (judging_panel_points INTEGER)
SELECT MIN(judging_panel_points) FROM table_26485957_1
What number game had a high assist of lebron james (7) and high point of lebron james (21)?
CREATE TABLE table_17325580_10 (game INTEGER, high_assists VARCHAR, high_points VARCHAR)
SELECT MAX(game) FROM table_17325580_10 WHERE high_assists = "LeBron James (7)" AND high_points = "LeBron James (21)"
What is every part number with model number core i5-670?
CREATE TABLE table_23028629_2 (part_number_s_ VARCHAR, model_number VARCHAR)
SELECT part_number_s_ FROM table_23028629_2 WHERE model_number = "Core i5-670"
What is the top fastest time, larger than 2, in Enugu?
CREATE TABLE table_name_76 (fastest_time__s_ INTEGER, location VARCHAR, rank VARCHAR)
SELECT MAX(fastest_time__s_) FROM table_name_76 WHERE location = "enugu" AND rank > 2
Name the date for sacramento
CREATE TABLE table_15780049_8 (date VARCHAR, team VARCHAR)
SELECT date FROM table_15780049_8 WHERE team = "Sacramento"
what team has a score of 2
CREATE TABLE table_name_53 (score VARCHAR, points VARCHAR)
SELECT score FROM table_name_53 WHERE points = 2
What is the capacity of code f4r?
CREATE TABLE table_name_81 (capacity VARCHAR, code VARCHAR)
SELECT capacity FROM table_name_81 WHERE code = "f4r"
What is Winner, when Circuit is June 8?
CREATE TABLE table_name_33 (winner VARCHAR, circuit VARCHAR)
SELECT winner FROM table_name_33 WHERE circuit = "june 8"
Which Centennial has a del Pueblo of 1986?
CREATE TABLE table_name_40 (centennial VARCHAR, del_pueblo VARCHAR)
SELECT centennial FROM table_name_40 WHERE del_pueblo = "1986"
What is the season 4 # for the production code of 4abb07?
CREATE TABLE table_28195898_1 (_number VARCHAR, production_code VARCHAR)
SELECT _number FROM table_28195898_1 WHERE production_code = "4ABB07"
What is the Name of the private Castle of the 16th century which is occupied?
CREATE TABLE table_name_26 (name VARCHAR, date VARCHAR, ownership VARCHAR, condition VARCHAR)
SELECT name FROM table_name_26 WHERE ownership = "private" AND condition = "occupied" AND date = "16th century"
How many military deaths were there when there were 1,615 total casualties?
CREATE TABLE table_name_92 (military_deaths VARCHAR, total_casualties VARCHAR)
SELECT military_deaths FROM table_name_92 WHERE total_casualties = "1,615"
Which Lead Pitch/mm has a Part Number of tsop40, and a Body Length/mm larger than 18.4?
CREATE TABLE table_name_1 (lead_pitch_mm INTEGER, part_number VARCHAR, body_length_mm VARCHAR)
SELECT MAX(lead_pitch_mm) FROM table_name_1 WHERE part_number = "tsop40" AND body_length_mm > 18.4
WHAT SCORE HAD A LOSS AND RECORD OF 1-1?
CREATE TABLE table_name_75 (score VARCHAR, result VARCHAR, record VARCHAR)
SELECT score FROM table_name_75 WHERE result = "loss" AND record = "1-1"
What's the total enrollment in 57 Noble having a # and AA as the IHSAA Class?
CREATE TABLE table_name_95 (enrollment VARCHAR, _number___county VARCHAR, ihsaa_class VARCHAR)
SELECT COUNT(enrollment) FROM table_name_95 WHERE _number___county = "57 noble" AND ihsaa_class = "aa"
How many years saw 3 hurricanes wherein the strongest storm was level three?
CREATE TABLE table_2930244_2 (year VARCHAR, number_of_hurricanes VARCHAR, strongest_storm VARCHAR)
SELECT COUNT(year) FROM table_2930244_2 WHERE number_of_hurricanes = 3 AND strongest_storm = "Three"
What was the average attendance for a Kings game when they had a record of 1–5–0?
CREATE TABLE table_name_92 (attendance INTEGER, record VARCHAR)
SELECT AVG(attendance) FROM table_name_92 WHERE record = "1–5–0"
What is Left Office, when Party is Vacant (1999-2001)?
CREATE TABLE table_name_83 (left_office VARCHAR, party VARCHAR)
SELECT left_office FROM table_name_83 WHERE party = "vacant (1999-2001)"
What is the Outcome of the game against Frederic Jeanclaude?
CREATE TABLE table_name_55 (outcome VARCHAR, opponent VARCHAR)
SELECT outcome FROM table_name_55 WHERE opponent = "frederic jeanclaude"
The record of 7-3 had the largest attendance of what?
CREATE TABLE table_10361453_2 (attendance INTEGER, record VARCHAR)
SELECT MAX(attendance) FROM table_10361453_2 WHERE record = "7-3"
Competition of fa cup rd 1 had what venue?
CREATE TABLE table_name_69 (venue VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_69 WHERE competition = "fa cup rd 1"
what's the earliest year that the wimbledon opponent was zheng jie?
CREATE TABLE table_name_50 (year INTEGER, event VARCHAR, opponent VARCHAR)
SELECT MIN(year) FROM table_name_50 WHERE event = "wimbledon" AND opponent = "zheng jie"
How many winners did I Dessau Autobahnspinne have?
CREATE TABLE table_1140116_6 (winning_driver VARCHAR, race_name VARCHAR)
SELECT COUNT(winning_driver) FROM table_1140116_6 WHERE race_name = "I Dessau Autobahnspinne"
Which team raced on October 19?
CREATE TABLE table_15736385_1 (team VARCHAR, date VARCHAR)
SELECT team FROM table_15736385_1 WHERE date = "October 19"
What is the average for Draw games where Played games is more than 18?
CREATE TABLE table_name_61 (draw INTEGER, played INTEGER)
SELECT AVG(draw) FROM table_name_61 WHERE played > 18
What was the game number that took place on April 27?
CREATE TABLE table_name_50 (game VARCHAR, date VARCHAR)
SELECT game FROM table_name_50 WHERE date = "april 27"
When 20 is the rank and north west is the region/province what is the county?
CREATE TABLE table_23248420_1 (county VARCHAR, region_province VARCHAR, rank VARCHAR)
SELECT county FROM table_23248420_1 WHERE region_province = "North West" AND rank = 20
What airport has an IATA of ARN?
CREATE TABLE table_name_76 (airport VARCHAR, iata VARCHAR)
SELECT airport FROM table_name_76 WHERE iata = "arn"
If the country is fenghuang how many provinces are there?
CREATE TABLE table_152834_2 (province VARCHAR, county VARCHAR)
SELECT COUNT(province) FROM table_152834_2 WHERE county = "Fenghuang"
How many figures are given for Walker's percentage in Kenosha county?
CREATE TABLE table_21046399_3 (walker__percentage VARCHAR, county VARCHAR)
SELECT COUNT(walker__percentage) FROM table_21046399_3 WHERE county = "Kenosha"
What discs has a region 1 release date of January 22, 2008?
CREATE TABLE table_name_90 (discs VARCHAR, region_1_release VARCHAR)
SELECT discs FROM table_name_90 WHERE region_1_release = "january 22, 2008"
How many games lost for teams with over 6 games?
CREATE TABLE table_name_46 (lost INTEGER, games INTEGER)
SELECT MIN(lost) FROM table_name_46 WHERE games > 6
what is the cpu for the calculator with 28 kb of ram and display size 128×64 pixels 21×8 characters?
CREATE TABLE table_11703336_1 (cpu VARCHAR, ram VARCHAR, display_size VARCHAR)
SELECT cpu FROM table_11703336_1 WHERE ram = "28 KB of ram" AND display_size = "128×64 pixels 21×8 characters"
Where was the location when the record was 12-5?
CREATE TABLE table_name_89 (location VARCHAR, record VARCHAR)
SELECT location FROM table_name_89 WHERE record = "12-5"
For the game ending in a final result of 99-90, who was the Road Team?
CREATE TABLE table_name_68 (road_team VARCHAR, result VARCHAR)
SELECT road_team FROM table_name_68 WHERE result = "99-90"
How many mileposts are there on Anne Street?
CREATE TABLE table_10568553_1 (milepost VARCHAR, street_names VARCHAR)
SELECT COUNT(milepost) FROM table_10568553_1 WHERE street_names = "Anne Street"
What is the average Tie no when the date is Birmingham City?
CREATE TABLE table_name_22 (tie_no INTEGER, date VARCHAR)
SELECT AVG(tie_no) FROM table_name_22 WHERE date = "birmingham city"
What is the average attendance for the game before week 4 that was on october 16, 1955?
CREATE TABLE table_name_97 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT AVG(attendance) FROM table_name_97 WHERE date = "october 16, 1955" AND week < 4
whatis hte station code where users are 130368?
CREATE TABLE table_14748457_1 (station__and_code_ VARCHAR, station_users_2008_9 VARCHAR)
SELECT station__and_code_ FROM table_14748457_1 WHERE station_users_2008_9 = "130368"
Which virtue is Invidia(Latin)?
CREATE TABLE table_name_20 (virtue VARCHAR, invidia VARCHAR, latin VARCHAR)
SELECT virtue FROM table_name_20 WHERE (latin) = invidia
What year was the team Club of atlético de san juan fc who plays at hiram bithorn stadium founded.
CREATE TABLE table_name_18 (founded INTEGER, stadium VARCHAR, club VARCHAR)
SELECT SUM(founded) FROM table_name_18 WHERE stadium = "hiram bithorn stadium" AND club = "atlético de san juan fc"
What is the transfer window for bel?
CREATE TABLE table_name_78 (transfer_window VARCHAR, country VARCHAR)
SELECT transfer_window FROM table_name_78 WHERE country = "bel"
What percentage did kennedy win while coakly won 37.9%
CREATE TABLE table_24115349_4 (kennedy__percentage VARCHAR, coakley__percentage VARCHAR)
SELECT kennedy__percentage FROM table_24115349_4 WHERE coakley__percentage = "37.9%"
Please show the names of the buildings whose status is "on-hold", in ascending order of stories.
CREATE TABLE buildings (name VARCHAR, Status VARCHAR, Stories VARCHAR)
SELECT name FROM buildings WHERE Status = "on-hold" ORDER BY Stories
How many laps did ben spies do on the grid less than 7?
CREATE TABLE table_name_86 (laps VARCHAR, grid VARCHAR, rider VARCHAR)
SELECT COUNT(laps) FROM table_name_86 WHERE grid < 7 AND rider = "ben spies"
What Position has a Time of 3:01.78?
CREATE TABLE table_name_78 (position VARCHAR, time VARCHAR)
SELECT position FROM table_name_78 WHERE time = "3:01.78"
How many profits is the company that is headquartered in the USA, in the banking industry, and has sales (billion $) less than 98.64 bringing in?
CREATE TABLE table_name_54 (profits__billion_ INTEGER, sales__billion_$_ VARCHAR, headquarters VARCHAR, industry VARCHAR)
SELECT SUM(profits__billion_) AS $_ FROM table_name_54 WHERE headquarters = "usa" AND industry = "banking" AND sales__billion_$_ < 98.64
What is the title of the show with director Paul Annett?
CREATE TABLE table_2582519_6 (title VARCHAR, director VARCHAR)
SELECT title FROM table_2582519_6 WHERE director = "Paul Annett"
What city was founded in 1857?
CREATE TABLE table_name_99 (city VARCHAR, founded VARCHAR)
SELECT city FROM table_name_99 WHERE founded = 1857
What is the date for the 10b serial?
CREATE TABLE table_name_46 (date VARCHAR, serial VARCHAR)
SELECT date FROM table_name_46 WHERE serial = "10b"
How many goals for the FW with 0 FA cup appearances and over 0 playoff goals?
CREATE TABLE table_name_14 (league_goals INTEGER, playoff_goals VARCHAR, position VARCHAR, fa_cup_apps VARCHAR)
SELECT MIN(league_goals) FROM table_name_14 WHERE position = "fw" AND fa_cup_apps = "0" AND playoff_goals > 0
What is the Main use of transmitter solt in Hungary?
CREATE TABLE table_name_75 (main_use VARCHAR, country VARCHAR, name VARCHAR)
SELECT main_use FROM table_name_75 WHERE country = "hungary" AND name = "transmitter solt"
Which year has most number of concerts?
CREATE TABLE concert (YEAR VARCHAR)
SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1
What is the game number on December 21?
CREATE TABLE table_name_53 (game VARCHAR, date VARCHAR)
SELECT COUNT(game) FROM table_name_53 WHERE date = "december 21"
What is the Away Team Score of the Hawthorn Home Team?
CREATE TABLE table_name_6 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_6 WHERE home_team = "hawthorn"
What is the total attendance for games when the record was 23-23?
CREATE TABLE table_name_61 (attendance VARCHAR, record VARCHAR)
SELECT COUNT(attendance) FROM table_name_61 WHERE record = "23-23"
How many wins had Matches greater than 5?
CREATE TABLE table_name_82 (wins INTEGER, matches INTEGER)
SELECT SUM(wins) FROM table_name_82 WHERE matches > 5
What is the team mascot for the soccer team in Charlottetown?
CREATE TABLE table_27369069_1 (varsity_name VARCHAR, city VARCHAR)
SELECT varsity_name FROM table_27369069_1 WHERE city = "Charlottetown"
What is the sum of byes when wins are 8, and losses are larger than 10?
CREATE TABLE table_name_96 (byes VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT COUNT(byes) FROM table_name_96 WHERE wins = 8 AND losses > 10
What year was The Horn Blows at Midnight, directed by Raoul Walsh?
CREATE TABLE table_name_96 (year INTEGER, director VARCHAR, title VARCHAR)
SELECT AVG(year) FROM table_name_96 WHERE director = "raoul walsh" AND title = "the horn blows at midnight"
How many games that ended in a draw were played by a team with more than 15 total games?
CREATE TABLE table_name_78 (drawn VARCHAR, played INTEGER)
SELECT COUNT(drawn) FROM table_name_78 WHERE played > 15
Which round has a Venue of nicosia, and a Opponent of levski sofia zapad?
CREATE TABLE table_name_53 (round VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT round FROM table_name_53 WHERE venue = "nicosia" AND opponent = "levski sofia zapad"
Which Attendance has a Score of 0:2?
CREATE TABLE table_name_29 (attendance INTEGER, score VARCHAR)
SELECT MAX(attendance) FROM table_name_29 WHERE score = "0:2"
When 68-292-68-292 is the ignition timing how many graphicals is it?
CREATE TABLE table_22915134_2 (graphical VARCHAR, ignition_timing VARCHAR)
SELECT COUNT(graphical) FROM table_22915134_2 WHERE ignition_timing = "68-292-68-292"
What is the lowest value of Points 2 when the goal average is 1.50?
CREATE TABLE table_17359181_1 (points_2 INTEGER, goal_average_1 VARCHAR)
SELECT MIN(points_2) FROM table_17359181_1 WHERE goal_average_1 = "1.50"
Which City has a Stadium of stadio artemio franchi, florence?
CREATE TABLE table_name_80 (city VARCHAR, stadium VARCHAR)
SELECT city FROM table_name_80 WHERE stadium = "stadio artemio franchi, florence"
Name the game for record 1-0
CREATE TABLE table_21091157_1 (game VARCHAR, record VARCHAR)
SELECT game FROM table_21091157_1 WHERE record = "1-0"
What are Wells Fargo's assets?
CREATE TABLE table_1682026_2 (assets__billion_$_ VARCHAR, company VARCHAR)
SELECT assets__billion_$_ FROM table_1682026_2 WHERE company = "Wells Fargo"
What dates contained matches at the venue Bourda?
CREATE TABLE table_name_32 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_32 WHERE venue = "bourda"
Which loss has a Date of april 26?
CREATE TABLE table_name_30 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_30 WHERE date = "april 26"
how many crew had u15 3rd iv being bgs and u15 1st iv being acgs and open 1st viii being acgs
CREATE TABLE table_11318462_5 (crew VARCHAR, open_1st_viii VARCHAR, u15_3rd_iv VARCHAR, u15_1st_iv VARCHAR)
SELECT COUNT(crew) FROM table_11318462_5 WHERE u15_3rd_iv = "BGS" AND u15_1st_iv = "ACGS" AND open_1st_viii = "ACGS"
Name the record for l 24–22
CREATE TABLE table_14520977_1 (record VARCHAR, result VARCHAR)
SELECT record FROM table_14520977_1 WHERE result = "L 24–22"
Find the details of all the distinct customers who have orders with status "On Road".
CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR)
SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road"
In May 2010, which party had a turnout of less than 3, but also the hightest turnout in May 2012?
CREATE TABLE table_name_26 (may_2012 INTEGER, may_2010 INTEGER)
SELECT MAX(may_2012) FROM table_name_26 WHERE may_2010 < 3
List the name of musicals that do not have actors.
CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR); CREATE TABLE musical (Name VARCHAR, Musical_ID VARCHAR)
SELECT Name FROM musical WHERE NOT Musical_ID IN (SELECT Musical_ID FROM actor)
What is the 1st leg for team 2 Portol Drac Palma Mallorca?
CREATE TABLE table_name_27 (team_2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_27 WHERE team_2 = "portol drac palma mallorca"
What's the highest Played with a Scored of 15, and Draws that's less than 1?
CREATE TABLE table_name_80 (played INTEGER, scored VARCHAR, draws VARCHAR)
SELECT MAX(played) FROM table_name_80 WHERE scored = 15 AND draws < 1
What are the exact Cubic inches of the Metric value of 104.955 L?
CREATE TABLE table_name_9 (cubic_inches__exact_ VARCHAR, metric_value VARCHAR)
SELECT cubic_inches__exact_ FROM table_name_9 WHERE metric_value = "104.955 l"
How many notes are there for the Devon Alexander vs. Shawn Porter fight?
CREATE TABLE table_25840200_1 (notes VARCHAR, fight VARCHAR)
SELECT COUNT(notes) FROM table_25840200_1 WHERE fight = "Devon Alexander vs. Shawn Porter"
Can you tell me the lowest Round that has the Location of indiana, united states, and the Method of submission (guillotine choke)?
CREATE TABLE table_name_6 (round INTEGER, location VARCHAR, method VARCHAR)
SELECT MIN(round) FROM table_name_6 WHERE location = "indiana, united states" AND method = "submission (guillotine choke)"
Calculate the highest points where the win,loss, tie ratio is 28-12-6
CREATE TABLE table_23308178_7 (points INTEGER, record VARCHAR)
SELECT MAX(points) FROM table_23308178_7 WHERE record = "28-12-6"
What is the home team's score at corio oval?
CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_66 WHERE venue = "corio oval"
How many assists were made in the game against San Antonio?
CREATE TABLE table_17325937_8 (high_assists VARCHAR, team VARCHAR)
SELECT COUNT(high_assists) FROM table_17325937_8 WHERE team = "San Antonio"
Which locations did Gordon Johncock hold the pole position?
CREATE TABLE table_22673872_1 (location VARCHAR, pole_position VARCHAR)
SELECT location FROM table_22673872_1 WHERE pole_position = "Gordon Johncock"
In which District(s) has a Democrat held office since 1998?
CREATE TABLE table_name_12 (district VARCHAR, party VARCHAR, elected VARCHAR)
SELECT district FROM table_name_12 WHERE party = "democrat" AND elected > 1998
Who wrote the episode that aired on April 17, 2011?
CREATE TABLE table_11111116_6 (written_by VARCHAR, original_air_date VARCHAR)
SELECT written_by FROM table_11111116_6 WHERE original_air_date = "April 17, 2011"
Nam ethe enlisted for troop carrier group
CREATE TABLE table_23508196_5 (enlisted VARCHAR, type_of_unit VARCHAR)
SELECT enlisted FROM table_23508196_5 WHERE type_of_unit = "Troop carrier group"
List the name of all tracks in the playlists of Movies.
CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)
SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = "Movies"
If the average is 45.65, what is the total number of innings?
CREATE TABLE table_23316034_16 (innings VARCHAR, average VARCHAR)
SELECT COUNT(innings) FROM table_23316034_16 WHERE average = "45.65"
What was the Week on October 18, 1992?
CREATE TABLE table_name_3 (week INTEGER, date VARCHAR)
SELECT SUM(week) FROM table_name_3 WHERE date = "october 18, 1992"
What is the Punjabi (Pakistan) word for the Kurdish word یـــەک شـەمـمـە yak sham?
CREATE TABLE table_name_58 (punjabi__pakistan_ VARCHAR, kurdish VARCHAR)
SELECT punjabi__pakistan_ FROM table_name_58 WHERE kurdish = "یـــەک شـەمـمـە yak sham"
Which nominating festival did Bosnia and Herzegovina enter?
CREATE TABLE table_name_62 (nominating_festival VARCHAR, country VARCHAR)
SELECT nominating_festival FROM table_name_62 WHERE country = "bosnia and herzegovina"
What are the original air date(s) for episodes written by aron eli coleite?
CREATE TABLE table_28215780_4 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_28215780_4 WHERE written_by = "Aron Eli Coleite"