question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which venue has a Goal of 4?
CREATE TABLE table_name_62 (venue VARCHAR, goal VARCHAR)
SELECT venue FROM table_name_62 WHERE goal = 4
What was the result in the game broadcast on the Big East Network?
CREATE TABLE table_26842217_12 (result VARCHAR, broadcast VARCHAR)
SELECT result FROM table_26842217_12 WHERE broadcast = "Big East Network"
who many times is gloucestershire is painswick?
CREATE TABLE table_12043148_2 (premier_two VARCHAR, gloucestershire VARCHAR)
SELECT COUNT(premier_two) FROM table_12043148_2 WHERE gloucestershire = "Painswick"
What is the team 2 with a team 1 us gorée?
CREATE TABLE table_name_88 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_88 WHERE team_1 = "us gorée"
Which district did Ralph Harvey (r) vacated when he resigned?
CREATE TABLE table_1847180_4 (district VARCHAR, vacator VARCHAR)
SELECT district FROM table_1847180_4 WHERE vacator = "Ralph Harvey (R)"
Who was the player for Japan when the to par was smaller than 7?
CREATE TABLE table_name_57 (player VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT player FROM table_name_57 WHERE to_par < 7 AND country = "japan"
What is the start date and time of the walk that ends March 28, 2005, 11:31?
CREATE TABLE table_22385461_6 (start___utc__ VARCHAR, end__utc_ VARCHAR)
SELECT start___utc__ FROM table_22385461_6 WHERE end__utc_ = "March 28, 2005, 11:31"
Which April has Points of 95, and a Record of 41–25–10–3, and a Game smaller than 79?
CREATE TABLE table_name_50 (april INTEGER, game VARCHAR, points VARCHAR, record VARCHAR)
SELECT SUM(april) FROM table_name_50 WHERE points = 95 AND record = "41–25–10–3" AND game < 79
What is the total number of bronze medals, and 4 silver medals, and 2 gold medals?
CREATE TABLE table_name_28 (bronze VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT COUNT(bronze) FROM table_name_28 WHERE silver = 4 AND gold > 2
What are the countries that have greater surface area than any country in Europe?
CREATE TABLE country (Name VARCHAR, SurfaceArea INTEGER, Continent VARCHAR)
SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = "Europe")
When the president was Yoweri Museveni, and the year was 1993, with rank of 6 under political rights, what was the total of civil liberties?
CREATE TABLE table_name_78 (civil_liberties INTEGER, year VARCHAR, political_rights VARCHAR, president VARCHAR)
SELECT SUM(civil_liberties) FROM table_name_78 WHERE political_rights = 6 AND president = "yoweri museveni" AND year = 1993
Who were the challenge leaders of the games won by boston college (88-76)?
CREATE TABLE table_29535057_4 (challenge_leader VARCHAR, winner VARCHAR)
SELECT challenge_leader FROM table_29535057_4 WHERE winner = "Boston College (88-76)"
When did the away team score at Punt Road Oval?
CREATE TABLE table_name_25 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_25 WHERE venue = "punt road oval"
Which wheel arrangement had a Specification of dl-700?
CREATE TABLE table_name_9 (wheel_arrangement VARCHAR, specification VARCHAR)
SELECT wheel_arrangement FROM table_name_9 WHERE specification = "dl-700"
What is the nation of the person who was from the CSC team?
CREATE TABLE table_name_79 (nation VARCHAR, team VARCHAR)
SELECT nation FROM table_name_79 WHERE team = "csc"
What is the 1st party during the 1857 election?
CREATE TABLE table_name_34 (election VARCHAR)
SELECT 1 AS st_party FROM table_name_34 WHERE election = "1857"
What are the years for the player with fewer than 62 goals, debut year of 1981 and 28 games?
CREATE TABLE table_name_61 (years_at_club VARCHAR, games VARCHAR, goals VARCHAR, debut_year VARCHAR)
SELECT years_at_club FROM table_name_61 WHERE goals < 62 AND debut_year = 1981 AND games = 28
In what year was the artist Afro-dite?
CREATE TABLE table_name_54 (year VARCHAR, artist VARCHAR)
SELECT year FROM table_name_54 WHERE artist = "afro-dite"
How much time does it take for jean alesi and grids lesser than 5?
CREATE TABLE table_name_53 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_53 WHERE grid < 5 AND driver = "jean alesi"
What are the characters and duration of actors?
CREATE TABLE actor (Character VARCHAR, Duration VARCHAR)
SELECT Character, Duration FROM actor
What is the division for the season earlier than 2004?
CREATE TABLE table_name_60 (division VARCHAR, season INTEGER)
SELECT division FROM table_name_60 WHERE season < 2004
Which formula has thial as a chemical class?
CREATE TABLE table_name_7 (formula VARCHAR, chemical_class VARCHAR)
SELECT formula FROM table_name_7 WHERE chemical_class = "thial"
The match that lasted 2:43 has what record?
CREATE TABLE table_name_38 (record VARCHAR, time VARCHAR)
SELECT record FROM table_name_38 WHERE time = "2:43"
How many silver medals were won with a total medal of 3 and a rank above 9?
CREATE TABLE table_name_49 (silver INTEGER, total VARCHAR, rank VARCHAR)
SELECT AVG(silver) FROM table_name_49 WHERE total < 3 AND rank > 9
Who broadcasts in malaysia?
CREATE TABLE table_name_12 (broadcaster VARCHAR, territory VARCHAR)
SELECT broadcaster FROM table_name_12 WHERE territory = "malaysia"
What position did kyle mckenzie play?
CREATE TABLE table_name_41 (position VARCHAR, name VARCHAR)
SELECT position FROM table_name_41 WHERE name = "kyle mckenzie"
What time was achieved on Saturday 29th August by the rider who recorded 24' 17.26 93.208mph on Monday 24th August?
CREATE TABLE table_23465864_4 (sat_29_aug VARCHAR, mon_24_aug VARCHAR)
SELECT sat_29_aug FROM table_23465864_4 WHERE mon_24_aug = "24' 17.26 93.208mph"
What season had 1st position, 33 pld, and 58 points?
CREATE TABLE table_name_21 (season VARCHAR, pts VARCHAR, pos VARCHAR, pld VARCHAR)
SELECT season FROM table_name_21 WHERE pos = "1st" AND pld = "33" AND pts = "58"
Who is the leading scorer of the Villa De Los Barrios visitor?
CREATE TABLE table_name_56 (leading_scorer VARCHAR, visitor VARCHAR)
SELECT leading_scorer FROM table_name_56 WHERE visitor = "villa de los barrios"
What is the population of the settlement with the cyrillic name of добрица?
CREATE TABLE table_2562572_44 (population__2011_ INTEGER, cyrillic_name_other_names VARCHAR)
SELECT MAX(population__2011_) FROM table_2562572_44 WHERE cyrillic_name_other_names = "Добрица"
What is orthodoxy when x is wehdat?
CREATE TABLE table_26173063_2 (orthodoxy VARCHAR, × VARCHAR)
SELECT orthodoxy FROM table_26173063_2 WHERE × = "wehdat"
what is the total number of seats 2006 that has parties and voter turnout in % and whose %2006 is greater than 51.5?
CREATE TABLE table_name_33 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR)
SELECT SUM(seats_2006) FROM table_name_33 WHERE parties_and_voter_communities = "voter turnout in %" AND _percentage_2006 > 51.5
What is the lenth (miles) of endpoints westlake/macarthur park to wilshire/western?
CREATE TABLE table_1817879_2 (length__miles_ VARCHAR, endpoints VARCHAR)
SELECT length__miles_ FROM table_1817879_2 WHERE endpoints = "Westlake/MacArthur Park to Wilshire/Western"
What is the score of the Devil Rays on April 24?
CREATE TABLE table_name_28 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT score FROM table_name_28 WHERE opponent = "devil rays" AND date = "april 24"
How many drawn have points of 6 and lost by fewer than 4?
CREATE TABLE table_name_53 (drawn VARCHAR, points VARCHAR, lost VARCHAR)
SELECT COUNT(drawn) FROM table_name_53 WHERE points = 6 AND lost < 4
What is the M60A3 that has an M1A1 of Km (mi)?
CREATE TABLE table_name_66 (m60a3_patton VARCHAR, m1a1_abrams VARCHAR)
SELECT m60a3_patton FROM table_name_66 WHERE m1a1_abrams = "km (mi)"
what is the capacity when the acceleration 1-100km/h is 11.1 s?
CREATE TABLE table_name_39 (capacity VARCHAR, acceleration_0_100km_h VARCHAR)
SELECT capacity FROM table_name_39 WHERE acceleration_0_100km_h = "11.1 s"
The final score was 24-34 on what date?
CREATE TABLE table_name_18 (date VARCHAR, final_score VARCHAR)
SELECT date FROM table_name_18 WHERE final_score = "24-34"
Who wrote title number 38?
CREATE TABLE table_26199484_1 (written_by VARCHAR, no VARCHAR)
SELECT written_by FROM table_26199484_1 WHERE no = 38
What is the position when wins are fewer than 14 and draws are fewer than 3?
CREATE TABLE table_name_81 (position INTEGER, wins VARCHAR, draws VARCHAR)
SELECT AVG(position) FROM table_name_81 WHERE wins < 14 AND draws < 3
Which dance style had a draw smaller than 15 and 18 points?
CREATE TABLE table_name_54 (dance_styles VARCHAR, draw VARCHAR, points VARCHAR)
SELECT dance_styles FROM table_name_54 WHERE draw < 15 AND points = 18
What year was the total 9?
CREATE TABLE table_name_9 (year VARCHAR, total VARCHAR)
SELECT year FROM table_name_9 WHERE total = "9"
How many weeks featured duffy as the original artist?
CREATE TABLE table_21501564_1 (theme VARCHAR, original_artist VARCHAR)
SELECT COUNT(theme) FROM table_21501564_1 WHERE original_artist = "Duffy"
What surface was played on on October 3, 2010?
CREATE TABLE table_name_42 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_42 WHERE date = "october 3, 2010"
how many dbeingtrict with candidates being william b. bankhead (d) 71.3% e. m. reed (r) 28.7%
CREATE TABLE table_1342292_2 (district VARCHAR, candidates VARCHAR)
SELECT COUNT(district) FROM table_1342292_2 WHERE candidates = "William B. Bankhead (D) 71.3% E. M. Reed (R) 28.7%"
What is the default desktop environment when the code base is ubuntu 8.04 and edition is fluxbox ce?
CREATE TABLE table_27329061_2 (default_desktop_environment VARCHAR, code_base VARCHAR, edition VARCHAR)
SELECT default_desktop_environment FROM table_27329061_2 WHERE code_base = "Ubuntu 8.04" AND edition = "Fluxbox CE"
What is sheffield united's away team?
CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_74 WHERE home_team = "sheffield united"
What is the against percentage in the Vest-Agder constituency?
CREATE TABLE table_1289762_1 (against___percentage_ VARCHAR, constituency VARCHAR)
SELECT against___percentage_ FROM table_1289762_1 WHERE constituency = "Vest-Agder"
What is the 1993 finish for the event that had a 1990 of QF and 1995 of 2R?
CREATE TABLE table_name_44 (Id VARCHAR)
SELECT 1993 FROM table_name_44 WHERE 1990 = "qf" AND 1995 = "2r"
What college had the 93 pick?
CREATE TABLE table_name_50 (college VARCHAR, pick VARCHAR)
SELECT college FROM table_name_50 WHERE pick = 93
What is the sum of Round, when Nationality is "United States", and when Pick is "125"?
CREATE TABLE table_name_91 (round INTEGER, nationality VARCHAR, pick VARCHAR)
SELECT SUM(round) FROM table_name_91 WHERE nationality = "united states" AND pick = 125
Which player made the highest number of assists during the game played at the FleetCenter, with end score of W 120-87?
CREATE TABLE table_name_96 (high_assists VARCHAR, location_attendance VARCHAR, score VARCHAR)
SELECT high_assists FROM table_name_96 WHERE location_attendance = "fleetcenter" AND score = "w 120-87"
what is the averaging time when the regulatory citation is 40 cfr 50.4(b)?
CREATE TABLE table_name_53 (averaging_time VARCHAR, regulatory_citation VARCHAR)
SELECT averaging_time FROM table_name_53 WHERE regulatory_citation = "40 cfr 50.4(b)"
What are the years that have a duration of 15 years and giulia poggi as the character?
CREATE TABLE table_name_33 (years VARCHAR, duration VARCHAR, character VARCHAR)
SELECT years FROM table_name_33 WHERE duration = "15 years" AND character = "giulia poggi"
Which player has more than 0 goals and less than 12 tries?
CREATE TABLE table_name_5 (player VARCHAR, goals VARCHAR, tries VARCHAR)
SELECT player FROM table_name_5 WHERE goals > 0 AND tries < 12
Find the name and email of the user followed by the least number of people.
CREATE TABLE user_profiles (name VARCHAR, email VARCHAR, followers VARCHAR)
SELECT name, email FROM user_profiles ORDER BY followers LIMIT 1
what is the home team when the away team is frickley colliery?
CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_17 WHERE away_team = "frickley colliery"
What is Score when Team is @ Kansas City-Omaha Kings?
CREATE TABLE table_name_35 (score VARCHAR, team VARCHAR)
SELECT score FROM table_name_35 WHERE team = "@ kansas city-omaha kings"
WHAT CHAMPION HAD RICHMOND RIVER COURSE ON JUNE 13?
CREATE TABLE table_name_39 (champion VARCHAR, course VARCHAR, date VARCHAR)
SELECT champion FROM table_name_39 WHERE course = "richmond river" AND date = "june 13"
What is the Free Agent Type for player bryant johnson?
CREATE TABLE table_name_2 (free_agent_type VARCHAR, player VARCHAR)
SELECT free_agent_type FROM table_name_2 WHERE player = "bryant johnson"
How many defending champs from thailand?
CREATE TABLE table_19765685_2 (defending_champion VARCHAR, country VARCHAR)
SELECT COUNT(defending_champion) FROM table_19765685_2 WHERE country = "Thailand"
There are 5 imports of plywood.
CREATE TABLE table_12077540_1 (import VARCHAR, product VARCHAR)
SELECT import FROM table_12077540_1 WHERE product = "Plywood"
What is the total number of schools founded that have an enrollment of 5634?
CREATE TABLE table_2076608_1 (founded VARCHAR, enrollment VARCHAR)
SELECT COUNT(founded) FROM table_2076608_1 WHERE enrollment = "5634"
How much international mail has a change of +35,7% later than 2008?
CREATE TABLE table_name_35 (international_mail INTEGER, change VARCHAR, year VARCHAR)
SELECT SUM(international_mail) FROM table_name_35 WHERE change = "+35,7%" AND year > 2008
What was the attendance when the record was 1-1?
CREATE TABLE table_13258972_2 (attendance VARCHAR, record VARCHAR)
SELECT attendance FROM table_13258972_2 WHERE record = "1-1"
Where Award is newcomer actress, what is the work?
CREATE TABLE table_name_19 (work VARCHAR, award VARCHAR)
SELECT work FROM table_name_19 WHERE award = "newcomer actress"
How many matches as captain were played where Asian Cup played as a captain is Qatar 1988
CREATE TABLE table_272865_20 (matches_as_captain VARCHAR, asian_cup_played_as_a_captain VARCHAR)
SELECT matches_as_captain FROM table_272865_20 WHERE asian_cup_played_as_a_captain = "Qatar 1988"
WHAT IS THE TEAM WITH ATTENDANCE AT TARGET CENTER 11,921?
CREATE TABLE table_name_8 (team VARCHAR, location_attendance VARCHAR)
SELECT team FROM table_name_8 WHERE location_attendance = "target center 11,921"
What is the highest amount of uefa champion leagues?
CREATE TABLE table_18254488_2 (uefa_champions_league INTEGER)
SELECT MAX(uefa_champions_league) FROM table_18254488_2
What is the masculine an form for the word with a feminine ö ending of siangar and a masculine u ending of sunar?
CREATE TABLE table_name_49 (masculine_an_stems VARCHAR, feminine_ō_stems VARCHAR, masculine_u_stems VARCHAR)
SELECT masculine_an_stems FROM table_name_49 WHERE feminine_ō_stems = "siangar" AND masculine_u_stems = "sunar"
What is the lowest goals for value with fewer than 5 draws and under 70 points?
CREATE TABLE table_name_88 (goals_for INTEGER, draw VARCHAR, points VARCHAR)
SELECT MIN(goals_for) FROM table_name_88 WHERE draw < 5 AND points < 70
What year did Tom Watson win?
CREATE TABLE table_name_78 (year_s__won VARCHAR, player VARCHAR)
SELECT year_s__won FROM table_name_78 WHERE player = "tom watson"
Which Chart has a Peak Position of 1?
CREATE TABLE table_name_68 (chart VARCHAR, peak_position VARCHAR)
SELECT chart FROM table_name_68 WHERE peak_position = 1
In the Western Oval venue, what is the average crowd?
CREATE TABLE table_name_38 (crowd INTEGER, venue VARCHAR)
SELECT AVG(crowd) FROM table_name_38 WHERE venue = "western oval"
when season mvp is larger than 1.0 what is the maximum number of selection
CREATE TABLE table_26130295_3 (number_of_selections INTEGER, season_mvp INTEGER)
SELECT MAX(number_of_selections) FROM table_26130295_3 WHERE season_mvp > 1.0
WHich Tournament venue has a Tournament Champion of duke and a Record of 15–1?
CREATE TABLE table_name_33 (tournament_venue VARCHAR, tournament_champion VARCHAR, record VARCHAR)
SELECT tournament_venue FROM table_name_33 WHERE tournament_champion = "duke" AND record = "15–1"
What is the position for the Rockets years of 2004-05?
CREATE TABLE table_name_75 (position VARCHAR, years_for_rockets VARCHAR)
SELECT position FROM table_name_75 WHERE years_for_rockets = "2004-05"
What is the biggended for 1947?
CREATE TABLE table_12526990_1 (biggenden INTEGER, year VARCHAR)
SELECT MAX(biggenden) FROM table_12526990_1 WHERE year = 1947
How many total batting partners were most successful in the 2006 season?
CREATE TABLE table_1670921_2 (batting_partners VARCHAR, season VARCHAR)
SELECT COUNT(batting_partners) FROM table_1670921_2 WHERE season = "2006"
Which Year(s) won has a Total smaller than 292, and a Player of hale irwin?
CREATE TABLE table_name_42 (year_s__won VARCHAR, total VARCHAR, player VARCHAR)
SELECT year_s__won FROM table_name_42 WHERE total < 292 AND player = "hale irwin"
What is the toll for heavy vehicles with 3/4 axles at Verkeerdevlei toll plaza?
CREATE TABLE table_1211545_2 (heavy_vehicle__3_4_axles_ VARCHAR, name VARCHAR)
SELECT heavy_vehicle__3_4_axles_ FROM table_1211545_2 WHERE name = "Verkeerdevlei Toll Plaza"
What player has a score of 79?
CREATE TABLE table_name_53 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_53 WHERE score = "79"
Who has a Jersey number of 31?
CREATE TABLE table_name_84 (player VARCHAR, jersey_number_s_ VARCHAR)
SELECT player FROM table_name_84 WHERE jersey_number_s_ = "31"
What are the weapons used by guardians for the direction East?
CREATE TABLE table_100518_1 (weapon VARCHAR, direction VARCHAR)
SELECT weapon FROM table_100518_1 WHERE direction = "East"
Which country has a GDP (nominal) of $29.9 billion?
CREATE TABLE table_name_30 (country VARCHAR, gdp__nominal_ VARCHAR)
SELECT country FROM table_name_30 WHERE gdp__nominal_ = "$29.9 billion"
What location was listed on 1977-09-15?
CREATE TABLE table_name_60 (location VARCHAR, listed VARCHAR)
SELECT location FROM table_name_60 WHERE listed = "1977-09-15"
What is the highest number of wins that has a top-25 of 13 and events less than 32?
CREATE TABLE table_name_76 (wins INTEGER, top_25 VARCHAR, events VARCHAR)
SELECT MAX(wins) FROM table_name_76 WHERE top_25 = 13 AND events < 32
What is the original air date that had the wykeham wonderers as team 1?
CREATE TABLE table_18733480_1 (air_date VARCHAR, team_1 VARCHAR)
SELECT air_date FROM table_18733480_1 WHERE team_1 = "Wykeham Wonderers"
What is the Operator with a Peak that is 55?
CREATE TABLE table_name_47 (operator VARCHAR, peak VARCHAR)
SELECT operator FROM table_name_47 WHERE peak = "55"
What was the score on August 19?
CREATE TABLE table_name_65 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_65 WHERE date = "august 19"
What is the average number of goals against with more than 12 wins, 12 losses, and a position greater than 3?
CREATE TABLE table_name_98 (goals_against INTEGER, position VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT AVG(goals_against) FROM table_name_98 WHERE wins > 12 AND losses = 12 AND position > 3
List the names of all distinct wines in alphabetical order.
CREATE TABLE WINE (Name VARCHAR)
SELECT DISTINCT Name FROM WINE ORDER BY Name
Find the name of the customer that has been involved in the most policies.
CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE policies (customer_id VARCHAR)
SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY COUNT(*) DESC LIMIT 1
What is the record when the method is decision and the location is Martigues, France?
CREATE TABLE table_name_86 (record VARCHAR, method VARCHAR, location VARCHAR)
SELECT record FROM table_name_86 WHERE method = "decision" AND location = "martigues, france"
What is Score, when Country is "United States", and when Player is "Mark Brooks"?
CREATE TABLE table_name_34 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT score FROM table_name_34 WHERE country = "united states" AND player = "mark brooks"
What date did the Mountaineers score 27 points and their opponent scored more that 7?
CREATE TABLE table_name_82 (date VARCHAR, points_against VARCHAR, points_for VARCHAR)
SELECT date FROM table_name_82 WHERE points_against > 7 AND points_for = 27
How many events had participants whose details had the substring 'Dr.'
CREATE TABLE participants (Participant_ID VARCHAR, participant_details VARCHAR); CREATE TABLE Participants_in_Events (Participant_ID VARCHAR)
SELECT COUNT(*) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%'
what is the laps when the grid is less than 2?
CREATE TABLE table_name_38 (laps VARCHAR, grid INTEGER)
SELECT laps FROM table_name_38 WHERE grid < 2
Who had the time of 1:23.32.41?
CREATE TABLE table_name_17 (rider VARCHAR, time VARCHAR)
SELECT rider FROM table_name_17 WHERE time = "1:23.32.41"
When the Top 10s is larger than 0 and the scoring average 73.04, what is the best finish?
CREATE TABLE table_name_10 (best_finish VARCHAR, top_10s VARCHAR, scoring_average VARCHAR)
SELECT best_finish FROM table_name_10 WHERE top_10s > 0 AND scoring_average = 73.04