training_input
stringlengths
118
1.06k
###context:CREATE TABLE table_name_35 (mountain_range VARCHAR, rank VARCHAR) ###human: Which mountain range has a rank of 19? ###assistant: SELECT mountain_range FROM table_name_35 WHERE rank = 19
###context:CREATE TABLE table_name_41 (location VARCHAR, mountain_peak VARCHAR, mountain_range VARCHAR, rank VARCHAR) ###human: Which location includes Coast Mountains with a rank less than 18 at Skihist Mountain? ###assistant: SELECT location FROM table_name_41 WHERE mountain_range = "coast mountains" AND rank < 18 AND mountain_peak = "skihist mountain"
###context:CREATE TABLE table_name_64 (mountain_range VARCHAR, mountain_peak VARCHAR) ###human: Which mountain range includes Mount Hubbard? ###assistant: SELECT mountain_range FROM table_name_64 WHERE mountain_peak = "mount hubbard"
###context:CREATE TABLE table_name_25 (province VARCHAR, mountain_range VARCHAR) ###human: Which province includes Axel Heiberg Island? ###assistant: SELECT province FROM table_name_25 WHERE mountain_range = "axel heiberg island"
###context:CREATE TABLE table_name_94 (notes VARCHAR, position VARCHAR) ###human: What are the notes of events that finished in 12th position? ###assistant: SELECT notes FROM table_name_94 WHERE position = "12th"
###context:CREATE TABLE table_name_40 (venue VARCHAR, position VARCHAR, year VARCHAR) ###human: Which venue was finished in 2nd position in 1985? ###assistant: SELECT venue FROM table_name_40 WHERE position = "2nd" AND year = 1985
###context:CREATE TABLE table_name_97 (year INTEGER, venue VARCHAR) ###human: What is the average year of events that took place in Antwerp, Belgium? ###assistant: SELECT AVG(year) FROM table_name_97 WHERE venue = "antwerp, belgium"
###context:CREATE TABLE table_name_42 (year INTEGER, notes VARCHAR, venue VARCHAR) ###human: What's the year of the event that took place most recently in Antwerp, Belgium with team competition notes? ###assistant: SELECT MAX(year) FROM table_name_42 WHERE notes = "team competition" AND venue = "antwerp, belgium"
###context:CREATE TABLE table_name_76 (label VARCHAR, format VARCHAR, catalog VARCHAR) ###human: What was the label's format LP and catalog of CH-9192? ###assistant: SELECT label FROM table_name_76 WHERE format = "lp" AND catalog = "ch-9192"
###context:CREATE TABLE table_name_66 (date VARCHAR, catalog VARCHAR) ###human: When was Catalog CHD-9192 published? ###assistant: SELECT date FROM table_name_66 WHERE catalog = "chd-9192"
###context:CREATE TABLE table_name_64 (fcc_info VARCHAR, frequency_mhz VARCHAR) ###human: I need the FCC info on the radio Frequency MHz 107.5? ###assistant: SELECT fcc_info FROM table_name_64 WHERE frequency_mhz = 107.5
###context:CREATE TABLE table_name_28 (frequency_mhz VARCHAR, city_of_license VARCHAR) ###human: Give me the MHz Frequency of Allapattah, Florida. ###assistant: SELECT frequency_mhz FROM table_name_28 WHERE city_of_license = "allapattah, florida"
###context:CREATE TABLE table_name_10 (class VARCHAR, call_sign VARCHAR) ###human: What class does the w298ak sign belong to? ###assistant: SELECT class FROM table_name_10 WHERE call_sign = "w298ak"
###context:CREATE TABLE table_name_9 (class VARCHAR, erp_w VARCHAR) ###human: What class is ERP W of 800? ###assistant: SELECT class FROM table_name_9 WHERE erp_w = 800
###context:CREATE TABLE table_name_10 (goals_conceded INTEGER, points VARCHAR, lost VARCHAR) ###human: What is the total of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8? ###assistant: SELECT SUM(goals_conceded) FROM table_name_10 WHERE points < 21 AND lost < 8
###context:CREATE TABLE table_name_69 (lost INTEGER, place VARCHAR, points VARCHAR, draw VARCHAR) ###human: What's the total of Lost that's got Points larger than 28, Draw of 5, and Place that's smaller than 1? ###assistant: SELECT SUM(lost) FROM table_name_69 WHERE points > 28 AND draw = 5 AND place < 1
###context:CREATE TABLE table_name_40 (goals_scored INTEGER, points VARCHAR, team VARCHAR) ###human: What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa? ###assistant: SELECT SUM(goals_scored) FROM table_name_40 WHERE points < 27 AND team = "c.d. atlético balboa"
###context:CREATE TABLE table_name_9 (played INTEGER, place INTEGER) ###human: What is listed as the Highest Played and that has a Place that is larger than 10? ###assistant: SELECT MAX(played) FROM table_name_9 WHERE place > 10
###context:CREATE TABLE table_name_19 (played INTEGER, points VARCHAR, draw VARCHAR) ###human: What is listed as the Highest Played, has Points of 17, and Draw that is smaller than 5? ###assistant: SELECT MAX(played) FROM table_name_19 WHERE points = 17 AND draw < 5
###context:CREATE TABLE table_name_38 (date VARCHAR, score VARCHAR) ###human: When was the game that ended with a score of 6-4? ###assistant: SELECT date FROM table_name_38 WHERE score = "6-4"
###context:CREATE TABLE table_name_39 (score VARCHAR, date VARCHAR) ###human: What was the score on April 8? ###assistant: SELECT score FROM table_name_39 WHERE date = "april 8"
###context:CREATE TABLE table_name_12 (decision VARCHAR, home VARCHAR) ###human: What was the decision in Minnesota? ###assistant: SELECT decision FROM table_name_12 WHERE home = "minnesota"
###context:CREATE TABLE table_name_80 (score VARCHAR, record VARCHAR) ###human: Which score has a record of 58–15–8? ###assistant: SELECT score FROM table_name_80 WHERE record = "58–15–8"
###context:CREATE TABLE table_name_74 (section VARCHAR, season VARCHAR, level VARCHAR, position VARCHAR) ###human: Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season? ###assistant: SELECT section FROM table_name_74 WHERE level = "tier 3" AND position = "6th" AND season = "1937-38"
###context:CREATE TABLE table_name_8 (section VARCHAR, position VARCHAR) ###human: Which section is in the 6th position? ###assistant: SELECT section FROM table_name_8 WHERE position = "6th"
###context:CREATE TABLE table_name_92 (attendance VARCHAR, date VARCHAR) ###human: Name the attendance with date of june 11 ###assistant: SELECT attendance FROM table_name_92 WHERE date = "june 11"
###context:CREATE TABLE table_name_70 (partnerships VARCHAR, runs VARCHAR) ###human: Which partnership has a run number of 27? ###assistant: SELECT partnerships FROM table_name_70 WHERE runs = "27"
###context:CREATE TABLE table_name_79 (venue VARCHAR, partnerships VARCHAR) ###human: What venue did the parntership of shoaib malik / misbah-ul-haq occur? ###assistant: SELECT venue FROM table_name_79 WHERE partnerships = "shoaib malik / misbah-ul-haq"
###context:CREATE TABLE table_name_74 (venue VARCHAR, partnerships VARCHAR) ###human: What venue did the partnership of herschelle gibbs / justin kemp happen? ###assistant: SELECT venue FROM table_name_74 WHERE partnerships = "herschelle gibbs / justin kemp"
###context:CREATE TABLE table_name_77 (played VARCHAR, points_for VARCHAR) ###human: What is the number Played that has 310 Points for? ###assistant: SELECT played FROM table_name_77 WHERE points_for = "310"
###context:CREATE TABLE table_name_62 (losing_bonus VARCHAR, points_against VARCHAR) ###human: What Losing bonus has a Points against of 588? ###assistant: SELECT losing_bonus FROM table_name_62 WHERE points_against = "588"
###context:CREATE TABLE table_name_43 (tries_against VARCHAR, losing_bonus VARCHAR) ###human: What Tries against has a Losing bonus of 7? ###assistant: SELECT tries_against FROM table_name_43 WHERE losing_bonus = "7"
###context:CREATE TABLE table_name_61 (try_bonus VARCHAR, points_against VARCHAR) ###human: What Try bonus has a Points against of 488? ###assistant: SELECT try_bonus FROM table_name_61 WHERE points_against = "488"
###context:CREATE TABLE table_name_26 (points_for VARCHAR, try_bonus VARCHAR) ###human: What Points for has a Try bonus of 140? ###assistant: SELECT points_for FROM table_name_26 WHERE try_bonus = "140"
###context:CREATE TABLE table_name_90 (drawn VARCHAR, tries_against VARCHAR) ###human: What Drawn has a Tries against of 0? ###assistant: SELECT drawn FROM table_name_90 WHERE tries_against = "0"
###context:CREATE TABLE table_name_48 (days_held VARCHAR, reign VARCHAR, defenses VARCHAR) ###human: What is the days held the champion with a reign larger than 3 and 1 defense has? ###assistant: SELECT days_held FROM table_name_48 WHERE reign > 3 AND defenses = 1
###context:CREATE TABLE table_name_1 (days_held VARCHAR, reign VARCHAR, defenses VARCHAR) ###human: What is the days held the champion with a reign larger than 3 and less than 1 defense has? ###assistant: SELECT days_held FROM table_name_1 WHERE reign > 3 AND defenses < 1
###context:CREATE TABLE table_name_57 (defenses INTEGER, days_held VARCHAR, reign VARCHAR) ###human: What is the average defenses a champion with 404 days held and a reign larger than 1 has? ###assistant: SELECT AVG(defenses) FROM table_name_57 WHERE days_held = "404" AND reign > 1
###context:CREATE TABLE table_name_46 (defenses INTEGER, days_held VARCHAR) ###human: What is the lowest defense a champion with 345 days held has? ###assistant: SELECT MIN(defenses) FROM table_name_46 WHERE days_held = "345"
###context:CREATE TABLE table_name_6 (date VARCHAR, record VARCHAR) ###human: On what date was there a record of 76-72? ###assistant: SELECT date FROM table_name_6 WHERE record = "76-72"
###context:CREATE TABLE table_name_58 (attendance VARCHAR, loss VARCHAR) ###human: What was the attendance that had a loss of Ponson (1-5)? ###assistant: SELECT attendance FROM table_name_58 WHERE loss = "ponson (1-5)"
###context:CREATE TABLE table_name_70 (date VARCHAR, record VARCHAR) ###human: On which day was there a record of 36-39? ###assistant: SELECT date FROM table_name_70 WHERE record = "36-39"
###context:CREATE TABLE table_name_88 (date VARCHAR, record VARCHAR) ###human: On what day was the record 30-31? ###assistant: SELECT date FROM table_name_88 WHERE record = "30-31"
###context:CREATE TABLE table_name_82 (opponent VARCHAR, loss VARCHAR) ###human: Who was the opponent at the game that had a loss of Leonard (7–8)? ###assistant: SELECT opponent FROM table_name_82 WHERE loss = "leonard (7–8)"
###context:CREATE TABLE table_name_3 (score VARCHAR, record VARCHAR) ###human: What was the score of the game when the record was 18–43? ###assistant: SELECT score FROM table_name_3 WHERE record = "18–43"
###context:CREATE TABLE table_name_75 (score VARCHAR, opponent VARCHAR, record VARCHAR) ###human: What was the score of the game against the Royals when the record was 24–52? ###assistant: SELECT score FROM table_name_75 WHERE opponent = "royals" AND record = "24–52"
###context:CREATE TABLE table_name_36 (score VARCHAR, record VARCHAR) ###human: What was the score of the game when the record was 22–46? ###assistant: SELECT score FROM table_name_36 WHERE record = "22–46"
###context:CREATE TABLE table_name_51 (real_name VARCHAR, primary_military_speciality VARCHAR) ###human: What is the real name of the person whose primary military specialty is shock paratrooper? ###assistant: SELECT real_name FROM table_name_51 WHERE primary_military_speciality = "shock paratrooper"
###context:CREATE TABLE table_name_71 (birthplace VARCHAR, real_name VARCHAR) ###human: What is the birthplace of Pete Sanderson? ###assistant: SELECT birthplace FROM table_name_71 WHERE real_name = "pete sanderson"
###context:CREATE TABLE table_name_30 (function__figure_ VARCHAR, real_name VARCHAR) ###human: What role did Jean-Luc Bouvier serve? ###assistant: SELECT function__figure_ FROM table_name_30 WHERE real_name = "jean-luc bouvier"
###context:CREATE TABLE table_name_28 (real_name VARCHAR, function__figure_ VARCHAR) ###human: What is the real name of the person who is a pilot of the silent attack kayak? ###assistant: SELECT real_name FROM table_name_28 WHERE function__figure_ = "pilot of the silent attack kayak"
###context:CREATE TABLE table_name_94 (code_name VARCHAR, birthplace VARCHAR) ###human: What is the code name of the person born in Liverpool? ###assistant: SELECT code_name FROM table_name_94 WHERE birthplace = "liverpool"
###context:CREATE TABLE table_name_25 (name VARCHAR, sport VARCHAR) ###human: What is the names for the medalist in the sport of canoeing? ###assistant: SELECT name FROM table_name_25 WHERE sport = "canoeing"
###context:CREATE TABLE table_name_90 (games VARCHAR, event VARCHAR) ###human: What games had the women's half middleweight event? ###assistant: SELECT games FROM table_name_90 WHERE event = "women's half middleweight"
###context:CREATE TABLE table_name_95 (name VARCHAR, medal VARCHAR, games VARCHAR) ###human: Who received the bronze medal in the 2000 Sydney games? ###assistant: SELECT name FROM table_name_95 WHERE medal = "bronze" AND games = "2000 sydney"
###context:CREATE TABLE table_name_80 (attendance VARCHAR, opponent VARCHAR) ###human: How many people attended when opponent was twins? ###assistant: SELECT COUNT(attendance) FROM table_name_80 WHERE opponent = "twins"
###context:CREATE TABLE table_name_55 (date VARCHAR, record VARCHAR) ###human: Which date has a Record of 41-46? ###assistant: SELECT date FROM table_name_55 WHERE record = "41-46"
###context:CREATE TABLE table_name_66 (score VARCHAR, record VARCHAR) ###human: Which score has a Record of 48-55? ###assistant: SELECT score FROM table_name_66 WHERE record = "48-55"
###context:CREATE TABLE table_name_96 (score VARCHAR, record VARCHAR) ###human: Which score has a Record of 44-49? ###assistant: SELECT score FROM table_name_96 WHERE record = "44-49"
###context:CREATE TABLE table_name_92 (score VARCHAR, opponent VARCHAR, record VARCHAR) ###human: Which score has an Opponent of white sox, and a Record of 2-0? ###assistant: SELECT score FROM table_name_92 WHERE opponent = "white sox" AND record = "2-0"
###context:CREATE TABLE table_name_94 (popular_votes INTEGER, candidate VARCHAR) ###human: How many votes did candice sjostrom receive? ###assistant: SELECT AVG(popular_votes) FROM table_name_94 WHERE candidate = "candice sjostrom"
###context:CREATE TABLE table_name_23 (percentage VARCHAR, candidate VARCHAR) ###human: What percentage did chris wright receive? ###assistant: SELECT percentage FROM table_name_23 WHERE candidate = "chris wright"
###context:CREATE TABLE table_name_2 (popular_votes INTEGER, year VARCHAR, office VARCHAR, percentage VARCHAR) ###human: How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4? ###assistant: SELECT AVG(popular_votes) FROM table_name_2 WHERE office = "us representative 4" AND percentage = "1.59%" AND year > 1992
###context:CREATE TABLE table_name_36 (years VARCHAR, representative VARCHAR) ###human: What years did J. Smith Young serve as a Representative? ###assistant: SELECT years FROM table_name_36 WHERE representative = "j. smith young"
###context:CREATE TABLE table_name_58 (party VARCHAR, representative VARCHAR) ###human: Which party did Thomas L. Young belong to? ###assistant: SELECT party FROM table_name_58 WHERE representative = "thomas l. young"
###context:CREATE TABLE table_name_57 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR) ###human: What is the lowest total amount of medals from countries with 0 gold medals, more than 2 bronze medals, and more than 1 silver medal? ###assistant: SELECT MIN(total) FROM table_name_57 WHERE gold = 0 AND bronze > 2 AND silver > 1
###context:CREATE TABLE table_name_66 (silver INTEGER, rank VARCHAR, total VARCHAR) ###human: What is the total number of silver medals for countries of rank 14, with less than 1 total medals? ###assistant: SELECT SUM(silver) FROM table_name_66 WHERE rank = "14" AND total < 1
###context:CREATE TABLE table_name_96 (total VARCHAR, fumble_rec VARCHAR, fumble_force VARCHAR) ###human: How many tackles for the player with over 0 fumble recovries and 0 forced fumbles? ###assistant: SELECT COUNT(total) FROM table_name_96 WHERE fumble_rec > 0 AND fumble_force = 0
###context:CREATE TABLE table_name_20 (fumble_force VARCHAR, solo VARCHAR, player VARCHAR) ###human: How many forced fumbles for jim laney with under 2 solo tackles? ###assistant: SELECT COUNT(fumble_force) FROM table_name_20 WHERE solo < 2 AND player = "jim laney"
###context:CREATE TABLE table_name_31 (total INTEGER, solo INTEGER) ###human: What is the high total for players with over 15 solo tackles? ###assistant: SELECT MAX(total) FROM table_name_31 WHERE solo > 15
###context:CREATE TABLE table_name_65 (fumble_rec INTEGER, solo VARCHAR, player VARCHAR, sacks VARCHAR, fumble_force VARCHAR) ###human: How many fumble recoveries for scott gajos with 0 forced fubmles, 0 sacks, and under 2 solo tackles? ###assistant: SELECT SUM(fumble_rec) FROM table_name_65 WHERE sacks = "0" AND fumble_force = "0" AND player = "scott gajos" AND solo < 2
###context:CREATE TABLE table_name_64 (opponent VARCHAR, time VARCHAR, ground VARCHAR) ###human: Who is the Opponent playing at 20:00 GMT at Camp Nou? ###assistant: SELECT opponent FROM table_name_64 WHERE time = "20:00 gmt" AND ground = "camp nou"
###context:CREATE TABLE table_name_35 (time VARCHAR, score VARCHAR) ###human: What time was the match played with a score of 3-2? ###assistant: SELECT time FROM table_name_35 WHERE score = "3-2"
###context:CREATE TABLE table_name_83 (ground VARCHAR, opponent VARCHAR) ###human: On which ground did the team play Aston Villa? ###assistant: SELECT ground FROM table_name_83 WHERE opponent = "aston villa"
###context:CREATE TABLE table_name_60 (competition VARCHAR, ground VARCHAR, time VARCHAR) ###human: What kind of competition was it at San Siro at 18:30 GMT? ###assistant: SELECT competition FROM table_name_60 WHERE ground = "san siro" AND time = "18:30 gmt"
###context:CREATE TABLE table_name_34 (decile VARCHAR, name VARCHAR) ###human: What is the total number of decile for the redwood school locality? ###assistant: SELECT COUNT(decile) FROM table_name_34 WHERE name = "redwood school"
###context:CREATE TABLE table_name_71 (report VARCHAR, circuit VARCHAR) ###human: Which report includes a Circuit of Tripoli? ###assistant: SELECT report FROM table_name_71 WHERE circuit = "tripoli"