text
stringlengths 293
1.24k
|
---|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (category VARCHAR, year INTEGER)
### Question:
What was the Category before 1995?
### Answer:
SELECT category FROM table_name_19 WHERE year < 1995 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25773116_2 (location VARCHAR, winning_team VARCHAR)
### Question:
Where did Audette Racing win?
### Answer:
SELECT location FROM table_25773116_2 WHERE winning_team = "Audette Racing" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (gold INTEGER, bronze VARCHAR, nation VARCHAR, silver VARCHAR, total VARCHAR)
### Question:
Silver larger than 0, and a Total smaller than 3, and a Nation of bulgaria, and a Bronze smaller than 0 had what sum of gold?
### Answer:
SELECT SUM(gold) FROM table_name_51 WHERE silver > 0 AND total < 3 AND nation = "bulgaria" AND bronze < 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_22 (to_par INTEGER, place VARCHAR)
### Question:
What is the highest To Par, when Place is "1"?
### Answer:
SELECT MAX(to_par) FROM table_name_22 WHERE place = "1" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_98 (visitor VARCHAR, record VARCHAR)
### Question:
What is the Visitor in the game with a Record of 11–49–7?
### Answer:
SELECT visitor FROM table_name_98 WHERE record = "11–49–7" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13258972_2 (week INTEGER, record VARCHAR)
### Question:
In what week was the record 5-9?
### Answer:
SELECT MAX(week) FROM table_13258972_2 WHERE record = "5-9" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_71 (years_in_assembly VARCHAR, name VARCHAR)
### Question:
During what years was Christine Kehoe in Assembly?
### Answer:
SELECT years_in_assembly FROM table_name_71 WHERE name = "christine kehoe" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_45 (position VARCHAR, round VARCHAR, player VARCHAR)
### Question:
Which Position has a Round larger than 4, and a Player of patrick johnson?
### Answer:
SELECT position FROM table_name_45 WHERE round > 4 AND player = "patrick johnson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (away_team VARCHAR, venue VARCHAR)
### Question:
What was the away team that played at Princes Park?
### Answer:
SELECT away_team FROM table_name_51 WHERE venue = "princes park" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_94 (rank VARCHAR, bronze VARCHAR)
### Question:
Which Rank has a Bronze of 3?
### Answer:
SELECT rank FROM table_name_94 WHERE bronze = 3 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (year INTEGER, award_ceremony VARCHAR, category VARCHAR)
### Question:
What year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical?
### Answer:
SELECT AVG(year) FROM table_name_96 WHERE award_ceremony = "drama desk award" AND category = "outstanding featured actress in a musical" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_13 (swimsuit INTEGER, state VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR)
### Question:
What's the highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an interview over 8.23 in georgia?
### Answer:
SELECT MAX(swimsuit) FROM table_name_13 WHERE average < 8.073 AND evening_gown < 8.31 AND interview > 8.23 AND state = "georgia" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1745843_7 (part_3 VARCHAR, part_4 VARCHAR)
### Question:
What's the part 3 of the verb with part 4 gelopen?
### Answer:
SELECT part_3 FROM table_1745843_7 WHERE part_4 = "gelopen" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (drawn VARCHAR, points_against VARCHAR)
### Question:
What was the draw when the points against was 234?
### Answer:
SELECT drawn FROM table_name_96 WHERE points_against = "234" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_91 (required_os VARCHAR, type VARCHAR)
### Question:
What operating system was needed for 2D games?
### Answer:
SELECT required_os FROM table_name_91 WHERE type = "2d" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (conv VARCHAR, pens VARCHAR, tries VARCHAR)
### Question:
How many conversions had 0 pens and 0 tries?
### Answer:
SELECT conv FROM table_name_39 WHERE pens = "0" AND tries = "0" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE CLASS (crs_code VARCHAR, prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)
### Question:
Find the first names of all instructors who have taught some course and the course code.
### Answer:
SELECT T2.emp_fname, T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (catalog VARCHAR, date VARCHAR)
### Question:
What is the catalog number with the date November 16, 2004?
### Answer:
SELECT catalog FROM table_name_15 WHERE date = "november 16, 2004" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (goals_against VARCHAR, played INTEGER)
### Question:
How many Goals against have Played more than 34?
### Answer:
SELECT COUNT(goals_against) FROM table_name_97 WHERE played > 34 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_8 (wins VARCHAR, winnings VARCHAR, top_10 VARCHAR)
### Question:
How many Wins have Winnings of $184,190, and a Top 10 larger than 1?
### Answer:
SELECT COUNT(wins) FROM table_name_8 WHERE winnings = "$184,190" AND top_10 > 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)
### Question:
Find the titles of items that received both a rating higher than 8 and a rating below 5.
### Answer:
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > 8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_225204_4 (successor VARCHAR, district VARCHAR)
### Question:
Name the successor for north carolina 13th
### Answer:
SELECT successor FROM table_225204_4 WHERE district = "North Carolina 13th" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13619053_7 (high_points VARCHAR, record VARCHAR)
### Question:
Who ihad the highest points and what was the number when the record was 11-40?
### Answer:
SELECT high_points FROM table_13619053_7 WHERE record = "11-40" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE basketball_match (team_name VARCHAR, All_Home VARCHAR)
### Question:
List names of all teams in the basketball competition, ordered by all home scores in descending order.
### Answer:
SELECT team_name FROM basketball_match ORDER BY All_Home DESC |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_59 (away_team VARCHAR, venue VARCHAR)
### Question:
Who was the away team when the venue was Windy Hill?
### Answer:
SELECT away_team FROM table_name_59 WHERE venue = "windy hill" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (song VARCHAR, draw VARCHAR, place VARCHAR, points VARCHAR)
### Question:
Which song has a place greater than 7, more than 13 points, and draw of 5?
### Answer:
SELECT song FROM table_name_39 WHERE place > 7 AND points > 13 AND draw = 5 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_46 (venue VARCHAR, home_team VARCHAR)
### Question:
What venue is the home field of Richmond?
### Answer:
SELECT venue FROM table_name_46 WHERE home_team = "richmond" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_89 (captaincy VARCHAR, appearances VARCHAR, goals VARCHAR, position_ VARCHAR, a_ VARCHAR)
### Question:
What is the captaincy for Defender that has less than 212 appearances and 12 goals?
### Answer:
SELECT captaincy FROM table_name_89 WHERE appearances < 212 AND goals = 12 AND position_[a_] = "defender" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26389588_1 (primary_cartridge VARCHAR, year_of_introduction VARCHAR, country_of_origin VARCHAR)
### Question:
If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?
### Answer:
SELECT primary_cartridge FROM table_26389588_1 WHERE year_of_introduction = "1962" AND country_of_origin = "Denmark" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_78 (italian VARCHAR, andalusian VARCHAR)
### Question:
How would an Italian say the Andalusian word coche?
### Answer:
SELECT italian FROM table_name_78 WHERE andalusian = "coche" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_25 (team VARCHAR, game VARCHAR)
### Question:
What is Team, when Game is "59"?
### Answer:
SELECT team FROM table_name_25 WHERE game = 59 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_87 (overall INTEGER, round VARCHAR)
### Question:
Which Overall is the lowest one that has a Round of 3?
### Answer:
SELECT MIN(overall) FROM table_name_87 WHERE round = 3 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_182298_5 (mens_open VARCHAR, country VARCHAR)
### Question:
How many won the Men's Open if the players are from Sweden?
### Answer:
SELECT COUNT(mens_open) FROM table_182298_5 WHERE country = "Sweden" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_79 (player VARCHAR, first_team_appearances VARCHAR)
### Question:
Who is the player who has had 7 first team appearances?
### Answer:
SELECT player FROM table_name_79 WHERE first_team_appearances = "7" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21995420_6 (deductions VARCHAR, pyramids VARCHAR)
### Question:
What is every deduction for pyramids of 49?
### Answer:
SELECT deductions FROM table_21995420_6 WHERE pyramids = "49" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (episode VARCHAR)
### Question:
What is the 1st Edition for the Episode 4?
### Answer:
SELECT 1 AS st_edition FROM table_name_77 WHERE episode = "4" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_73 (format VARCHAR, brand VARCHAR)
### Question:
What is the format for Digital 94.9?
### Answer:
SELECT format FROM table_name_73 WHERE brand = "digital 94.9" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_83 (film_title_used_in_nomination VARCHAR, primary_language_s_ VARCHAR)
### Question:
What is Film Title Used In Nomination, when Primary Language(s) is "Azerbaijani, Russian"?
### Answer:
SELECT film_title_used_in_nomination FROM table_name_83 WHERE primary_language_s_ = "azerbaijani, russian" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1841901_1 (english VARCHAR, french VARCHAR)
### Question:
Name the english for j'avais entendu
### Answer:
SELECT english FROM table_1841901_1 WHERE french = "j'avais entendu" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12834315_5 (muzzle_device VARCHAR, colt_model_no VARCHAR)
### Question:
What is the muzzle device on the colt model le1020?
### Answer:
SELECT muzzle_device FROM table_12834315_5 WHERE colt_model_no = "LE1020" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_22 (wins INTEGER, events INTEGER)
### Question:
What is the average number of wins for events larger than 28?
### Answer:
SELECT AVG(wins) FROM table_name_22 WHERE events > 28 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (name VARCHAR, moving_to VARCHAR)
### Question:
what is the name moving to atlético minero?
### Answer:
SELECT name FROM table_name_74 WHERE moving_to = "atlético minero" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR)
### Question:
Show the name and phone of the customer without any mailshot.
### Answer:
SELECT customer_name, customer_phone FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM mailshot_customers) |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_44 (february VARCHAR, score VARCHAR, points VARCHAR)
### Question:
How much February has a Score of 5–2, and Points of 70?
### Answer:
SELECT COUNT(february) FROM table_name_44 WHERE score = "5–2" AND points = 70 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_30120547_1 (civil_parish VARCHAR, townland VARCHAR)
### Question:
What is the civil parish of the cappanaboul townland?
### Answer:
SELECT civil_parish FROM table_30120547_1 WHERE townland = "Cappanaboul" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR, sex VARCHAR); CREATE TABLE dorm (dormid VARCHAR, dorm_name VARCHAR)
### Question:
Find the number of female students (with F sex) living in Smith Hall
### Answer:
SELECT COUNT(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' AND T1.sex = 'F' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (issue_price__bu_ VARCHAR, _clarification_needed_ VARCHAR, year VARCHAR, mintage__proof_ VARCHAR)
### Question:
What's the Issue Price (BU) [Clarification Needed] with a Year larger than 2002 and Mintage (Proof) of 50,000?
### Answer:
SELECT issue_price__bu_[_clarification_needed_] FROM table_name_35 WHERE year > 2002 AND mintage__proof_ = "50,000" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (tonnage VARCHAR, built VARCHAR, ship VARCHAR)
### Question:
The ship SSBergensfjord built before 1973 has what tonnage?
### Answer:
SELECT tonnage FROM table_name_90 WHERE built < 1973 AND ship = "ssbergensfjord" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (points VARCHAR, horse VARCHAR)
### Question:
What is the total points when the horse is Chippison?
### Answer:
SELECT COUNT(points) FROM table_name_96 WHERE horse = "chippison" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_26 (grid INTEGER, driver VARCHAR, laps VARCHAR)
### Question:
What is the average grid for johnny dumfries with less than 8 laps?
### Answer:
SELECT AVG(grid) FROM table_name_26 WHERE driver = "johnny dumfries" AND laps < 8 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_81 (position VARCHAR, round VARCHAR, overall VARCHAR)
### Question:
What is the position of a player from a round less than 4 and an overall of 17?
### Answer:
SELECT position FROM table_name_81 WHERE round < 4 AND overall = "17" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (time VARCHAR, year VARCHAR)
### Question:
What was the winning time in 1984?
### Answer:
SELECT time FROM table_name_99 WHERE year = "1984" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_91 (tie_no VARCHAR, away_team VARCHAR)
### Question:
What was the tie number when the away team was Wrexham?
### Answer:
SELECT tie_no FROM table_name_91 WHERE away_team = "wrexham" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE list (firstname VARCHAR, classroom VARCHAR)
### Question:
Find the first names of students studying in room 108.
### Answer:
SELECT firstname FROM list WHERE classroom = 108 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10577579_2 (enrollment INTEGER, founded VARCHAR, type VARCHAR)
### Question:
What is the enrollment for the institution that was founded in 1866 and is a private/(african methodist) type?
### Answer:
SELECT MAX(enrollment) FROM table_10577579_2 WHERE founded = 1866 AND type = "Private/(African Methodist)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (erp_w INTEGER, call_sign VARCHAR)
### Question:
What is the average ERP W when the call sign is whre?
### Answer:
SELECT AVG(erp_w) FROM table_name_15 WHERE call_sign = "whre" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_58 (team VARCHAR, name VARCHAR)
### Question:
What is the team when the name is alex sperafico?
### Answer:
SELECT team FROM table_name_58 WHERE name = "alex sperafico" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_32 (wins INTEGER, played VARCHAR, scored VARCHAR, conceded VARCHAR)
### Question:
What is the lowest number of wins of the team with less than 24 scored, 27 conceded, and more than 18 played?
### Answer:
SELECT MIN(wins) FROM table_name_32 WHERE scored < 24 AND conceded = 27 AND played > 18 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (game_site VARCHAR, attendance VARCHAR)
### Question:
Which Game site has 27,189 Attendances ?
### Answer:
SELECT game_site FROM table_name_99 WHERE attendance = "27,189" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341865_34 (district VARCHAR, incumbent VARCHAR)
### Question:
which section did seymour halpern run in
### Answer:
SELECT district FROM table_1341865_34 WHERE incumbent = "Seymour Halpern" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (home_team VARCHAR)
### Question:
What was Collingwood's score as the home team?
### Answer:
SELECT home_team AS score FROM table_name_54 WHERE home_team = "collingwood" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10128185_2 (southern_england VARCHAR, northern_ireland VARCHAR)
### Question:
How many votes did Southern England cast whilst Northern Ireland cast 3?
### Answer:
SELECT southern_england FROM table_10128185_2 WHERE northern_ireland = 3 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (opponent VARCHAR, record VARCHAR)
### Question:
Who was the opponent that led to a 10-13 record?
### Answer:
SELECT opponent FROM table_name_38 WHERE record = "10-13" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (competition VARCHAR, event VARCHAR, year VARCHAR)
### Question:
what is the competition for the event team all-round in the year before 1913?
### Answer:
SELECT competition FROM table_name_38 WHERE event = "team all-round" AND year < 1913 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (fa_cup_goals INTEGER, league_cup_goals VARCHAR, fa_cup_apps VARCHAR, total_goals VARCHAR, league_goals VARCHAR)
### Question:
What is the lowest FA Cup Goals, when Total Goals is greater than 0, when League Goals is "4", when FA Cup Apps is "1", and when League Cup Goals is greater than 0?
### Answer:
SELECT MIN(fa_cup_goals) FROM table_name_10 WHERE total_goals > 0 AND league_goals = 4 AND fa_cup_apps = "1" AND league_cup_goals > 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16446652_1 (season VARCHAR, treasurer VARCHAR)
### Question:
How many seasons was Dave Reid treasurer?
### Answer:
SELECT COUNT(season) FROM table_16446652_1 WHERE treasurer = "Dave Reid" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_43 (points INTEGER, driver VARCHAR, grid VARCHAR)
### Question:
HOW MANY POINTS DOES ALEX SPERAFICO HAVE WITH A GRID LARGER THAN 17?
### Answer:
SELECT MIN(points) FROM table_name_43 WHERE driver = "alex sperafico" AND grid > 17 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_69 (school VARCHAR, height VARCHAR)
### Question:
What school did the player that is 6-6 go to?
### Answer:
SELECT school FROM table_name_69 WHERE height = "6-6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_22 (icao VARCHAR, iata VARCHAR)
### Question:
Name the ICAO for when IATA is zyl
### Answer:
SELECT icao FROM table_name_22 WHERE iata = "zyl" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_59 (location VARCHAR, college_name VARCHAR)
### Question:
What is the location of the kanyakumari government medical college?
### Answer:
SELECT location FROM table_name_59 WHERE college_name = "kanyakumari government medical college" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_59 (erp_w INTEGER, call_sign VARCHAR, frequency_mhz VARCHAR)
### Question:
What is the ERP W for the station whose call sign is K248BJ and whose frequency MHz is higher than 97.5?
### Answer:
SELECT AVG(erp_w) FROM table_name_59 WHERE call_sign = "k248bj" AND frequency_mhz > 97.5 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_28 (whenbuilt VARCHAR, name VARCHAR)
### Question:
When was the locomotive named fighter command built?
### Answer:
SELECT whenbuilt FROM table_name_28 WHERE name = "fighter command" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)
### Question:
What was the away team when the home team was Carlton?
### Answer:
SELECT away_team FROM table_name_7 WHERE home_team = "carlton" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (position INTEGER, team VARCHAR, played VARCHAR)
### Question:
What was the highest position for Rossendale United when the played was larger than 34?
### Answer:
SELECT MAX(position) FROM table_name_19 WHERE team = "rossendale united" AND played > 34 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_46 (date_made VARCHAR, notes VARCHAR)
### Question:
When has a Note of 45/48 renumbered 15/16; two sold to sl&ncr?
### Answer:
SELECT date_made FROM table_name_46 WHERE notes = "45/48 renumbered 15/16; two sold to sl&ncr" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE tweets (text VARCHAR, createdate VARCHAR)
### Question:
List the text of all tweets in the order of date.
### Answer:
SELECT text FROM tweets ORDER BY createdate |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1686313_1 (population__2007_ INTEGER, barangay VARCHAR)
### Question:
Name the least population 2007 for barangay is poblacion ii
### Answer:
SELECT MIN(population__2007_) FROM table_1686313_1 WHERE barangay = "Poblacion II" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14342210_6 (extra_points INTEGER)
### Question:
What is the least amount of extra points made in by a player?
### Answer:
SELECT MIN(extra_points) FROM table_14342210_6 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_30 (surface VARCHAR, tournament VARCHAR)
### Question:
What surface did Smeets play on during the Kuwait tournament?
### Answer:
SELECT surface FROM table_name_30 WHERE tournament = "kuwait" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_65 (laps VARCHAR, driver VARCHAR)
### Question:
How many laps does peter arundell have?
### Answer:
SELECT laps FROM table_name_65 WHERE driver = "peter arundell" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19501664_1 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
### Question:
Name the viewers for the episode directed by tony phelan
### Answer:
SELECT us_viewers__millions_ FROM table_19501664_1 WHERE directed_by = "Tony Phelan" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_69 (distance VARCHAR, date VARCHAR)
### Question:
What is the distance for the 5 September race?
### Answer:
SELECT distance FROM table_name_69 WHERE date = "5 september" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (total INTEGER, bronze VARCHAR, gold VARCHAR, nation VARCHAR)
### Question:
What's the sum of the totals for Russia with more than 1 gold and less than 10 bronze?
### Answer:
SELECT SUM(total) FROM table_name_90 WHERE gold > 1 AND nation = "russia" AND bronze < 10 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27723228_12 (score VARCHAR, team VARCHAR)
### Question:
Name the score for indiana
### Answer:
SELECT score FROM table_27723228_12 WHERE team = "Indiana" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_25 (overall INTEGER, pick__number VARCHAR)
### Question:
How much Overall has a Pick # of 26?
### Answer:
SELECT SUM(overall) FROM table_name_25 WHERE pick__number = 26 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_247955_2 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
### Question:
What was the margin of victory when runner-up was K. J. Choi?
### Answer:
SELECT margin_of_victory FROM table_247955_2 WHERE runner_s__up = "K. J. Choi" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_49 (block_a VARCHAR, prince_devitt VARCHAR)
### Question:
What is Block A when Prince Devitt is Devitt (9:53)?
### Answer:
SELECT block_a FROM table_name_49 WHERE prince_devitt = "devitt (9:53)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_20 (to_par VARCHAR, player VARCHAR)
### Question:
What is the to par for Bo Bae Song?
### Answer:
SELECT to_par FROM table_name_20 WHERE player = "bo bae song" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_81 (home_captain VARCHAR, venue VARCHAR)
### Question:
Who is the home captain when the venue is adelaide oval?
### Answer:
SELECT home_captain FROM table_name_81 WHERE venue = "adelaide oval" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, email VARCHAR, uid VARCHAR)
### Question:
Find the name and email for the users who have more than one follower.
### Answer:
SELECT T1.name, T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20746062_1 (date VARCHAR, game VARCHAR)
### Question:
What day did the play game number 9?
### Answer:
SELECT date FROM table_20746062_1 WHERE game = 9 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_16 (third_vice_president VARCHAR, second_vice_president VARCHAR)
### Question:
What is Third Vice President, when Second Vice President is "Baudelio Palma"?
### Answer:
SELECT third_vice_president FROM table_name_16 WHERE second_vice_president = "baudelio palma" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_6 (place VARCHAR, money___$__ VARCHAR, player VARCHAR)
### Question:
What is the ranking when Archie Compston is the player and the money is $73?
### Answer:
SELECT place FROM table_name_6 WHERE money___$__ = "73" AND player = "archie compston" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_88 (surface VARCHAR, partner VARCHAR)
### Question:
The tournament with a partner listed as Aurelija Misevičiūtė had what kind of surface?
### Answer:
SELECT surface FROM table_name_88 WHERE partner = "aurelija misevičiūtė" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_56 (special_notes VARCHAR, year INTEGER)
### Question:
What is the special notes value for years under 2009?
### Answer:
SELECT special_notes FROM table_name_56 WHERE year < 2009 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_86 (overall VARCHAR, school_club_team VARCHAR, round VARCHAR)
### Question:
How many times was Arizona the team and the round was bigger than 11?
### Answer:
SELECT COUNT(overall) FROM table_name_86 WHERE school_club_team = "arizona" AND round > 11 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_30 (score VARCHAR, february VARCHAR, game VARCHAR)
### Question:
What was the score after february 4 in the game 61?
### Answer:
SELECT score FROM table_name_30 WHERE february > 4 AND game = 61 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_58 (car INTEGER, long VARCHAR)
### Question:
How many average carries for the player with 3 as a long?
### Answer:
SELECT AVG(car) FROM table_name_58 WHERE long = "3" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_87 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR)
### Question:
What Investing Dragons had a request of £100,000?
### Answer:
SELECT investing_dragon_s_ FROM table_name_87 WHERE money_requested__£_ = "100,000" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_33 (host_team VARCHAR, visiting_team VARCHAR)
### Question:
Who was the host team when the Miami Dolphins were the visiting team?
### Answer:
SELECT host_team FROM table_name_33 WHERE visiting_team = "miami dolphins" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.