question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the internet when the position is more than 13?
CREATE TABLE table_name_12 (internet VARCHAR, position INTEGER)
SELECT internet FROM table_name_12 WHERE position > 13
What is the 2010 result of a tournament that is 1R in 2009, Q2 in 2011 and 1R in 2012?
CREATE TABLE table_name_43 (Id VARCHAR)
SELECT 2010 FROM table_name_43 WHERE 2011 = "q2" AND 2012 = "1r" AND 2009 = "1r"
What is Spain's skip?
CREATE TABLE table_name_92 (skip VARCHAR, nation VARCHAR)
SELECT skip FROM table_name_92 WHERE nation = "spain"
What is the power output for class 5?
CREATE TABLE table_name_29 (power_output__kw_ VARCHAR, number_in_class VARCHAR)
SELECT power_output__kw_ FROM table_name_29 WHERE number_in_class = 5
Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5
CREATE TABLE table_name_35 (league_apps VARCHAR, fa_cup_apps VARCHAR, league_goals VARCHAR, position VARCHAR)
SELECT league_apps FROM table_name_35 WHERE league_goals < 2 AND position = "df" AND fa_cup_apps = "5"
What is the 2013-2014 division for the Wolverhampton Wildcats?
CREATE TABLE table_name_60 (team VARCHAR)
SELECT 2013 AS _14_division FROM table_name_60 WHERE team = "wolverhampton wildcats"
What date has the opponent competing in the final of john mcenroe?
CREATE TABLE table_name_94 (date VARCHAR, opponent_in_final VARCHAR)
SELECT date FROM table_name_94 WHERE opponent_in_final = "john mcenroe"
What is the mail date of the document with id 7?
CREATE TABLE Documents_Mailed (mailing_date VARCHAR, document_id VARCHAR)
SELECT mailing_date FROM Documents_Mailed WHERE document_id = 7
How many games were held on January 5?
CREATE TABLE table_27700375_8 (game VARCHAR, date VARCHAR)
SELECT COUNT(game) FROM table_27700375_8 WHERE date = "January 5"
Which date has a Record of 41-46?
CREATE TABLE table_name_55 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_55 WHERE record = "41-46"
When was an average speed of 81.388 mph recorded?
CREATE TABLE table_2266976_1 (date VARCHAR, average_speed__mph_ VARCHAR)
SELECT date FROM table_2266976_1 WHERE average_speed__mph_ = "81.388"
What is the sum of draws with 274-357 goals?
CREATE TABLE table_name_94 (drawn INTEGER, goals VARCHAR)
SELECT SUM(drawn) FROM table_name_94 WHERE goals = "274-357"
Find the names and descriptions of courses that belong to the subject named "Computer Science".
CREATE TABLE Courses (course_name VARCHAR, course_description VARCHAR, subject_id VARCHAR); CREATE TABLE Subjects (subject_id VARCHAR, subject_name VARCHAR)
SELECT T1.course_name, T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = "Computer Science"
When were the credentials presented for new jersey with a status of foreign service officer?
CREATE TABLE table_name_59 (credentials_presented VARCHAR, state VARCHAR, status VARCHAR)
SELECT credentials_presented FROM table_name_59 WHERE state = "new jersey" AND status = "foreign service officer"
What was the actors name that vadim ilyenko directed?
CREATE TABLE table_10236830_1 (actors_name VARCHAR, director VARCHAR)
SELECT actors_name FROM table_10236830_1 WHERE director = "Vadim Ilyenko"
What is Points For, when Losing Bonus is "2", when Lost is "8", and when Club is "Rhyl And District RFC"?
CREATE TABLE table_name_88 (points_for VARCHAR, club VARCHAR, losing_bonus VARCHAR, lost VARCHAR)
SELECT points_for FROM table_name_88 WHERE losing_bonus = "2" AND lost = "8" AND club = "rhyl and district rfc"
Show the name and location for all tracks.
CREATE TABLE track (name VARCHAR, LOCATION VARCHAR)
SELECT name, LOCATION FROM track
What was the lowest wins of Larry Nelson, who ranked less than 5?
CREATE TABLE table_name_8 (wins INTEGER, player VARCHAR, rank VARCHAR)
SELECT MIN(wins) FROM table_name_8 WHERE player = "larry nelson" AND rank < 5
What was the result of the election held in 1914?
CREATE TABLE table_1342331_11 (result VARCHAR, first_elected VARCHAR)
SELECT result FROM table_1342331_11 WHERE first_elected = 1914
What is the location of the club named "Tennis Club"?
CREATE TABLE club (clublocation VARCHAR, clubname VARCHAR)
SELECT clublocation FROM club WHERE clubname = "Tennis Club"
Which Date has an Against larger than 0?
CREATE TABLE table_name_28 (date VARCHAR, against INTEGER)
SELECT date FROM table_name_28 WHERE against > 0
Find the distinct ages of students who have secretary votes in the fall election cycle.
CREATE TABLE VOTING_RECORD (Secretary_Vote VARCHAR, Election_Cycle VARCHAR); CREATE TABLE STUDENT (Age VARCHAR, StuID VARCHAR)
SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Secretary_Vote WHERE T2.Election_Cycle = "Fall"
Show the park of the roller coaster with the highest speed.
CREATE TABLE roller_coaster (Park VARCHAR, Speed VARCHAR)
SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1
How many total yards for Bobby Layne?
CREATE TABLE table_19418696_3 (yards INTEGER, name VARCHAR)
SELECT MAX(yards) FROM table_19418696_3 WHERE name = "Bobby Layne"
What Engine had a Finish of 27?
CREATE TABLE table_name_98 (engine VARCHAR, finish VARCHAR)
SELECT engine FROM table_name_98 WHERE finish = "27"
Who were the candidates in district Pennsylvania 3?
CREATE TABLE table_1341423_38 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1341423_38 WHERE district = "Pennsylvania 3"
Which Losses have a Wimmera FL of minyip murtoa?
CREATE TABLE table_name_35 (losses INTEGER, wimmera_fl VARCHAR)
SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = "minyip murtoa"
Name the number of judges for dré steemans ann van elsen
CREATE TABLE table_16884579_1 (judges VARCHAR, host_s_ VARCHAR)
SELECT COUNT(judges) FROM table_16884579_1 WHERE host_s_ = "Dré Steemans Ann Van Elsen"
Date of april 9 had what score?
CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_11 WHERE date = "april 9"
Which City has 600kw 500kw ERP (Analog/ Digital)?
CREATE TABLE table_name_41 (city VARCHAR, erp__analog__digital_ VARCHAR)
SELECT city FROM table_name_41 WHERE erp__analog__digital_ = "600kw 500kw"
The home team york city has what score?
CREATE TABLE table_name_44 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_44 WHERE home_team = "york city"
Which player is the 24 pick?
CREATE TABLE table_name_16 (player VARCHAR, pick VARCHAR)
SELECT player FROM table_name_16 WHERE pick = "24"
What's the pick number of the player from Springfield Olympics (Nejhl)?
CREATE TABLE table_1013129_3 (pick VARCHAR, college_junior_club_team VARCHAR)
SELECT pick FROM table_1013129_3 WHERE college_junior_club_team = "Springfield Olympics (NEJHL)"
What was Fred Couples' score?
CREATE TABLE table_name_15 (score VARCHAR, player VARCHAR)
SELECT COUNT(score) FROM table_name_15 WHERE player = "fred couples"
What was the games score on January 11?
CREATE TABLE table_15780049_6 (score VARCHAR, date VARCHAR)
SELECT score FROM table_15780049_6 WHERE date = "January 11"
What is the total enrollment for an affiliation of public, and was founded before 1866?
CREATE TABLE table_name_43 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR)
SELECT COUNT(enrollment) FROM table_name_43 WHERE affiliation = "public" AND founded < 1866
What is the population of Danderyd municipality in Stockholm County with a code lower than 162?
CREATE TABLE table_name_62 (population VARCHAR, code VARCHAR, county VARCHAR, municipality VARCHAR)
SELECT COUNT(population) FROM table_name_62 WHERE county = "stockholm county" AND municipality = "danderyd municipality" AND code < 162
When did South Melbourne play at home?
CREATE TABLE table_name_3 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_3 WHERE home_team = "south melbourne"
Name the average econ for runs more than 703 and ovrs more than 25.5
CREATE TABLE table_name_2 (econ INTEGER, ovrs VARCHAR, runs VARCHAR)
SELECT AVG(econ) FROM table_name_2 WHERE ovrs > 25.5 AND runs > 703
What was the score for Boston's Home game that had Gerber as the decision?
CREATE TABLE table_name_34 (score VARCHAR, decision VARCHAR, home VARCHAR)
SELECT score FROM table_name_34 WHERE decision = "gerber" AND home = "boston"
Name the total number of wins with top-25 of 10 and events less than 26
CREATE TABLE table_name_67 (wins VARCHAR, top_25 VARCHAR, events VARCHAR)
SELECT COUNT(wins) FROM table_name_67 WHERE top_25 = 10 AND events < 26
what is the total number of playoffs where regular season is 6th, southwest
CREATE TABLE table_1046454_1 (playoffs VARCHAR, regular_season VARCHAR)
SELECT COUNT(playoffs) FROM table_1046454_1 WHERE regular_season = "6th, Southwest"
What Time elapsed has both the Launched of 15 October 1997 and the Closest approach of 24 June 1999?
CREATE TABLE table_name_52 (time_elapsed VARCHAR, launched VARCHAR, closest_approach VARCHAR)
SELECT time_elapsed FROM table_name_52 WHERE launched = "15 october 1997" AND closest_approach = "24 june 1999"
Rank 6 has what notes?
CREATE TABLE table_name_10 (notes VARCHAR, rank VARCHAR)
SELECT notes FROM table_name_10 WHERE rank = 6
Name the score for when the opponent in the final is shiho hisamatsu
CREATE TABLE table_name_43 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_43 WHERE opponent_in_the_final = "shiho hisamatsu"
What is the total goals for Mark Ward?
CREATE TABLE table_name_64 (total_goals INTEGER, name VARCHAR)
SELECT MIN(total_goals) FROM table_name_64 WHERE name = "mark ward"
What is the earliest year with fewer than 5 wins and 89 points?
CREATE TABLE table_name_12 (year INTEGER, wins VARCHAR, points VARCHAR)
SELECT MIN(year) FROM table_name_12 WHERE wins < 5 AND points = 89
What is the total of all Shot PCT occurrences when the value of Blank Ends is 8?
CREATE TABLE table_1505809_2 (shot_pct VARCHAR, blank_ends VARCHAR)
SELECT COUNT(shot_pct) FROM table_1505809_2 WHERE blank_ends = 8
What is the duration when Lok Sabha shows fifth?
CREATE TABLE table_name_86 (duration VARCHAR, lok_sabha VARCHAR)
SELECT duration FROM table_name_86 WHERE lok_sabha = "fifth"
Where was the tourney when Louisville won the regular season?
CREATE TABLE table_21269441_4 (tournament_venue__city_ VARCHAR, regular_season_winner VARCHAR)
SELECT tournament_venue__city_ FROM table_21269441_4 WHERE regular_season_winner = "Louisville"
List the number of builders where the withdrawn is 1951 and number is 42.
CREATE TABLE table_22481967_1 (builder VARCHAR, withdrawn VARCHAR, number VARCHAR)
SELECT COUNT(builder) FROM table_22481967_1 WHERE withdrawn = "1951" AND number = "42"
Which run 2 with final of 5:24.47?
CREATE TABLE table_name_18 (run_2 VARCHAR, final VARCHAR)
SELECT run_2 FROM table_name_18 WHERE final = "5:24.47"
What is the number of entries associated with more than 11 wins?
CREATE TABLE table_name_51 (entries VARCHAR, wins INTEGER)
SELECT entries FROM table_name_51 WHERE wins > 11
Who are the writers for the episode number in series 129?
CREATE TABLE table_21312959_1 (written_by VARCHAR, no_in_series VARCHAR)
SELECT written_by FROM table_21312959_1 WHERE no_in_series = 129
Who was the away team when Geelong was the home team?
CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_41 WHERE home_team = "geelong"
What was the resolution of the fight when tim hague had a record of 15-7?
CREATE TABLE table_name_65 (res VARCHAR, record VARCHAR)
SELECT res FROM table_name_65 WHERE record = "15-7"
WHAT SCHOOL DOES HA'SEAN CLINTON-DIX BELONG TO?
CREATE TABLE table_11677691_2 (school VARCHAR, player VARCHAR)
SELECT school FROM table_11677691_2 WHERE player = "Ha'Sean Clinton-Dix"
I want the driver with Laps larger than 16 with a ferrari and grid less than 15
CREATE TABLE table_name_44 (driver VARCHAR, grid VARCHAR, laps VARCHAR, constructor VARCHAR)
SELECT driver FROM table_name_44 WHERE laps > 16 AND constructor = "ferrari" AND grid < 15
Name the maximum mum l is less than 6.0
CREATE TABLE table_1585112_2 (num INTEGER, l INTEGER)
SELECT MAX(num) FROM table_1585112_2 WHERE l < 6.0
Can you tell me the Place that has the Country of australia, and the Player of ian baker-finch?
CREATE TABLE table_name_22 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT place FROM table_name_22 WHERE country = "australia" AND player = "ian baker-finch"
Which Game has a Streak of loss 1, and a Score of 110–111?
CREATE TABLE table_name_80 (game VARCHAR, streak VARCHAR, score VARCHAR)
SELECT game FROM table_name_80 WHERE streak = "loss 1" AND score = "110–111"
what is the maximum number of points?
CREATE TABLE table_27539272_5 (points INTEGER)
SELECT MAX(points) FROM table_27539272_5
What was the first game played on February 28?
CREATE TABLE table_name_95 (game INTEGER, date VARCHAR)
SELECT MIN(game) FROM table_name_95 WHERE date = "february 28"
What is the sum of all attendance on November 17, 1961?
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_40 WHERE date = "november 17, 1961"
What is the status of the junior coaster model that opened in 2008?
CREATE TABLE table_name_89 (status VARCHAR, opened VARCHAR, model VARCHAR)
SELECT status FROM table_name_89 WHERE opened = "2008" AND model = "junior coaster"
What are the evening gown scores of contestants whose average is 9.266?
CREATE TABLE table_16390001_2 (evening_gown VARCHAR, average VARCHAR)
SELECT evening_gown FROM table_16390001_2 WHERE average = "9.266"
What are the years when the grizzles had a player who attended Villanova?
CREATE TABLE table_name_37 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)
SELECT years_for_grizzlies FROM table_name_37 WHERE school_club_team = "villanova"
Name the location attendance for memphis
CREATE TABLE table_23281862_5 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_23281862_5 WHERE team = "Memphis"
What was the Result F–A on 21 February 2009, when the league position was 1st?
CREATE TABLE table_name_55 (result_f_a VARCHAR, league_position VARCHAR, date VARCHAR)
SELECT result_f_a FROM table_name_55 WHERE league_position = "1st" AND date = "21 february 2009"
What is the average number of golds for nations with less than 2 silver, named uzbekistan, and less than 4 bronze?
CREATE TABLE table_name_51 (gold INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT AVG(gold) FROM table_name_51 WHERE silver < 2 AND nation = "uzbekistan" AND bronze < 4
What are all sail numbers for the yacht Yendys?
CREATE TABLE table_14882588_3 (sail_number VARCHAR, yacht VARCHAR)
SELECT sail_number FROM table_14882588_3 WHERE yacht = "Yendys"
What is the average score for 6th place with a total of 165?
CREATE TABLE table_name_49 (average VARCHAR, place VARCHAR, total VARCHAR)
SELECT average FROM table_name_49 WHERE place = "6th" AND total = "165"
WHich Mountains classification has an Asian team classification of seoul cycling team, and a Winner of alexandre usov?
CREATE TABLE table_name_99 (mountains_classification VARCHAR, asian_team_classification VARCHAR, winner VARCHAR)
SELECT mountains_classification FROM table_name_99 WHERE asian_team_classification = "seoul cycling team" AND winner = "alexandre usov"
What was the position of Greg Fredlund in years after 2008?
CREATE TABLE table_name_30 (position VARCHAR, year VARCHAR, player VARCHAR)
SELECT position FROM table_name_30 WHERE year > 2008 AND player = "greg fredlund"
Find the number of tweets in record.
CREATE TABLE tweets (Id VARCHAR)
SELECT COUNT(*) FROM tweets
What is the rating/share for episode 13?
CREATE TABLE table_name_72 (rating VARCHAR, episode__number VARCHAR)
SELECT rating / SHARE(18 AS –49) FROM table_name_72 WHERE episode__number = 13
What is the average Round, when Pick # is greater than 70, and when Position is Tackle?
CREATE TABLE table_name_22 (round INTEGER, pick__number VARCHAR, position VARCHAR)
SELECT AVG(round) FROM table_name_22 WHERE pick__number > 70 AND position = "tackle"
What are the date of ceremony of music festivals with category "Best Song" and result "Awarded"?
CREATE TABLE music_festival (Date_of_ceremony VARCHAR, Category VARCHAR, RESULT VARCHAR)
SELECT Date_of_ceremony FROM music_festival WHERE Category = "Best Song" AND RESULT = "Awarded"
What is the registration of the station at Cambridge?
CREATE TABLE table_name_67 (registrations VARCHAR, district VARCHAR)
SELECT registrations FROM table_name_67 WHERE district = "cambridge"
WHAT IS THE AVERAGE OVERALL WITH A ROUND LARGER THAN 9, AND RB POSITION?
CREATE TABLE table_name_85 (overall INTEGER, round VARCHAR, position VARCHAR)
SELECT AVG(overall) FROM table_name_85 WHERE round > 9 AND position = "rb"
What title was watched by 3.8 million US viewers?
CREATE TABLE table_26448179_3 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT title FROM table_26448179_3 WHERE us_viewers__millions_ = "3.8"
What was the first leg score in the 2nd round?
CREATE TABLE table_name_41 (first_leg VARCHAR, round VARCHAR)
SELECT first_leg FROM table_name_41 WHERE round = "2nd"
Who was the away team when Queensland Roar was the home team in the round less than 3?
CREATE TABLE table_name_80 (away_team VARCHAR, round VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_80 WHERE round < 3 AND home_team = "queensland roar"
What is the entry number on the list for Fairfield Moravian Church?
CREATE TABLE table_name_13 (list_entry_number VARCHAR, name VARCHAR)
SELECT list_entry_number FROM table_name_13 WHERE name = "fairfield moravian church"
What was the first airdate or the season that had less than 24 episodes and a Nielsen ranking of #38?
CREATE TABLE table_name_68 (first_airdate VARCHAR, episodes VARCHAR, nielsen_ranking VARCHAR)
SELECT first_airdate FROM table_name_68 WHERE episodes < 24 AND nielsen_ranking = "#38"
What is the name of the venue that away team footscray played at?
CREATE TABLE table_name_91 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_91 WHERE away_team = "footscray"
What is the name of the team from Stirling?
CREATE TABLE table_name_70 (team VARCHAR, home VARCHAR)
SELECT team FROM table_name_70 WHERE home = "stirling"
What is the mother tongue language shared by 300 people in 2006?
CREATE TABLE table_name_94 (mother_tongue VARCHAR, population__2006_ VARCHAR)
SELECT mother_tongue FROM table_name_94 WHERE population__2006_ = 300
What was the ladder position when the score was 15.9 (99)–14.6 (90)?
CREATE TABLE table_24919137_2 (ladder_position VARCHAR, score VARCHAR)
SELECT ladder_position FROM table_24919137_2 WHERE score = "15.9 (99)–14.6 (90)"
What is the enrollment for Ashland University?
CREATE TABLE table_261946_3 (enrollment VARCHAR, location__all_in_ohio_ VARCHAR)
SELECT enrollment FROM table_261946_3 WHERE location__all_in_ohio_ = "Ashland"
What is the number of podiums with 0 wins and 6 points?
CREATE TABLE table_name_16 (podiums VARCHAR, wins VARCHAR, points VARCHAR)
SELECT podiums FROM table_name_16 WHERE wins = "0" AND points = "6"
What round is sf/sg player sly williams from a year after 1965 from?
CREATE TABLE table_name_66 (round VARCHAR, player VARCHAR, position VARCHAR, year VARCHAR)
SELECT round FROM table_name_66 WHERE position = "sf/sg" AND year > 1965 AND player = "sly williams"
What is the rank when the col is larger than 0?
CREATE TABLE table_name_7 (rank VARCHAR, col__m_ INTEGER)
SELECT COUNT(rank) FROM table_name_7 WHERE col__m_ > 0
What is Italy's rank?
CREATE TABLE table_name_15 (rank VARCHAR, country VARCHAR)
SELECT rank FROM table_name_15 WHERE country = "italy"
How many silver medals does China have?
CREATE TABLE table_name_93 (silver VARCHAR, nation VARCHAR)
SELECT COUNT(silver) FROM table_name_93 WHERE nation = "china"
What is the before for the score of 63-67-66-71=267?
CREATE TABLE table_28498999_4 (before INTEGER, score VARCHAR)
SELECT MIN(before) FROM table_28498999_4 WHERE score = 63 - 67 - 66 - 71 = 267
What is every origin for the destination of Manchester?
CREATE TABLE table_3005999_1 (origin VARCHAR, destination VARCHAR)
SELECT origin FROM table_3005999_1 WHERE destination = "Manchester"
who made the recovers where the score is 12-30
CREATE TABLE table_13464416_6 (high_rebounds VARCHAR, record VARCHAR)
SELECT high_rebounds FROM table_13464416_6 WHERE record = "12-30"
List the area and county of all appelations.
CREATE TABLE APPELLATIONS (Area VARCHAR, County VARCHAR)
SELECT Area, County FROM APPELLATIONS
When was the status test match with an opposing team of south africa?
CREATE TABLE table_name_77 (date VARCHAR, status VARCHAR, opposing_teams VARCHAR)
SELECT date FROM table_name_77 WHERE status = "test match" AND opposing_teams = "south africa"