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_17 (round VARCHAR, grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
### Question:
During the hungarian grand prix where the pole position was michael schumacher and the fastest lap was driven by damon hill, what's the total number of rounds of races matching these standards?
### Answer:
SELECT COUNT(round) FROM table_name_17 WHERE fastest_lap = "damon hill" AND pole_position = "michael schumacher" AND grand_prix = "hungarian grand prix"
|
Below is an context that describes a sql 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 (division_one VARCHAR, division_two VARCHAR)
### Question:
What Division One team were champions at the same time the Division Two Hereford Lads Club Colts were champs?
### Answer:
SELECT division_one FROM table_name_61 WHERE division_two = "hereford lads club colts"
|
Below is an context that describes a sql 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 (nation VARCHAR, time__sec_ VARCHAR)
### Question:
Which nation had a time of 48.38?
### Answer:
SELECT nation FROM table_name_9 WHERE time__sec_ = 48.38
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_3 (surface VARCHAR, opponent VARCHAR)
### Question:
What was the surface tye during the match with the opponent of richard fromberg?
### Answer:
SELECT surface FROM table_name_3 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_name_25 (gold INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR)
### Question:
What is the gold for the nation with a record of bronze 1, Syria nation with a grand total less than 1?
### Answer:
SELECT AVG(gold) FROM table_name_25 WHERE bronze = 1 AND nation = "syria" AND total < 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_46 (i_o_bus VARCHAR, socket VARCHAR)
### Question:
What is I/O bus when socket is socket g1bga-1288?
### Answer:
SELECT i_o_bus FROM table_name_46 WHERE socket = "socket g1bga-1288"
|
Below is an context that describes a sql 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 (league_from VARCHAR, position VARCHAR, pick__number VARCHAR, nationality VARCHAR)
### Question:
Which league has a pick number larger than 204 from Canada and LW as the position?
### Answer:
SELECT league_from FROM table_name_61 WHERE pick__number > 204 AND nationality = "canada" AND position = "lw"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19215259_1 (power__kw_ VARCHAR, location VARCHAR)
### Question:
What is the power at the cebu station?
### Answer:
SELECT power__kw_ FROM table_19215259_1 WHERE location = "Cebu"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22603701_1 (result VARCHAR, name VARCHAR)
### Question:
What is the result for Steve Gonzalez?
### Answer:
SELECT result FROM table_22603701_1 WHERE name = "Steve Gonzalez"
|
Below is an context that describes a sql 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 (favorable INTEGER, date VARCHAR, unfavorable VARCHAR)
### Question:
which is the lowest favorable on 1954 June and more unfavorable than 45?
### Answer:
SELECT MIN(favorable) FROM table_name_72 WHERE date = "1954 june" AND unfavorable > 45
|
Below is an context that describes a sql 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 (published VARCHAR, in_order_of_publication VARCHAR)
### Question:
How many total publications were the first of the series?
### Answer:
SELECT COUNT(published) FROM table_name_86 WHERE in_order_of_publication = "first"
|
Below is an context that describes a sql 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 (result VARCHAR, goal VARCHAR)
### Question:
What was result of goal 4?
### Answer:
SELECT result FROM table_name_11 WHERE goal = 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_78 (co_drivers VARCHAR, laps VARCHAR, year VARCHAR)
### Question:
What is Co-Drivers, when Laps is greater than 196, and when Year is before 2010?
### Answer:
SELECT co_drivers FROM table_name_78 WHERE laps > 196 AND year < 2010
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_85 (chassis VARCHAR, year VARCHAR)
### Question:
What is the chassis for the year of 1969?
### Answer:
SELECT chassis FROM table_name_85 WHERE year = 1969
|
Below is an context that describes a sql 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 (player VARCHAR, nationality VARCHAR)
### Question:
Which player is from Sweden?
### Answer:
SELECT player FROM table_name_47 WHERE nationality = "sweden"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19722436_2 (results VARCHAR, gt1_winning_team VARCHAR)
### Question:
When no.55 ipb spartak racing is the g1 winning team what are the results?
### Answer:
SELECT results FROM table_19722436_2 WHERE gt1_winning_team = "No.55 IPB Spartak Racing"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_48 (attendance INTEGER, week VARCHAR)
### Question:
What was the lowest attendance for week 1?
### Answer:
SELECT MIN(attendance) FROM table_name_48 WHERE week = 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_2 (venue VARCHAR, away_team VARCHAR)
### Question:
What location was the game played at when Richmond was the away team?
### Answer:
SELECT venue FROM table_name_2 WHERE away_team = "richmond"
|
Below is an context that describes a sql 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 (COUNT VARCHAR, winner VARCHAR)
### Question:
How many events did clay win?
### Answer:
SELECT NOT COUNT AS event FROM table_name_42 WHERE winner = "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_70 (week INTEGER, result VARCHAR)
### Question:
Tell me the average week for result of l 34–24
### Answer:
SELECT AVG(week) FROM table_name_70 WHERE result = "l 34–24"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_79 (player VARCHAR, nationality VARCHAR, overall VARCHAR)
### Question:
Which Player has a Nationality of united states, and an Overall of 61 (from boston)?
### Answer:
SELECT player FROM table_name_79 WHERE nationality = "united states" AND overall = "61 (from boston)"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23465011_5 (total_score INTEGER, average_ranking VARCHAR)
### Question:
What is the total score when 7 is the average ranking?
### Answer:
SELECT MAX(total_score) FROM table_23465011_5 WHERE average_ranking = 7
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_3 (regional_finals INTEGER, record VARCHAR, _number_of_bids VARCHAR)
### Question:
What is the average Regional Finals score when the record is 3-2 and there are more than 3 bids?
### Answer:
SELECT AVG(regional_finals) FROM table_name_3 WHERE record = "3-2" AND _number_of_bids > 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_72 (location VARCHAR, capacity VARCHAR)
### Question:
Which location has 101,119 as the capacity?
### Answer:
SELECT location FROM table_name_72 WHERE capacity = "101,119"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20278716_2 (mccain__percentage VARCHAR, others__percentage VARCHAR)
### Question:
What percentage of voters chose McCain in the county where 2.1% of voters voted third party?
### Answer:
SELECT mccain__percentage FROM table_20278716_2 WHERE others__percentage = "2.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_1329532_2 (date_of_election VARCHAR, appointed_successor VARCHAR)
### Question:
What was the election date for H. Brent Coles?
### Answer:
SELECT date_of_election FROM table_1329532_2 WHERE appointed_successor = "H. Brent Coles"
|
Below is an context that describes a sql 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 (record VARCHAR, opponent VARCHAR)
### Question:
What record has @ ottawa senators as the opponent?
### Answer:
SELECT record FROM table_name_93 WHERE opponent = "@ ottawa senators"
|
Below is an context that describes a sql 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 (date VARCHAR, country VARCHAR)
### Question:
For the United Kingdom, what's the date?
### Answer:
SELECT date FROM table_name_88 WHERE country = "united kingdom"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1140085_2 (race VARCHAR, fastest_lap VARCHAR)
### Question:
what is the race where the fastest lap is by jean-pierre jarier?
### Answer:
SELECT race FROM table_1140085_2 WHERE fastest_lap = "Jean-Pierre Jarier"
|
Below is an context that describes a sql 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 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
### Question:
What is the To par and holds the t8 place of the United States player Tiger Woods?
### Answer:
SELECT to_par FROM table_name_62 WHERE country = "united states" AND place = "t8" AND player = "tiger woods"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Ref_budget_codes (budget_type_code VARCHAR, budget_type_description VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR)
### Question:
Show the budget type code and description and the corresponding document id.
### Answer:
SELECT T2.budget_type_code, T2.budget_type_description, T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code
|
Below is an context that describes a sql 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 (wins INTEGER, rank VARCHAR, played VARCHAR)
### Question:
What is the highest Wins, when Rank is greater than 2, and when Played is less than 5?
### Answer:
SELECT MAX(wins) FROM table_name_75 WHERE rank > 2 AND played < 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_25200461_9 (other VARCHAR, city VARCHAR)
### Question:
What is the other is the city is Los Gatos?
### Answer:
SELECT other FROM table_25200461_9 WHERE city = "Los Gatos"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE postseason (team_id_winner VARCHAR, team_id_loser VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
### Question:
What is the total number of postseason games that team Boston Red Stockings participated in?
### Answer:
SELECT COUNT(*) FROM (SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings')
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22825058_23 (round VARCHAR, opponents VARCHAR)
### Question:
Name the round for john van lottum martin verkerk
### Answer:
SELECT round FROM table_22825058_23 WHERE opponents = "John Van Lottum Martin Verkerk"
|
Below is an context that describes a sql 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 (date VARCHAR, round VARCHAR)
### Question:
What is the Date with a Round with sf?
### Answer:
SELECT date FROM table_name_67 WHERE round = "sf"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE medication (code VARCHAR, Brand VARCHAR); CREATE TABLE prescribes (physician VARCHAR, medication VARCHAR); CREATE TABLE physician (name VARCHAR, position VARCHAR, employeeid VARCHAR)
### Question:
Find the name and position of physicians who prescribe some medication whose brand is X?
### Answer:
SELECT DISTINCT T1.name, T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = "X"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15491596_1 (constructor VARCHAR, no VARCHAR)
### Question:
Who was the constructor of car 22?
### Answer:
SELECT constructor FROM table_15491596_1 WHERE no = 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_95 (country VARCHAR, player VARCHAR)
### Question:
What country id Bob Rosburg from?
### Answer:
SELECT country FROM table_name_95 WHERE player = "bob rosburg"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21297652_1 (series VARCHAR, position VARCHAR)
### Question:
What series is at the position 7?
### Answer:
SELECT series FROM table_21297652_1 WHERE position = 7
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_78 (segment_c VARCHAR, segment_a VARCHAR)
### Question:
Name the segment c for ski goggles
### Answer:
SELECT segment_c FROM table_name_78 WHERE segment_a = "ski goggles"
|
Below is an context that describes a sql 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 (population__total_ INTEGER, year VARCHAR, _barcaldine_ VARCHAR)
### Question:
What is the high Population (total) from 1976 with a (Barcaldine) smaller than 1,780?
### Answer:
SELECT MAX(population__total_) FROM table_name_96 WHERE year = 1976 AND _barcaldine_ < 1 OFFSET 780
|
Below is an context that describes a sql 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 (result VARCHAR, date VARCHAR)
### Question:
Tell me the result for 1979-01-17
### Answer:
SELECT result FROM table_name_5 WHERE date = "1979-01-17"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (time_retired VARCHAR, laps VARCHAR)
### Question:
what is the time/retired when the laps is 55?
### Answer:
SELECT time_retired FROM table_name_96 WHERE laps = 55
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (record VARCHAR, home VARCHAR, visitor VARCHAR, points VARCHAR)
### Question:
Can you tell me the Record that has the Visitor of pittsburgh, and the Points smaller than 27, and the Home of boston?
### Answer:
SELECT record FROM table_name_21 WHERE visitor = "pittsburgh" AND points < 27 AND home = "boston"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15187735_11 (segment_d VARCHAR, segment_a VARCHAR)
### Question:
In the episode where segment a is microphones, what is segment d?
### Answer:
SELECT segment_d FROM table_15187735_11 WHERE segment_a = "Microphones"
|
Below is an context that describes a sql 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 (livery VARCHAR, year_built VARCHAR, locomotive_type VARCHAR)
### Question:
What livery belongs to the steam Locomotive type builder that was building before 1989?
### Answer:
SELECT livery FROM table_name_69 WHERE year_built < 1989 AND locomotive_type = "steam"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27487712_1 (incumbent VARCHAR, district VARCHAR)
### Question:
Who was the incumbent from georgia's 8th district?
### Answer:
SELECT incumbent FROM table_27487712_1 WHERE district = "Georgia's 8th"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_18 (wins INTEGER, f_laps VARCHAR, points VARCHAR)
### Question:
What is the average Wins, when F/Laps is greater than 1, and when Points is 80?
### Answer:
SELECT AVG(wins) FROM table_name_18 WHERE f_laps > 1 AND points = "80"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25505246_7 (result VARCHAR, opponent VARCHAR)
### Question:
What were the results when Hanne Skak Jensen faced Andreja Klepač as opponent?
### Answer:
SELECT result FROM table_25505246_7 WHERE opponent = "Andreja Klepač"
|
Below is an context that describes a sql 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 (round1 INTEGER, round5 VARCHAR, round2 VARCHAR, round3 VARCHAR, total_points VARCHAR)
### Question:
what is round1 when round3 is less than 51, total points is less than 273, round2 is less than 98 and round5 is less than 24?
### Answer:
SELECT AVG(round1) FROM table_name_62 WHERE round3 < 51 AND total_points < 273 AND round2 < 98 AND round5 < 24
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_43 (position INTEGER, played VARCHAR, lost VARCHAR, difference VARCHAR)
### Question:
What was the lowest Position for a Team with fewer than 3 Lost, a Difference of 1, and more than 7 games Played?
### Answer:
SELECT MIN(position) FROM table_name_43 WHERE lost < 3 AND difference = "1" AND played > 7
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (venue VARCHAR, date VARCHAR)
### Question:
Which Venue has a Date of january 9, 2011?
### Answer:
SELECT venue FROM table_name_51 WHERE date = "january 9, 2011"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_91 (special_notes VARCHAR, issue_price VARCHAR, theme VARCHAR)
### Question:
What are the special notes for an issue price under 24.95 with an edmonton oilers theme?
### Answer:
SELECT special_notes FROM table_name_91 WHERE issue_price < 24.95 AND theme = "edmonton oilers"
|
Below is an context that describes a sql 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 (grid INTEGER, bike VARCHAR, rider VARCHAR)
### Question:
What is Fonsi Nieto's average grid when he's riding a Suzuki GSX-R1000?
### Answer:
SELECT AVG(grid) FROM table_name_25 WHERE bike = "suzuki gsx-r1000" AND rider = "fonsi nieto"
|
Below is an context that describes a sql 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 (rank VARCHAR, time VARCHAR)
### Question:
What's the rank when the time was 59.65?
### Answer:
SELECT rank FROM table_name_43 WHERE time = "59.65"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_8 (team_1 VARCHAR, team_2 VARCHAR)
### Question:
Tell me the team 1 for team 2 being civitavecchiese (latium a)
### Answer:
SELECT team_1 FROM table_name_8 WHERE team_2 = "civitavecchiese (latium a)"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_31 (location VARCHAR, score VARCHAR, record VARCHAR)
### Question:
Which location has a Score of 3–2, and a Record of 3–2–3?
### Answer:
SELECT location FROM table_name_31 WHERE score = "3–2" AND record = "3–2–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_80 (outgoing_manager VARCHAR, replaced_by VARCHAR)
### Question:
Who was the outgoing manager that was replaced by Thomas Von Heesen?
### Answer:
SELECT outgoing_manager FROM table_name_80 WHERE replaced_by = "thomas von heesen"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341604_26 (district VARCHAR, incumbent VARCHAR)
### Question:
What district is incumbent ike skelton from?
### Answer:
SELECT district FROM table_1341604_26 WHERE incumbent = "Ike Skelton"
|
Below is an context that describes a sql 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 (game VARCHAR, opponent VARCHAR)
### Question:
What is the total number of games played against the Buffalo Sabres?
### Answer:
SELECT COUNT(game) FROM table_name_65 WHERE opponent = "buffalo sabres"
|
Below is an context that describes a sql 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 (total INTEGER, year_s__won VARCHAR)
### Question:
What is the total medals in 1964?
### Answer:
SELECT MIN(total) FROM table_name_24 WHERE year_s__won = "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_91 (ship VARCHAR, built VARCHAR)
### Question:
What ship was built in 2012?
### Answer:
SELECT ship FROM table_name_91 WHERE built = 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_24 (laps INTEGER, time_retired VARCHAR, driver VARCHAR)
### Question:
Tell me the highest laps for time/retired of +2 laps and driver of felice bonetto
### Answer:
SELECT MAX(laps) FROM table_name_24 WHERE time_retired = "+2 laps" AND driver = "felice bonetto"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10121127_1 (australian_role VARCHAR, un_operation_name VARCHAR)
### Question:
What is Australia's role in the UN operation Unama?
### Answer:
SELECT australian_role FROM table_10121127_1 WHERE un_operation_name = "UNAMA"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2668336_24 (candidates VARCHAR, incumbent VARCHAR)
### Question:
Who are the candidates when the incumbent is john pegram?
### Answer:
SELECT candidates FROM table_2668336_24 WHERE incumbent = "John Pegram"
|
Below is an context that describes a sql 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 (nation VARCHAR, bronze VARCHAR, gold VARCHAR)
### Question:
Can you tell me the Nation that has the Bronze of 1, and the Gold of 0?
### Answer:
SELECT nation FROM table_name_68 WHERE bronze = 1 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_name_89 (matches VARCHAR, rank VARCHAR)
### Question:
Can you tell me the Matches that has the Rank of 1?
### Answer:
SELECT matches FROM table_name_89 WHERE rank = 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_30 (airdate VARCHAR, adapted_by VARCHAR, title VARCHAR)
### Question:
What is the Airdate for the episode titled “thirteen to centaurus” Adapted by stanley miller?
### Answer:
SELECT airdate FROM table_name_30 WHERE adapted_by = "stanley miller" AND title = "“thirteen to centaurus”"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26144632_1 (location VARCHAR, dates VARCHAR)
### Question:
What is the location for tournament on Jul 8-11?
### Answer:
SELECT location FROM table_26144632_1 WHERE dates = "Jul 8-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_88 (season VARCHAR, qualities VARCHAR, sign VARCHAR)
### Question:
What is the south season of the scorpio sign, which has cold & wet qualities?
### Answer:
SELECT season AS :_south FROM table_name_88 WHERE qualities = "cold & wet" AND sign = "scorpio"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26218783_6 (rk VARCHAR, new_points VARCHAR)
### Question:
If the new points were 5760, what is the RK?
### Answer:
SELECT rk FROM table_26218783_6 WHERE new_points = 5760
|
Below is an context that describes a sql 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 (industrial_and_commercial_panel INTEGER, cultural_and_educational_panel INTEGER)
### Question:
With the cultural and educational panel less than 0 what is the average industrial and commercial panel?
### Answer:
SELECT AVG(industrial_and_commercial_panel) FROM table_name_22 WHERE cultural_and_educational_panel < 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_49 (average VARCHAR, place VARCHAR, total VARCHAR)
### Question:
What is the average score for 6th place with a total of 165?
### Answer:
SELECT average FROM table_name_49 WHERE place = "6th" AND total = "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_13 (candidate VARCHAR, riding VARCHAR)
### Question:
Who is the Candidate when the Riding is Hochelaga?
### Answer:
SELECT candidate FROM table_name_13 WHERE riding = "hochelaga"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16048129_5 (_percentage_of_total_deportees VARCHAR, average_family_size VARCHAR)
### Question:
What is the total number of regions where the average family size is 2.8?
### Answer:
SELECT COUNT(_percentage_of_total_deportees) FROM table_16048129_5 WHERE average_family_size = "2.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_42 (player VARCHAR, score VARCHAR)
### Question:
What is Player, when Score is "71-69-72-72=284"?
### Answer:
SELECT player FROM table_name_42 WHERE score = 71 - 69 - 72 - 72 = 284
|
Below is an context that describes a sql 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 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
### Question:
Which Margin of victory has a Runner(s)-up of mark o'meara?
### Answer:
SELECT margin_of_victory FROM table_name_19 WHERE runner_s__up = "mark o'meara"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_23 (name VARCHAR, casualties VARCHAR, sunk_by… VARCHAR, date VARCHAR, nationality VARCHAR)
### Question:
What is the name of the ship sunk on 5 May 1943 from the United Kingdom sunk by an u-266 with 0 casualties?
### Answer:
SELECT name FROM table_name_23 WHERE date = "5 may 1943" AND nationality = "united kingdom" AND sunk_by… = "u-266" AND casualties = "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_35 (time INTEGER, country VARCHAR, lane VARCHAR)
### Question:
Tell me the highest time for spain and lane larger than 8
### Answer:
SELECT MAX(time) FROM table_name_35 WHERE country = "spain" AND lane > 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_17120964_9 (venue VARCHAR, date VARCHAR)
### Question:
what was the venue where the date was the 22nd?
### Answer:
SELECT venue FROM table_17120964_9 WHERE date = "22nd"
|
Below is an context that describes a sql 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 (nation VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)
### Question:
Which nation has total medals under 63, less than 2 silver, more than 2 bronze, and a rank of 8?
### Answer:
SELECT nation FROM table_name_69 WHERE total < 63 AND silver < 2 AND bronze > 2 AND rank = "8"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (grid INTEGER, laps VARCHAR, time_retired VARCHAR)
### Question:
Which grid has less than 11 laps, and a Time/Retired of accident?
### Answer:
SELECT AVG(grid) FROM table_name_99 WHERE laps < 11 AND time_retired = "accident"
|
Below is an context that describes a sql 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 (soap_opera VARCHAR, duration VARCHAR, actor VARCHAR)
### Question:
What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the actor?
### Answer:
SELECT soap_opera FROM table_name_84 WHERE duration = "13 years" AND actor = "marina giulia cavalli"
|
Below is an context that describes a sql 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 (player VARCHAR, hometown VARCHAR)
### Question:
Who is the player from Houston, TX?
### Answer:
SELECT player FROM table_name_49 WHERE hometown = "houston, tx"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16441561_5 (position VARCHAR, player VARCHAR)
### Question:
How many players named Jeff Brown were drafted
### Answer:
SELECT COUNT(position) FROM table_16441561_5 WHERE player = "Jeff Brown"
|
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
2005 of 3r, and a 2000 of lq, and a 2002 of 3r is in what 2004?
### Answer:
SELECT 2004 FROM table_name_7 WHERE 2005 = "3r" AND 2000 = "lq" AND 2002 = "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_20 (total__000s_ INTEGER, year VARCHAR)
### Question:
What is the amount of 000s from 1996?
### Answer:
SELECT SUM(total__000s_) FROM table_name_20 WHERE year = "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_27 (week INTEGER, attendance VARCHAR)
### Question:
What is the lowest Week, when Attendance is 38,624?
### Answer:
SELECT MIN(week) FROM table_name_27 WHERE attendance = 38 OFFSET 624
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341690_18 (incumbent VARCHAR, district VARCHAR)
### Question:
How many incumbents are there in district Louisiana 5?
### Answer:
SELECT COUNT(incumbent) FROM table_1341690_18 WHERE district = "Louisiana 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_42 (penalty VARCHAR, team VARCHAR, player VARCHAR)
### Question:
What is the penalty for the DET team player Andreas Lilja?
### Answer:
SELECT penalty FROM table_name_42 WHERE team = "det" AND player = "andreas lilja"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_31 (team__b_ VARCHAR, match_date VARCHAR, s_no VARCHAR, margin VARCHAR)
### Question:
What is Team (B), when S No is less than 18, when Margin is 8 Wickets, and when Match Date is Oct 30, 1989?
### Answer:
SELECT team__b_ FROM table_name_31 WHERE s_no < 18 AND margin = "8 wickets" AND match_date = "oct 30, 1989"
|
Below is an context that describes a sql 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 (touchdowns INTEGER, extra_points VARCHAR, field_goals VARCHAR)
### Question:
What is the sum of all the touchdowns when the player had more than 0 extra points and less than 0 field goals?
### Answer:
SELECT SUM(touchdowns) FROM table_name_44 WHERE extra_points > 0 AND field_goals < 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_61 (tier VARCHAR, tournament VARCHAR)
### Question:
Which tier of the tournament has Mont de Marson in it?
### Answer:
SELECT tier FROM table_name_61 WHERE tournament = "mont de marson"
|
Below is an context that describes a sql 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, code__iata_icao_ VARCHAR)
### Question:
What is the highest rank for the airport with a code of HKG/VHHH?
### Answer:
SELECT MAX(rank) FROM table_name_56 WHERE code__iata_icao_ = "hkg/vhhh"
|
Below is an context that describes a sql 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 (run_2 INTEGER, run_1 VARCHAR, run_3 VARCHAR)
### Question:
What is the lowest run 2 of the athlete with a run 1 of 52.44 and a run 3 less than 52.35?
### Answer:
SELECT MIN(run_2) FROM table_name_90 WHERE run_1 = 52.44 AND run_3 < 52.35
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (losses INTEGER, points VARCHAR, goals_against VARCHAR, goal_difference VARCHAR)
### Question:
How many losses when goals against are more than 17, goal difference is more than 2 and points are more than 5?
### Answer:
SELECT AVG(losses) FROM table_name_21 WHERE goals_against > 17 AND goal_difference < 2 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_32 (place VARCHAR, score VARCHAR)
### Question:
What is the Place of the Player with a Score of 73-75-71-73=292?
### Answer:
SELECT place FROM table_name_32 WHERE score = 73 - 75 - 71 - 73 = 292
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19704392_1 (modified_speed__6th_gear_ INTEGER, standard_speed__6th_gear_ VARCHAR)
### Question:
when the max speed for modified speed (6th gear) where standard speed (6th gear) is 98
### Answer:
SELECT MAX(modified_speed__6th_gear_) FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "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_name_25 (uni_number INTEGER, surname VARCHAR)
### Question:
What is the uniform number of the player whose last name is Wiltshire?
### Answer:
SELECT MIN(uni_number) FROM table_name_25 WHERE surname = "wiltshire"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.