question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the round for the Norisring circuit?
CREATE TABLE table_name_43 (round INTEGER, circuit VARCHAR)
SELECT AVG(round) FROM table_name_43 WHERE circuit = "norisring"
Which country has the Highest mountain of rettlkirchspitze?
CREATE TABLE table_name_68 (country VARCHAR, highest_mountain VARCHAR)
SELECT country FROM table_name_68 WHERE highest_mountain = "rettlkirchspitze"
How many highest figures for the team with lowest of 16415?
CREATE TABLE table_2472711_31 (highest VARCHAR, lowest VARCHAR)
SELECT COUNT(highest) FROM table_2472711_31 WHERE lowest = 16415
Which Rank that a Name of thomas morgenstern, and Points larger than 288.7?
CREATE TABLE table_name_29 (rank INTEGER, name VARCHAR, points VARCHAR)
SELECT SUM(rank) FROM table_name_29 WHERE name = "thomas morgenstern" AND points > 288.7
What was the air date when the team guest captain was john bishop?
CREATE TABLE table_25816476_2 (air_date VARCHAR, team_guest_captain VARCHAR)
SELECT air_date FROM table_25816476_2 WHERE team_guest_captain = "John Bishop"
Who was the mens doubles when womens singles is mette sørensen?
CREATE TABLE table_12171145_1 (mens_doubles VARCHAR, womens_singles VARCHAR)
SELECT mens_doubles FROM table_12171145_1 WHERE womens_singles = "Mette Sørensen"
Who was the turbine manufacturer for the Wheatland county?
CREATE TABLE table_24837750_1 (turbine_manufacturer VARCHAR, county VARCHAR)
SELECT turbine_manufacturer FROM table_24837750_1 WHERE county = "Wheatland"
What is Place, when Player is "Tony Lema"?
CREATE TABLE table_name_93 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_93 WHERE player = "tony lema"
list all the names of programs, ordering by launch time.
CREATE TABLE program (name VARCHAR, launch VARCHAR)
SELECT name FROM program ORDER BY launch
What is the sum of all gold medals for Algeria when total medals is less than 3?
CREATE TABLE table_name_98 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT SUM(gold) FROM table_name_98 WHERE nation = "algeria" AND total < 3
What institution is located in St. Peter?
CREATE TABLE table_261913_1 (institution VARCHAR, location__all_in_minnesota_ VARCHAR)
SELECT institution FROM table_261913_1 WHERE location__all_in_minnesota_ = "St. Peter"
What is the lowest number of FA cups associated with 0 malaysia cups?
CREATE TABLE table_name_69 (fa_cup INTEGER, malaysia_cup INTEGER)
SELECT MIN(fa_cup) FROM table_name_69 WHERE malaysia_cup < 0
What is the notes for the team from Denmark?
CREATE TABLE table_name_48 (notes VARCHAR, country VARCHAR)
SELECT notes FROM table_name_48 WHERE country = "denmark"
which year holds rank 2?
CREATE TABLE table_name_89 (year INTEGER, rank VARCHAR)
SELECT MAX(year) FROM table_name_89 WHERE rank = "2"
What is the pole position for the race with the fastest lap by Nelson Piquet and the constructor is Ferrari?
CREATE TABLE table_1140076_2 (pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)
SELECT pole_position FROM table_1140076_2 WHERE fastest_lap = "Nelson Piquet" AND constructor = "Ferrari"
What was the score on 15 march 2006?
CREATE TABLE table_name_85 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_85 WHERE date = "15 march 2006"
What is the sSpec Number of the model with a 1ghz frequency?
CREATE TABLE table_name_52 (sspec_number VARCHAR, frequency VARCHAR)
SELECT sspec_number FROM table_name_52 WHERE frequency = "1ghz"
Where is Bloomington High School North?
CREATE TABLE table_1984697_53 (city___town VARCHAR, school VARCHAR)
SELECT city___town FROM table_1984697_53 WHERE school = "Bloomington High school North"
Name the team for week 1 of 28
CREATE TABLE table_name_88 (team VARCHAR, week_1 VARCHAR)
SELECT team FROM table_name_88 WHERE week_1 = "28"
What are the smallest goals with wins smaller than 16, and a Draws larger than 14?
CREATE TABLE table_name_48 (goals_against INTEGER, wins VARCHAR, draws VARCHAR)
SELECT MIN(goals_against) FROM table_name_48 WHERE wins < 16 AND draws > 14
Who is man of the match for match number 5?
CREATE TABLE table_17103566_1 (man_of_the_match VARCHAR, match_number VARCHAR)
SELECT man_of_the_match FROM table_17103566_1 WHERE match_number = 5
Which Attendance has an Opponent of pittsburgh pirates, and a Date of may 5?
CREATE TABLE table_name_32 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_32 WHERE opponent = "pittsburgh pirates" AND date = "may 5"
What position is played by pick 255 overall?
CREATE TABLE table_10360823_1 (position VARCHAR, overall VARCHAR)
SELECT position FROM table_10360823_1 WHERE overall = 255
What is the High rebounds of a Game with 56?
CREATE TABLE table_name_70 (high_rebounds VARCHAR, game VARCHAR)
SELECT high_rebounds FROM table_name_70 WHERE game = 56
What are all the reports where Paul Tracy had the fastest lap?
CREATE TABLE table_11056278_3 (report VARCHAR, fastest_lap VARCHAR)
SELECT report FROM table_11056278_3 WHERE fastest_lap = "Paul Tracy"
When the % change is 8.4, what is the population rank?
CREATE TABLE table_1425958_1 (population_rank INTEGER, _percentage_change VARCHAR)
SELECT MIN(population_rank) FROM table_1425958_1 WHERE _percentage_change = "8.4"
What MLS team is affiliated with yale university?
CREATE TABLE table_name_97 (mls_team VARCHAR, affiliation VARCHAR)
SELECT mls_team FROM table_name_97 WHERE affiliation = "yale university"
When allen/moore/wyatt – 4 have the highest amount of assists what is the highest game?
CREATE TABLE table_29556461_8 (game INTEGER, high_assists VARCHAR)
SELECT MAX(game) FROM table_29556461_8 WHERE high_assists = "Allen/Moore/Wyatt – 4"
How many different years was the name/designation cetme?
CREATE TABLE table_26389588_1 (year_of_introduction VARCHAR, name___designation VARCHAR)
SELECT COUNT(year_of_introduction) FROM table_26389588_1 WHERE name___designation = "CETME"
Who is from Spain with a to par of e?
CREATE TABLE table_name_11 (player VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT player FROM table_name_11 WHERE to_par = "e" AND country = "spain"
What is the story code of the story published on 2002-12?
CREATE TABLE table_name_38 (story VARCHAR, date VARCHAR)
SELECT story AS code FROM table_name_38 WHERE date = "2002-12"
Who is the leading scorer when they were at home of the Clippers?
CREATE TABLE table_name_51 (leading_scorer VARCHAR, home VARCHAR)
SELECT leading_scorer FROM table_name_51 WHERE home = "clippers"
How many Seat Orders (Right to Left) have a Series 3 of deborah meaden?
CREATE TABLE table_name_83 (seat_order__right_to_left_ VARCHAR, series_3 VARCHAR)
SELECT COUNT(seat_order__right_to_left_) FROM table_name_83 WHERE series_3 = "deborah meaden"
Can you tell me the Time that has the Lane of 8?
CREATE TABLE table_name_35 (time VARCHAR, lane VARCHAR)
SELECT time FROM table_name_35 WHERE lane = 8
Who won gold when the world championships were held in Phoenix?
CREATE TABLE table_name_21 (gold VARCHAR, place VARCHAR)
SELECT gold FROM table_name_21 WHERE place = "phoenix"
Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4?
CREATE TABLE table_name_32 (drawn INTEGER, lost VARCHAR, points VARCHAR)
SELECT MIN(drawn) FROM table_name_32 WHERE lost = 5 AND points > 4
WHAT IS THE TOTAL AVERAGE WITH A PLACE SMALLER THAN 1?
CREATE TABLE table_name_53 (average VARCHAR, place INTEGER)
SELECT COUNT(average) FROM table_name_53 WHERE place < 1
How many attendances have October 30, 1977 as the date, with a week greater than 7?
CREATE TABLE table_name_16 (attendance VARCHAR, date VARCHAR, week VARCHAR)
SELECT COUNT(attendance) FROM table_name_16 WHERE date = "october 30, 1977" AND week > 7
What was the Result on Week 8?
CREATE TABLE table_name_50 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_50 WHERE week = 8
What is the surface of the mountain range that contains the Elk Garden Mountain?
CREATE TABLE table_name_38 (surface VARCHAR, mountain VARCHAR)
SELECT surface FROM table_name_38 WHERE mountain = "elk garden"
Which College/Junior/Club Team (League) did the player julien cayer who was selected before round 3 play for?
CREATE TABLE table_name_87 (college_junior_club_team__league_ VARCHAR, round VARCHAR, player VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_87 WHERE round > 3 AND player = "julien cayer"
What position went lower than 106 from the College of Virginia?
CREATE TABLE table_name_10 (position VARCHAR, overall VARCHAR, college VARCHAR)
SELECT position FROM table_name_10 WHERE overall < 106 AND college = "virginia"
What is the part 3 entry that has a part 4 entry of giboran?
CREATE TABLE table_name_31 (part_3 VARCHAR, part_4 VARCHAR)
SELECT part_3 FROM table_name_31 WHERE part_4 = "giboran"
Which name has a Lane of 7?
CREATE TABLE table_name_79 (name VARCHAR, lane VARCHAR)
SELECT name FROM table_name_79 WHERE lane = 7
Which Total has an FA Cup goals of 1, and a League goals of 4 + 7?
CREATE TABLE table_name_23 (total INTEGER, fa_cup_goals VARCHAR, league_goals VARCHAR)
SELECT AVG(total) FROM table_name_23 WHERE fa_cup_goals = "1" AND league_goals = "4 + 7"
What department has an m.phil (physics) qualification?
CREATE TABLE table_name_25 (department VARCHAR, qualification VARCHAR)
SELECT department FROM table_name_25 WHERE qualification = "m.phil (physics)"
What is the stadium for alloa athletic?
CREATE TABLE table_11206787_5 (stadium VARCHAR, team VARCHAR)
SELECT stadium FROM table_11206787_5 WHERE team = "Alloa Athletic"
What is Date, when Opponent is @ Carolina Hurricanes?
CREATE TABLE table_name_84 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_84 WHERE opponent = "@ carolina hurricanes"
Name the current club for number 6
CREATE TABLE table_12962773_13 (current_club VARCHAR, no VARCHAR)
SELECT current_club FROM table_12962773_13 WHERE no = 6
Which region has and eyeball label and catalogue 7200222?
CREATE TABLE table_name_23 (region VARCHAR, label VARCHAR, catalogue VARCHAR)
SELECT region FROM table_name_23 WHERE label = "eyeball" AND catalogue = "7200222"
Who is the director of Antz?
CREATE TABLE table_name_35 (director VARCHAR, title VARCHAR)
SELECT director FROM table_name_35 WHERE title = "antz"
When the Gain is 29, and the average per game is 2, and the player lost less than 390 yards, what's the sum of the Long yards?
CREATE TABLE table_name_26 (long INTEGER, gain VARCHAR, loss VARCHAR, avg_g VARCHAR)
SELECT SUM(long) FROM table_name_26 WHERE loss < 390 AND avg_g = 2 AND gain > 29
What was the venue of the 400 M Hurdles for the Olympic Games?
CREATE TABLE table_name_35 (venue VARCHAR, event VARCHAR, tournament VARCHAR)
SELECT venue FROM table_name_35 WHERE event = "400 m hurdles" AND tournament = "olympic games"
How many results are listed for shot PCT Where PA is 79?
CREATE TABLE table_25381437_2 (shot_pct VARCHAR, pa VARCHAR)
SELECT COUNT(shot_pct) FROM table_25381437_2 WHERE pa = 79
How many eviction results occurred with a eviction no. 12 and a vote to save of 2.76%?
CREATE TABLE table_15162479_8 (eviction_result VARCHAR, eviction_no VARCHAR, vote_to_save VARCHAR)
SELECT COUNT(eviction_result) FROM table_15162479_8 WHERE eviction_no = 12 AND vote_to_save = "2.76%"
What is the Label of the release on Stereo vinyl LP with Catalog number SF-7635?
CREATE TABLE table_name_75 (label VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT label FROM table_name_75 WHERE format = "stereo vinyl lp" AND catalog = "sf-7635"
What is the finishing position for the person who had a grid of 3?
CREATE TABLE table_name_44 (fin_pos VARCHAR, grid VARCHAR)
SELECT fin_pos FROM table_name_44 WHERE grid = "3"
List the name, location, mascot for all schools.
CREATE TABLE school (school_name VARCHAR, LOCATION VARCHAR, mascot VARCHAR)
SELECT school_name, LOCATION, mascot FROM school
Result of missed*, and a Game time of 2nd quarter (0:00), and a Kicker of mason crosby involves what date?
CREATE TABLE table_name_3 (date VARCHAR, kicker VARCHAR, result VARCHAR, game_time VARCHAR)
SELECT date FROM table_name_3 WHERE result = "missed*" AND game_time = "2nd quarter (0:00)" AND kicker = "mason crosby"
Who owns the fm 101.3 frequency?
CREATE TABLE table_name_96 (owner VARCHAR, frequency VARCHAR)
SELECT owner FROM table_name_96 WHERE frequency = "fm 101.3"
Name the regular season for final playoffs
CREATE TABLE table_2361911_2 (regular_season VARCHAR, playoffs VARCHAR)
SELECT regular_season FROM table_2361911_2 WHERE playoffs = "Final"
Which Romaji Title has a Japanese Title of 花より男子2(リターンズ)?
CREATE TABLE table_name_78 (romaji_title VARCHAR, japanese_title VARCHAR)
SELECT romaji_title FROM table_name_78 WHERE japanese_title = "花より男子2(リターンズ)"
What was the game on April 25?
CREATE TABLE table_name_88 (game INTEGER, date VARCHAR)
SELECT MIN(game) FROM table_name_88 WHERE date = "april 25"
What is the try BP when the losing BP is 4 and the club is Bargoed RFC?
CREATE TABLE table_name_82 (try_bp VARCHAR, losing_bp VARCHAR, club VARCHAR)
SELECT try_bp FROM table_name_82 WHERE losing_bp = "4" AND club = "bargoed rfc"
Which 2010 has a 2006 of w?
CREATE TABLE table_name_51 (Id VARCHAR)
SELECT 2010 FROM table_name_51 WHERE 2006 = "w"
How many Points have an Opponent of @ los angeles kings and a Game larger than 4?
CREATE TABLE table_name_89 (points INTEGER, opponent VARCHAR, game VARCHAR)
SELECT AVG(points) FROM table_name_89 WHERE opponent = "@ los angeles kings" AND game > 4
Which Record label has an Album of rambo?
CREATE TABLE table_name_63 (record_label VARCHAR, album VARCHAR)
SELECT record_label FROM table_name_63 WHERE album = "rambo"
How many positions have goals of fewer than 40 and more than 38 played?
CREATE TABLE table_name_62 (position VARCHAR, goals_for VARCHAR, played VARCHAR)
SELECT COUNT(position) FROM table_name_62 WHERE goals_for < 40 AND played > 38
Name the common name for chironius multiventris septentrionalis
CREATE TABLE table_1850282_7 (common_name VARCHAR, species VARCHAR)
SELECT common_name FROM table_1850282_7 WHERE species = "Chironius multiventris septentrionalis"
Which settlement has the cyrillic name сигет?
CREATE TABLE table_2562572_30 (settlement VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT settlement FROM table_2562572_30 WHERE cyrillic_name_other_names = "Сигет"
Tell me the elevation for oslo
CREATE TABLE table_name_20 (elevation VARCHAR, county VARCHAR)
SELECT elevation FROM table_name_20 WHERE county = "oslo"
Name the partnering for round sf
CREATE TABLE table_22825058_23 (partnering VARCHAR, round VARCHAR)
SELECT partnering FROM table_22825058_23 WHERE round = "SF"
What was the total viewership for BBC One weekly rankings larger than 7, before episode 4?
CREATE TABLE table_name_30 (total_viewers VARCHAR, bbc_one_weekly_ranking VARCHAR, episode_no VARCHAR)
SELECT total_viewers FROM table_name_30 WHERE bbc_one_weekly_ranking > 7 AND episode_no < 4
Name the standard yarn weight system for 7 wpi
CREATE TABLE table_20297668_1 (standard_yarn_weight_system VARCHAR, wraps_per_inch__wpi_ VARCHAR)
SELECT standard_yarn_weight_system FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = "7 wpi"
If the quarterfinals was nabil talal ( jor ) l pts 3-3, who was the athlete?
CREATE TABLE table_26335424_86 (athlete VARCHAR, quarterfinals VARCHAR)
SELECT athlete FROM table_26335424_86 WHERE quarterfinals = "Nabil Talal ( JOR ) L PTS 3-3"
How long was his fight against kim kyoung-suk?
CREATE TABLE table_name_27 (time VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_27 WHERE opponent = "kim kyoung-suk"
Which ranking has money of $82 and Al Watrous as the player?
CREATE TABLE table_name_64 (place VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT place FROM table_name_64 WHERE money___$__ = 82 AND player = "al watrous"
Who was skip for the country whose points for (PF) was 73?
CREATE TABLE table_1644857_2 (skip VARCHAR, pf VARCHAR)
SELECT skip FROM table_1644857_2 WHERE pf = 73
Which frequency is located in Dagupan?
CREATE TABLE table_name_23 (frequency VARCHAR, location VARCHAR)
SELECT frequency FROM table_name_23 WHERE location = "dagupan"
How many gold have a Rank of 7, and a Bronze of 1, and a Silver smaller than 0?
CREATE TABLE table_name_29 (gold INTEGER, silver VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_29 WHERE rank = 7 AND bronze = 1 AND silver < 0
How many games had they won or lost in a row on May 9?
CREATE TABLE table_30047613_13 (streak VARCHAR, date VARCHAR)
SELECT streak FROM table_30047613_13 WHERE date = "May 9"
What date had the Houston Texans as visitors?
CREATE TABLE table_name_75 (date VARCHAR, visiting_team VARCHAR)
SELECT date FROM table_name_75 WHERE visiting_team = "houston texans"
What is the total salary paid by team Boston Red Stockings in 2010?
CREATE TABLE salary (salary INTEGER, team_id VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
SELECT SUM(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010
In what round did someone from North Carolina State get picked larger than 91?
CREATE TABLE table_name_99 (round VARCHAR, school_club_team VARCHAR, pick VARCHAR)
SELECT COUNT(round) FROM table_name_99 WHERE school_club_team = "north carolina state" AND pick > 91
Who won when np cooper av cooke was runner up?
CREATE TABLE table_name_34 (winners VARCHAR, runners_up VARCHAR)
SELECT winners FROM table_name_34 WHERE runners_up = "np cooper av cooke"
Who was the opponent before 1990 that had a score of 4–6, 6–3, 6–4 and Partnering of Yannick Noah?
CREATE TABLE table_name_48 (opponent_in_the_final VARCHAR, score VARCHAR, date VARCHAR, partnering VARCHAR)
SELECT opponent_in_the_final FROM table_name_48 WHERE date < 1990 AND partnering = "yannick noah" AND score = "4–6, 6–3, 6–4"
What did Hawthorn score as the home team?
CREATE TABLE table_name_21 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_21 WHERE home_team = "hawthorn"
Which Inflation Index (2000=100) has a Per Capita Income (as % of USA) of 10.65, and a Year smaller than 1990?
CREATE TABLE table_name_67 (inflation_index__2000 INTEGER, per_capita_income__as__percentage_of_usa_ VARCHAR, year VARCHAR)
SELECT MAX(inflation_index__2000) = 100 AS _ FROM table_name_67 WHERE per_capita_income__as__percentage_of_usa_ = 10.65 AND year < 1990
How many games were played in park "Columbia Park" in 1907?
CREATE TABLE park (park_id VARCHAR, park_name VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR)
SELECT COUNT(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park'
What year had a score of 6–2, 2–6, 5–7, 7–6, 8–6?
CREATE TABLE table_name_58 (year VARCHAR, score VARCHAR)
SELECT year FROM table_name_58 WHERE score = "6–2, 2–6, 5–7, 7–6, 8–6"
what team had the 1:44.027 qual 2?
CREATE TABLE table_name_82 (team VARCHAR, qual_2 VARCHAR)
SELECT team FROM table_name_82 WHERE qual_2 = "1:44.027"
How many people were at the match on July 13/
CREATE TABLE table_name_66 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_66 WHERE date = "july 13"
What college team did the pick for Pittsburgh Penguins come from?
CREATE TABLE table_2781227_7 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT college_junior_club_team FROM table_2781227_7 WHERE nhl_team = "Pittsburgh Penguins"
Which Year has a Reg Season of 3rd, western?
CREATE TABLE table_name_9 (year INTEGER, reg_season VARCHAR)
SELECT AVG(year) FROM table_name_9 WHERE reg_season = "3rd, western"
What is the date for the tooheys 1000?
CREATE TABLE table_name_44 (date VARCHAR, series VARCHAR)
SELECT date FROM table_name_44 WHERE series = "tooheys 1000"
Who is the 92.5 with the press 282.5?
CREATE TABLE table_name_44 (press VARCHAR)
SELECT 925 FROM table_name_44 WHERE press = "282.5"
What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi?
CREATE TABLE table_name_48 (genre VARCHAR, role VARCHAR, original_title VARCHAR)
SELECT genre FROM table_name_48 WHERE role = "episode actor" AND original_title = "franciska vasárnapjai (hungarian)"
What is the Heat of the 34 Rank swimmer with a Time of 49.49 or less?
CREATE TABLE table_name_97 (heat INTEGER, rank VARCHAR, time VARCHAR)
SELECT AVG(heat) FROM table_name_97 WHERE rank = 34 AND time < 49.49
Provide me with the name of all the village (German) that are part of the village (Slovenian) with sele borovnica.
CREATE TABLE table_10798421_1 (village__german_ VARCHAR, village__slovenian_ VARCHAR)
SELECT village__german_ FROM table_10798421_1 WHERE village__slovenian_ = "Sele Borovnica"
Name the least wins
CREATE TABLE table_14911550_1 (wins INTEGER)
SELECT MIN(wins) FROM table_14911550_1