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_60 (incumbent VARCHAR, district VARCHAR)
### Question:
Which incumbent was in the 24th district?
### Answer:
SELECT incumbent FROM table_name_60 WHERE district = "24th" |
Below is an context that describes a 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 (attendance VARCHAR, record VARCHAR)
### Question:
Name the total number of people that went when the record was 16-22
### Answer:
SELECT COUNT(attendance) FROM table_name_32 WHERE record = "16-22" |
Below is an context that describes a 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 (party VARCHAR, home_town VARCHAR, district VARCHAR, took_office VARCHAR)
### Question:
What is Party, when District is less than 10, when Took Office is less than 1991, and when Home Town is Mount Pleasant?
### Answer:
SELECT party FROM table_name_22 WHERE district < 10 AND took_office < 1991 AND home_town = "mount pleasant" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25689740_2 (Ends VARCHAR, pa VARCHAR)
### Question:
What is shown for ends lost when pa is 44?
### Answer:
SELECT Ends AS lost FROM table_25689740_2 WHERE pa = 44 |
Below is an context that describes a 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_75 (date VARCHAR, home_team VARCHAR)
### Question:
What date did Collingwood play as the home team?
### Answer:
SELECT date FROM table_name_75 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_2468961_8 (written_by VARCHAR, directed_by VARCHAR, original_air_date VARCHAR)
### Question:
Name who wrote the episode directed by patrick duffy airing on november 7, 1997
### Answer:
SELECT written_by FROM table_2468961_8 WHERE directed_by = "Patrick Duffy" AND original_air_date = "November 7, 1997" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE device (Id VARCHAR)
### Question:
How many devices are there?
### Answer:
SELECT COUNT(*) FROM device |
Below is an context that describes a 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 (race VARCHAR, group VARCHAR, result VARCHAR)
### Question:
What was the race of the jockey in na group in 4th place?
### Answer:
SELECT race FROM table_name_15 WHERE group = "na" AND result = "4th" |
Below is an context that describes a 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 (home_captain VARCHAR, venue VARCHAR)
### Question:
Name the Home captain for venue of the oval
### Answer:
SELECT home_captain FROM table_name_14 WHERE venue = "the 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 table_name_1 (hand_guards VARCHAR, barrel_profile VARCHAR, rear_sight VARCHAR)
### Question:
Which Hand guards has a Barrel profile of a2 and a Rear sight of weaver?
### Answer:
SELECT hand_guards FROM table_name_1 WHERE barrel_profile = "a2" AND rear_sight = "weaver" |
Below is an context that describes a 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 (tournament VARCHAR)
### Question:
Which 2013 has a 2007 of A, and a Tournament of french open?
### Answer:
SELECT 2013 FROM table_name_49 WHERE 2007 = "a" AND tournament = "french open" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_29644931_1 (participants_recipients VARCHAR, category VARCHAR)
### Question:
Which films participated when the category was Best Newcomer?
### Answer:
SELECT participants_recipients FROM table_29644931_1 WHERE category = "Best Newcomer" |
Below is an context that describes a 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 (rank INTEGER, gold VARCHAR, silver VARCHAR)
### Question:
What is the rank of the team with 0 gold and less than 0 silvers?
### Answer:
SELECT SUM(rank) FROM table_name_72 WHERE gold = 0 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_name_91 (date VARCHAR, result VARCHAR, record VARCHAR)
### Question:
What is the Date of the game with a Loss and Record of 7-9?
### Answer:
SELECT date FROM table_name_91 WHERE result = "loss" AND record = "7-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_2267465_1 (average_speed__mph_ VARCHAR, year VARCHAR)
### Question:
What's the average mph of 1964?
### Answer:
SELECT average_speed__mph_ FROM table_2267465_1 WHERE year = "1964" |
Below is an context that describes a 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_47 (total VARCHAR, play_offs INTEGER)
### Question:
How many totals have a play-off less than 0?
### Answer:
SELECT COUNT(total) FROM table_name_47 WHERE play_offs < 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_20095300_1 (number INTEGER, trainer VARCHAR)
### Question:
What's the number of the horse whose trainer is Kim Bailey?
### Answer:
SELECT MAX(number) FROM table_20095300_1 WHERE trainer = "Kim Bailey" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11190568_7 (date_of_appointment VARCHAR, team VARCHAR)
### Question:
When are team Galway's dates of appointment?
### Answer:
SELECT date_of_appointment FROM table_11190568_7 WHERE team = "Galway" |
Below is an context that describes a 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_62 (high_rebounds VARCHAR, team VARCHAR)
### Question:
Who had the high rebounds, and how many, when they played Denver?
### Answer:
SELECT high_rebounds FROM table_name_62 WHERE team = "denver" |
Below is an context that describes a 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_4 (party VARCHAR, incumbent VARCHAR)
### Question:
Name the party for spencer bachus
### Answer:
SELECT party FROM table_25030512_4 WHERE incumbent = "Spencer Bachus" |
Below is an context that describes a 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 (Giant VARCHAR, overall VARCHAR, super_g VARCHAR)
### Question:
What was her Giant Slalom score when her Overall was greater than 3 and her Super G score was 12?
### Answer:
SELECT Giant AS slalom FROM table_name_28 WHERE overall > 3 AND super_g = 12 |
Below is an context that describes a 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 (date VARCHAR, away_team VARCHAR)
### Question:
What day did Footscray play as the away team?
### Answer:
SELECT date FROM table_name_34 WHERE away_team = "footscray" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22683369_8 (league VARCHAR, player VARCHAR)
### Question:
What is Kris doolan's league number?
### Answer:
SELECT COUNT(league) FROM table_22683369_8 WHERE player = "Kris Doolan" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26538461_2 (subdivides_in VARCHAR, equivalence_in_varas VARCHAR)
### Question:
Name the subdivides in equivalence for varas 1/5
### Answer:
SELECT subdivides_in FROM table_26538461_2 WHERE equivalence_in_varas = "1/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_2562572_9 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)
### Question:
What is the cyrillic name for Budisava?
### Answer:
SELECT cyrillic_name_other_names FROM table_2562572_9 WHERE settlement = "Budisava" |
Below is an context that describes a 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 (production VARCHAR, award_ceremony VARCHAR, result VARCHAR, year VARCHAR)
### Question:
Which Production in 2009 had a Result of Nominated at the Helpmann awards Award Ceremony?
### Answer:
SELECT production FROM table_name_67 WHERE result = "nominated" AND year = 2009 AND award_ceremony = "helpmann awards" |
Below is an context that describes a 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 (voting_order INTEGER, commentator VARCHAR)
### Question:
What was the voting order when bunny carr was the commentator?
### Answer:
SELECT SUM(voting_order) FROM table_name_50 WHERE commentator = "bunny carr" |
Below is an context that describes a 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 (location VARCHAR, result VARCHAR)
### Question:
What was the location with the 24-21 result?
### Answer:
SELECT location FROM table_name_54 WHERE result = "24-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_12720275_1 (combined_statistical_area__or_metropolitan_statistical_area_if_noted_ VARCHAR)
### Question:
What is the 2007 estimate for tulsa-bartlesville, ok csa?
### Answer:
SELECT 2007 AS _estimate FROM table_12720275_1 WHERE combined_statistical_area__or_metropolitan_statistical_area_if_noted_ = "Tulsa-Bartlesville, OK CSA" |
Below is an context that describes a 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 (week INTEGER, result VARCHAR)
### Question:
What's the average Week with the Result l 23–3?
### Answer:
SELECT AVG(week) FROM table_name_49 WHERE result = "l 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_94 (react INTEGER, name VARCHAR)
### Question:
What was Bryan Clay's react time?
### Answer:
SELECT MIN(react) FROM table_name_94 WHERE name = "bryan clay" |
Below is an context that describes a 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 (school VARCHAR, player VARCHAR)
### Question:
What School did Player Alonzo Mourning attend?
### Answer:
SELECT school FROM table_name_74 WHERE player = "alonzo mourning" |
Below is an context that describes a 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_63 (points INTEGER, goals_for VARCHAR, goal_average VARCHAR, draws VARCHAR)
### Question:
What is the highest amount of points with a goal average larger than 4, less than 12 draws, and a goal of 63?
### Answer:
SELECT MAX(points) FROM table_name_63 WHERE goal_average > 4 AND draws < 12 AND goals_for = 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_name_7 (vin_code VARCHAR, compression_ratio VARCHAR)
### Question:
Tell me the VIN code for compression ratio of 10.50:1
### Answer:
SELECT vin_code FROM table_name_7 WHERE compression_ratio = "10.50: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_2503102_2 (team VARCHAR, listed_owner_s_ VARCHAR)
### Question:
What team owns the car owned by chip ganassi?
### Answer:
SELECT team FROM table_2503102_2 WHERE listed_owner_s_ = "Chip Ganassi" |
Below is an context that describes a 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 (gloss VARCHAR, pronunciation VARCHAR)
### Question:
Name the gloss for [χdəm]
### Answer:
SELECT gloss FROM table_name_69 WHERE pronunciation = "[χdə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_57 (points_1 INTEGER, goal_difference VARCHAR, drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)
### Question:
What is the most points 1 when the goals against are fewer than 97, lost less than 22, 9 draws and goal difference of +28?
### Answer:
SELECT MAX(points_1) FROM table_name_57 WHERE goals_against < 97 AND lost < 22 AND drawn = 9 AND goal_difference = "+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_80 (record VARCHAR, res VARCHAR, event VARCHAR)
### Question:
What is the record that resulted in a loss at the RSF: Shooto Challenge 2?
### Answer:
SELECT record FROM table_name_80 WHERE res = "loss" AND event = "rsf: shooto challenge 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_1341640_39 (district VARCHAR, incumbent VARCHAR)
### Question:
What district is Ray Musto the incumbent of?
### Answer:
SELECT district FROM table_1341640_39 WHERE incumbent = "Ray Musto" |
Below is an context that describes a 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 (week VARCHAR, attendance VARCHAR)
### Question:
What is the week number with attendance of 44,132?
### Answer:
SELECT COUNT(week) FROM table_name_2 WHERE attendance = 44 OFFSET 132 |
Below is an context that describes a 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 (chassis VARCHAR, points VARCHAR)
### Question:
What company made the chassis when there were 8 points?
### Answer:
SELECT chassis FROM table_name_8 WHERE points = 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_1 (date_of_birth__age_ VARCHAR, player VARCHAR)
### Question:
When was brian lemay born?
### Answer:
SELECT date_of_birth__age_ FROM table_name_1 WHERE player = "brian lemay" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26565936_2 (no_in_series VARCHAR, written_by VARCHAR)
### Question:
What number(s) in the series was written by bo crese?
### Answer:
SELECT no_in_series FROM table_26565936_2 WHERE written_by = "Bo Crese" |
Below is an context that describes a 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 (college VARCHAR, hometown VARCHAR)
### Question:
What college did the player from Fort Lauderdale, FL attend?
### Answer:
SELECT college FROM table_name_79 WHERE hometown = "fort lauderdale, fl" |
Below is an context that describes a 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 (cycle INTEGER, number_of_contestants VARCHAR, international_destinations VARCHAR)
### Question:
What is the lowest Cycle, when Number Of Contestants is 11, and when International Destinations is Paris Gran Canaria?
### Answer:
SELECT MIN(cycle) FROM table_name_57 WHERE number_of_contestants = "11" AND international_destinations = "paris gran canaria" |
Below is an context that describes a 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_62 (draws INTEGER, losses VARCHAR, byes VARCHAR)
### Question:
What is the lowest draw that has 5 losses and byes greater than 0?
### Answer:
SELECT MIN(draws) FROM table_name_62 WHERE losses = 5 AND byes > 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_47 (education VARCHAR, hometown VARCHAR)
### Question:
For natives of St. Louis, Missouri, what was listed under education?
### Answer:
SELECT education FROM table_name_47 WHERE hometown = "st. louis, missouri" |
Below is an context that describes a 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 (to_par VARCHAR, player VARCHAR)
### Question:
what is the to par for retief goosen?
### Answer:
SELECT to_par FROM table_name_93 WHERE player = "retief goosen" |
Below is an context that describes a 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 (results¹ VARCHAR, type_of_game VARCHAR, opponent VARCHAR)
### Question:
What results has euro '84 qualifying as the type of game and norway as the opponent?
### Answer:
SELECT results¹ FROM table_name_90 WHERE type_of_game = "euro '84 qualifying" AND opponent = "norway" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2869837_1 (Shared INTEGER, last_final VARCHAR)
### Question:
What is the minimum number of shared titles for the club whose last final was in 2006?
### Answer:
SELECT MIN(Shared) AS titles FROM table_2869837_1 WHERE last_final = 2006 |
Below is an context that describes a 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 (top_10 INTEGER, top_5 VARCHAR, cuts_made VARCHAR)
### Question:
How many top 10s associated with 3 top 5s and under 22 cuts made?
### Answer:
SELECT MAX(top_10) FROM table_name_13 WHERE top_5 = 3 AND cuts_made < 22 |
Below is an context that describes a 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_63 (to_par VARCHAR, place VARCHAR, score VARCHAR)
### Question:
What is the To par of the T4 Place Player with a Score of 72-69-73=214?
### Answer:
SELECT to_par FROM table_name_63 WHERE place = "t4" AND score = 72 - 69 - 73 = 214 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25084227_1 (no INTEGER, directed_by VARCHAR)
### Question:
If the episode was directed by Michael Offer, what was the episode number?
### Answer:
SELECT MIN(no) FROM table_25084227_1 WHERE directed_by = "Michael Offer" |
Below is an context that describes a 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_64 (record VARCHAR, time VARCHAR, opponent VARCHAR)
### Question:
What's the record that had an opponent of Krzysztof Soszynski and a time of 4:00?
### Answer:
SELECT record FROM table_name_64 WHERE time = "4:00" AND opponent = "krzysztof soszynski" |
Below is an context that describes a 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 (green_rating VARCHAR, engine_capacity VARCHAR, manufacturer VARCHAR, l_100km_urban__cold_ VARCHAR, mpg_us_urban VARCHAR)
### Question:
What is the green rating for the vehicle with L/100km urban (cold) over 10.9, mpg in the US (urban) over 14.1, manufacturer of Volkswagen, and engine capacity under 3189?
### Answer:
SELECT green_rating FROM table_name_68 WHERE l_100km_urban__cold_ > 10.9 AND mpg_us_urban > 14.1 AND manufacturer = "volkswagen" AND engine_capacity < 3189 |
Below is an context that describes a 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 (opponent VARCHAR, surface VARCHAR, date VARCHAR)
### Question:
Who played on clay on 3 march 2012?
### Answer:
SELECT opponent FROM table_name_16 WHERE surface = "clay" AND date = "3 march 2012" |
Below is an context that describes a 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 (name VARCHAR, windows VARCHAR)
### Question:
What is the name when Windows is partial?
### Answer:
SELECT name FROM table_name_55 WHERE windows = "partial" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21721351_18 (pick__number INTEGER, player VARCHAR)
### Question:
What is the pick # for player david grannis?
### Answer:
SELECT MAX(pick__number) FROM table_21721351_18 WHERE player = "David Grannis" |
Below is an context that describes a 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 (position VARCHAR, player VARCHAR)
### Question:
What is Position when Player is Drew Barry Category:Articles With hCards?
### Answer:
SELECT position FROM table_name_54 WHERE player = "drew barry 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_26611679_3 (average VARCHAR, games_played VARCHAR)
### Question:
Name the average for 23 games played
### Answer:
SELECT average FROM table_26611679_3 WHERE games_played = 23 |
Below is an context that describes a 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 (cfl_team VARCHAR, pick__number VARCHAR)
### Question:
What is the CFL Team with #48 as the pick number?
### Answer:
SELECT cfl_team FROM table_name_98 WHERE pick__number = 48 |
Below is an context that describes a 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 (australia VARCHAR, japan VARCHAR)
### Question:
Tell me the Australia march 17, 2005
### Answer:
SELECT australia FROM table_name_84 WHERE japan = "march 17, 2005" |
Below is an context that describes a 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 (grid INTEGER, rider VARCHAR, laps VARCHAR, bike VARCHAR)
### Question:
Which Grid has Laps smaller than 22, and a Bike of honda cbr1000rr, and a Rider of luca morelli?
### Answer:
SELECT MIN(grid) FROM table_name_88 WHERE laps < 22 AND bike = "honda cbr1000rr" AND rider = "luca morelli" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27450976_1 (written_by VARCHAR, production_code VARCHAR)
### Question:
How many people wrote the episode with a production code of 2j5507?
### Answer:
SELECT COUNT(written_by) FROM table_27450976_1 WHERE production_code = "2J5507" |
Below is an context that describes a 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 (print_name VARCHAR, date_completed VARCHAR)
### Question:
What was the print name in 07/87?
### Answer:
SELECT print_name FROM table_name_39 WHERE date_completed = "07/87" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1233808_2 (home_or_away VARCHAR, record VARCHAR)
### Question:
Is the biggest win recorded as home or away?
### Answer:
SELECT home_or_away FROM table_1233808_2 WHERE record = "Biggest win" |
Below is an context that describes a 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_37 (attendance VARCHAR, date VARCHAR)
### Question:
How many Attendances on 13 april 1903?
### Answer:
SELECT attendance FROM table_name_37 WHERE date = "13 april 1903" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17340355_6 (game VARCHAR, team VARCHAR)
### Question:
Which game was played by team milwaukee
### Answer:
SELECT game FROM table_17340355_6 WHERE team = "Milwaukee" |
Below is an context that describes a 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_42 (played VARCHAR, position VARCHAR, team VARCHAR)
### Question:
What is the number of played when the position is less than 4, and the team is Witton Albion?
### Answer:
SELECT COUNT(played) FROM table_name_42 WHERE position < 4 AND team = "witton albion" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE university (enrollment INTEGER)
### Question:
What is the total and minimum enrollment of all schools?
### Answer:
SELECT SUM(enrollment), MIN(enrollment) FROM university |
Below is an context that describes a 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 (score VARCHAR, opponent VARCHAR)
### Question:
What was the score in the match against Kim Tiilikainen?
### Answer:
SELECT score FROM table_name_49 WHERE opponent = "kim tiilikainen" |
Below is an context that describes a 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 (away_team VARCHAR, tie_no VARCHAR)
### Question:
What is the away team with a 4 tie no.?
### Answer:
SELECT away_team FROM table_name_57 WHERE tie_no = "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_22848931_3 (manner_of_departure VARCHAR, date_of_vacancy VARCHAR)
### Question:
Name the manner of departure for 1 december 2009
### Answer:
SELECT manner_of_departure FROM table_22848931_3 WHERE date_of_vacancy = "1 December 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_55 (year INTEGER, wins INTEGER)
### Question:
What is the earliest year associated with under 0 wins?
### Answer:
SELECT MIN(year) FROM table_name_55 WHERE wins < 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_87 (goals INTEGER, games VARCHAR, debut_year VARCHAR)
### Question:
Which Goals have Games of 51, and a Debut year smaller than 1992?
### Answer:
SELECT MIN(goals) FROM table_name_87 WHERE games = 51 AND debut_year < 1992 |
Below is an context that describes a 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 (Id VARCHAR)
### Question:
what is the 2012 performance when in 2011 is qf and 2010 is 3r?
### Answer:
SELECT 2012 FROM table_name_28 WHERE 2011 = "qf" AND 2010 = "3r" |
Below is an context that describes a 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 (attendance VARCHAR, week VARCHAR)
### Question:
What is the Attendance with a Week that is 18?
### Answer:
SELECT attendance FROM table_name_19 WHERE week = 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_95 (album VARCHAR, length VARCHAR)
### Question:
what album is 4:30 long
### Answer:
SELECT album FROM table_name_95 WHERE length = "4: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_19 (wins VARCHAR, pct VARCHAR)
### Question:
How many wins when the pct, is .848?
### Answer:
SELECT wins FROM table_name_19 WHERE pct = ".848" |
Below is an context that describes a 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 (Id VARCHAR)
### Question:
What is the value in 1971 when 30 is the value for 1969?
### Answer:
SELECT 1971 FROM table_name_65 WHERE 1969 = "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_3 (date INTEGER, score VARCHAR)
### Question:
Which Date has a Score of 6–3, 7–6?
### Answer:
SELECT SUM(date) FROM table_name_3 WHERE score = "6–3, 7–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 Flight (flno VARCHAR, aid VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
### Question:
Show all flight numbers with aircraft Airbus A340-300.
### Answer:
SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = "Airbus A340-300" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15162479_8 (nominee VARCHAR, vote_to_evict VARCHAR)
### Question:
How many nominee's had a vote to evict percentage of 3.92%
### Answer:
SELECT COUNT(nominee) FROM table_15162479_8 WHERE vote_to_evict = "3.92%" |
Below is an context that describes a 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 (status VARCHAR, unit VARCHAR)
### Question:
What is the status of the Hamaoka-3 unit?
### Answer:
SELECT status FROM table_name_33 WHERE unit = "hamaoka-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 market (Number_cities INTEGER, Market_ID VARCHAR); CREATE TABLE film_market_estimation (Market_ID VARCHAR, Low_Estimate INTEGER)
### Question:
What is the average number of cities of markets with low film market estimate bigger than 10000?
### Answer:
SELECT AVG(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000 |
Below is an context that describes a 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_63 (date VARCHAR, score VARCHAR)
### Question:
What date had a game with a score of 5-4?
### Answer:
SELECT date FROM table_name_63 WHERE score = "5-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_46 (place VARCHAR, player VARCHAR)
### Question:
What place did Paul McGinley finish in?
### Answer:
SELECT place FROM table_name_46 WHERE player = "paul mcginley" |
Below is an context that describes a 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 (circuit VARCHAR, round VARCHAR)
### Question:
Name the circuit for round 18
### Answer:
SELECT circuit FROM table_name_25 WHERE round = 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_98 (laps VARCHAR, driver VARCHAR)
### Question:
Which lap number had Olivier Panis as a driver?
### Answer:
SELECT laps FROM table_name_98 WHERE driver = "olivier panis" |
Below is an context that describes a 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 (pos VARCHAR, team VARCHAR)
### Question:
Which Pos has a Team of germian racing?
### Answer:
SELECT pos FROM table_name_68 WHERE team = "germian 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 assignedto (project VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR)
### Question:
Find the number of scientists involved for each project name.
### Answer:
SELECT COUNT(*), T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name |
Below is an context that describes a 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 (city VARCHAR, iata VARCHAR)
### Question:
Which city has the IATA SSG?
### Answer:
SELECT city FROM table_name_40 WHERE iata = "ssg" |
Below is an context that describes a 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 (name VARCHAR, date VARCHAR, type VARCHAR, nationality VARCHAR)
### Question:
what is the name when the type is freighter, nationality is united kingdom on 3 may 1940?
### Answer:
SELECT name FROM table_name_61 WHERE type = "freighter" AND nationality = "united kingdom" AND date = "3 may 1940" |
Below is an context that describes a 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 (wins VARCHAR, podiums VARCHAR, series VARCHAR)
### Question:
Which Wins has Podiums of 0, and a Series of masters of formula 3?
### Answer:
SELECT wins FROM table_name_40 WHERE podiums = "0" AND series = "masters of formula 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 (score VARCHAR, date VARCHAR)
### Question:
What was the score for the game on December 20?
### Answer:
SELECT score FROM table_name_49 WHERE date = "december 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_1015914_24 (we_two VARCHAR, you_two VARCHAR)
### Question:
What is we two where you two is ngipen?
### Answer:
SELECT we_two FROM table_1015914_24 WHERE you_two = "ngipen" |
Below is an context that describes a 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 (attendance VARCHAR, result VARCHAR)
### Question:
What was the attendance of the game that had a score of l 35–14?
### Answer:
SELECT attendance FROM table_name_8 WHERE result = "l 35–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_67 (year INTEGER, rider VARCHAR, final_position___giro VARCHAR, final_position___tour VARCHAR, final_position___vuelta VARCHAR)
### Question:
What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57?
### Answer:
SELECT MIN(year) FROM table_name_67 WHERE final_position___tour > 72 AND final_position___vuelta < 77 AND final_position___giro < 57 AND rider = "valdimir poelnikov" |
Below is an context that describes a 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 (total VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
### Question:
What is the total having a bronze value over 1, silver under 5, and ranked 9?
### Answer:
SELECT total FROM table_name_55 WHERE bronze > 1 AND silver < 5 AND rank = "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_11 (game INTEGER, date VARCHAR)
### Question:
Which game is on the date October 16?
### Answer:
SELECT AVG(game) FROM table_name_11 WHERE date = "october 16" |
Subsets and Splits