question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the attendance when the Southend United was the home team?
CREATE TABLE table_name_1 (attendance VARCHAR, home_team VARCHAR)
SELECT attendance FROM table_name_1 WHERE home_team = "southend united"
What is Population density (per km²), when Name is Antigua and Barbuda, and when Capital is St. John's?
CREATE TABLE table_name_81 (population_density__per_km²_ VARCHAR, name VARCHAR, capital VARCHAR)
SELECT population_density__per_km²_ FROM table_name_81 WHERE name = "antigua and barbuda" AND capital = "st. john's"
What is the location and attendance after game 2, and the team New Orleans?
CREATE TABLE table_name_99 (location_attendance VARCHAR, game VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_name_99 WHERE game > 2 AND team = "new orleans"
Who is the player who has had 7 first team appearances?
CREATE TABLE table_name_79 (player VARCHAR, first_team_appearances VARCHAR)
SELECT player FROM table_name_79 WHERE first_team_appearances = "7"
What is the pick # for player david grannis?
CREATE TABLE table_21721351_18 (pick__number INTEGER, player VARCHAR)
SELECT MAX(pick__number) FROM table_21721351_18 WHERE player = "David Grannis"
How many players had overall 78?
CREATE TABLE table_11803648_22 (player VARCHAR, overall VARCHAR)
SELECT COUNT(player) FROM table_11803648_22 WHERE overall = "78"
Which Venue has a Year of 1911?
CREATE TABLE table_name_60 (venue VARCHAR, year VARCHAR)
SELECT venue FROM table_name_60 WHERE year = 1911
Which city contains Telus Plaza South?
CREATE TABLE table_name_66 (city VARCHAR, building VARCHAR)
SELECT city FROM table_name_66 WHERE building = "telus plaza south"
Who wrote the episode with the production code of 3t7255?
CREATE TABLE table_27116696_1 (written_by VARCHAR, production_code VARCHAR)
SELECT written_by FROM table_27116696_1 WHERE production_code = "3T7255"
When did Essendon play as the home team?
CREATE TABLE table_name_70 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_70 WHERE home_team = "essendon"
What Constructor has 56 Laps?
CREATE TABLE table_name_13 (constructor VARCHAR, laps VARCHAR)
SELECT constructor FROM table_name_13 WHERE laps = 56
what is the round when the pick # is less than 236 and the position is offensive guard?
CREATE TABLE table_name_64 (round INTEGER, pick__number VARCHAR, position VARCHAR)
SELECT AVG(round) FROM table_name_64 WHERE pick__number < 236 AND position = "offensive guard"
What is Cross Country, when School Year is 2012-13?
CREATE TABLE table_name_90 (cross_country VARCHAR, school_year VARCHAR)
SELECT cross_country FROM table_name_90 WHERE school_year = "2012-13"
What was the lowest crowd size at the Windy Hill venue?
CREATE TABLE table_name_55 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_55 WHERE venue = "windy hill"
How many people attended the match on 1/11?
CREATE TABLE table_name_45 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_45 WHERE date = "1/11"
Show names of technicians in ascending order of quality rank of the machine they are assigned.
CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE machine (machine_id VARCHAR, quality_rank VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)
SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank
What is the party of the representative first elected in 1894 from the Ohio 16 district?
CREATE TABLE table_name_22 (party VARCHAR, first_elected VARCHAR, district VARCHAR)
SELECT party FROM table_name_22 WHERE first_elected = 1894 AND district = "ohio 16"
Find the average hours of all projects.
CREATE TABLE projects (hours INTEGER)
SELECT AVG(hours) FROM projects
What is the current map designation for Debussy?
CREATE TABLE table_name_24 (current_map VARCHAR, name VARCHAR)
SELECT current_map FROM table_name_24 WHERE name = "debussy"
The pooulation of јарковац is?
CREATE TABLE table_2562572_39 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT population__2011_ FROM table_2562572_39 WHERE cyrillic_name_other_names = "Јарковац"
What percentage of users were using Firefox during the period in which *0.77% were using Netscape?
CREATE TABLE table_name_8 (firefox VARCHAR, netscape VARCHAR)
SELECT firefox FROM table_name_8 WHERE netscape = "*0.77%"
What is the average sales in billions of walmart, which has more than 15.7 billion in profits?
CREATE TABLE table_name_5 (sales__billion_ INTEGER, company VARCHAR, profits__billion_$_ VARCHAR)
SELECT AVG(sales__billion_) AS $_ FROM table_name_5 WHERE company = "walmart" AND profits__billion_$_ > 15.7
What is the date for Bron 535 Catalog?
CREATE TABLE table_name_89 (date VARCHAR, catalogue VARCHAR)
SELECT date FROM table_name_89 WHERE catalogue = "bron 535"
List the number of all matches who played in years of 2013 or 2016.
CREATE TABLE matches (YEAR VARCHAR)
SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016
What city has march 30 as the date?
CREATE TABLE table_name_82 (city VARCHAR, date VARCHAR)
SELECT city FROM table_name_82 WHERE date = "march 30"
Which Laps has a Year of 2007?
CREATE TABLE table_name_80 (laps INTEGER, year VARCHAR)
SELECT AVG(laps) FROM table_name_80 WHERE year = 2007
In which country was the xiamen international marathon?
CREATE TABLE table_26166836_1 (country VARCHAR, road_race VARCHAR)
SELECT country FROM table_26166836_1 WHERE road_race = "Xiamen International Marathon"
Who are the blockers where points are scored by Zach Randolph (24)?
CREATE TABLE table_13050003_2 (blocks VARCHAR, points VARCHAR)
SELECT blocks FROM table_13050003_2 WHERE points = "Zach Randolph (24)"
What was the division number for Verona, USA?
CREATE TABLE table_25840200_1 (division VARCHAR, location VARCHAR)
SELECT COUNT(division) FROM table_25840200_1 WHERE location = "Verona, USA"
When has a Result of 0–2 and a Opponent of aberdeen?
CREATE TABLE table_name_13 (date VARCHAR, result VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_13 WHERE result = "0–2" AND opponent = "aberdeen"
Name the points classification for stage of 18b
CREATE TABLE table_name_86 (points_classification VARCHAR, stage VARCHAR)
SELECT points_classification FROM table_name_86 WHERE stage = "18b"
Name the college for calgary stampeders
CREATE TABLE table_16575609_4 (college VARCHAR, cfl_team VARCHAR)
SELECT college FROM table_16575609_4 WHERE cfl_team = "Calgary Stampeders"
What's the score of the game they played against a team with a record of 81-54?
CREATE TABLE table_name_95 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_95 WHERE record = "81-54"
How many results for minimum first elected incumbent Noble Jones Gregory?
CREATE TABLE table_1342198_17 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1342198_17 WHERE incumbent = "Noble Jones Gregory"
Where is the school with nickname Tigers located?
CREATE TABLE table_1973842_2 (location VARCHAR, nickname VARCHAR)
SELECT location FROM table_1973842_2 WHERE nickname = "Tigers"
What was the maximum week that had attendance of 10738?
CREATE TABLE table_24951872_2 (week INTEGER, attendance VARCHAR)
SELECT MAX(week) FROM table_24951872_2 WHERE attendance = 10738
What is the number in total of silver with a gold smaller than 0?
CREATE TABLE table_name_91 (silver VARCHAR, gold INTEGER)
SELECT COUNT(silver) FROM table_name_91 WHERE gold < 0
Which school has a hometown of winter park, FL?
CREATE TABLE table_name_68 (school VARCHAR, hometown VARCHAR)
SELECT school FROM table_name_68 WHERE hometown = "winter park, fl"
Who is the coach for the Northamptonshire Steelbacks?
CREATE TABLE table_name_36 (coach VARCHAR, team VARCHAR)
SELECT coach FROM table_name_36 WHERE team = "northamptonshire steelbacks"
What were the winnings for the Chevrolet with a number larger than 29 and scored 102 points?
CREATE TABLE table_name_65 (winnings VARCHAR, points VARCHAR, make VARCHAR, car__number VARCHAR)
SELECT winnings FROM table_name_65 WHERE make = "chevrolet" AND car__number > 29 AND points = 102
For teams with more than 0 ties and goals against of 37, how many wins were tallied?
CREATE TABLE table_name_73 (wins INTEGER, goals_against VARCHAR, ties VARCHAR)
SELECT MAX(wins) FROM table_name_73 WHERE goals_against = 37 AND ties > 0
What's the minimal number of points scored in any game?
CREATE TABLE table_23308178_5 (points INTEGER)
SELECT MIN(points) FROM table_23308178_5
What is the capital of Bungoma county?
CREATE TABLE table_16278894_1 (capital VARCHAR, county VARCHAR)
SELECT capital FROM table_16278894_1 WHERE county = "Bungoma"
What rank was Peter Schmeichel?
CREATE TABLE table_name_89 (rank INTEGER, name VARCHAR)
SELECT SUM(rank) FROM table_name_89 WHERE name = "peter schmeichel"
What is the result of the europe/africa group i, round robin game in Murcia (esp) before 1999?
CREATE TABLE table_name_9 (result VARCHAR, competition VARCHAR, location VARCHAR, year VARCHAR)
SELECT result FROM table_name_9 WHERE location = "murcia (esp)" AND year < 1999 AND competition = "europe/africa group i, round robin"
Which season has the Renova Club?
CREATE TABLE table_name_43 (season VARCHAR, club VARCHAR)
SELECT season FROM table_name_43 WHERE club = "renova"
When the home team is richmond, what was the away team playing?
CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_3 WHERE home_team = "richmond"
When cindy miranda is the name what is the home or representative town or province?
CREATE TABLE table_19061741_1 (home_or_representative_town_or_province VARCHAR, name VARCHAR)
SELECT home_or_representative_town_or_province FROM table_19061741_1 WHERE name = "Cindy Miranda"
What was the lead with an alternate of li dongyan?
CREATE TABLE table_name_78 (lead VARCHAR, alternate VARCHAR)
SELECT lead FROM table_name_78 WHERE alternate = "li dongyan"
What are the positions in the college of Alberta?
CREATE TABLE table_15817998_5 (position VARCHAR, college VARCHAR)
SELECT position FROM table_15817998_5 WHERE college = "Alberta"
What is the content of the television service ewtn in the United Kingdom?
CREATE TABLE table_name_94 (content VARCHAR, country VARCHAR, television_service VARCHAR)
SELECT content FROM table_name_94 WHERE country = "united kingdom" AND television_service = "ewtn"
What were the points on February 10?
CREATE TABLE table_name_15 (points VARCHAR, date VARCHAR)
SELECT points FROM table_name_15 WHERE date = "february 10"
What is the example in English for a tone of mid rising-falling?
CREATE TABLE table_name_1 (example_meaning_in_english VARCHAR, tone VARCHAR)
SELECT example_meaning_in_english FROM table_name_1 WHERE tone = "mid rising-falling"
What is the total number of wins for events with under 2 top-5s, under 5 top-25s, and more than 4 events played?
CREATE TABLE table_name_92 (wins VARCHAR, top_5 VARCHAR, top_25 VARCHAR, events VARCHAR)
SELECT COUNT(wins) FROM table_name_92 WHERE top_25 < 5 AND events > 4 AND top_5 < 2
What is Date, when Winner is "Murilo Figueiredo"?
CREATE TABLE table_name_66 (date VARCHAR, winner VARCHAR)
SELECT date FROM table_name_66 WHERE winner = "murilo figueiredo"
What programs were held at highland speedway?
CREATE TABLE table_16275828_4 (program VARCHAR, track_name VARCHAR)
SELECT program FROM table_16275828_4 WHERE track_name = "Highland Speedway"
Which livery is from 1919?
CREATE TABLE table_name_57 (livery VARCHAR, date VARCHAR)
SELECT livery FROM table_name_57 WHERE date = "1919"
Name the least amount of int yards
CREATE TABLE table_15581223_8 (int INTEGER)
SELECT MIN(int) AS yards FROM table_15581223_8
What is Headquarter, when Newspaper/Magazine is Al-Ayyam?
CREATE TABLE table_name_4 (headquarter VARCHAR, newspaper_magazine VARCHAR)
SELECT headquarter FROM table_name_4 WHERE newspaper_magazine = "al-ayyam"
what's the party with incumbent being john sparkman
CREATE TABLE table_1342292_2 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1342292_2 WHERE incumbent = "John Sparkman"
On what deate was the centerfold featured Luci Victoria?
CREATE TABLE table_1566852_4 (date VARCHAR, centerfold_model VARCHAR)
SELECT date FROM table_1566852_4 WHERE centerfold_model = "Luci Victoria"
What is the 0–100km/h (62mph) when the max power is s diesel engine all direct injection (dci)?
CREATE TABLE table_name_16 (max_power VARCHAR)
SELECT 0 AS _100km_h__62mph_ FROM table_name_16 WHERE max_power = "s diesel engine all direct injection (dci)"
How many years of introduction does the Neal Submachine Gun have?
CREATE TABLE table_29474407_11 (year_of_intro VARCHAR, name__designation VARCHAR)
SELECT COUNT(year_of_intro) FROM table_29474407_11 WHERE name__designation = "Neal submachine gun"
The year that has a BB + HBP of 51 is listed as?
CREATE TABLE table_name_99 (year VARCHAR, bb_ VARCHAR, hbp VARCHAR)
SELECT year FROM table_name_99 WHERE bb_ + hbp = 51
What Brazil scorers have a 2-1 Score?
CREATE TABLE table_name_35 (brazil_scorers VARCHAR, score VARCHAR)
SELECT brazil_scorers FROM table_name_35 WHERE score = "2-1"
What is Player, when College/Junior/Club Team (League) is "Val d'Or Foreurs ( QMJHL )"?
CREATE TABLE table_name_23 (player VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT player FROM table_name_23 WHERE college_junior_club_team__league_ = "val d'or foreurs ( qmjhl )"
What is Opponent In The Final, when Date is before 1991, and when Outcome is "Runner-Up"?
CREATE TABLE table_name_30 (opponent_in_the_final VARCHAR, date VARCHAR, outcome VARCHAR)
SELECT opponent_in_the_final FROM table_name_30 WHERE date < 1991 AND outcome = "runner-up"
How many goals did Joey Worthen have when he had 15 assists?
CREATE TABLE table_name_78 (goals VARCHAR, assists VARCHAR, player VARCHAR)
SELECT goals FROM table_name_78 WHERE assists = "15" AND player = "joey worthen"
Who was the visitor when the score was 136–120?
CREATE TABLE table_name_78 (visitor VARCHAR, score VARCHAR)
SELECT visitor FROM table_name_78 WHERE score = "136–120"
How many Spectators have a Date of 17 june 2006, and a Time (CET) larger than 15?
CREATE TABLE table_name_47 (spectators INTEGER, date VARCHAR, time__cet_ VARCHAR)
SELECT SUM(spectators) FROM table_name_47 WHERE date = "17 june 2006" AND time__cet_ > 15
What was the area (km²) (per sqmi) of the country Colombia?
CREATE TABLE table_26769_1 (area__km²___per_sqmi_ VARCHAR, country_or_territory_with_flag VARCHAR)
SELECT area__km²___per_sqmi_ FROM table_26769_1 WHERE country_or_territory_with_flag = "Colombia"
Name the lelast decile for roll of 428
CREATE TABLE table_name_63 (decile INTEGER, roll VARCHAR)
SELECT MIN(decile) FROM table_name_63 WHERE roll = 428
what is the date when the opponent is leeds united?
CREATE TABLE table_name_80 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_80 WHERE opponent = "leeds united"
When did channel 83 in singapore launch?
CREATE TABLE table_name_81 (launched VARCHAR, territory VARCHAR, channel VARCHAR)
SELECT launched FROM table_name_81 WHERE territory = "singapore" AND channel = 83
For each city, return the highest latitude among its stations.
CREATE TABLE station (city VARCHAR, lat INTEGER)
SELECT city, MAX(lat) FROM station GROUP BY city
How many votes did Yvetta Kadakas & Ivo Linna, who had less than 4 draws, have?
CREATE TABLE table_name_93 (votes INTEGER, draw VARCHAR, artist VARCHAR)
SELECT SUM(votes) FROM table_name_93 WHERE draw < 4 AND artist = "yvetta kadakas & ivo linna"
What is the location of the daytona international speedway?
CREATE TABLE table_1245148_1 (location VARCHAR, track_name VARCHAR)
SELECT location FROM table_1245148_1 WHERE track_name = "Daytona International Speedway"
Which gender has Years of 1–8, an Authority of state, a Roll less than 184, and a Name of matatoki school?
CREATE TABLE table_name_17 (gender VARCHAR, name VARCHAR, roll VARCHAR, years VARCHAR, authority VARCHAR)
SELECT gender FROM table_name_17 WHERE years = "1–8" AND authority = "state" AND roll < 184 AND name = "matatoki school"
What is the lowest number of games Jack Gaudion, who debut in 1936, played?
CREATE TABLE table_name_88 (games INTEGER, debut_year VARCHAR, player VARCHAR)
SELECT MIN(games) FROM table_name_88 WHERE debut_year = 1936 AND player = "jack gaudion"
What was the location of the Havaianas Beachley Classic, held in Australia?
CREATE TABLE table_name_99 (location VARCHAR, country VARCHAR, event VARCHAR)
SELECT location FROM table_name_99 WHERE country = "australia" AND event = "havaianas beachley classic"
What position does the saint louis player play?
CREATE TABLE table_name_39 (position VARCHAR, college VARCHAR)
SELECT position FROM table_name_39 WHERE college = "saint louis"
What is the venue at Stanford University?
CREATE TABLE table_name_19 (venue VARCHAR, host VARCHAR)
SELECT venue FROM table_name_19 WHERE host = "stanford university"
On which date is the tournament final with the opponents michael berrer & kenneth carlsen?
CREATE TABLE table_name_98 (date VARCHAR, opponents_in_the_final VARCHAR)
SELECT date FROM table_name_98 WHERE opponents_in_the_final = "michael berrer & kenneth carlsen"
WHAT IS THE TO PAR WITH A FINISH OF T11, FOR DAVID GRAHAM?
CREATE TABLE table_name_23 (to_par VARCHAR, finish VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_23 WHERE finish = "t11" AND player = "david graham"
What is the lowest wins entry that has a goal difference less than 33, position higher than 13, and 42 goals?
CREATE TABLE table_name_46 (wins INTEGER, goals_for VARCHAR, goal_difference VARCHAR, position VARCHAR)
SELECT MIN(wins) FROM table_name_46 WHERE goal_difference < 33 AND position < 13 AND goals_for = 42
What's the original title of the film Zozo?
CREATE TABLE table_20061872_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT original_title FROM table_20061872_1 WHERE film_title_used_in_nomination = "Zozo"
What is the hometown of the player which has a height of 6-0?
CREATE TABLE table_name_31 (hometown VARCHAR, height VARCHAR)
SELECT hometown FROM table_name_31 WHERE height = "6-0"
What are the points if the goals against were 260?
CREATE TABLE table_name_95 (points VARCHAR, goals_against VARCHAR)
SELECT points FROM table_name_95 WHERE goals_against = "260"
Find the patient who most recently stayed in room 111.
CREATE TABLE stay (patient VARCHAR, room VARCHAR, staystart VARCHAR)
SELECT patient FROM stay WHERE room = 111 ORDER BY staystart DESC LIMIT 1
Who was the sponsor on April 22, 2004?
CREATE TABLE table_name_43 (sponsor VARCHAR, date_introduced VARCHAR)
SELECT sponsor FROM table_name_43 WHERE date_introduced = "april 22, 2004"
What is the points difference for a loss less than 6, and points less than 11?
CREATE TABLE table_name_30 (points_difference VARCHAR, lost VARCHAR, points VARCHAR)
SELECT points_difference FROM table_name_30 WHERE lost < 6 AND points < 11
What was the score of the game with a record of 18-22-13?
CREATE TABLE table_name_18 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_18 WHERE record = "18-22-13"
Who was the opposing team in the game with a score of 21-17?
CREATE TABLE table_name_49 (opp_team VARCHAR, score VARCHAR)
SELECT opp_team FROM table_name_49 WHERE score = "21-17"
Philae Sulcus has a latitude of what?
CREATE TABLE table_16768245_5 (latitude VARCHAR, name VARCHAR)
SELECT latitude FROM table_16768245_5 WHERE name = "Philae Sulcus"
Who was the crew chief for the team from Make Motorsports?
CREATE TABLE table_name_73 (crew_chief VARCHAR, team VARCHAR)
SELECT crew_chief FROM table_name_73 WHERE team = "make motorsports"
How many teams were promoted in the postseason in a tier above 2?
CREATE TABLE table_name_51 (pos VARCHAR, postseason VARCHAR, tier VARCHAR)
SELECT COUNT(pos) FROM table_name_51 WHERE postseason = "promoted" AND tier < 2
what is the least laps when the driver is rolf stommelen and the grid is more than 18?
CREATE TABLE table_name_99 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_99 WHERE driver = "rolf stommelen" AND grid > 18
What is Score, when To Par is "E"?
CREATE TABLE table_name_8 (score VARCHAR, to_par VARCHAR)
SELECT score FROM table_name_8 WHERE to_par = "e"
Who is the cyclist from the GCE team and had UCI points under 20?
CREATE TABLE table_name_70 (cyclist VARCHAR, team VARCHAR, uci_points VARCHAR)
SELECT cyclist FROM table_name_70 WHERE team = "gce" AND uci_points < 20
What team did gonzalo arconada manage?
CREATE TABLE table_name_90 (team VARCHAR, outgoing_manager VARCHAR)
SELECT team FROM table_name_90 WHERE outgoing_manager = "gonzalo arconada"