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 (result__pts_ VARCHAR, set_1 VARCHAR)
### Question:
What is the result of the game with a set 1 of 26-24?
### Answer:
SELECT result__pts_ FROM table_name_17 WHERE set_1 = "26-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_27 (week INTEGER, attendance VARCHAR)
### Question:
Which week had an attendance of 70,225
### Answer:
SELECT MIN(week) FROM table_name_27 WHERE attendance = "70,225" |
Below is an context that describes a sql 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 (notes VARCHAR, time VARCHAR)
### Question:
What are the notes for the time at 3:19.167?
### Answer:
SELECT notes FROM table_name_85 WHERE time = "3:19.167" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11961582_4 (score VARCHAR, date VARCHAR)
### Question:
What was the score of the game played on December 8?
### Answer:
SELECT score FROM table_11961582_4 WHERE date = "December 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_60 (res VARCHAR, event VARCHAR)
### Question:
What was the result for the M-1 Selection Europe event?
### Answer:
SELECT res FROM table_name_60 WHERE event = "m-1 selection europe" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24587026_1 (team VARCHAR, points VARCHAR)
### Question:
Name the team for 22 points
### Answer:
SELECT team FROM table_24587026_1 WHERE points = "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_34 (killed INTEGER, perpetrator VARCHAR)
### Question:
How many kills did basobas, florentino have?
### Answer:
SELECT MAX(killed) FROM table_name_34 WHERE perpetrator = "basobas, florentino" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1688640_4 (car__number VARCHAR, year_started VARCHAR)
### Question:
Name the car number for 1997
### Answer:
SELECT car__number FROM table_1688640_4 WHERE year_started = 1997 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_76 (nanquan VARCHAR, nandao VARCHAR, rank VARCHAR)
### Question:
Which Nanquan has a Nandao larger than 9.49, and a Rank of 4?
### Answer:
SELECT nanquan FROM table_name_76 WHERE nandao > 9.49 AND rank = 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_58 (venue VARCHAR, extra VARCHAR, result VARCHAR)
### Question:
What venue had less than 7.4 extra and the result of 4th?
### Answer:
SELECT venue FROM table_name_58 WHERE extra < 7.4 AND result = "4th" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_83 (round INTEGER, overall VARCHAR)
### Question:
What round did the overall pick of 91 occur in the 1982 NFL draft?
### Answer:
SELECT MIN(round) FROM table_name_83 WHERE overall = 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 table_25042332_16 (median_income___intl INTEGER, region VARCHAR)
### Question:
What is the median income of Maule?
### Answer:
SELECT MIN(median_income___intl) AS $__ FROM table_25042332_16 WHERE region = "Maule" |
Below is an context that describes a sql 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 (crowd INTEGER, away_team VARCHAR)
### Question:
How many people attended Melbourne's away game?
### Answer:
SELECT SUM(crowd) FROM table_name_4 WHERE away_team = "melbourne" |
Below is an context that describes a sql 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 (earnings__ INTEGER, player VARCHAR)
### Question:
How much has dave stockton earned?
### Answer:
SELECT MAX(earnings__) AS $__ FROM table_name_41 WHERE player = "dave stockton" |
Below is an context that describes a sql 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 (part_2 VARCHAR, part_5 VARCHAR)
### Question:
When is Part 2, when Part 5 is on January 24, 2008?
### Answer:
SELECT part_2 FROM table_name_42 WHERE part_5 = "january 24, 2008" |
Below is an context that describes a sql 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 (host_team VARCHAR, stadium VARCHAR)
### Question:
What is the host team with the stadium Lincoln Financial Field?
### Answer:
SELECT host_team FROM table_name_70 WHERE stadium = "lincoln financial field" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1149495_1 (fourth_place VARCHAR, year VARCHAR)
### Question:
How many fourth places were there in 2003?
### Answer:
SELECT COUNT(fourth_place) FROM table_1149495_1 WHERE year = "2003" |
Below is an context that describes a sql 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 (runner_up VARCHAR, third_place VARCHAR)
### Question:
Who was the runner-up in the tournament in which Omar Camporese held third place?
### Answer:
SELECT runner_up FROM table_name_60 WHERE third_place = "omar camporese" |
Below is an context that describes a sql 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 (total INTEGER, to_par VARCHAR, player VARCHAR)
### Question:
What was Mark Brooks total score when he finished more than 2 above par?
### Answer:
SELECT AVG(total) FROM table_name_88 WHERE to_par > 2 AND player = "mark brooks" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_168482_1 (place VARCHAR, _percentage_of_popular_vote VARCHAR)
### Question:
What place did the party finish in the year when they earned 0.86% of the vote?
### Answer:
SELECT place FROM table_168482_1 WHERE _percentage_of_popular_vote = "0.86%" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24798489_2 (original_airdate VARCHAR, episode_number VARCHAR)
### Question:
How many original air dates were there for episode 22?
### Answer:
SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE episode_number = 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_27 (height INTEGER, position VARCHAR, year_born__age_ VARCHAR)
### Question:
Count the average Height which has a Position of pf, and a Year born (Age) on april 1, 1981 (age32)?
### Answer:
SELECT AVG(height) FROM table_name_27 WHERE position = "pf" AND year_born__age_ = "april 1, 1981 (age32)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE all_star (player_id VARCHAR)
### Question:
What are the first name, last name and id of the player with the most all star game experiences? Also list the count.
### Answer:
SELECT T1.name_first, T1.name_last, T1.player_id, COUNT(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (pick VARCHAR, college VARCHAR)
### Question:
Who is the pick from the Purdue College?
### Answer:
SELECT pick FROM table_name_90 WHERE college = "purdue" |
Below is an context that describes a sql 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 (player VARCHAR, college VARCHAR)
### Question:
Which players plays at Akron College?
### Answer:
SELECT player FROM table_name_25 WHERE college = "akron" |
Below is an context that describes a sql 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 (moving_from VARCHAR, type VARCHAR, nat VARCHAR)
### Question:
What is the moving from with a transfer and the nationality of Bra?
### Answer:
SELECT moving_from FROM table_name_22 WHERE type = "transfer" AND nat = "bra" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE conductor (Name VARCHAR, Year_of_Work VARCHAR)
### Question:
List the name of the conductor with the most years of work.
### Answer:
SELECT Name FROM conductor ORDER BY Year_of_Work 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_82 (years VARCHAR, engine VARCHAR)
### Question:
what is the years for engin 5.7l hemi v8?
### Answer:
SELECT years FROM table_name_82 WHERE engine = "5.7l hemi v8" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_29487895_2 (source_s_ VARCHAR, country___region VARCHAR)
### Question:
How many sources are there for south africa?
### Answer:
SELECT COUNT(source_s_) FROM table_29487895_2 WHERE country___region = "South Africa" |
Below is an context that describes a sql 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 (crowd INTEGER, away_team VARCHAR)
### Question:
What was the Average crowd when the away team was north melbourne?
### Answer:
SELECT AVG(crowd) FROM table_name_17 WHERE away_team = "north melbourne" |
Below is an context that describes a sql 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 (category VARCHAR, established VARCHAR)
### Question:
Which is the category of the group was establishe in 1990?
### Answer:
SELECT category FROM table_name_8 WHERE established = 1990 |
Below is an context that describes a sql 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 (position VARCHAR, weight__kg_ VARCHAR, birthdate VARCHAR)
### Question:
What position did the player play who weighed less thna 91 kg and was born on March 5, 1977?
### Answer:
SELECT position FROM table_name_6 WHERE weight__kg_ < 91 AND birthdate = "march 5, 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_name_7 (score_final INTEGER, score_qualifying VARCHAR)
### Question:
What was her lowest final score with a qualifying score of 74.075?
### Answer:
SELECT MIN(score_final) FROM table_name_7 WHERE score_qualifying = 74.075 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_29285076_2 (location VARCHAR, fastest_lap VARCHAR)
### Question:
What location did Zach Veach have the fastest lap?
### Answer:
SELECT location FROM table_29285076_2 WHERE fastest_lap = "Zach Veach" |
Below is an context that describes a sql 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 (date VARCHAR, opponent VARCHAR, result VARCHAR, round VARCHAR)
### Question:
Which Date has a Result of win, and a Round smaller than 2, and an Opponent of myron greenberg?
### Answer:
SELECT date FROM table_name_60 WHERE result = "win" AND round < 2 AND opponent = "myron greenberg" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10819266_8 (season VARCHAR)
### Question:
What is the season finale for season 4?
### Answer:
SELECT season AS finale FROM table_10819266_8 WHERE season = 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_104858_1 (admits_boys_girls VARCHAR, year_member_organization_was_founded VARCHAR, name_of_member_organization VARCHAR)
### Question:
Does the Ghana Scout Association (founded in 1912) admit boys, girls, or both?
### Answer:
SELECT admits_boys_girls FROM table_104858_1 WHERE year_member_organization_was_founded = "1912" AND name_of_member_organization = "The Ghana Scout Association" |
Below is an context that describes a sql 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 (year_commissioned INTEGER, average_annual_output__million_kwh_ VARCHAR, installed_capacity__megawatts_ VARCHAR)
### Question:
What is the earliest Year commissioned wiht an Average annual output greater than 58 and Installed capacity of 20?
### Answer:
SELECT MIN(year_commissioned) FROM table_name_64 WHERE average_annual_output__million_kwh_ > 58 AND installed_capacity__megawatts_ = 20 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_24 (production_number VARCHAR, director VARCHAR, title VARCHAR)
### Question:
What is the production number for the episode directed by Robert McKimson named Mice Follies?
### Answer:
SELECT COUNT(production_number) FROM table_name_24 WHERE director = "robert mckimson" AND title = "mice follies" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR)
### Question:
Show the employee ids and the number of documents destroyed by each employee.
### Answer:
SELECT Destroyed_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_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_16 (prod_code VARCHAR, episode_title VARCHAR)
### Question:
What is the production code fore the episode titled, life's no fun anymore?
### Answer:
SELECT prod_code FROM table_name_16 WHERE episode_title = "life's no fun anymore" |
Below is an context that describes a sql 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 (date VARCHAR, catalog VARCHAR)
### Question:
What is the date on Catalog 540,934-2?
### Answer:
SELECT date FROM table_name_9 WHERE catalog = "540,934-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_52 (event VARCHAR, method VARCHAR)
### Question:
Which event has a method of TKO (punches)?
### Answer:
SELECT event FROM table_name_52 WHERE method = "tko (punches)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE customer_orders (order_details VARCHAR)
### Question:
How many orders have detail "Second time"?
### Answer:
SELECT COUNT(*) FROM customer_orders WHERE order_details = "Second time" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26309085_1 (score_in_final VARCHAR, year VARCHAR)
### Question:
What was the final score in 1986?
### Answer:
SELECT score_in_final FROM table_26309085_1 WHERE year = 1986 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (population_2006_census INTEGER, local_government_area VARCHAR, rank VARCHAR)
### Question:
What was the 2006 population for the local government area of alexandrina council whose rank was smaller than 19?
### Answer:
SELECT AVG(population_2006_census) FROM table_name_66 WHERE local_government_area = "alexandrina council" AND rank < 19 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13998897_1 (fcc_info VARCHAR, call_sign VARCHAR)
### Question:
what's the fcc info with call sign being w265av
### Answer:
SELECT fcc_info FROM table_13998897_1 WHERE call_sign = "W265AV" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Video_games (gtype VARCHAR, gname VARCHAR)
### Question:
What is the type of video game Call of Destiny.
### Answer:
SELECT gtype FROM Video_games WHERE gname = "Call of Destiny" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_29997112_3 (description VARCHAR, meaning VARCHAR)
### Question:
How many different descriptions are there for the flag that means decimal digit 2?
### Answer:
SELECT COUNT(description) FROM table_29997112_3 WHERE meaning = "Decimal Digit 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_26 (tottenham_hotspur_career VARCHAR, club_apps VARCHAR, position VARCHAR, goals VARCHAR, nationality VARCHAR)
### Question:
What were the years of the Tottenham Hotspur career for the player with 10 goals, from England, played the df position, and had 118 club apps?
### Answer:
SELECT tottenham_hotspur_career FROM table_name_26 WHERE goals = "10" AND nationality = "england" AND position = "df" AND club_apps = "118" |
Below is an context that describes a sql 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 (opponent VARCHAR, results¹ VARCHAR)
### Question:
Who did Yugoslavia play against that led to a result of 2:3?
### Answer:
SELECT opponent FROM table_name_90 WHERE results¹ = "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_23 (silver VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR, rank VARCHAR)
### Question:
How many times is the total less than 15, rank less than 5, bronze is 4 and gold smaller than 3?
### Answer:
SELECT COUNT(silver) FROM table_name_23 WHERE total < 15 AND rank < 5 AND bronze = 4 AND gold < 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_18 (winner_2nd VARCHAR, race VARCHAR)
### Question:
Who was the winner/2nd place finisher in the Caulfield Guineas?
### Answer:
SELECT winner_2nd FROM table_name_18 WHERE race = "caulfield guineas" |
Below is an context that describes a sql 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 (network VARCHAR, aspect VARCHAR, psip_short_name VARCHAR)
### Question:
What network has an aspect of 4:3 and a PSIP Short Name of qvc?
### Answer:
SELECT network FROM table_name_80 WHERE aspect = "4:3" AND psip_short_name = "qvc" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22916979_5 (rank VARCHAR, densest_incorporated_place VARCHAR)
### Question:
Name the number of rank for stone park
### Answer:
SELECT COUNT(rank) FROM table_22916979_5 WHERE densest_incorporated_place = "Stone 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_2 (writer VARCHAR, company VARCHAR, title VARCHAR)
### Question:
Who was the writer of The Year of the Cat from the BBV?
### Answer:
SELECT writer FROM table_name_2 WHERE company = "bbv" AND title = "the year of the cat" |
Below is an context that describes a sql 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 (artist VARCHAR, finish VARCHAR)
### Question:
Which artist uses a finish of selective gold plating?
### Answer:
SELECT artist FROM table_name_29 WHERE finish = "selective gold plating" |
Below is an context that describes a sql 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 (rank INTEGER, team VARCHAR)
### Question:
What is the highest rank for PSV - FC Barcelona?
### Answer:
SELECT MAX(rank) FROM table_name_64 WHERE team = "psv - fc barcelona" |
Below is an context that describes a sql 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 (home_away VARCHAR, opponent VARCHAR, result VARCHAR)
### Question:
Is it home or away when opponent is Pride with a W 11-10 result?
### Answer:
SELECT home_away FROM table_name_49 WHERE opponent = "pride" AND result = "w 11-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_33 (trainer VARCHAR, year VARCHAR)
### Question:
Who is the Trainer with the Year of 2013?
### Answer:
SELECT trainer FROM table_name_33 WHERE year = "2013" |
Below is an context that describes a sql 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 (tries_for VARCHAR, losing_bonus VARCHAR)
### Question:
If the losing bonus was 6, what is the tries for?
### Answer:
SELECT tries_for FROM table_name_76 WHERE losing_bonus = "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_1908877_2 (top_division_titles VARCHAR, position_in_2012_13 VARCHAR)
### Question:
How many clubs achieved the 5th position in 2012-13?
### Answer:
SELECT COUNT(top_division_titles) FROM table_1908877_2 WHERE position_in_2012_13 = "5th" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_87 (area_km_2 VARCHAR, official_name VARCHAR)
### Question:
What is the area in square kilometers of Studholm?
### Answer:
SELECT COUNT(area_km_2) FROM table_name_87 WHERE official_name = "studholm" |
Below is an context that describes a sql 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, format VARCHAR)
### Question:
Tell me the date for format of cd/dvd
### Answer:
SELECT date FROM table_name_88 WHERE format = "cd/dvd" |
Below is an context that describes a sql 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 (league VARCHAR, playoffs VARCHAR, the_year VARCHAR)
### Question:
Which league did not qualify for the Playoffs, and had a Year larger than 2008?
### Answer:
SELECT league FROM table_name_59 WHERE playoffs = "did not qualify" AND the_year > 2008 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10706961_2 (winning_team VARCHAR, winning_driver VARCHAR)
### Question:
Which teams won when Bobby Rahal was their winning driver?
### Answer:
SELECT winning_team FROM table_10706961_2 WHERE winning_driver = "Bobby Rahal" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2668374_10 (candidates VARCHAR, incumbent VARCHAR)
### Question:
Who were the running candidates when Samuel Riker was the incumbent?
### Answer:
SELECT candidates FROM table_2668374_10 WHERE incumbent = "Samuel Riker" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22893781_7 (date VARCHAR, team VARCHAR)
### Question:
when did the @ indiana game take place?
### Answer:
SELECT date FROM table_22893781_7 WHERE team = "@ Indiana" |
Below is an context that describes a sql 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 (pl_gp INTEGER, reg_gp INTEGER)
### Question:
What's the highest Pl GP with a Reg GP over 18?
### Answer:
SELECT MAX(pl_gp) FROM table_name_22 WHERE reg_gp > 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_85 (week VARCHAR, result VARCHAR)
### Question:
How many weeks ended in a result of L 20-10?
### Answer:
SELECT COUNT(week) FROM table_name_85 WHERE result = "l 20-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 (Id VARCHAR)
### Question:
Who attended the school in 2008, that Brikajdri Wilson attended in 2006?
### Answer:
SELECT 2008 FROM table_name_42 WHERE 2006 = "brikajdri wilson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE instructor (dept_name VARCHAR, salary INTEGER)
### Question:
Find the names and average salaries of all departments whose average salary is greater than 42000.
### Answer:
SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name HAVING AVG(salary) > 42000 |
Below is an context that describes a sql 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 (venue VARCHAR, result VARCHAR)
### Question:
Which venue has a Result of 1–0?
### Answer:
SELECT venue FROM table_name_96 WHERE result = "1–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 Invoices (order_id VARCHAR)
### Question:
Show the order ids and the number of invoices for each order.
### Answer:
SELECT order_id, COUNT(*) FROM Invoices GROUP BY order_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_20 (game_site VARCHAR, week VARCHAR)
### Question:
What is the Game site week 1?
### Answer:
SELECT game_site FROM table_name_20 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_83 (arizona VARCHAR, texas VARCHAR, colorado VARCHAR, nevada VARCHAR)
### Question:
What's the value for arizona when colorado and nevada are nixon, and texas is humphrey?
### Answer:
SELECT arizona FROM table_name_83 WHERE colorado = "nixon" AND nevada = "nixon" AND texas = "humphrey" |
Below is an context that describes a sql 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 (position VARCHAR, year VARCHAR)
### Question:
Which position was in 2009?
### Answer:
SELECT position FROM table_name_82 WHERE year = 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_99 (year VARCHAR, cable VARCHAR)
### Question:
What is the year when cable was 4.6%?
### Answer:
SELECT year FROM table_name_99 WHERE cable = "4.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_15 (week_1_sept_7 VARCHAR, preseason VARCHAR)
### Question:
What is the Week 1 result of Colorado State?
### Answer:
SELECT week_1_sept_7 FROM table_name_15 WHERE preseason = "colorado state" |
Below is an context that describes a sql 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 (years_for_grizzlies VARCHAR, player VARCHAR)
### Question:
In which years did Zach Randolph play for the Grizzlies?
### Answer:
SELECT years_for_grizzlies FROM table_name_27 WHERE player = "zach randolph" |
Below is an context that describes a sql 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 (capacity INTEGER, rank VARCHAR, city VARCHAR)
### Question:
Which Capacity is the lowest one that has a Rank smaller than 15, and a City of belgrade?
### Answer:
SELECT MIN(capacity) FROM table_name_76 WHERE rank < 15 AND city = "belgrade" |
Below is an context that describes a sql 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 (original_title VARCHAR, language VARCHAR)
### Question:
What is the original title for the Korean language film?
### Answer:
SELECT original_title FROM table_name_24 WHERE language = "korean" |
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
What 2011 has 2r as 2010, and a 2008 of A?
### Answer:
SELECT 2011 FROM table_name_72 WHERE 2010 = "2r" AND 2008 = "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_2 (original_airdate VARCHAR, episode VARCHAR)
### Question:
Which Original Airdate has an Episode of 1?
### Answer:
SELECT original_airdate FROM table_name_2 WHERE episode = 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_13 (on_air_id VARCHAR, frequency VARCHAR)
### Question:
What is the On-air ID of the broadcaster at frequency 0 801?
### Answer:
SELECT on_air_id FROM table_name_13 WHERE frequency = "0 801" |
Below is an context that describes a sql 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 (years VARCHAR, points VARCHAR, goals VARCHAR)
### Question:
What years did the player play when he scored 78 points and 22 goals?
### Answer:
SELECT years FROM table_name_56 WHERE points = "78" AND goals = "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_71 (year VARCHAR, venue VARCHAR, opponent VARCHAR)
### Question:
What year was the venue at Sydney Cricket Ground, and the opponent was Parramatta Eels?
### Answer:
SELECT COUNT(year) FROM table_name_71 WHERE venue = "sydney cricket ground" AND opponent = "parramatta eels" |
Below is an context that describes a sql 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 (competition VARCHAR, season VARCHAR)
### Question:
Which competition has a Season of 2010/11?
### Answer:
SELECT competition FROM table_name_56 WHERE season = "2010/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_48 (rank__number VARCHAR, result VARCHAR)
### Question:
WHAT RANK HAD A RESULT OF W13-3?
### Answer:
SELECT rank__number FROM table_name_48 WHERE result = "w13-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_46 (total INTEGER, gold VARCHAR, silver VARCHAR)
### Question:
What is the lowest total of medals that has a gold of 3 and a silver less than 3?
### Answer:
SELECT MIN(total) FROM table_name_46 WHERE gold = 3 AND silver < 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_25740774_1 (f_laps VARCHAR, races VARCHAR)
### Question:
What are the f/laps for race 14?
### Answer:
SELECT f_laps FROM table_25740774_1 WHERE races = 14 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_37 (week_6_oct_5 VARCHAR, week_14_nov_30 VARCHAR)
### Question:
Which Week 6 Oct 5 has a Week 14 Nov 30 of texas (11-1)?
### Answer:
SELECT week_6_oct_5 FROM table_name_37 WHERE week_14_nov_30 = "texas (11-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_82 (game INTEGER, date VARCHAR)
### Question:
What was the game number that was played on November 15?
### Answer:
SELECT MIN(game) FROM table_name_82 WHERE date = "november 15" |
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
Which year has a 2003 of lq?
### Answer:
SELECT 2009 FROM table_name_82 WHERE 2003 = "lq" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21146729_6 (director VARCHAR, writer_s_ VARCHAR)
### Question:
Who was the director when the writer(s) was John W. Bloch?
### Answer:
SELECT director FROM table_21146729_6 WHERE writer_s_ = "John W. Bloch" |
Below is an context that describes a sql 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 (nat VARCHAR, moving_from VARCHAR)
### Question:
What nation had a moving from of espanyol?
### Answer:
SELECT nat FROM table_name_97 WHERE moving_from = "espanyol" |
Below is an context that describes a sql 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 (season VARCHAR, champion VARCHAR)
### Question:
what season did the juventus win
### Answer:
SELECT season FROM table_name_54 WHERE champion = "juventus" |
Below is an context that describes a sql 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 (grand_rapids__grr_ VARCHAR, detroit__dtw_ VARCHAR)
### Question:
What was the passenger fare for Grand Rapids, when the passenger fare for Detroit was $378.55?
### Answer:
SELECT grand_rapids__grr_ FROM table_name_89 WHERE detroit__dtw_ = "$378.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_8 (player VARCHAR, school_club_team VARCHAR)
### Question:
Who is the player who went to Stanford?
### Answer:
SELECT player FROM table_name_8 WHERE school_club_team = "stanford" |
Below is an context that describes a sql 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 (rank VARCHAR, opposition VARCHAR)
### Question:
Which Rank has an Opposition of limerick?
### Answer:
SELECT rank FROM table_name_12 WHERE opposition = "limerick" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.