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_28365816_2 (conference VARCHAR, tournament_winner VARCHAR) ### Question: During what conference is North Carolina listed as the tournament winner? ### Answer: SELECT conference FROM table_28365816_2 WHERE tournament_winner = "North Carolina"
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_2472711_31 (team VARCHAR, up_down VARCHAR) ### Question: Which team has an up/down of + 3479? ### Answer: SELECT team FROM table_2472711_31 WHERE up_down = "+ 3479"
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_34 (home VARCHAR, time VARCHAR) ### Question: What is the Home with a Time that is 12:00? ### Answer: SELECT home FROM table_name_34 WHERE time = "12:00"
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 (second_party VARCHAR, first_party VARCHAR, election VARCHAR) ### Question: What is the second party that has a conservative first party in the 1834 election? ### Answer: SELECT second_party FROM table_name_71 WHERE first_party = "conservative" AND election = "1834"
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_15187735_3 (segment_c VARCHAR, segment_b VARCHAR) ### Question: Name the segment c for couscous ### Answer: SELECT segment_c FROM table_15187735_3 WHERE segment_b = "Couscous"
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_17001658_10 (high_rebounds VARCHAR, high_assists VARCHAR) ### Question: Who was the high rebound for the high assists of d. j. augustin (8)? ### Answer: SELECT high_rebounds FROM table_17001658_10 WHERE high_assists = "D. J. Augustin (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_10 (loss INTEGER, name VARCHAR, gain VARCHAR) ### Question: What is the lowest Loss with Gain larger than 319 for derrick locke? ### Answer: SELECT MIN(loss) FROM table_name_10 WHERE name = "derrick locke" AND gain > 319
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_21146729_6 (series__number INTEGER, original_airdate VARCHAR) ### Question: What was the series# with the original airdate of october 23, 1967? ### Answer: SELECT MAX(series__number) FROM table_21146729_6 WHERE original_airdate = "October 23, 1967"
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 (rank INTEGER, name VARCHAR, points VARCHAR) ### Question: Which Rank has a Name of thomas morgenstern, and Points larger than 368.9? ### Answer: SELECT AVG(rank) FROM table_name_38 WHERE name = "thomas morgenstern" AND points > 368.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_25030512_24 (candidates VARCHAR, first_elected VARCHAR) ### Question: Name the candidates for first elected being 1976 ### Answer: SELECT candidates FROM table_25030512_24 WHERE first_elected = "1976"
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_1341672_14 (first_elected VARCHAR, incumbent VARCHAR) ### Question: Name the number of first elected for phil crane ### Answer: SELECT COUNT(first_elected) FROM table_1341672_14 WHERE incumbent = "Phil Crane"
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_21 (visiting_team VARCHAR, host_team VARCHAR) ### Question: What team played on the road against the Buffalo Bills at home ? ### Answer: SELECT visiting_team FROM table_name_21 WHERE host_team = "buffalo bills"
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_82 (title VARCHAR, name VARCHAR) ### Question: What is Rinnal's title? ### Answer: SELECT title FROM table_name_82 WHERE name = "rinnal"
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_76 (pick VARCHAR, college VARCHAR) ### Question: What is the Pick number of the Player from Syracuse? ### Answer: SELECT pick FROM table_name_76 WHERE college = "syracuse"
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 (winner VARCHAR, stage VARCHAR, team_classification VARCHAR, general_classification VARCHAR) ### Question: Who has a Team classification of la vie claire, a stage of 20, a General classification of greg lemond? ### Answer: SELECT winner FROM table_name_80 WHERE team_classification = "la vie claire" AND general_classification = "greg lemond" AND stage = "20"
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 (number_of_electorates__2009_ INTEGER, district VARCHAR) ### Question: What is the average number of electorates (2009) when the district is indore? ### Answer: SELECT AVG(number_of_electorates__2009_) FROM table_name_58 WHERE district = "indore"
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 (home_team VARCHAR, away_team VARCHAR) ### Question: What is the home team score with Fitzroy as away team? ### Answer: SELECT home_team AS score FROM table_name_91 WHERE away_team = "fitzroy"
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_26400438_1 (series VARCHAR, team VARCHAR) ### Question: In which series did Lecor Sports participate? ### Answer: SELECT series FROM table_26400438_1 WHERE team = "Lecor Sports"
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_72 (date_of_appointment VARCHAR, team VARCHAR) ### Question: When was the appointment date for VFL Wolfsburg? ### Answer: SELECT date_of_appointment FROM table_name_72 WHERE team = "vfl wolfsburg"
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_21 (crowd INTEGER, away_team VARCHAR) ### Question: WHAT WAS COLLINGWOOD'S LOWEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM? ### Answer: SELECT MIN(crowd) FROM table_name_21 WHERE away_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_name_10 (rank INTEGER, country VARCHAR) ### Question: What is the sum of the ranks for bulgaria? ### Answer: SELECT SUM(rank) FROM table_name_10 WHERE country = "bulgaria"
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_34 (location VARCHAR, record VARCHAR) ### Question: Where is the location with a record of 50-19? ### Answer: SELECT location FROM table_name_34 WHERE record = "50-19"
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 (to_par VARCHAR, score VARCHAR) ### Question: What was the TO par for the player who scored 70-68-74-70=282? ### Answer: SELECT to_par FROM table_name_26 WHERE score = 70 - 68 - 74 - 70 = 282
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_57 (bbc_two_total_viewing VARCHAR, year VARCHAR) ### Question: How much is the total BBC 2 viewing in 1999? ### Answer: SELECT bbc_two_total_viewing FROM table_name_57 WHERE year = "1999"
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 (score VARCHAR, record VARCHAR) ### Question: What was the score when the Blue Jays had a record of 39-20? ### Answer: SELECT score FROM table_name_56 WHERE record = "39-20"
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 photos (id VARCHAR, color VARCHAR, name VARCHAR) ### Question: List the id, color scheme, and name for all the photos. ### Answer: SELECT id, color, name FROM photos
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_1473672_3 (college_junior_club_team VARCHAR, player VARCHAR) ### Question: Which colle/junior/club team did Michel Boudreau play for? ### Answer: SELECT college_junior_club_team FROM table_1473672_3 WHERE player = "Michel Boudreau"
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 (data_limit__gb VARCHAR, company VARCHAR, plan_name VARCHAR) ### Question: What is the data limit for a T-Mobile internet basic plan? ### Answer: SELECT data_limit__gb FROM table_name_18 WHERE company = "t-mobile" AND plan_name = "internet basic"
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_82 (election VARCHAR) ### Question: What is 2nd Party, when Election is "1865"? ### Answer: SELECT 2 AS nd_party FROM table_name_82 WHERE election = "1865"
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_2869843_1 (bi_tone VARCHAR, model VARCHAR, olive_drab VARCHAR, caliber VARCHAR) ### Question: are there bi-tone is there's no olive drab and the caliber is 9×19mm parabellum and model is xdm 5.25 competition ### Answer: SELECT bi_tone FROM table_2869843_1 WHERE olive_drab = "No" AND caliber = "9×19mm Parabellum" AND model = "XDM 5.25 Competition"
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_1 (name VARCHAR, left_office VARCHAR) ### Question: Who left office in June 2011? ### Answer: SELECT name FROM table_name_1 WHERE left_office = "june 2011"
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_22514845_4 (reporters VARCHAR, year VARCHAR) ### Question: Who are the reporters for the year of 1984? ### Answer: SELECT reporters FROM table_22514845_4 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_27155243_3 (total__number VARCHAR, written_by VARCHAR, directed_by VARCHAR) ### Question: How many different episode numbers does the episode written by Sheri Elwood and directed by Jim Allodi have? ### Answer: SELECT COUNT(total__number) FROM table_27155243_3 WHERE written_by = "Sheri Elwood" AND directed_by = "Jim Allodi"
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_26912584_2 (skip VARCHAR, country VARCHAR, Sweden VARCHAR) ### Question: When sweden is the country who is the skip? ### Answer: SELECT skip FROM table_26912584_2 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_85 (high_points VARCHAR, location_attendance VARCHAR) ### Question: At Time Warner Cable Arena 12,096, what was the high points? ### Answer: SELECT high_points FROM table_name_85 WHERE location_attendance = "time warner cable arena 12,096"
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 (opponent VARCHAR, outcome VARCHAR, date VARCHAR) ### Question: Which opponent has an Outcome of winner, and a Date of 5 november 2011? ### Answer: SELECT opponent FROM table_name_26 WHERE outcome = "winner" AND date = "5 november 2011"
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 station (name VARCHAR, LOCATION VARCHAR, Annual_entry_exit VARCHAR, Annual_interchanges VARCHAR) ### Question: List the names and locations of all stations ordered by their yearly entry exit and interchange amounts. ### Answer: SELECT name, LOCATION FROM station ORDER BY Annual_entry_exit, Annual_interchanges
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_93 (ground VARCHAR, home_team VARCHAR) ### Question: What is the name of the home stadium of Brisbane Lions? ### Answer: SELECT ground FROM table_name_93 WHERE home_team = "brisbane lions"
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 (entered_service VARCHAR, serial_no VARCHAR) ### Question: What is the entered service date for serial number 85-1222? ### Answer: SELECT entered_service FROM table_name_29 WHERE serial_no = "85-1222"
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_16677738_1 (holborn_division INTEGER, tower_division VARCHAR) ### Question: When 272966 is the tower division what is the highest holborn division? ### Answer: SELECT MAX(holborn_division) FROM table_16677738_1 WHERE tower_division = 272966
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_24587026_1 (position VARCHAR, podiums VARCHAR, team VARCHAR) ### Question: Name the position for 0 podiums and carlin team ### Answer: SELECT position FROM table_24587026_1 WHERE podiums = 0 AND team = "Carlin"
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 (voting_order VARCHAR, commentator VARCHAR) ### Question: What was the voting order when the commentator was renato tagliani? ### Answer: SELECT voting_order FROM table_name_95 WHERE commentator = "renato tagliani"
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 Allergy_type (allergytype VARCHAR) ### Question: Which allergy type has least number of allergies? ### Answer: SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY COUNT(*) 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 CMI_Cross_References (source_system_code VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Benefits_Overpayments (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR) ### Question: What is the tax source system code related to the benefits and overpayments? List the code and the benifit id, order by benifit id. ### Answer: SELECT T1.source_system_code, T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id ORDER BY T2.council_tax_id
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 (release_price___usd__ VARCHAR, gpu_frequency VARCHAR) ### Question: What is the release price for the GPU frequency of standard power, embedded? ### Answer: SELECT release_price___usd__ FROM table_name_96 WHERE gpu_frequency = "standard power, embedded"
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 (ddr3_speed INTEGER, model VARCHAR) ### Question: Name the average DDR3 speed for model e-350 ### Answer: SELECT AVG(ddr3_speed) FROM table_name_15 WHERE model = "e-350"
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 (latin VARCHAR, tibetan VARCHAR) ### Question: What is the Latin letter for the Tibetan of ས? ### Answer: SELECT latin FROM table_name_13 WHERE tibetan = "ས"
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_18161217_2 (launch_date VARCHAR, cospar_id VARCHAR) ### Question: What was the launch date the satellite with cospar ID is 2008-033A? ### Answer: SELECT launch_date FROM table_18161217_2 WHERE cospar_id = "2008-033A"
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 phone (Carrier VARCHAR) ### Question: Show the most frequently used carrier of the phones. ### Answer: SELECT Carrier FROM phone GROUP BY Carrier ORDER BY COUNT(*) 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_83 (against INTEGER, central_murray VARCHAR, losses VARCHAR) ### Question: What are the most againsts with more than 11 losses and central murray is Nyah Nyah West Utd? ### Answer: SELECT MAX(against) FROM table_name_83 WHERE central_murray = "nyah nyah west utd" AND losses > 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_39 (year VARCHAR, theme VARCHAR, issue_price VARCHAR) ### Question: How many years have a theme of Toronto Maple Leafs and an Issue Price of 24.95? ### Answer: SELECT COUNT(year) FROM table_name_39 WHERE theme = "toronto maple leafs" AND issue_price = 24.95
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 region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (storm_id VARCHAR, Number_Deaths VARCHAR) ### Question: Find the names of the regions which were affected by the storm that killed the greatest number of people. ### Answer: SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths 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_81 (format VARCHAR, catalog VARCHAR) ### Question: Which Format has a Catalog of 561 445-1? ### Answer: SELECT format FROM table_name_81 WHERE catalog = "561 445-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_2190919_1 (top_10 VARCHAR, avg_finish VARCHAR) ### Question: How many teams finished in the top team with an average finish of 23.3? ### Answer: SELECT COUNT(top_10) FROM table_2190919_1 WHERE avg_finish = "23.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_49 (film VARCHAR, country VARCHAR) ### Question: What film was filmed in Spain? ### Answer: SELECT film FROM table_name_49 WHERE country = "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 table_1708050_1 (poles VARCHAR, position VARCHAR) ### Question: Name the poles for 25th position ### Answer: SELECT poles FROM table_1708050_1 WHERE position = "25th"
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 (team_1 VARCHAR, team_2 VARCHAR) ### Question: who is team 1 when team 2 is usl dunkerque (d2)? ### Answer: SELECT team_1 FROM table_name_87 WHERE team_2 = "usl dunkerque (d2)"
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 (rank INTEGER, time VARCHAR) ### Question: what is the highest rank when the time is 7:52.65? ### Answer: SELECT MAX(rank) FROM table_name_73 WHERE time = "7:52.65"
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 authors (Id VARCHAR) ### Question: How many authors are there? ### Answer: SELECT COUNT(*) FROM authors
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_24613895_1 (number_of_believers VARCHAR, name_of_village VARCHAR) ### Question: Name the number of believers for patavur ### Answer: SELECT COUNT(number_of_believers) FROM table_24613895_1 WHERE name_of_village = "Patavur"
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_13789248_2 (points INTEGER, highest_position VARCHAR) ### Question: what is the minimum points with highest position being 1 ### Answer: SELECT MIN(points) FROM table_13789248_2 WHERE highest_position = 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_33 (opponent VARCHAR, game VARCHAR) ### Question: Which Opponent has a Game of 63? ### Answer: SELECT opponent FROM table_name_33 WHERE game = 63
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_29135051_3 (broadcast_date VARCHAR, guest_s_ VARCHAR) ### Question: when was the episode guest starring michael mcintyre and alex james broadcasted ### Answer: SELECT broadcast_date FROM table_29135051_3 WHERE guest_s_ = "Michael McIntyre and Alex James"
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 (date VARCHAR, outcome VARCHAR, partner VARCHAR) ### Question: What Date has an Outcome of runner up, and a Partner of tyra calderwood? ### Answer: SELECT date FROM table_name_30 WHERE outcome = "runner up" AND partner = "tyra calderwood"
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 (championship VARCHAR, surface VARCHAR, score_in_the_final VARCHAR) ### Question: What was the championship that had final score of 6–2, 5–7, 6–4, 6–2 and was on a clay surface? ### Answer: SELECT championship FROM table_name_41 WHERE surface = "clay" AND score_in_the_final = "6–2, 5–7, 6–4, 6–2"
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 (date INTEGER, works_number VARCHAR, type VARCHAR, number VARCHAR) ### Question: What date have highest 0-4-4 forney locomotive with number larger than 20 and works number larger than 23754? ### Answer: SELECT MAX(date) FROM table_name_90 WHERE type = "0-4-4 forney locomotive" AND number > 20 AND works_number > 23754
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 accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER) ### Question: Find the name of accounts whose checking balance is below the average checking balance. ### Answer: SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM checking)
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_28178756_1 (miles__km_ VARCHAR, year VARCHAR) ### Question: List the numer of miles for 2010. ### Answer: SELECT miles__km_ FROM table_28178756_1 WHERE year = 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 customers (customer_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR) ### Question: Which city has the most customers living in? ### Answer: SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY COUNT(*) 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_25938117_1 (date VARCHAR, tournament VARCHAR) ### Question: Name the total number of dates for toshiba classic ### Answer: SELECT COUNT(date) FROM table_25938117_1 WHERE tournament = "Toshiba Classic"
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_15700367_6 (runs_conceded VARCHAR, er VARCHAR) ### Question: How many runs conceded when the earned runs was 4.96? ### Answer: SELECT runs_conceded FROM table_15700367_6 WHERE er = "4.96"
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_2850912_12 (pick__number VARCHAR, nhl_team VARCHAR) ### Question: Which draft number did the new jersey devils get? ### Answer: SELECT pick__number FROM table_2850912_12 WHERE nhl_team = "New Jersey Devils"
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 singer (country VARCHAR, age INTEGER) ### Question: What are all distinct countries where singers above age 20 are from? ### Answer: SELECT DISTINCT country FROM singer WHERE age > 20
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_10748727_1 (wins INTEGER, series VARCHAR) ### Question: what is the greatest number of wins by japanese formula three? ### Answer: SELECT MAX(wins) FROM table_10748727_1 WHERE series = "Japanese Formula Three"
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 (college_junior_club_team__league_ VARCHAR, player VARCHAR) ### Question: Which college/junior/club team (league) did Brett Sonne play in? ### Answer: SELECT college_junior_club_team__league_ FROM table_name_45 WHERE player = "brett sonne"
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 (goals_for INTEGER, points VARCHAR, played VARCHAR) ### Question: How many goals were scored by the team that played less than 38 games, and had points of 47+9? ### Answer: SELECT MAX(goals_for) FROM table_name_15 WHERE points = "47+9" AND played < 38
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_1342249_35 (first_elected VARCHAR, district VARCHAR) ### Question: What is the first electedfor district ohio 18 ### Answer: SELECT first_elected FROM table_1342249_35 WHERE district = "Ohio 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_54 (career_win_loss VARCHAR) ### Question: Which 2008 has a Career Win-Loss of 25–40? ### Answer: SELECT 2008 FROM table_name_54 WHERE career_win_loss = "25–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 table_name_1 (period__days_ INTEGER, type VARCHAR, planetary_mass___m⊕__ VARCHAR, stellar_mass___m__ VARCHAR) ### Question: What is the smallest period (days) to have a planetary mass of 1, a stellar mass greater than 0.21 and of the type M0? ### Answer: SELECT MIN(period__days_) FROM table_name_1 WHERE planetary_mass___m⊕__ = 1 AND stellar_mass___m__ > 0.21 AND type = "m0"
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 (weeks_on_top INTEGER, issue_date_s_ VARCHAR) ### Question: Which Weeks on Top have an Issue Date(s) of 20 november? ### Answer: SELECT SUM(weeks_on_top) FROM table_name_94 WHERE issue_date_s_ = "20 november"
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 (percentage VARCHAR, first_game VARCHAR) ### Question: What Percentage did the First game of 1998 have? ### Answer: SELECT percentage FROM table_name_80 WHERE first_game = 1998
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_2182562_1 (year VARCHAR, position VARCHAR) ### Question: How many years was the position 97th? ### Answer: SELECT COUNT(year) FROM table_2182562_1 WHERE position = "97th"
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 (episodes INTEGER, last_airdate VARCHAR) ### Question: How many episodes were in the season that ended on April 29, 1986? ### Answer: SELECT AVG(episodes) FROM table_name_65 WHERE last_airdate = "april 29, 1986"
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 (draw VARCHAR, dance_styles VARCHAR) ### Question: How many draws have rumba/tango dance styles? ### Answer: SELECT COUNT(draw) FROM table_name_79 WHERE dance_styles = "rumba/tango"
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 (date VARCHAR, against VARCHAR) ### Question: What is the date of the 42 Against? ### Answer: SELECT date FROM table_name_8 WHERE against = 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_68 (location VARCHAR, type VARCHAR) ### Question: What location has surveying as the type? ### Answer: SELECT location FROM table_name_68 WHERE type = "surveying"
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 (to_par VARCHAR, country VARCHAR) ### Question: What's england's to par? ### Answer: SELECT to_par FROM table_name_50 WHERE country = "england"
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 airports (name VARCHAR, country VARCHAR) ### Question: Find the name of the airports located in Cuba or Argentina. ### Answer: SELECT name FROM airports WHERE country = 'Cuba' OR country = 'Argentina'
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_26708105_5 (protein_name VARCHAR, e_value VARCHAR) ### Question: What is the protein name when the e-value is 2.50e-41? ### Answer: SELECT protein_name FROM table_26708105_5 WHERE e_value = "2.50E-41"
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_26982362_2 (title VARCHAR, original_airdate VARCHAR) ### Question: What is the title of the episode whose original airdate is April 23, 2010? ### Answer: SELECT title FROM table_26982362_2 WHERE original_airdate = "April 23, 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_90 (district VARCHAR, first_elected VARCHAR, party VARCHAR, results VARCHAR) ### Question: What Republican District had Incumbent First Elected in 2000 then Re-elected? ### Answer: SELECT district FROM table_name_90 WHERE party = "republican" AND results = "re-elected" AND first_elected = 2000
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 (type VARCHAR, school_id VARCHAR); CREATE TABLE school_bus (school_id VARCHAR) ### Question: Show the type of school and the number of buses for each type. ### Answer: SELECT T2.type, COUNT(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type
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_25604014_6 (title VARCHAR, no_in_season VARCHAR) ### Question: What are the titles of the pieces that are number 2 in season? ### Answer: SELECT title FROM table_25604014_6 WHERE no_in_season = 2
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 (bronze INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR) ### Question: What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9? ### Answer: SELECT SUM(bronze) FROM table_name_49 WHERE total < 8 AND rank = 9 AND silver < 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_20903658_1 (medium VARCHAR, title_subject VARCHAR) ### Question: What medium was used for the sculpture of George Harold Baker? ### Answer: SELECT medium FROM table_20903658_1 WHERE title_subject = "George Harold Baker"
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_26108103_2 (opponent VARCHAR, rushing_yards VARCHAR) ### Question: Who was the opponent when there was 117 rushing yards? ### Answer: SELECT opponent FROM table_26108103_2 WHERE rushing_yards = 117
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_92 (country VARCHAR, player VARCHAR) ### Question: What country has player Nick Faldo? ### Answer: SELECT country FROM table_name_92 WHERE player = "nick faldo"
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, year_of_census VARCHAR, serbs VARCHAR) ### Question: What is the average total of the census after 1971 with 10,412 (32.88%) Serbs? ### Answer: SELECT AVG(total) FROM table_name_90 WHERE year_of_census > 1971 AND serbs = "10,412 (32.88%)"
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 (nhl_team VARCHAR, player VARCHAR) ### Question: Which team picked Dave Bonter? ### Answer: SELECT nhl_team FROM table_name_23 WHERE player = "dave bonter"
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_20799905_1 (county VARCHAR, mccain_percentage VARCHAR) ### Question: In what county did McCain get 57.8%? ### Answer: SELECT county FROM table_20799905_1 WHERE mccain_percentage = "57.8%"