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_91 (stadium VARCHAR, team VARCHAR) ### Question: What is VFB Stuttgart II Team's Stadiuim? ### Answer: SELECT stadium FROM table_name_91 WHERE team = "vfb stuttgart 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_name_31 (lost VARCHAR, drawn VARCHAR, games VARCHAR) ### Question: What is the total number of losses that have 1 draw and games over 7? ### Answer: SELECT COUNT(lost) FROM table_name_31 WHERE drawn = 1 AND games > 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_name_46 (mintage INTEGER, artist VARCHAR, year VARCHAR) ### Question: When the Year is over 2008, what is the highest Mintage for the Royal Canadian Mint Engravers Artist? ### Answer: SELECT MAX(mintage) FROM table_name_46 WHERE artist = "royal canadian mint engravers" AND year > 2008
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_48 (agg VARCHAR, team_1 VARCHAR) ### Question: When Karaorman is Team 1, what is the Agg.? ### Answer: SELECT agg FROM table_name_48 WHERE team_1 = "karaorman"
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 Rating (mID VARCHAR, stars VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR) ### Question: What are the names of movies that get 3 star and 4 star? ### Answer: SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 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_14 (competition VARCHAR, date VARCHAR) ### Question: What was the name of the competition that took place on may 31, 2008? ### Answer: SELECT competition FROM table_name_14 WHERE date = "may 31, 2008"
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_60 (quantity INTEGER, name VARCHAR, nicotine VARCHAR) ### Question: For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity? ### Answer: SELECT MIN(quantity) FROM table_name_60 WHERE name = "raison blue" AND nicotine > 0.30000000000000004
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_272313_1 (vertical INTEGER, aspect_ratio VARCHAR, scanning VARCHAR) ### Question: What was the minimum vertical measurement if the aspect ratio is 16:9 and scanning is interlaced? ### Answer: SELECT MIN(vertical) FROM table_272313_1 WHERE aspect_ratio = "16:9" AND scanning = "interlaced"
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_3 (investment_earnings VARCHAR, year VARCHAR, other_local_sources VARCHAR) ### Question: What were the investment earnings in a year when other local sources were $2,670,060 after 2001? ### Answer: SELECT investment_earnings FROM table_name_3 WHERE year > 2001 AND other_local_sources = "$2,670,060"
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_17118006_2 (local_investment__us$_ VARCHAR, bid_pronar_investment__us$_ VARCHAR) ### Question: What was the local investment (in $) in the projects of the department with $912,185 BID/PRONAR investment? ### Answer: SELECT local_investment__us$_ FROM table_17118006_2 WHERE bid_pronar_investment__us$_ = "912,185"
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_2127933_3 (year VARCHAR, score VARCHAR) ### Question: How many years had scores of 10–12, 6–1, 6–3? ### Answer: SELECT COUNT(year) FROM table_2127933_3 WHERE score = "10–12, 6–1, 6–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_70 (games VARCHAR, name VARCHAR) ### Question: Which game is named tsegay kebede category:articles with hcards? ### Answer: SELECT games FROM table_name_70 WHERE name = "tsegay kebede category:articles with hcards"
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 (year VARCHAR, developer VARCHAR) ### Question: Which year was the game developed by Music Comp in? ### Answer: SELECT year FROM table_name_88 WHERE developer = "music comp"
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 (grid INTEGER, laps VARCHAR, rank VARCHAR) ### Question: Name the highest grid for Laps more than 137 and rank is less than 8 ### Answer: SELECT MAX(grid) FROM table_name_89 WHERE laps > 137 AND rank < 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_87 (county VARCHAR, mascot VARCHAR) ### Question: Which county do the Trojans come from? ### Answer: SELECT county FROM table_name_87 WHERE mascot = "trojans"
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 (value INTEGER, ungegn VARCHAR) ### Question: How much is the total value of kau sĕb UNGEGN ? ### Answer: SELECT SUM(value) FROM table_name_73 WHERE ungegn = "kau sĕb"
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_53 (acquisition_via VARCHAR, position VARCHAR, school_club_team VARCHAR) ### Question: How did the School/Club Team of Manuel Luis Quezon acquire their Forward? ### Answer: SELECT acquisition_via FROM table_name_53 WHERE position = "forward" AND school_club_team = "manuel luis quezon"
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_1341930_24 (first_elected VARCHAR, incumbent VARCHAR) ### Question: In what year was John Bell Williams first elected? ### Answer: SELECT first_elected FROM table_1341930_24 WHERE incumbent = "John Bell Williams"
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_37 (candidates VARCHAR, incumbent VARCHAR) ### Question: Who ran in the race for the seat of incumbent Carl W. Rich? ### Answer: SELECT candidates FROM table_1341865_37 WHERE incumbent = "Carl W. Rich"
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_1013129_2 (nationality VARCHAR, college_junior_club_team VARCHAR) ### Question: What are the nationalities of the player picked from Thunder Bay Flyers (ushl) ### Answer: SELECT nationality FROM table_1013129_2 WHERE college_junior_club_team = "Thunder Bay Flyers (USHL)"
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_17 (date VARCHAR, away_team VARCHAR) ### Question: When was Arsenal was the away team? ### Answer: SELECT date FROM table_name_17 WHERE away_team = "arsenal"
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_84 (place VARCHAR, player VARCHAR) ### Question: What place did Fred Couples finish in? ### Answer: SELECT place FROM table_name_84 WHERE player = "fred couples"
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_68 (all_around INTEGER, total VARCHAR) ### Question: What is the sum of the all around with a 37.75 total? ### Answer: SELECT SUM(all_around) FROM table_name_68 WHERE total = 37.75
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_66 (date VARCHAR, h___a VARCHAR, opponents VARCHAR) ### Question: When did Manchester United play against Bristol City with an H/A of A? ### Answer: SELECT date FROM table_name_66 WHERE h___a = "a" AND opponents = "bristol city"
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_66 (team VARCHAR, points INTEGER) ### Question: What team has fewer than 203 points? ### Answer: SELECT team FROM table_name_66 WHERE points < 203
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 (name VARCHAR, cerclis_id VARCHAR) ### Question: What is the name of the site with a CERCLIS ID of prd980512362? ### Answer: SELECT name FROM table_name_77 WHERE cerclis_id = "prd980512362"
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 (previous_champion_s_ VARCHAR, date_won VARCHAR) ### Question: Who was the previous champion of the title won on July 7, 2010? ### Answer: SELECT previous_champion_s_ FROM table_name_98 WHERE date_won = "july 7, 2010"
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 (series_number INTEGER, number_of_episodes VARCHAR, original_air_date VARCHAR, dvd_region_2_release_date VARCHAR) ### Question: What's the lowest series number that originally aired before 2009 with more than 7 episodes and had a DVD Region 2 release date of 26 july 2004? ### Answer: SELECT MIN(series_number) FROM table_name_69 WHERE original_air_date < 2009 AND dvd_region_2_release_date = "26 july 2004" AND number_of_episodes > 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_name_2 (player VARCHAR, country VARCHAR, to_par VARCHAR) ### Question: Which United States player has a To par of 14? ### Answer: SELECT player FROM table_name_2 WHERE country = "united states" AND to_par = 14
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 (party VARCHAR, votes INTEGER) ### Question: Which party has less than 11,484 votes? ### Answer: SELECT party FROM table_name_81 WHERE votes < 11 OFFSET 484
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_14 (score VARCHAR, attendance VARCHAR) ### Question: What is Score, when Attendance is "303"? ### Answer: SELECT score FROM table_name_14 WHERE attendance = 303
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_85 (result VARCHAR, opponent VARCHAR) ### Question: Which Result has an Opponent of minnesota vikings? ### Answer: SELECT result FROM table_name_85 WHERE opponent = "minnesota vikings"
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 (airdate VARCHAR, length VARCHAR) ### Question: The length of 30 minutes aired on what date? ### Answer: SELECT airdate FROM table_name_54 WHERE length = "30 minutes"
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_23 (tournament VARCHAR, score VARCHAR, outcome VARCHAR, surface VARCHAR) ### Question: Which Tournament has an Outcome of winner, and a Surface of clay, and a Score of 6–4, 6–1? ### Answer: SELECT tournament FROM table_name_23 WHERE outcome = "winner" AND surface = "clay" AND score = "6–4, 6–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_41 (country VARCHAR, player VARCHAR) ### Question: Which country has the player Ted Schulz? ### Answer: SELECT country FROM table_name_41 WHERE player = "ted schulz"
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_25517718_3 (starter VARCHAR, position VARCHAR) ### Question: How many starters are there at right tackle? ### Answer: SELECT COUNT(starter) FROM table_25517718_3 WHERE position = "Right tackle"
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 (fast_laps VARCHAR, points VARCHAR, series VARCHAR, races VARCHAR) ### Question: How many fast laps are in 6 races with 30 points in the World Series by Nissan? ### Answer: SELECT fast_laps FROM table_name_28 WHERE series = "world series by nissan" AND races = "6" AND points = "30"
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 (gene VARCHAR, subject_number VARCHAR) ### Question: Which gene has the subject number 21? ### Answer: SELECT gene FROM table_name_28 WHERE subject_number = "21"
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_18 (week INTEGER, game_site VARCHAR) ### Question: What is the lowest week number for the game that was at milwaukee county stadium? ### Answer: SELECT MIN(week) FROM table_name_18 WHERE game_site = "milwaukee county stadium"
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 (symbol VARCHAR, empirical_† VARCHAR, calculated VARCHAR) ### Question: What is the symbol of the element with an empirical t of 190 and a calculated value of 135? ### Answer: SELECT symbol FROM table_name_25 WHERE empirical_† = "190" AND calculated = "135"
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_53 (frequency_mhz INTEGER, city_of_license VARCHAR, erp_w VARCHAR) ### Question: What is the MHZ frequency in carmel, california with an ERP W over 10? ### Answer: SELECT AVG(frequency_mhz) FROM table_name_53 WHERE city_of_license = "carmel, california" AND erp_w > 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_name_84 (total_games VARCHAR, years VARCHAR, pac_12 VARCHAR) ### Question: How many total games associated with the Pac-12 of california and 117 years? ### Answer: SELECT total_games FROM table_name_84 WHERE years = 117 AND pac_12 = "california"
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_12226390_2 (directed_by VARCHAR, production_code VARCHAR) ### Question: Who directed the episode with production code 28? ### Answer: SELECT directed_by FROM table_12226390_2 WHERE production_code = 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_95 (score VARCHAR, opponents_in_the_final VARCHAR) ### Question: What was the score for the match were the opponent in the final was james cerretani todd perry? ### Answer: SELECT score FROM table_name_95 WHERE opponents_in_the_final = "james cerretani todd perry"
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 (agricultural_panel VARCHAR, national_university_of_ireland INTEGER) ### Question: What is the total number of agriculatural panels of the composition with more than 3 National Universities of Ireland? ### Answer: SELECT COUNT(agricultural_panel) FROM table_name_59 WHERE national_university_of_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_5 (type_of_game VARCHAR, results¹ VARCHAR) ### Question: What was the type of game with a 1:6 result? ### Answer: SELECT type_of_game FROM table_name_5 WHERE results¹ = "1: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_16751596_12 (republican VARCHAR, dates_administered VARCHAR) ### Question: On June 30, 2008 who what was the Republican: Jeff Sessions percentage? ### Answer: SELECT republican AS :_jeff_sessions FROM table_16751596_12 WHERE dates_administered = "June 30, 2008"
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_80 (system VARCHAR, name VARCHAR) ### Question: Which system is named mess? ### Answer: SELECT system FROM table_name_80 WHERE name = "mess"
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 (grid INTEGER, rider VARCHAR) ### Question: What is the highest grid that has gregorio lavilla as the rider? ### Answer: SELECT MAX(grid) FROM table_name_89 WHERE rider = "gregorio lavilla"
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 (last_name VARCHAR); CREATE TABLE Staff (last_name VARCHAR) ### Question: Which last names are both used by customers and by staff? ### Answer: SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff
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_60 (Id VARCHAR) ### Question: Who attended the school in 2009, that Lakita Hall attended in 2007? ### Answer: SELECT 2009 FROM table_name_60 WHERE 2007 = "lakita hall"
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 climber (Country VARCHAR) ### Question: How many distinct countries are the climbers from? ### Answer: SELECT COUNT(DISTINCT Country) FROM climber
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_84 (lost VARCHAR, tries_for VARCHAR) ### Question: How many losses were there with 103 tries for? ### Answer: SELECT lost FROM table_name_84 WHERE tries_for = "103"
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 (top_5 INTEGER, cuts_made VARCHAR) ### Question: What is the average for the top five having a number of 42 cuts made. ### Answer: SELECT AVG(top_5) FROM table_name_79 WHERE cuts_made = 42
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_50 (date VARCHAR, ground VARCHAR, opponent VARCHAR) ### Question: What is the date ground A and Cartagena as an opponent? ### Answer: SELECT date FROM table_name_50 WHERE ground = "a" AND opponent = "cartagena"
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 (density__inhabitants_km_2__ INTEGER, city VARCHAR, area__km_2__ VARCHAR, altitude__mslm_ VARCHAR) ### Question: What is the lowest density of alessandria where the area is bigger than 16.02 and altitude is less than 116? ### Answer: SELECT MIN(density__inhabitants_km_2__) FROM table_name_39 WHERE area__km_2__ > 16.02 AND altitude__mslm_ < 116 AND city = "alessandria"
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_55 (opponent VARCHAR, date VARCHAR) ### Question: Who is the opponent on May 7? ### Answer: SELECT opponent FROM table_name_55 WHERE date = "may 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_27932399_1 (release_date INTEGER, catalogue_number VARCHAR) ### Question: What is the release date of catalogue number DW023? ### Answer: SELECT MAX(release_date) FROM table_27932399_1 WHERE catalogue_number = "DW023"
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 inst (Id VARCHAR) ### Question: How many institutions are there? ### Answer: SELECT COUNT(*) FROM inst
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 (engine VARCHAR, team VARCHAR) ### Question: What is the engine for the Machinists Union Racing team? ### Answer: SELECT engine FROM table_name_79 WHERE team = "machinists union 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_40 (total_region VARCHAR, eidsvold VARCHAR, biggenden VARCHAR) ### Question: What is the Total Region number of hte one that has Eidsvold at 970 and Biggenden larger than 1,570? ### Answer: SELECT COUNT(total_region) FROM table_name_40 WHERE eidsvold = 970 AND biggenden > 1 OFFSET 570
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_11 (host VARCHAR, original_airdate VARCHAR) ### Question: What host has an original air date of june 11, 2007? ### Answer: SELECT host FROM table_name_11 WHERE original_airdate = "june 11, 2007"
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 (away_team VARCHAR, home_team VARCHAR) ### Question: What was Collingwood's away team score? ### Answer: SELECT away_team AS score FROM table_name_32 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_25037577_1 (superintendent VARCHAR, year VARCHAR, middle_school_principal VARCHAR, gorham_principal VARCHAR) ### Question: Who were the superintendent(s) when the middle school principal was alan degroote, the gorham principal was paul lahue, and the year was 2006-2007? ### Answer: SELECT superintendent FROM table_25037577_1 WHERE middle_school_principal = "Alan Degroote" AND gorham_principal = "Paul Lahue" AND year = "2006-2007"
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_68 (goals INTEGER, matches INTEGER) ### Question: What average goals have matches less than 228? ### Answer: SELECT AVG(goals) FROM table_name_68 WHERE matches < 228
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 (losses INTEGER, scored VARCHAR, draws VARCHAR) ### Question: What are the lowest losses with more than 13 scored, and more than 7 draws? ### Answer: SELECT MIN(losses) FROM table_name_38 WHERE scored > 13 AND draws > 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_name_88 (lane VARCHAR, time VARCHAR, rank VARCHAR) ### Question: How many lanes had a rank smaller than 4 and a time of 2:01.51? ### Answer: SELECT COUNT(lane) FROM table_name_88 WHERE time = "2:01.51" AND rank < 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 addresses (state_province_county VARCHAR, country VARCHAR, zip_postcode VARCHAR) ### Question: Find the state and country of all cities with post code starting with 4. ### Answer: SELECT state_province_county, country FROM addresses WHERE zip_postcode LIKE "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_87 (engine VARCHAR, chassis VARCHAR) ### Question: What was the engine when the chassis was a porsche 718?? ### Answer: SELECT engine FROM table_name_87 WHERE chassis = "porsche 718"
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 (silver VARCHAR, nation VARCHAR, gold VARCHAR, rank VARCHAR) ### Question: What is silver when gold is 1 and the rank is less than 3 for japan? ### Answer: SELECT silver FROM table_name_77 WHERE gold = 1 AND rank < 3 AND nation = "japan"
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_36 (year VARCHAR, runner_up VARCHAR) ### Question: In what year was Wisconsin the runner-up? ### Answer: SELECT year FROM table_name_36 WHERE runner_up = "wisconsin"
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_18 (crowd INTEGER, home_team VARCHAR) ### Question: What was the smallest crowd that Melbourne played for at home? ### Answer: SELECT MIN(crowd) FROM table_name_18 WHERE home_team = "melbourne"
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 (to_par VARCHAR, score VARCHAR) ### Question: What is the To par of the Player with a Score of 71-74-72-72=289? ### Answer: SELECT to_par FROM table_name_25 WHERE score = 71 - 74 - 72 - 72 = 289
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_48 (date VARCHAR, score VARCHAR, away_team VARCHAR) ### Question: Which Date has a Score of 2–2, and an Away team of aylesbury united? ### Answer: SELECT date FROM table_name_48 WHERE score = "2–2" AND away_team = "aylesbury united"
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_11148572_1 (mls_cup_runner_up VARCHAR, mls_cup_winner VARCHAR) ### Question: who is the of the shield winnerin which the mls cup runner-up and mls cup winner is real salt lake? ### Answer: SELECT mls_cup_runner_up FROM table_11148572_1 WHERE mls_cup_winner = "Real Salt Lake"
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_2581397_5 (date VARCHAR, race VARCHAR) ### Question: What date was the Doncaster race? ### Answer: SELECT date FROM table_2581397_5 WHERE race = "Doncaster"
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_53 (main_language_s_ VARCHAR, film_title_used_in_nomination VARCHAR) ### Question: What is the primary language used in the film, Black Book? ### Answer: SELECT main_language_s_ FROM table_name_53 WHERE film_title_used_in_nomination = "black book"
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 (party VARCHAR, governments VARCHAR) ### Question: Which party has 24 governments? ### Answer: SELECT party FROM table_name_46 WHERE governments = "24"
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_16527640_2 (vfl_club_s_ VARCHAR, rank_held_at_time_of_death VARCHAR) ### Question: What vfl club(s) for players ranked sergeant, 8th brigade australian field artillery at time of death? ### Answer: SELECT vfl_club_s_ FROM table_16527640_2 WHERE rank_held_at_time_of_death = "Sergeant, 8th Brigade Australian Field Artillery"
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 (tournament VARCHAR) ### Question: In 1994 what tournament held a ATP masters series ### Answer: SELECT 1994 FROM table_name_38 WHERE tournament = "atp masters series"
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_40 (Id VARCHAR) ### Question: What is the 2004 Lukoil oil prodroduction when in 2011 oil production 90.917 million tonnes? ### Answer: SELECT 2004 FROM table_name_40 WHERE 2011 = "90.917"
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_67 (visiting_team VARCHAR, stadium VARCHAR) ### Question: Name the visiting team for stadium of ralph wilson stadium ### Answer: SELECT visiting_team FROM table_name_67 WHERE stadium = "ralph wilson stadium"
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_140297_1 (density VARCHAR, principal_town VARCHAR) ### Question: What is the population density in the Brighton area? ### Answer: SELECT density FROM table_140297_1 WHERE principal_town = "Brighton"
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 (power__kw_ VARCHAR, frequency VARCHAR) ### Question: What's the power when the frequency is 101.5mhz? ### Answer: SELECT power__kw_ FROM table_name_26 WHERE frequency = "101.5mhz"
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 (date VARCHAR, home VARCHAR) ### Question: What date was the game played against the home team Rockets? ### Answer: SELECT date FROM table_name_28 WHERE home = "rockets"
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 (record VARCHAR, event VARCHAR) ### Question: What is the Record of the 3000 M? ### Answer: SELECT record FROM table_name_15 WHERE event = "3000 m"
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_3 (top_prize VARCHAR, price VARCHAR, launch_date VARCHAR) ### Question: What is the top price of $1 with a launch date on February 12, 2008? ### Answer: SELECT top_prize FROM table_name_3 WHERE price = "$1" AND launch_date = "february 12, 2008"
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_61 (type VARCHAR, construction_start VARCHAR) ### Question: Construction start of phase i includes what type? ### Answer: SELECT type FROM table_name_61 WHERE construction_start = "phase i"
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 player (Team VARCHAR, Age VARCHAR) ### Question: Find the team of the player of the highest age. ### Answer: SELECT Team FROM player ORDER BY Age DESC LIMIT 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_74 (replaced_by VARCHAR, date_of_appointment VARCHAR) ### Question: What is the name of the person that was appointed on 13 May 2009? ### Answer: SELECT replaced_by FROM table_name_74 WHERE date_of_appointment = "13 may 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_29 (outgoing_manager VARCHAR, replaced_by VARCHAR, manner_of_departure VARCHAR, team VARCHAR) ### Question: Tell me the outgoing manager for resigned and replaced by manolo villanova for real zaragoza ### Answer: SELECT outgoing_manager FROM table_name_29 WHERE manner_of_departure = "resigned" AND team = "real zaragoza" AND replaced_by = "manolo villanova"
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_12 (samples_taken INTEGER, melamine_content_mg_kg_ VARCHAR, producer VARCHAR) ### Question: How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4? ### Answer: SELECT SUM(samples_taken) FROM table_name_12 WHERE melamine_content_mg_kg_ < 53.4 AND producer = "qingdao suncare nutritional technology"
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 (margin VARCHAR, dist__f_ VARCHAR, race VARCHAR) ### Question: Which Margin has a Dist (f) larger than 10, and a Race of king george vi & queen elizabeth stakes? ### Answer: SELECT margin FROM table_name_33 WHERE dist__f_ > 10 AND race = "king george vi & queen elizabeth stakes"
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_2 (year INTEGER, city VARCHAR) ### Question: What is the earliest Year when the City is Peabody? ### Answer: SELECT MIN(year) FROM table_name_2 WHERE city = "peabody"
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 (report VARCHAR, name VARCHAR) ### Question: Name the report with cuban race ### Answer: SELECT report FROM table_name_16 WHERE name = "cuban race"
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 (record VARCHAR, games VARCHAR) ### Question: What is the Record of the 1991 Port of Spain Games? ### Answer: SELECT record FROM table_name_56 WHERE games = "1991 port of spain"
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 school_bus (driver_id VARCHAR); CREATE TABLE driver (name VARCHAR, driver_id VARCHAR) ### Question: find the name of driver who is driving the school bus with the longest working history. ### Answer: SELECT t1.name FROM driver AS t1 JOIN school_bus AS t2 ON t1.driver_id = t2.driver_id ORDER BY years_working DESC LIMIT 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_27714985_1 (production_code_s_ INTEGER, written_by VARCHAR) ### Question: What is the maximum production code of an episode written by Patty Lin? ### Answer: SELECT MAX(production_code_s_) FROM table_27714985_1 WHERE written_by = "Patty Lin"
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_17360840_9 (attendance INTEGER, opponent VARCHAR, record VARCHAR) ### Question: What was the attendance when the opposing team was the Ottawa Senators and the record was 24-35-17? ### Answer: SELECT MAX(attendance) FROM table_17360840_9 WHERE opponent = "Ottawa Senators" AND record = "24-35-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_23 (score VARCHAR, record VARCHAR) ### Question: What was score of the game when the record was 72-74? ### Answer: SELECT score FROM table_name_23 WHERE record = "72-74"