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_81 (age_at_time_of_disaster VARCHAR, date_of_birth VARCHAR)
### Question:
How old was the person born 24 September 1851 at the time of disaster?
### Answer:
SELECT age_at_time_of_disaster FROM table_name_81 WHERE date_of_birth = "24 september 1851" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28611413_2 (original_air_date VARCHAR, directed_by VARCHAR)
### Question:
What is air date of the episode directed by John P. Kousakis?
### Answer:
SELECT original_air_date FROM table_28611413_2 WHERE directed_by = "John P. Kousakis" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11713303_2 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR)
### Question:
What is the date of vacancy for 10 december 2007 when quit?
### Answer:
SELECT date_of_vacancy FROM table_11713303_2 WHERE date_of_appointment = "10 December 2007" AND manner_of_departure = "Quit" |
Below is an context that describes a sql 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 (draws INTEGER, al_ahly_wins INTEGER)
### Question:
What is the average number of draws for Al Ahly wins over 59?
### Answer:
SELECT AVG(draws) FROM table_name_1 WHERE al_ahly_wins > 59 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_6 (opponent VARCHAR, result VARCHAR)
### Question:
Who was the opponent with a result of l 14–6?
### Answer:
SELECT opponent FROM table_name_6 WHERE result = "l 14–6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_8 (player VARCHAR, position VARCHAR)
### Question:
What Utah Jazz player played Center?
### Answer:
SELECT player FROM table_name_8 WHERE position = "center" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_24 (date INTEGER, surface VARCHAR, score VARCHAR)
### Question:
When was his first game on a clay surface where he scored 0–6, 3–6?
### Answer:
SELECT MIN(date) FROM table_name_24 WHERE surface = "clay" AND score = "0–6, 3–6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_5 (laps INTEGER, bike VARCHAR, grid VARCHAR, time VARCHAR)
### Question:
What is the sum of the laps with a grid less than 28, retirement time, and a ducati 1098 f08 bikes?
### Answer:
SELECT SUM(laps) FROM table_name_5 WHERE grid < 28 AND time = "retirement" AND bike = "ducati 1098 f08" |
Below is an context that describes a sql 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 (record VARCHAR, finish VARCHAR, year VARCHAR, manager VARCHAR)
### Question:
what is the record when the year is after 1992, manager is tom kotchman and finish is 2nd?
### Answer:
SELECT record FROM table_name_51 WHERE year > 1992 AND manager = "tom kotchman" AND finish = "2nd" |
Below is an context that describes a sql 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 (other VARCHAR, year VARCHAR)
### Question:
What is the other for 2012?
### Answer:
SELECT other FROM table_name_54 WHERE year = "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_1858574_2 (state_country VARCHAR, position VARCHAR)
### Question:
When 5 is the position what is the state or country?
### Answer:
SELECT state_country FROM table_1858574_2 WHERE position = 5 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_46 (tie_no VARCHAR, home_team VARCHAR)
### Question:
What is the tie number for Middlesbrough?
### Answer:
SELECT tie_no FROM table_name_46 WHERE home_team = "middlesbrough" |
Below is an context that describes a sql 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 (not_outs INTEGER, innings INTEGER)
### Question:
What is the lowest number of Not Outs when there were more than 25 innings?
### Answer:
SELECT MIN(not_outs) FROM table_name_76 WHERE innings > 25 |
Below is an context that describes a sql 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 (final_score VARCHAR, stadium VARCHAR)
### Question:
What was the final score of the game at the astrodome?
### Answer:
SELECT final_score FROM table_name_74 WHERE stadium = "astrodome" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15383430_1 (original_artist VARCHAR, theme VARCHAR)
### Question:
The theme year they were born belongs to what artist?
### Answer:
SELECT original_artist FROM table_15383430_1 WHERE theme = "Year They Were Born" |
Below is an context that describes a sql 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 (built VARCHAR, name VARCHAR)
### Question:
When was Blackburn Point Bridge built?
### Answer:
SELECT built FROM table_name_55 WHERE name = "blackburn point bridge" |
Below is an context that describes a sql 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 (team VARCHAR, high_points VARCHAR)
### Question:
Which team has the high points of Raymond Felton (26)?
### Answer:
SELECT team FROM table_name_30 WHERE high_points = "raymond felton (26)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_20 (opening INTEGER, stadium VARCHAR, capacity VARCHAR)
### Question:
What is the average opening at Stadyum Samsun with a capacity smaller than 34,658?
### Answer:
SELECT AVG(opening) FROM table_name_20 WHERE stadium = "stadyum samsun" AND capacity < 34 OFFSET 658 |
Below is an context that describes a sql 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 (rank INTEGER, name VARCHAR, places VARCHAR)
### Question:
What was the average rank of Wolfgang Schwarz with greater than 13 places?
### Answer:
SELECT AVG(rank) FROM table_name_56 WHERE name = "wolfgang schwarz" AND places > 13 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1213511_7 (college_junior_club_team VARCHAR, nationality VARCHAR, nhl_team VARCHAR)
### Question:
Which college/junior/club teams nationality is canada and nhl team is minnesota north stars
### Answer:
SELECT college_junior_club_team FROM table_1213511_7 WHERE nationality = "Canada" AND nhl_team = "Minnesota North Stars" |
Below is an context that describes a sql 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 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
### Question:
What is the time/retired associated with a grid of 5 and under 73 laps?
### Answer:
SELECT time_retired FROM table_name_46 WHERE laps < 73 AND grid = 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_51 (chassis VARCHAR, driver VARCHAR)
### Question:
What Chassis does Reg Parnell drive?
### Answer:
SELECT chassis FROM table_name_51 WHERE driver = "reg parnell" |
Below is an context that describes a sql 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 (home VARCHAR, decision VARCHAR, visitor VARCHAR)
### Question:
Who was the Home team when the Visitor was Florida, with a Decision of Ramo?
### Answer:
SELECT home FROM table_name_28 WHERE decision = "ramo" AND visitor = "florida" |
Below is an context that describes 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 different carriers of phones together with the number of phones with each carrier.
### Answer:
SELECT Carrier, COUNT(*) FROM phone GROUP BY Carrier |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE county_public_safety (name VARCHAR, county_id VARCHAR, Crime_rate INTEGER); CREATE TABLE city (name VARCHAR, county_id VARCHAR, Crime_rate INTEGER)
### Question:
Show the names of cities in counties that have a crime rate less than 100.
### Answer:
SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate < 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_10 (week INTEGER, opponent VARCHAR)
### Question:
What is the Week of the game against Minnesota Vikings?
### Answer:
SELECT MAX(week) FROM table_name_10 WHERE opponent = "minnesota vikings" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19534677_1 (material_collected VARCHAR, isbn VARCHAR)
### Question:
Name the total number for material collected for 978-1401221935
### Answer:
SELECT COUNT(material_collected) FROM table_19534677_1 WHERE isbn = "978-1401221935" |
Below is an context that describes a sql 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 (attendance INTEGER, week VARCHAR)
### Question:
Tell me the average attendance for week of 11
### Answer:
SELECT AVG(attendance) FROM table_name_58 WHERE week = 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_54 (semi_final_television_commentator VARCHAR, spokesperson VARCHAR, year_s_ VARCHAR)
### Question:
What is the semi-final television commentator status in 1962 with an unknown spokesperson?
### Answer:
SELECT semi_final_television_commentator FROM table_name_54 WHERE spokesperson = "unknown" AND year_s_ = 1962 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2780146_6 (no_x__g_kwh_ VARCHAR, hc__g_kwh_ VARCHAR)
### Question:
What's the NO of the standard with HC of 1.23 g/kWh?
### Answer:
SELECT no_x__g_kwh_ FROM table_2780146_6 WHERE hc__g_kwh_ = "1.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 premises (premises_type VARCHAR)
### Question:
What are all the distinct premise types?
### Answer:
SELECT DISTINCT premises_type FROM premises |
Below is an context that describes a sql 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 (us_ac VARCHAR, year VARCHAR)
### Question:
What is the US A.C. in 1974?
### Answer:
SELECT us_ac FROM table_name_13 WHERE year = 1974 |
Below is an context that describes a sql 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 (candidate VARCHAR, share_of_votes VARCHAR)
### Question:
Which candidate won 61.47% of the votes?
### Answer:
SELECT candidate FROM table_name_82 WHERE share_of_votes = "61.47%" |
Below is an context that describes a sql 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 (grid INTEGER, laps VARCHAR, rider VARCHAR)
### Question:
Can you tell me the sum of Grid that has the Laps of 30, and the Rider of toni elias?
### Answer:
SELECT SUM(grid) FROM table_name_54 WHERE laps = 30 AND rider = "toni elias" |
Below is an context that describes a sql 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 (tenure VARCHAR, actor_actress VARCHAR)
### Question:
What years were actress Nadine Garner on the show?
### Answer:
SELECT tenure FROM table_name_75 WHERE actor_actress = "nadine garner" |
Below is an context that describes a sql 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 (name VARCHAR, the_biggest_loser VARCHAR)
### Question:
What is the name of the season won by John Rhode?
### Answer:
SELECT name FROM table_name_75 WHERE the_biggest_loser = "john rhode" |
Below is an context that describes a sql 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 (total VARCHAR, player VARCHAR, fa_cup VARCHAR)
### Question:
How many totals have a Player of ahmad fouzee masuri, and an FA Cup larger than 0?
### Answer:
SELECT COUNT(total) FROM table_name_37 WHERE player = "ahmad fouzee masuri" AND fa_cup > 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_66 (player VARCHAR, height VARCHAR, college VARCHAR)
### Question:
Which Player has a height of 6-10, and went to College at LSU?
### Answer:
SELECT player FROM table_name_66 WHERE height = "6-10" AND college = "lsu" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28654454_5 (lbs_lost_reunion VARCHAR, finale_weight VARCHAR)
### Question:
How many lbs were lost at the reunion by the contestant whose finale weight was 151.4?
### Answer:
SELECT lbs_lost_reunion FROM table_28654454_5 WHERE finale_weight = "151.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_17289224_1 (points INTEGER, final_placing VARCHAR)
### Question:
What was the max points you when when you place 9th?
### Answer:
SELECT MAX(points) FROM table_17289224_1 WHERE final_placing = "9th" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15887683_15 (dar VARCHAR, country VARCHAR)
### Question:
How many dar are in germany?
### Answer:
SELECT dar FROM table_15887683_15 WHERE country = "Germany" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28212888_2 (directed_by VARCHAR, no_in_series VARCHAR)
### Question:
Who was the director of the episode with series number 116?
### Answer:
SELECT directed_by FROM table_28212888_2 WHERE no_in_series = 116 |
Below is an context that describes a sql 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 (score VARCHAR, country VARCHAR)
### Question:
What is Score, when Country is "Scotland"?
### Answer:
SELECT score FROM table_name_47 WHERE country = "scotland" |
Below is an context that describes a sql 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 (date VARCHAR, score VARCHAR)
### Question:
What is the Date of the game with a Score of 6–4, 6–2?
### Answer:
SELECT date FROM table_name_26 WHERE score = "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_17257687_1 (event_2 VARCHAR, event_1 VARCHAR)
### Question:
What was event 2 when event 1 was Atlasphere?
### Answer:
SELECT event_2 FROM table_17257687_1 WHERE event_1 = "Atlasphere" |
Below is an context that describes a sql 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 (opponents_in_the_final VARCHAR, date VARCHAR)
### Question:
Who's the Opponents in the final with a Date of june 10, 1996?
### Answer:
SELECT opponents_in_the_final FROM table_name_40 WHERE date = "june 10, 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_14139408_1 (poles VARCHAR, pts VARCHAR)
### Question:
what's the poles with pts being 81
### Answer:
SELECT poles FROM table_14139408_1 WHERE pts = "81" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (erp_w VARCHAR, frequency_mhz VARCHAR)
### Question:
Which ERP W has a Frequency MHz of 88.5 FM?
### Answer:
SELECT erp_w FROM table_name_15 WHERE frequency_mhz = "88.5 fm" |
Below is an context that describes a sql 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 (fastest_laps INTEGER, podiums VARCHAR, poles VARCHAR, races VARCHAR)
### Question:
What is the highest number of the fastest laps when there were 0 poles, more than 2 podiums, and more than 15 races?
### Answer:
SELECT MAX(fastest_laps) FROM table_name_9 WHERE poles = 0 AND races > 15 AND podiums > 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 artist (Age INTEGER)
### Question:
What is the average age of all artists?
### Answer:
SELECT AVG(Age) FROM artist |
Below is an context that describes a sql 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 (result VARCHAR, venue VARCHAR)
### Question:
What was the result of the game held at the As-Salt venue?
### Answer:
SELECT result FROM table_name_28 WHERE venue = "as-salt" |
Below is an context that describes a sql 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 (reservoir_capacity VARCHAR, impounded_body_of_water VARCHAR)
### Question:
Which Reservoir capacity has an Impounded body of water of tumut two pondage?
### Answer:
SELECT reservoir_capacity FROM table_name_41 WHERE impounded_body_of_water = "tumut two pondage" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14070062_4 (won VARCHAR, points_for VARCHAR)
### Question:
tell how many wins there was when the score was 490
### Answer:
SELECT COUNT(won) FROM table_14070062_4 WHERE points_for = "490" |
Below is an context that describes a sql 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 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
### Question:
What is the Constituency number for Bikhangaon with a Reserved for ( SC / ST /None) of st?
### Answer:
SELECT constituency_number FROM table_name_11 WHERE reserved_for___sc___st__none_ = "st" AND name = "bikhangaon" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12834315_4 (barrel_length VARCHAR, rear_sight VARCHAR, muzzle_device VARCHAR)
### Question:
Name the barrel length for rear sight a2 for factory compensator
### Answer:
SELECT barrel_length FROM table_12834315_4 WHERE rear_sight = "A2" AND muzzle_device = "Factory compensator" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27902171_4 (date VARCHAR, team VARCHAR)
### Question:
What day did they play the phoenix suns?
### Answer:
SELECT date FROM table_27902171_4 WHERE team = "Phoenix Suns" |
Below is an context that describes a sql 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 (status VARCHAR, net_capacity VARCHAR)
### Question:
What is the status of the unit with a net capacity of 1212 MW?
### Answer:
SELECT status FROM table_name_50 WHERE net_capacity = "1212 mw" |
Below is an context that describes a sql 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 (week_2_sept_7 VARCHAR, week_6_oct_5 VARCHAR)
### Question:
Which Week 2 Sept 7 has a Week 6 Oct 5 of wake forest (3-1)?
### Answer:
SELECT week_2_sept_7 FROM table_name_84 WHERE week_6_oct_5 = "wake forest (3-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_1499774_5 (english_gloss VARCHAR, santee_sisseton VARCHAR)
### Question:
Name the english gloss for haŋȟ’áŋna
### Answer:
SELECT english_gloss FROM table_1499774_5 WHERE santee_sisseton = "haŋȟ’áŋna" |
Below is an context that describes a sql 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 (competition VARCHAR, date VARCHAR)
### Question:
For what competition was the game played on 28 March 2009?
### Answer:
SELECT competition FROM table_name_28 WHERE date = "28 march 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_17 (attempts VARCHAR, completions VARCHAR)
### Question:
What number of attempts were recorded when the completions were 223?
### Answer:
SELECT attempts FROM table_name_17 WHERE completions = "223" |
Below is an context that describes a sql 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 (score VARCHAR, player VARCHAR)
### Question:
What is Score, when Player is "Ernie Els"?
### Answer:
SELECT score FROM table_name_15 WHERE player = "ernie els" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (outcome VARCHAR, event VARCHAR, venue VARCHAR)
### Question:
What is the Outcome of the Singles Event in London, England?
### Answer:
SELECT outcome FROM table_name_12 WHERE event = "singles" AND venue = "london, 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 table_name_50 (runner_up VARCHAR, score VARCHAR)
### Question:
Who is the runner up when the score was 3–6, 6–3, [10–4]?
### Answer:
SELECT runner_up FROM table_name_50 WHERE score = "3–6, 6–3, [10–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 Employees (employee_name VARCHAR, employee_id VARCHAR); CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR, Destroyed_by_Employee_ID VARCHAR)
### Question:
What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?
### Answer:
SELECT T2.employee_name, T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_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_5 (surface VARCHAR, cage_dive VARCHAR)
### Question:
What surface has 2 as a cage dive?
### Answer:
SELECT surface FROM table_name_5 WHERE cage_dive = "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_1708050_3 (poles INTEGER)
### Question:
Name the most poles
### Answer:
SELECT MIN(poles) FROM table_1708050_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_1410384_1 (voice_actor__english_1998___pioneer_ VARCHAR, voice_actor__english_1997___saban_ VARCHAR, voice_actor__english_2006___funimation_ VARCHAR)
### Question:
who is the the voice actor (englbeingh 1998 / pioneer) with voice actor (englbeingh 1997 / saban) being alec willows and voice actor (englbeingh 2006 / funimation) being andy mcavin
### Answer:
SELECT voice_actor__english_1998___pioneer_ FROM table_1410384_1 WHERE voice_actor__english_1997___saban_ = "Alec Willows" AND voice_actor__english_2006___funimation_ = "Andy McAvin" |
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
Name the 2006 with 2008 of 1r and 2004 of 1r
### Answer:
SELECT 2006 FROM table_name_22 WHERE 2008 = "1r" AND 2004 = "1r" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_48 (annual_change VARCHAR, location VARCHAR)
### Question:
Can you tell me the Annual change that has the Location of manaus?
### Answer:
SELECT annual_change FROM table_name_48 WHERE location = "manaus" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE ship (disposition_of_ship VARCHAR)
### Question:
How many ships ended up being 'Captured'?
### Answer:
SELECT COUNT(*) FROM ship WHERE disposition_of_ship = 'Captured' |
Below is an context that describes a sql 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 (class VARCHAR, part_3 VARCHAR)
### Question:
What is Class, when Part 2 is "blétu"?
### Answer:
SELECT class FROM table_name_15 WHERE part_3 = "blétu" |
Below is an context that describes a sql 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 (mwehl_team VARCHAR, player VARCHAR)
### Question:
Which MWEHL team has player Ben Johnson?
### Answer:
SELECT mwehl_team FROM table_name_29 WHERE player = "ben johnson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_27 (events INTEGER, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR)
### Question:
What is the average number of events of PGA Championship tournaments with a top-5 less than 0?
### Answer:
SELECT AVG(events) FROM table_name_27 WHERE top_10 = 0 AND tournament = "pga championship" AND top_5 < 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_96 (caps INTEGER, player VARCHAR)
### Question:
How many caps does stephen hoiles have?
### Answer:
SELECT SUM(caps) FROM table_name_96 WHERE player = "stephen hoiles" |
Below is an context that describes a sql 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 (date VARCHAR, high_points VARCHAR)
### Question:
What is Date, when High Points is "Danny Granger (32)"?
### Answer:
SELECT date FROM table_name_56 WHERE high_points = "danny granger (32)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (code VARCHAR, type VARCHAR, population VARCHAR)
### Question:
When populatioin is greater than 7,747 and the type is V, what is the sum of code?
### Answer:
SELECT COUNT(code) FROM table_name_99 WHERE type = "v" AND population > 7 OFFSET 747 |
Below is an context that describes a sql 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 (round VARCHAR, club VARCHAR)
### Question:
Which round did Dundee United end in?
### Answer:
SELECT round FROM table_name_11 WHERE club = "dundee 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_name_99 (course VARCHAR, date VARCHAR)
### Question:
What was the course on 13 may?
### Answer:
SELECT course FROM table_name_99 WHERE date = "13 may" |
Below is an context that describes a sql 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 (to_par VARCHAR, player VARCHAR)
### Question:
What was the score to par after two rounds for Nick Price?
### Answer:
SELECT to_par FROM table_name_54 WHERE player = "nick price" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24431264_16 (seed INTEGER, player VARCHAR)
### Question:
What was david ferrer seeded?
### Answer:
SELECT MAX(seed) FROM table_24431264_16 WHERE player = "David Ferrer" |
Below is an context that describes a sql 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 (april INTEGER, score VARCHAR, game VARCHAR)
### Question:
Which April is the smallest one that has a Score of 2–4, and a Game smaller than 76?
### Answer:
SELECT MAX(april) FROM table_name_4 WHERE score = "2–4" AND game < 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_name_55 (year VARCHAR, game VARCHAR)
### Question:
What is the sum number of year when Call of Duty 4: Modern Warfare was the game?
### Answer:
SELECT COUNT(year) FROM table_name_55 WHERE game = "call of duty 4: modern warfare" |
Below is an context that describes a sql 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 (pick INTEGER, year VARCHAR, overall VARCHAR, player_name VARCHAR)
### Question:
What is the smallest Pick with Overall larger than 17, a Player name of dave adams category:articles with hcards, and a Year larger than 1963?
### Answer:
SELECT MIN(pick) FROM table_name_88 WHERE overall > 17 AND player_name = "dave adams category:articles with hcards" AND year > 1963 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13150274_1 (years_of_operation VARCHAR, area_of_operation VARCHAR)
### Question:
When was the operation in Field 103 executed?
### Answer:
SELECT years_of_operation FROM table_13150274_1 WHERE area_of_operation = "Field 103" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_86 (image VARCHAR, husband VARCHAR)
### Question:
Which image is of the woman married to william iv?
### Answer:
SELECT image FROM table_name_86 WHERE husband = "william iv" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_52 (gold INTEGER, bronze VARCHAR, total VARCHAR, silver VARCHAR, rank VARCHAR)
### Question:
What is the gold when silver is 1, rank is larger than 3, total is smaller than 2, bronze is smaller than 0?
### Answer:
SELECT SUM(gold) FROM table_name_52 WHERE silver = 1 AND rank > 3 AND total < 2 AND bronze < 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (payment_method VARCHAR, customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)
### Question:
What is the payment method of the customer that has purchased the least quantity of items?
### Answer:
SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) 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_43 (report VARCHAR, venue VARCHAR)
### Question:
What was the report at State Sports Centre?
### Answer:
SELECT report FROM table_name_43 WHERE venue = "state sports centre" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24865763_2 (rnd VARCHAR, lmp2_winning_team VARCHAR)
### Question:
In what round did Mike Newton Thomas Erdos Ben Collins won the LMP2?
### Answer:
SELECT rnd FROM table_24865763_2 WHERE lmp2_winning_team = "Mike Newton Thomas Erdos Ben Collins" |
Below is an context that describes a sql 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 (points VARCHAR, drawn VARCHAR, points_for VARCHAR)
### Question:
What is the number of points for the team with 2 matches drawn and 577 points for?
### Answer:
SELECT points FROM table_name_88 WHERE drawn = "2" AND points_for = "577" |
Below is an context that describes a sql 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 (goals_for INTEGER, games_played INTEGER)
### Question:
What is the number of Goals For for Games Played more than 8?
### Answer:
SELECT SUM(goals_for) FROM table_name_44 WHERE games_played > 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_77 (game INTEGER, record VARCHAR)
### Question:
What is the sum of games for a record of 33-13-3?
### Answer:
SELECT SUM(game) FROM table_name_77 WHERE record = "33-13-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_35 (fcc_info VARCHAR, state VARCHAR, city_of_license VARCHAR)
### Question:
What is the FCC info for the radio station in West Lafayette, Indiana?
### Answer:
SELECT fcc_info FROM table_name_35 WHERE state = "indiana" AND city_of_license = "west lafayette" |
Below is an context that describes a sql 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 (country VARCHAR, to_par VARCHAR)
### Question:
Which country has a to par of e?
### Answer:
SELECT country FROM table_name_20 WHERE to_par = "e" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE ship (Id VARCHAR); CREATE TABLE death (killed VARCHAR, injured VARCHAR, caused_by_ship_id VARCHAR)
### Question:
What are the death and injury situations caused by the ship with tonnage 't'?
### Answer:
SELECT T1.killed, T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_60 (college VARCHAR, team VARCHAR)
### Question:
What college has the Chicago Stags?
### Answer:
SELECT college FROM table_name_60 WHERE team = "chicago stags" |
Below is an context that describes a sql 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 (year VARCHAR, rank_final VARCHAR)
### Question:
What year was the rank final of 6?
### Answer:
SELECT year FROM table_name_90 WHERE rank_final = "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_29728787_1 (la_roche VARCHAR, year VARCHAR)
### Question:
When 1971 is the year what is the la roche?
### Answer:
SELECT la_roche FROM table_29728787_1 WHERE year = "1971" |
Below is an context that describes a sql 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 (result VARCHAR, nomination VARCHAR, year VARCHAR)
### Question:
What was the result when Jam Hsiao was nominated in 2012?
### Answer:
SELECT result FROM table_name_36 WHERE nomination = "jam hsiao" AND year = 2012 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.