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_2801185_2 (status VARCHAR, district VARCHAR)
### Question:
How many statuses are there for the Durham district?
### Answer:
SELECT COUNT(status) FROM table_2801185_2 WHERE district = "Durham" |
Below is an context that describes a sql 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 (round INTEGER, selection VARCHAR)
### Question:
How many rounds had a selection of 165?
### Answer:
SELECT SUM(round) FROM table_name_74 WHERE selection = 165 |
Below is an context that describes a sql 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 (country VARCHAR, player VARCHAR)
### Question:
What is the country of player ian woosnam?
### Answer:
SELECT country FROM table_name_93 WHERE player = "ian woosnam" |
Below is an context that describes a sql 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 (laps VARCHAR, grid VARCHAR, time VARCHAR)
### Question:
How many laps had a grid over 16 and a Time of +1:35.890?
### Answer:
SELECT laps FROM table_name_79 WHERE grid > 16 AND time = "+1:35.890" |
Below is an context that describes a sql 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 (time VARCHAR, jockey VARCHAR)
### Question:
What was the race time of the horse with jockey Ramon Dominguez?
### Answer:
SELECT time FROM table_name_73 WHERE jockey = "ramon dominguez" |
Below is an context that describes a sql 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 (tries_for VARCHAR, points VARCHAR, played VARCHAR, tries_against VARCHAR)
### Question:
What is the number of tries for the team that has 22 plays with 33 tries against and 60 points?
### Answer:
SELECT tries_for FROM table_name_22 WHERE played = "22" AND tries_against = "33" AND points = "60" |
Below is an context that describes a sql 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 (rank VARCHAR, scorer VARCHAR)
### Question:
Which Rank has a Scorer of lee sang-cheol?
### Answer:
SELECT rank FROM table_name_69 WHERE scorer = "lee sang-cheol" |
Below is an context that describes a sql 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 (player VARCHAR, points VARCHAR, touchdowns VARCHAR, extra_points VARCHAR)
### Question:
What Player has less than 10 Touchdowns and 0 Extra points and more than 5 Points?
### Answer:
SELECT player FROM table_name_77 WHERE touchdowns < 10 AND extra_points = 0 AND points > 5 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (tatsuhito_takaiwa VARCHAR, koji_kanemoto VARCHAR)
### Question:
Which Tatsuhito Takaiwa has a Koji Kanemoto of liger (20:29)?
### Answer:
SELECT tatsuhito_takaiwa FROM table_name_38 WHERE koji_kanemoto = "liger (20:29)" |
Below is an context that describes a sql 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 (score VARCHAR, result VARCHAR)
### Question:
What is the score with lost as the result?
### Answer:
SELECT score FROM table_name_80 WHERE result = "lost" |
Below is an context that describes a sql 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 (bronze INTEGER, rank VARCHAR, gold VARCHAR)
### Question:
What is the most possible bronze medals when rank is more than 11 and there are fewer than 0 gold medals?
### Answer:
SELECT MAX(bronze) FROM table_name_95 WHERE rank > 11 AND gold < 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_12886178_5 (drawn VARCHAR, tries_for VARCHAR)
### Question:
What's the number of drawn games for the club with a tries for count of 76?
### Answer:
SELECT drawn FROM table_12886178_5 WHERE tries_for = "76" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28466323_2 (written_by VARCHAR, production_code VARCHAR)
### Question:
Who wrote the episode with production code 2j5568?
### Answer:
SELECT written_by FROM table_28466323_2 WHERE production_code = "2J5568" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27882867_9 (date VARCHAR, score VARCHAR)
### Question:
What date was the game score w 104-98?
### Answer:
SELECT date FROM table_27882867_9 WHERE score = "W 104-98" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11214212_1 (naturalisation_by_marriage VARCHAR, registration_of_a_minor_child VARCHAR)
### Question:
what's the naturalisation by marriage with regbeingtration of a minor child being 114
### Answer:
SELECT naturalisation_by_marriage FROM table_11214212_1 WHERE registration_of_a_minor_child = 114 |
Below is an context that describes a sql 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 (result VARCHAR, week VARCHAR, attendance VARCHAR)
### Question:
What was the Result of the game after Week 9 with an Attendance of 69,714?
### Answer:
SELECT result FROM table_name_70 WHERE week > 9 AND attendance = "69,714" |
Below is an context that describes a sql 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 (provider VARCHAR, up__up_to_kbit_s_ VARCHAR)
### Question:
who is the provider when up (up to kbit/s) is 1180?
### Answer:
SELECT provider FROM table_name_10 WHERE up__up_to_kbit_s_ = 1180 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2624098_1 (english_day_name_meaning VARCHAR, old_english_day_name VARCHAR)
### Question:
what is the English meaning of the old English name "sæturnesdæg"?
### Answer:
SELECT english_day_name_meaning FROM table_2624098_1 WHERE old_english_day_name = "Sæturnesdæg" |
Below is an context that describes a sql 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 (position VARCHAR, year VARCHAR, weight VARCHAR)
### Question:
What is the Position with a Year with freshman, and a Weight larger than 210?
### Answer:
SELECT position FROM table_name_79 WHERE year = "freshman" AND weight > 210 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17115950_2 (outgoing_manager VARCHAR, replaced_by VARCHAR)
### Question:
Who was the outgoing manager replaced by Marian Bucurescu?
### Answer:
SELECT outgoing_manager FROM table_17115950_2 WHERE replaced_by = "Marian Bucurescu" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (pick INTEGER, round VARCHAR, position VARCHAR, name VARCHAR)
### Question:
In what round smaller than 10, was the center les studdard picked in?
### Answer:
SELECT MIN(pick) FROM table_name_97 WHERE position = "center" AND name = "les studdard" AND round < 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 Cartoon (Title VARCHAR, Directed_by VARCHAR)
### Question:
List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti".
### Answer:
SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" OR Directed_by = "Brandon Vietti" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_9 (class VARCHAR, year VARCHAR, road_number VARCHAR)
### Question:
Which class starts after 1939 and has a road number smaller than 3508?
### Answer:
SELECT class FROM table_name_9 WHERE year > 1939 AND road_number < 3508 |
Below is an context that describes a sql 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 (against INTEGER, _percentage_won INTEGER)
### Question:
What is the total of Against with % Won larger than 100?
### Answer:
SELECT SUM(against) FROM table_name_76 WHERE _percentage_won > 100 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_9 (crowd VARCHAR, venue VARCHAR)
### Question:
How large of a crowd can the Glenferrie oval hold?
### Answer:
SELECT crowd FROM table_name_9 WHERE venue = "glenferrie 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_20361783_1 (mens_doubles VARCHAR, womens_singles VARCHAR)
### Question:
who won mens doubles when zhou mi won womens singles
### Answer:
SELECT mens_doubles FROM table_20361783_1 WHERE womens_singles = "Zhou Mi" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_4 (score VARCHAR, away_team VARCHAR)
### Question:
What was the score when the away team was West Ham United?
### Answer:
SELECT score FROM table_name_4 WHERE away_team = "west ham 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_2511876_1 (playoffs VARCHAR, league VARCHAR)
### Question:
Name the playoffs for usisl select league
### Answer:
SELECT playoffs FROM table_2511876_1 WHERE league = "USISL Select league" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_4 (class VARCHAR, frequency_mhz VARCHAR)
### Question:
Frequency MHz of 93.7 has what class?
### Answer:
SELECT class FROM table_name_4 WHERE frequency_mhz = 93.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 program (name VARCHAR, launch VARCHAR)
### Question:
find the name of the program that was launched most recently.
### Answer:
SELECT name FROM program ORDER BY launch 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_17 (finish VARCHAR, laps INTEGER)
### Question:
Name the finish with Laps more than 200
### Answer:
SELECT finish FROM table_name_17 WHERE laps > 200 |
Below is an context that describes a sql 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 (overall INTEGER, slalom VARCHAR, season VARCHAR)
### Question:
What is the highest overall prior to 1996 with a slalom of 39?
### Answer:
SELECT MAX(overall) FROM table_name_33 WHERE slalom = "39" AND season < 1996 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_44 (away_team VARCHAR, venue VARCHAR)
### Question:
What was the away team's score at the game held at MCG?
### Answer:
SELECT away_team AS score FROM table_name_44 WHERE venue = "mcg" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_78 (final VARCHAR, athlete VARCHAR)
### Question:
What was the final for rouhollah hosseini?
### Answer:
SELECT final FROM table_name_78 WHERE athlete = "rouhollah hosseini" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24222929_4 (original_airdate VARCHAR, episode_number_production_number VARCHAR)
### Question:
Name the original air date for 7 1-07
### Answer:
SELECT original_airdate FROM table_24222929_4 WHERE episode_number_production_number = "7 1-07" |
Below is an context that describes a sql 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 (event VARCHAR, result VARCHAR, record VARCHAR)
### Question:
what is the event when the result is loss and the record is 7-5?
### Answer:
SELECT event FROM table_name_50 WHERE result = "loss" AND record = "7-5" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_3 (date VARCHAR, high_rebounds VARCHAR)
### Question:
On what date was a two-way tie (8) the high rebound?
### Answer:
SELECT date FROM table_name_3 WHERE high_rebounds = "two-way tie (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_35 (rider VARCHAR, grid VARCHAR, laps VARCHAR, manufacturer VARCHAR)
### Question:
Which rider's manufacturer is Honda and has 28 laps and a grid of 1?
### Answer:
SELECT rider FROM table_name_35 WHERE laps = "28" AND manufacturer = "honda" AND grid = "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_67 (attendance INTEGER, result VARCHAR, week VARCHAR)
### Question:
What is the attendance for a week smaller than 9 with a result of L 38-20?
### Answer:
SELECT MAX(attendance) FROM table_name_67 WHERE result = "l 38-20" AND week < 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_27293285_6 (drawn VARCHAR, won VARCHAR)
### Question:
How many matches were drawn by the teams that won exactly 10?
### Answer:
SELECT COUNT(drawn) FROM table_27293285_6 WHERE won = "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_62 (episode VARCHAR, share VARCHAR, viewers__millions_ VARCHAR, weekly_rank VARCHAR)
### Question:
Which Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12?
### Answer:
SELECT episode FROM table_name_62 WHERE viewers__millions_ > 11.26 AND weekly_rank = "#8" AND share = 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_62 (erp_w VARCHAR, frequency_mhz VARCHAR)
### Question:
What ERP W has a 95.1 MHZ frequency?
### Answer:
SELECT erp_w FROM table_name_62 WHERE frequency_mhz = 95.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_64 (price VARCHAR, upstream VARCHAR)
### Question:
What is the Price, when Upstream is "256 kbit"?
### Answer:
SELECT price FROM table_name_64 WHERE upstream = "256 kbit" |
Below is an context that describes a 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_2 (pick__number INTEGER)
### Question:
Lorne Henning has the lowest pick# of?
### Answer:
SELECT MIN(pick__number) FROM table_1473672_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_91 (played VARCHAR, goal_difference VARCHAR)
### Question:
What is Played, when Goal Difference is "+51"?
### Answer:
SELECT played FROM table_name_91 WHERE goal_difference = "+51" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23465864_3 (sat_29_aug VARCHAR, rider VARCHAR)
### Question:
When roy richardson 476cc aermacchi is the rider what is the time for saturday august 9th?
### Answer:
SELECT sat_29_aug FROM table_23465864_3 WHERE rider = "Roy Richardson 476cc Aermacchi" |
Below is an context that describes a sql 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 (winning_score VARCHAR, tournament VARCHAR)
### Question:
What was the winning score of the Greater Vancouver Open tournament?
### Answer:
SELECT winning_score FROM table_name_50 WHERE tournament = "greater vancouver 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_15070195_1 (framed_size VARCHAR, date_completed VARCHAR)
### Question:
the date complted is 02/91, what framed size was used
### Answer:
SELECT framed_size FROM table_15070195_1 WHERE date_completed = "02/91" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE media_types (name VARCHAR)
### Question:
List all media types.
### Answer:
SELECT name FROM media_types |
Below is an context that describes a sql 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 (country VARCHAR, player VARCHAR)
### Question:
What is S.K. Ho's Country?
### Answer:
SELECT country FROM table_name_58 WHERE player = "s.k. ho" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17355628_7 (score VARCHAR, date VARCHAR)
### Question:
What is the score when the game took place on January 18?
### Answer:
SELECT score FROM table_17355628_7 WHERE date = "January 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_74 (location VARCHAR, owgr_points VARCHAR, winner VARCHAR)
### Question:
What is the location of the tournament with more than 6 OWGR points and Ryu Hyun-Woo as the winner?
### Answer:
SELECT location FROM table_name_74 WHERE owgr_points > 6 AND winner = "ryu hyun-woo" |
Below is an context that describes a sql 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 (visitor VARCHAR, date VARCHAR)
### Question:
Who was the visitor on march 21?
### Answer:
SELECT visitor FROM table_name_96 WHERE date = "march 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 Apartments (apt_number VARCHAR, bedroom_count VARCHAR)
### Question:
Return the apartment number with the largest number of bedrooms.
### Answer:
SELECT apt_number FROM Apartments ORDER BY bedroom_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_21001903_2 (mens_singles VARCHAR, womens_singles VARCHAR, tour VARCHAR)
### Question:
when womens singles is wang yihan and tour is french super series, what were the men's singles?
### Answer:
SELECT mens_singles FROM table_21001903_2 WHERE womens_singles = "Wang Yihan" AND tour = "French Super 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_20 (winningteam VARCHAR, cup_final_attendance VARCHAR)
### Question:
What was the winning team with the 8,132 final attendance?
### Answer:
SELECT winningteam FROM table_name_20 WHERE cup_final_attendance = "8,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_15 (points INTEGER, lyricist VARCHAR)
### Question:
What is the total number of points for ray agius
### Answer:
SELECT SUM(points) FROM table_name_15 WHERE lyricist = "ray agius" |
Below is an context that describes a sql 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 (place VARCHAR, score VARCHAR)
### Question:
A score of 71-71=142 earned what place?
### Answer:
SELECT place FROM table_name_11 WHERE score = 71 - 71 = 142 |
Below is an context that describes a sql 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 (year INTEGER, pageant VARCHAR, result VARCHAR)
### Question:
What's the latest year the miss internet www pageant had a result of second runner-up?
### Answer:
SELECT MAX(year) FROM table_name_80 WHERE pageant = "miss internet www" AND result = "second runner-up" |
Below is an context that describes a sql 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 (location VARCHAR, rank_final VARCHAR)
### Question:
What is the Location of the Competition with a Rank-Final of 10?
### Answer:
SELECT location FROM table_name_63 WHERE rank_final = "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_42 (status VARCHAR, date_performed VARCHAR, position VARCHAR)
### Question:
What Status has a Date performed of august 13, and a Position of safe?
### Answer:
SELECT status FROM table_name_42 WHERE date_performed = "august 13" AND position = "safe" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23429629_4 (semi_final VARCHAR, act VARCHAR)
### Question:
During the act, Playing on Glasses, what was the semi-final?
### Answer:
SELECT semi_final FROM table_23429629_4 WHERE act = "Playing on Glasses" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_27 (median_household_income VARCHAR, per_capita_income VARCHAR)
### Question:
What is the median household income where the per capita is $28,789?
### Answer:
SELECT median_household_income FROM table_name_27 WHERE per_capita_income = "$28,789" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE shop (num_of_staff INTEGER, score INTEGER)
### Question:
What are the average score and average staff number of all shops?
### Answer:
SELECT AVG(num_of_staff), AVG(score) FROM shop |
Below is an context that describes a sql 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 (date_to VARCHAR, name VARCHAR)
### Question:
What is Date To, when Name is "Lee Cook"?
### Answer:
SELECT date_to FROM table_name_47 WHERE name = "lee cook" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18600760_18 (township VARCHAR, longitude VARCHAR)
### Question:
What is the township at longitude -100.680772?
### Answer:
SELECT township FROM table_18600760_18 WHERE longitude = "-100.680772" |
Below is an context that describes a sql 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 (tournament VARCHAR)
### Question:
What is 1993, when 1992 is "SF", and when Tournament is "Paris"?
### Answer:
SELECT 1993 FROM table_name_7 WHERE 1992 = "sf" AND tournament = "paris" |
Below is an context that describes a sql 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, stadium VARCHAR)
### Question:
What day did they play in central park stadium?
### Answer:
SELECT date FROM table_name_50 WHERE stadium = "central park" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_59 (d_42_√ VARCHAR, d_44_√ VARCHAR)
### Question:
What's the D 42 √ when D 44 √ is majority→?
### Answer:
SELECT d_42_√ FROM table_name_59 WHERE d_44_√ = "majority→" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE FLIGHTS (DestAirport VARCHAR, SourceAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR)
### Question:
What is the code of airport that has fewest number of flights?
### Answer:
SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode 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 table_name_66 (late_1943 VARCHAR, _late_1941 VARCHAR)
### Question:
What is the 1978 Veteran membership with a late 1941 macedonia and a late 1943 less than 10,000?
### Answer:
SELECT SUM(1978 AS _veteran_membership) FROM table_name_66 WHERE NOT _late_1941 = "macedonia" AND late_1943 < 10 OFFSET 000 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_20 (polish_cup INTEGER, puchat_ligi INTEGER)
### Question:
Which Polish Cup has a Puchat Ligi larger than 0?
### Answer:
SELECT AVG(polish_cup) FROM table_name_20 WHERE puchat_ligi > 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_36 (player VARCHAR, to_par VARCHAR)
### Question:
What player has +21 as the to par?
### Answer:
SELECT player FROM table_name_36 WHERE to_par = "+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_7 (alternate__2_ VARCHAR, coach VARCHAR, captain VARCHAR)
### Question:
Who is the alternate for Andy Brown, and Nick Grady?
### Answer:
SELECT alternate__2_ FROM table_name_7 WHERE coach = "andy brown" AND captain = "nick grady" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28540609_2 (cuts_made VARCHAR, earnings__€_ VARCHAR)
### Question:
How many cuts did the player who earned 210408 Euro make?
### Answer:
SELECT cuts_made FROM table_28540609_2 WHERE earnings__€_ = 210408 |
Below is an context that describes a sql 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 (money___ VARCHAR, country VARCHAR, to_par VARCHAR)
### Question:
What is the total amount of money that the United States one with a To par of –2?
### Answer:
SELECT COUNT(money___) AS $__ FROM table_name_93 WHERE country = "united states" AND to_par = "–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 medicine (name VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR, enzyme_id VARCHAR); CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE enzyme (id VARCHAR, product VARCHAR)
### Question:
Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.
### Answer:
SELECT name, trade_name FROM medicine EXCEPT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX' |
Below is an context that describes a sql 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 (years VARCHAR, roll VARCHAR)
### Question:
What years does the school have with a roll of 33?
### Answer:
SELECT years FROM table_name_85 WHERE roll = 33 |
Below is an context that describes a sql 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 (laps VARCHAR, manufacturer VARCHAR, time VARCHAR)
### Question:
What laps did Honda do with a time of +1:38.407?
### Answer:
SELECT laps FROM table_name_39 WHERE manufacturer = "honda" AND time = "+1:38.407" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27294107_11 (round_of_32 VARCHAR, round_of_16 VARCHAR)
### Question:
What is the round of 32 if the round of 16 is drenovak ( srb ) w 20–11?
### Answer:
SELECT round_of_32 FROM table_27294107_11 WHERE round_of_16 = "Drenovak ( SRB ) W 20–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 AssignedTo (ssn VARCHAR, scientist VARCHAR); CREATE TABLE scientists (ssn VARCHAR, scientist VARCHAR)
### Question:
Find the number of scientists who are not assigned to any project.
### Answer:
SELECT COUNT(*) FROM scientists WHERE NOT ssn IN (SELECT scientist FROM AssignedTo) |
Below is an context that describes a sql 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 (record VARCHAR, date VARCHAR)
### Question:
What was the record on January 17?
### Answer:
SELECT record FROM table_name_61 WHERE date = "january 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_15581223_8 (int INTEGER)
### Question:
Name the least amount of int yards
### Answer:
SELECT MIN(int) AS yards FROM table_15581223_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_20 (attendance VARCHAR, score VARCHAR)
### Question:
What is the total attendance at games with a score of 4-2?
### Answer:
SELECT COUNT(attendance) FROM table_name_20 WHERE score = "4-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_2562572_22 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)
### Question:
Name the population for бачки моноштор (croatian: monoštor)
### Answer:
SELECT population__2011_ FROM table_2562572_22 WHERE cyrillic_name_other_names = "Бачки Моноштор (Croatian: Monoštor)" |
Below is an context that describes a sql 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 (tunnel VARCHAR, length__imperial_ VARCHAR)
### Question:
What Tunnel has an Imperial Length of 307 yd?
### Answer:
SELECT tunnel FROM table_name_38 WHERE length__imperial_ = "307 yd" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (undecided VARCHAR, goldberg VARCHAR)
### Question:
What is the undecided percentage of the poll where Goldberg had 6%?
### Answer:
SELECT undecided FROM table_name_51 WHERE goldberg = "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_21321804_1 (position VARCHAR, college VARCHAR)
### Question:
How many total positions are there for utah college?
### Answer:
SELECT COUNT(position) FROM table_21321804_1 WHERE college = "Utah" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (Id VARCHAR)
### Question:
Which 2010 has a 2006 of w?
### Answer:
SELECT 2010 FROM table_name_51 WHERE 2006 = "w" |
Below is an context that describes a sql 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 (championship VARCHAR, opponent VARCHAR)
### Question:
What was the championship during the match with the opponent of richard fromberg?
### Answer:
SELECT championship FROM table_name_8 WHERE opponent = "richard fromberg" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16710971_2 (falcons_points VARCHAR, record VARCHAR)
### Question:
How many points did the Falcons score when the record was 4-4?
### Answer:
SELECT falcons_points FROM table_16710971_2 WHERE record = "4-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_45 (losses VARCHAR, ntfa_div_2 VARCHAR, wins VARCHAR)
### Question:
How many Losses have an NTFA Div 2 of perth, and Wins smaller than 10?
### Answer:
SELECT COUNT(losses) FROM table_name_45 WHERE ntfa_div_2 = "perth" AND wins < 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_72 (state VARCHAR, current_governor VARCHAR)
### Question:
What state is susana martinez from?
### Answer:
SELECT state FROM table_name_72 WHERE current_governor = "susana martinez" |
Below is an context that describes a sql 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 VARCHAR, tally VARCHAR, matches VARCHAR)
### Question:
What are the total number of matches smaller than 2 with a tally of 1-19?
### Answer:
SELECT COUNT(total) FROM table_name_84 WHERE tally = "1-19" AND matches < 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_28178595_2 (mystic_arte VARCHAR, character VARCHAR)
### Question:
How many mystic arte have hisui (jadeite) hearts 1 as the character?
### Answer:
SELECT COUNT(mystic_arte) FROM table_28178595_2 WHERE character = "Hisui (Jadeite) Hearts 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_207795_1 (published_in_russian VARCHAR, type_of_work VARCHAR, published_in_english VARCHAR)
### Question:
when type of work is novel and published in english is 1977, what was published in russian?
### Answer:
SELECT published_in_russian FROM table_207795_1 WHERE type_of_work = "novel" AND published_in_english = "1977" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23812628_1 (team__number2 VARCHAR, team__number1 VARCHAR)
### Question:
Name the team #2 for river plate
### Answer:
SELECT team__number2 FROM table_23812628_1 WHERE team__number1 = "River Plate" |
Below is an context that describes a sql 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 (constructor VARCHAR, circuit VARCHAR, winning_driver VARCHAR)
### Question:
Who is the constructor of John Surtees's Oulton Park circuit car?
### Answer:
SELECT constructor FROM table_name_67 WHERE circuit = "oulton park" AND winning_driver = "john surtees" |
Below is an context that describes a sql 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 (pick INTEGER, name VARCHAR, round VARCHAR)
### Question:
WHAT IS THE SUM OF PICK FOR DAVID TERRELL, WITH A ROUND SMALLER THAN 7?
### Answer:
SELECT SUM(pick) FROM table_name_82 WHERE name = "david terrell" AND round < 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_269920_3 (l2_cache__mb_ INTEGER)
### Question:
What's the maximal L3 cache for any of the models given?
### Answer:
SELECT MAX(l2_cache__mb_) FROM table_269920_3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.