instruction
stringlengths 67
299
| input
stringlengths 88
550
| output
stringlengths 32
484
|
---|---|---|
Write a SQL query that answers the following question: What was the decision in Minnesota? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (decision VARCHAR, home VARCHAR) | SELECT decision FROM table_name_12 WHERE home = "minnesota" |
Write a SQL query that answers the following question: Which score has a record of 58β15β8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_80 WHERE record = "58β15β8" |
Write a SQL query that answers the following question: Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (section VARCHAR, season VARCHAR, level VARCHAR, position VARCHAR) | SELECT section FROM table_name_74 WHERE level = "tier 3" AND position = "6th" AND season = "1937-38" |
Write a SQL query that answers the following question: Which section is in the 6th position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (section VARCHAR, position VARCHAR) | SELECT section FROM table_name_8 WHERE position = "6th" |
Write a SQL query that answers the following question: Name the attendance with date of june 11 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_92 WHERE date = "june 11" |
Write a SQL query that answers the following question: Which partnership has a run number of 27? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (partnerships VARCHAR, runs VARCHAR) | SELECT partnerships FROM table_name_70 WHERE runs = "27" |
Write a SQL query that answers the following question: What venue did the parntership of shoaib malik / misbah-ul-haq occur? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (venue VARCHAR, partnerships VARCHAR) | SELECT venue FROM table_name_79 WHERE partnerships = "shoaib malik / misbah-ul-haq" |
Write a SQL query that answers the following question: What venue did the partnership of herschelle gibbs / justin kemp happen? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (venue VARCHAR, partnerships VARCHAR) | SELECT venue FROM table_name_74 WHERE partnerships = "herschelle gibbs / justin kemp" |
Write a SQL query that answers the following question: What is the number Played that has 310 Points for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (played VARCHAR, points_for VARCHAR) | SELECT played FROM table_name_77 WHERE points_for = "310" |
Write a SQL query that answers the following question: What Losing bonus has a Points against of 588? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (losing_bonus VARCHAR, points_against VARCHAR) | SELECT losing_bonus FROM table_name_62 WHERE points_against = "588" |
Write a SQL query that answers the following question: What Tries against has a Losing bonus of 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (tries_against VARCHAR, losing_bonus VARCHAR) | SELECT tries_against FROM table_name_43 WHERE losing_bonus = "7" |
Write a SQL query that answers the following question: What Try bonus has a Points against of 488? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (try_bonus VARCHAR, points_against VARCHAR) | SELECT try_bonus FROM table_name_61 WHERE points_against = "488" |
Write a SQL query that answers the following question: What Points for has a Try bonus of 140? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (points_for VARCHAR, try_bonus VARCHAR) | SELECT points_for FROM table_name_26 WHERE try_bonus = "140" |
Write a SQL query that answers the following question: What Drawn has a Tries against of 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (drawn VARCHAR, tries_against VARCHAR) | SELECT drawn FROM table_name_90 WHERE tries_against = "0" |
Write a SQL query that answers the following question: What is the days held the champion with a reign larger than 3 and 1 defense has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (days_held VARCHAR, reign VARCHAR, defenses VARCHAR) | SELECT days_held FROM table_name_48 WHERE reign > 3 AND defenses = 1 |
Write a SQL query that answers the following question: What is the days held the champion with a reign larger than 3 and less than 1 defense has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (days_held VARCHAR, reign VARCHAR, defenses VARCHAR) | SELECT days_held FROM table_name_1 WHERE reign > 3 AND defenses < 1 |
Write a SQL query that answers the following question: What is the average defenses a champion with 404 days held and a reign larger than 1 has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (defenses INTEGER, days_held VARCHAR, reign VARCHAR) | SELECT AVG(defenses) FROM table_name_57 WHERE days_held = "404" AND reign > 1 |
Write a SQL query that answers the following question: What is the lowest defense a champion with 345 days held has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (defenses INTEGER, days_held VARCHAR) | SELECT MIN(defenses) FROM table_name_46 WHERE days_held = "345" |
Write a SQL query that answers the following question: On what date was there a record of 76-72? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_6 WHERE record = "76-72" |
Write a SQL query that answers the following question: What was the attendance that had a loss of Ponson (1-5)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (attendance VARCHAR, loss VARCHAR) | SELECT attendance FROM table_name_58 WHERE loss = "ponson (1-5)" |
Write a SQL query that answers the following question: On which day was there a record of 36-39? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_70 WHERE record = "36-39" |
Write a SQL query that answers the following question: On what day was the record 30-31? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_88 WHERE record = "30-31" |
Write a SQL query that answers the following question: Who was the opponent at the game that had a loss of Leonard (7β8)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (opponent VARCHAR, loss VARCHAR) | SELECT opponent FROM table_name_82 WHERE loss = "leonard (7β8)" |
Write a SQL query that answers the following question: What was the score of the game when the record was 18β43? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_3 WHERE record = "18β43" |
Write a SQL query that answers the following question: What was the score of the game against the Royals when the record was 24β52? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (score VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT score FROM table_name_75 WHERE opponent = "royals" AND record = "24β52" |
Write a SQL query that answers the following question: What was the score of the game when the record was 22β46? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_36 WHERE record = "22β46" |
Write a SQL query that answers the following question: What is the real name of the person whose primary military specialty is shock paratrooper? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (real_name VARCHAR, primary_military_speciality VARCHAR) | SELECT real_name FROM table_name_51 WHERE primary_military_speciality = "shock paratrooper" |
Write a SQL query that answers the following question: What is the birthplace of Pete Sanderson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (birthplace VARCHAR, real_name VARCHAR) | SELECT birthplace FROM table_name_71 WHERE real_name = "pete sanderson" |
Write a SQL query that answers the following question: What role did Jean-Luc Bouvier serve? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (function__figure_ VARCHAR, real_name VARCHAR) | SELECT function__figure_ FROM table_name_30 WHERE real_name = "jean-luc bouvier" |
Write a SQL query that answers the following question: What is the real name of the person who is a pilot of the silent attack kayak? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (real_name VARCHAR, function__figure_ VARCHAR) | SELECT real_name FROM table_name_28 WHERE function__figure_ = "pilot of the silent attack kayak" |
Write a SQL query that answers the following question: What is the code name of the person born in Liverpool? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (code_name VARCHAR, birthplace VARCHAR) | SELECT code_name FROM table_name_94 WHERE birthplace = "liverpool" |
Write a SQL query that answers the following question: What is the names for the medalist in the sport of canoeing? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (name VARCHAR, sport VARCHAR) | SELECT name FROM table_name_25 WHERE sport = "canoeing" |
Write a SQL query that answers the following question: What games had the women's half middleweight event? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (games VARCHAR, event VARCHAR) | SELECT games FROM table_name_90 WHERE event = "women's half middleweight" |
Write a SQL query that answers the following question: Who received the bronze medal in the 2000 Sydney games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (name VARCHAR, medal VARCHAR, games VARCHAR) | SELECT name FROM table_name_95 WHERE medal = "bronze" AND games = "2000 sydney" |
Write a SQL query that answers the following question: How many people attended when opponent was twins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (attendance VARCHAR, opponent VARCHAR) | SELECT COUNT(attendance) FROM table_name_80 WHERE opponent = "twins" |
Write a SQL query that answers the following question: Which date has a Record of 41-46? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_55 WHERE record = "41-46" |
Write a SQL query that answers the following question: Which score has a Record of 48-55? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_66 WHERE record = "48-55" |
Write a SQL query that answers the following question: Which score has a Record of 44-49? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_96 WHERE record = "44-49" |
Write a SQL query that answers the following question: Which score has an Opponent of white sox, and a Record of 2-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (score VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT score FROM table_name_92 WHERE opponent = "white sox" AND record = "2-0" |
Write a SQL query that answers the following question: How many votes did candice sjostrom receive? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (popular_votes INTEGER, candidate VARCHAR) | SELECT AVG(popular_votes) FROM table_name_94 WHERE candidate = "candice sjostrom" |
Write a SQL query that answers the following question: What percentage did chris wright receive? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (percentage VARCHAR, candidate VARCHAR) | SELECT percentage FROM table_name_23 WHERE candidate = "chris wright" |
Write a SQL query that answers the following question: How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (popular_votes INTEGER, year VARCHAR, office VARCHAR, percentage VARCHAR) | SELECT AVG(popular_votes) FROM table_name_2 WHERE office = "us representative 4" AND percentage = "1.59%" AND year > 1992 |
Write a SQL query that answers the following question: What years did J. Smith Young serve as a Representative? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (years VARCHAR, representative VARCHAR) | SELECT years FROM table_name_36 WHERE representative = "j. smith young" |
Write a SQL query that answers the following question: Which party did Thomas L. Young belong to? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (party VARCHAR, representative VARCHAR) | SELECT party FROM table_name_58 WHERE representative = "thomas l. young" |
Write a SQL query that answers the following question: 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? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR) | SELECT MIN(total) FROM table_name_57 WHERE gold = 0 AND bronze > 2 AND silver > 1 |
Write a SQL query that answers the following question: What is the total number of silver medals for countries of rank 14, with less than 1 total medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (silver INTEGER, rank VARCHAR, total VARCHAR) | SELECT SUM(silver) FROM table_name_66 WHERE rank = "14" AND total < 1 |
Write a SQL query that answers the following question: How many tackles for the player with over 0 fumble recovries and 0 forced fumbles? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (total VARCHAR, fumble_rec VARCHAR, fumble_force VARCHAR) | SELECT COUNT(total) FROM table_name_96 WHERE fumble_rec > 0 AND fumble_force = 0 |
Write a SQL query that answers the following question: How many forced fumbles for jim laney with under 2 solo tackles? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (fumble_force VARCHAR, solo VARCHAR, player VARCHAR) | SELECT COUNT(fumble_force) FROM table_name_20 WHERE solo < 2 AND player = "jim laney" |
Write a SQL query that answers the following question: What is the high total for players with over 15 solo tackles? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (total INTEGER, solo INTEGER) | SELECT MAX(total) FROM table_name_31 WHERE solo > 15 |
Write a SQL query that answers the following question: How many fumble recoveries for scott gajos with 0 forced fubmles, 0 sacks, and under 2 solo tackles? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (fumble_rec INTEGER, solo VARCHAR, player VARCHAR, sacks VARCHAR, fumble_force VARCHAR) | SELECT SUM(fumble_rec) FROM table_name_65 WHERE sacks = "0" AND fumble_force = "0" AND player = "scott gajos" AND solo < 2 |
Write a SQL query that answers the following question: Who is the Opponent playing at 20:00 GMT at Camp Nou? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (opponent VARCHAR, time VARCHAR, ground VARCHAR) | SELECT opponent FROM table_name_64 WHERE time = "20:00 gmt" AND ground = "camp nou" |
Write a SQL query that answers the following question: What time was the match played with a score of 3-2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (time VARCHAR, score VARCHAR) | SELECT time FROM table_name_35 WHERE score = "3-2" |
Write a SQL query that answers the following question: On which ground did the team play Aston Villa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (ground VARCHAR, opponent VARCHAR) | SELECT ground FROM table_name_83 WHERE opponent = "aston villa" |
Write a SQL query that answers the following question: What kind of competition was it at San Siro at 18:30 GMT? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (competition VARCHAR, ground VARCHAR, time VARCHAR) | SELECT competition FROM table_name_60 WHERE ground = "san siro" AND time = "18:30 gmt" |
Write a SQL query that answers the following question: What is the total number of decile for the redwood school locality? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (decile VARCHAR, name VARCHAR) | SELECT COUNT(decile) FROM table_name_34 WHERE name = "redwood school" |
Write a SQL query that answers the following question: Which report includes a Circuit of Tripoli? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (report VARCHAR, circuit VARCHAR) | SELECT report FROM table_name_71 WHERE circuit = "tripoli" |