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_86 (bronze INTEGER, nation VARCHAR, total VARCHAR)
### Question:
What is the least amount of bronze Andorra, who has more than 6 total medals, has?
### Answer:
SELECT MIN(bronze) FROM table_name_86 WHERE nation = "andorra" AND total > 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_28925058_1 (race_winner VARCHAR, date VARCHAR)
### Question:
Who won the race on May 1?
### Answer:
SELECT race_winner FROM table_28925058_1 WHERE date = "May 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_5 (venue VARCHAR, date VARCHAR)
### Question:
What was the venue for the game played on 13/02/1954?
### Answer:
SELECT venue FROM table_name_5 WHERE date = "13/02/1954" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28768469_9 (record VARCHAR, team VARCHAR)
### Question:
What was the record after the game against Washington?
### Answer:
SELECT record FROM table_28768469_9 WHERE team = "Washington" |
Below is an context that describes a sql 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 (language VARCHAR, launch VARCHAR, hanzi VARCHAR)
### Question:
Which language's launch was in 2006 when then hanzi was 青海电视台藏语综合频道?
### Answer:
SELECT language FROM table_name_7 WHERE launch = 2006 AND hanzi = "青海电视台藏语综合频道" |
Below is an context that describes a sql 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 (time VARCHAR, lane VARCHAR, rank VARCHAR)
### Question:
For the swimmer in the lane less than 4, and is ranked greater than 4 what was the time?
### Answer:
SELECT time FROM table_name_42 WHERE lane < 4 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_36 (bronze VARCHAR, rank VARCHAR, gold VARCHAR)
### Question:
How many bronze medals for the nation ranked above 2, and under 0 golds?
### Answer:
SELECT COUNT(bronze) FROM table_name_36 WHERE rank < 2 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_19 (position VARCHAR, nationality VARCHAR, pick VARCHAR)
### Question:
Which Position has a Nationality of united states, and a Pick of 9?
### Answer:
SELECT position FROM table_name_19 WHERE nationality = "united states" AND pick = 9 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (lane VARCHAR, heat VARCHAR, name VARCHAR)
### Question:
How many lanes was Khadevis Robinson in for heats over 2?
### Answer:
SELECT COUNT(lane) FROM table_name_21 WHERE heat > 2 AND name = "khadevis robinson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27994983_8 (juries INTEGER, artist VARCHAR)
### Question:
How many juries are there for Brolle?
### Answer:
SELECT MAX(juries) FROM table_27994983_8 WHERE artist = "Brolle" |
Below is an context that describes a sql 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 (draws INTEGER, goals_against INTEGER)
### Question:
When the goals against were higher than 30, what was the average number of draws?
### Answer:
SELECT AVG(draws) FROM table_name_23 WHERE goals_against > 30 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23995075_2 (teams_that_have_been_eliminated VARCHAR, teams_started VARCHAR)
### Question:
How many teams eliminated when 11 teams started?
### Answer:
SELECT teams_that_have_been_eliminated FROM table_23995075_2 WHERE teams_started = "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 publication (Publication_Date VARCHAR, Price VARCHAR)
### Question:
What are the dates of publications in descending order of price?
### Answer:
SELECT Publication_Date FROM publication ORDER BY Price DESC |
Below is an context that describes a sql 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 (score VARCHAR, tie_no VARCHAR)
### Question:
What was the score when the Tie no was 6?
### Answer:
SELECT score FROM table_name_89 WHERE tie_no = 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_1140074_2 (race VARCHAR, rnd VARCHAR)
### Question:
what's the total number of race winner with rnd being 10
### Answer:
SELECT COUNT(race) AS Winner FROM table_1140074_2 WHERE rnd = 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_47 (drawn VARCHAR, club VARCHAR)
### Question:
What is the drawn value for furnace united rfc?
### Answer:
SELECT drawn FROM table_name_47 WHERE club = "furnace united rfc" |
Below is an context that describes 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 (template_id VARCHAR)
### Question:
Show ids for all templates that are used by more than one document.
### Answer:
SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 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 (mountain_range VARCHAR, region VARCHAR, location VARCHAR)
### Question:
Which Mountain Range has a Region of haiti, and a Location of 18.3601°n 71.9764°w?
### Answer:
SELECT mountain_range FROM table_name_82 WHERE region = "haiti" AND location = "18.3601°n 71.9764°w" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_46 (points_classification VARCHAR, general_classification VARCHAR, stage VARCHAR)
### Question:
What's the points classification of Stage 18 when the general classification was Denis Menchov?
### Answer:
SELECT points_classification FROM table_name_46 WHERE general_classification = "denis menchov" AND stage = "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_59 (away_team VARCHAR, venue VARCHAR)
### Question:
How many points did the away team score at Arden Street Oval?
### Answer:
SELECT away_team AS score FROM table_name_59 WHERE venue = "arden street oval" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20468206_1 (obama_number INTEGER, mccain_number VARCHAR)
### Question:
Name the most abama number for mccain being 29266
### Answer:
SELECT MAX(obama_number) FROM table_20468206_1 WHERE mccain_number = 29266 |
Below is an context that describes a sql 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 (laps INTEGER, rider VARCHAR)
### Question:
What is the average number of laps for max biaggi
### Answer:
SELECT AVG(laps) FROM table_name_80 WHERE rider = "max biaggi" |
Below is an context that describes a sql 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 (production_num INTEGER, series VARCHAR, title VARCHAR)
### Question:
What is the smallest production number for the LT series with the Dumb Patrol title?
### Answer:
SELECT MIN(production_num) FROM table_name_85 WHERE series = "lt" AND title = "dumb patrol" |
Below is an context that describes a sql 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 (points INTEGER, year VARCHAR, chassis VARCHAR)
### Question:
Name the sumof points for year less than 1994 and chassis of lola lc89b
### Answer:
SELECT SUM(points) FROM table_name_47 WHERE year < 1994 AND chassis = "lola lc89b" |
Below is an context that describes a sql 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 (year INTEGER, title VARCHAR)
### Question:
what is the average year when the title is baka to test to shōkanjū?
### Answer:
SELECT AVG(year) FROM table_name_89 WHERE title = "baka to test to shōkanjū" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24938621_3 (production_code VARCHAR, directed_by VARCHAR)
### Question:
What was the title of the episode directed by Jesse Warn?
### Answer:
SELECT production_code FROM table_24938621_3 WHERE directed_by = "Jesse Warn" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1342233_24 (candidates VARCHAR, district VARCHAR)
### Question:
What candidates are from mississippi 6?
### Answer:
SELECT candidates FROM table_1342233_24 WHERE district = "Mississippi 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_12286195_1 (charity VARCHAR, background VARCHAR)
### Question:
Which is the charity that the background of the celebrity is heavyweight champion?
### Answer:
SELECT charity FROM table_12286195_1 WHERE background = "Heavyweight Champion" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24565004_11 (period VARCHAR, appearances¹ VARCHAR)
### Question:
What time period had appearances of 219?
### Answer:
SELECT period FROM table_24565004_11 WHERE appearances¹ = 219 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR)
### Question:
Find the first and last name of the author(s) who wrote the paper "Nameless, Painless".
### Answer:
SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Nameless , Painless" |
Below is an context that describes a sql 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 (vuelta_wins VARCHAR, country VARCHAR, points VARCHAR)
### Question:
How many times is the country ireland and points more than 4?
### Answer:
SELECT COUNT(vuelta_wins) FROM table_name_31 WHERE country = "ireland" AND points > 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_50 (season VARCHAR, acquisition_via VARCHAR, number VARCHAR)
### Question:
What is the Season with an Acquisition via of rookie draft, and the number is 15?
### Answer:
SELECT season FROM table_name_50 WHERE acquisition_via = "rookie draft" AND number = "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_15 (model VARCHAR, total_produced VARCHAR, prime_mover VARCHAR)
### Question:
What model has a total produced more than 5 and a prime move of 12-251c?
### Answer:
SELECT model FROM table_name_15 WHERE total_produced > 5 AND prime_mover = "12-251c" |
Below is an context that describes a sql 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 (runners_up VARCHAR, result VARCHAR, champions VARCHAR)
### Question:
What is the Runners-up of the game with a Result of 4–1 and Champions of Wonju Dongbu Promy?
### Answer:
SELECT runners_up FROM table_name_1 WHERE result = "4–1" AND champions = "wonju dongbu promy" |
Below is an context that describes a sql 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 (round INTEGER, ground VARCHAR, nominees VARCHAR)
### Question:
what round saw the ground of telstra dome and shaun burgoyne as nominees?
### Answer:
SELECT MAX(round) FROM table_name_79 WHERE ground = "telstra dome" AND nominees = "shaun burgoyne" |
Below is an context that describes a sql 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 (round VARCHAR, player VARCHAR)
### Question:
What round has mathieu garon as the player?
### Answer:
SELECT round FROM table_name_29 WHERE player = "mathieu garon" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27515452_3 (agency VARCHAR, sizes VARCHAR)
### Question:
which company has a person that can wear clothing in 33-23-36
### Answer:
SELECT agency FROM table_27515452_3 WHERE sizes = "33-23-36" |
Below is an context that describes a sql 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 (rank INTEGER, name VARCHAR, lane VARCHAR)
### Question:
What is the lowest rank of Jens Kruppa in a lane larger than 2?
### Answer:
SELECT MIN(rank) FROM table_name_28 WHERE name = "jens kruppa" AND lane > 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_39 (attendance INTEGER, score VARCHAR)
### Question:
How many people went to the game that had 17-13?
### Answer:
SELECT SUM(attendance) FROM table_name_39 WHERE score = "17-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_name_2 (name VARCHAR, avg_g VARCHAR, gp_gs VARCHAR)
### Question:
Avg/G smaller than 225.5, and a GP-GS of 8–0 has what name?
### Answer:
SELECT name FROM table_name_2 WHERE avg_g < 225.5 AND gp_gs = "8–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_20 (bronze VARCHAR, location VARCHAR)
### Question:
Who won bronze in Seoul?
### Answer:
SELECT bronze FROM table_name_20 WHERE location = "seoul" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR); CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR)
### Question:
Show the statement detail and the corresponding document name for the statement with detail 'Private Project'.
### Answer:
SELECT T1.statement_details, T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_30049462_8 (score VARCHAR, date VARCHAR)
### Question:
Name the score for march 8
### Answer:
SELECT score FROM table_30049462_8 WHERE date = "March 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_8 (area__km²_ VARCHAR, pop__km² VARCHAR)
### Question:
What is the area for a population of 0.58 km?
### Answer:
SELECT area__km²_ FROM table_name_8 WHERE pop__km² = 0.58 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341423_38 (party VARCHAR, incumbent VARCHAR)
### Question:
How many parties is the incumbent Bob Brady a member of?
### Answer:
SELECT COUNT(party) FROM table_1341423_38 WHERE incumbent = "Bob Brady" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18328569_1 (new_entries_this_round VARCHAR, winners_from_previous_round VARCHAR)
### Question:
How many new entries started in the round where winners from the previous round is 32?
### Answer:
SELECT new_entries_this_round FROM table_18328569_1 WHERE winners_from_previous_round = "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_18047346_5 (tonnes VARCHAR, airport_name VARCHAR)
### Question:
Louisville International Airport had how many tonnes of cargo in 2011?
### Answer:
SELECT tonnes FROM table_18047346_5 WHERE airport_name = "Louisville International Airport" |
Below is an context that describes a sql 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 (laps INTEGER, driver VARCHAR, grid VARCHAR, time_retired VARCHAR)
### Question:
What was the highest lap for Luigi Piotti with more than 13 grid and a time/retired engine?
### Answer:
SELECT MAX(laps) FROM table_name_19 WHERE grid > 13 AND time_retired = "engine" AND driver = "luigi piotti" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_94 (tournament VARCHAR)
### Question:
What is the 2009 entry for the row that has a 2007 entry of A and a tournament entry of US Open?
### Answer:
SELECT 2009 FROM table_name_94 WHERE 2007 = "a" AND tournament = "us open" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE airlines (country VARCHAR)
### Question:
List all countries and their number of airlines in the descending order of number of airlines.
### Answer:
SELECT country, COUNT(*) FROM airlines GROUP BY country ORDER BY COUNT(*) DESC |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20079931_4 (round VARCHAR, circuit_location VARCHAR, pole_position VARCHAR)
### Question:
How many rounds were there in Karlskoga Motorstadion with Roger Eriksson at the pole position?
### Answer:
SELECT COUNT(round) FROM table_20079931_4 WHERE circuit_location = "Karlskoga Motorstadion" AND pole_position = "Roger Eriksson" |
Below is an context that describes a sql 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 (pop_¹ INTEGER, prefecture VARCHAR)
### Question:
Name the highest pop for tottori
### Answer:
SELECT MAX(pop_¹) FROM table_name_11 WHERE prefecture = "tottori" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_57 (season VARCHAR, name VARCHAR)
### Question:
What is Season, when Name is Tony Boy Espinosa?
### Answer:
SELECT season FROM table_name_57 WHERE name = "tony boy espinosa" |
Below is an context that describes a sql 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 (high_assists VARCHAR, team VARCHAR)
### Question:
What are the High assists for Team houston?
### Answer:
SELECT high_assists FROM table_name_40 WHERE team = "houston" |
Below is an context that describes a sql 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 (runners_up VARCHAR, year VARCHAR)
### Question:
Who are the runners-up in 1996?
### Answer:
SELECT runners_up FROM table_name_28 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_20403667_2 (village INTEGER, house_affected VARCHAR)
### Question:
What is the largest village that had 103279 houses affected?
### Answer:
SELECT MAX(village) FROM table_20403667_2 WHERE house_affected = 103279 |
Below is an context that describes a sql 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 (score VARCHAR, opponent VARCHAR, location VARCHAR)
### Question:
What is the score from the game where Algeria is the opponent at Porto-Novo?
### Answer:
SELECT score FROM table_name_28 WHERE opponent = "algeria" AND location = "porto-novo" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE singer (country VARCHAR)
### Question:
Show all countries and the number of singers in each country.
### Answer:
SELECT country, COUNT(*) FROM singer GROUP BY country |
Below is an context that describes a sql 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 (round INTEGER, location VARCHAR, event VARCHAR)
### Question:
What is the highest round in the Wec 25 match in Las Vegas, Nevada, United States?
### Answer:
SELECT MAX(round) FROM table_name_80 WHERE location = "las vegas, nevada, united states" AND event = "wec 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_45 (type VARCHAR, year_s_ VARCHAR, bie_recognised VARCHAR, festival_name VARCHAR)
### Question:
what is the type when the bie recognised is yes, festival name is floriade and the year(s) is 2002?
### Answer:
SELECT type FROM table_name_45 WHERE bie_recognised = "yes" AND festival_name = "floriade" AND year_s_ = "2002" |
Below is an context that describes a sql 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 (rd__number INTEGER, player VARCHAR, pl_gp VARCHAR)
### Question:
When Steve Hazlett is the Player, and the PI GP is under 0, what is the average Rd #?
### Answer:
SELECT AVG(rd__number) FROM table_name_82 WHERE player = "steve hazlett" AND pl_gp < 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_30 (open_cup VARCHAR, division INTEGER)
### Question:
WHich Open Cup has a Division larger than 4?
### Answer:
SELECT open_cup FROM table_name_30 WHERE division > 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_29302711_12 (matches_won INTEGER, matches_played VARCHAR)
### Question:
how many matches did the player that played 23 matches win
### Answer:
SELECT MIN(matches_won) FROM table_29302711_12 WHERE matches_played = 23 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_49 (record VARCHAR, date VARCHAR)
### Question:
What is the Record of the game on September 6?
### Answer:
SELECT record FROM table_name_49 WHERE date = "september 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 journalist (Nationality VARCHAR, Years_working INTEGER)
### Question:
Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.
### Answer:
SELECT Nationality FROM journalist WHERE Years_working > 10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working < 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_26313243_1 (gdp__ppp__per_capita___intl_$___2011 VARCHAR, country VARCHAR)
### Question:
Name the gdp per capita for haiti
### Answer:
SELECT gdp__ppp__per_capita___intl_$___2011 FROM table_26313243_1 WHERE country = "Haiti" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25353861_5 (steals INTEGER, player VARCHAR)
### Question:
How many steals did Kelly Miller have?
### Answer:
SELECT MIN(steals) FROM table_25353861_5 WHERE player = "Kelly Miller" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26250155_1 (song_choice VARCHAR, original_artist VARCHAR)
### Question:
What is the number of song choices where the original artist was Bright Eyes?
### Answer:
SELECT COUNT(song_choice) FROM table_26250155_1 WHERE original_artist = "Bright Eyes" |
Below is an context that describes a sql 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 (height__m_ft_ VARCHAR, rank VARCHAR, city VARCHAR, built VARCHAR)
### Question:
What is the Height (m/ft) for bucharest Built in 2009, and a Rank of 13?
### Answer:
SELECT height__m_ft_ FROM table_name_47 WHERE city = "bucharest" AND built = 2009 AND rank = 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_name_81 (drawn INTEGER, lost INTEGER)
### Question:
I want the sum of drawn for lost less than 0
### Answer:
SELECT SUM(drawn) FROM table_name_81 WHERE lost < 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_15824796_4 (original_air_date VARCHAR, season__number VARCHAR)
### Question:
When did season 9 originally air?
### Answer:
SELECT original_air_date FROM table_15824796_4 WHERE season__number = 9 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13464416_5 (team VARCHAR, game VARCHAR)
### Question:
Which team played in game 20?
### Answer:
SELECT team FROM table_13464416_5 WHERE game = 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_25716399_1 (written_by VARCHAR, original_air_date VARCHAR)
### Question:
Who wrote the episode where the original air date is july20,2007?
### Answer:
SELECT written_by FROM table_25716399_1 WHERE original_air_date = "July20,2007" |
Below is an context that describes a sql 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 (opponent VARCHAR, week VARCHAR, date VARCHAR)
### Question:
What team was the opponent in a week earlier than 17 on June 17, 2006?
### Answer:
SELECT opponent FROM table_name_91 WHERE week < 17 AND date = "june 17, 2006" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_84 (attendance INTEGER, date VARCHAR)
### Question:
What is the largest attendance that has December 16, 1962 as the date?
### Answer:
SELECT MAX(attendance) FROM table_name_84 WHERE date = "december 16, 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_name_71 (competition VARCHAR, year VARCHAR)
### Question:
What was the competition in 1978?
### Answer:
SELECT competition FROM table_name_71 WHERE year = 1978 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17155250_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
### Question:
For what ceremony was "Fire Dancer" not nominated?
### Answer:
SELECT year__ceremony_ FROM table_17155250_1 WHERE original_title = "Fire Dancer" |
Below is an context that describes a sql 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 (match VARCHAR, lost VARCHAR)
### Question:
How many matches have 0 as the lost?
### Answer:
SELECT COUNT(match) FROM table_name_32 WHERE lost = 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_52 (surface VARCHAR, opponent_in_the_final VARCHAR, year VARCHAR)
### Question:
Which Surface has an Opponent in the final of don mcneill, and a Year of 1940?
### Answer:
SELECT surface FROM table_name_52 WHERE opponent_in_the_final = "don mcneill" AND year = 1940 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (crowd VARCHAR, home_team VARCHAR)
### Question:
How many people are in the crowd in south melbourne?
### Answer:
SELECT COUNT(crowd) FROM table_name_66 WHERE home_team = "south 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_27208814_1 (original_airdate VARCHAR, writer VARCHAR, director VARCHAR)
### Question:
Name the original airdate for robin mukherjee and margy kinmonth
### Answer:
SELECT original_airdate FROM table_27208814_1 WHERE writer = "Robin Mukherjee" AND director = "Margy Kinmonth" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (attendance INTEGER, week VARCHAR)
### Question:
How many people were in attendance at week 16?
### Answer:
SELECT AVG(attendance) FROM table_name_19 WHERE week = 16 |
Below is an context that describes a sql 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 (result VARCHAR, season VARCHAR)
### Question:
What was the Result in the 2005-06 Season?
### Answer:
SELECT result FROM table_name_9 WHERE season = "2005-06" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_94 (gross_mw VARCHAR, type VARCHAR)
### Question:
Type of phase ii has what gross mw?
### Answer:
SELECT gross_mw FROM table_name_94 WHERE type = "phase ii" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11391954_3 (Half VARCHAR, country VARCHAR)
### Question:
How many times is Moldova the winner of half marathon (womens)?
### Answer:
SELECT COUNT(Half) AS marathon__womens_ FROM table_11391954_3 WHERE country = "Moldova" |
Below is an context that describes a sql 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 (opponent VARCHAR, event VARCHAR)
### Question:
Which Opponent has an Event of king of the cage: shock and awe?
### Answer:
SELECT opponent FROM table_name_8 WHERE event = "king of the cage: shock and awe" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (date__to_ VARCHAR, traction_type VARCHAR, name_of_system VARCHAR)
### Question:
What is the date (to) associated wiht a traction type of electric and the Yarmouth Light and Power Company system?
### Answer:
SELECT date__to_ FROM table_name_38 WHERE traction_type = "electric" AND name_of_system = "yarmouth light and power company" |
Below is an context that describes a sql 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 (date VARCHAR, visitor VARCHAR)
### Question:
Can you tell me the Date that has the Visitor of florida?
### Answer:
SELECT date FROM table_name_84 WHERE 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 table_26263322_1 (candidate VARCHAR, age VARCHAR)
### Question:
What is the candidate whose age is 27?
### Answer:
SELECT candidate FROM table_26263322_1 WHERE age = 27 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22903773_2 (opp_points INTEGER, record VARCHAR)
### Question:
How many points did the opponents score on the game where Sooners' record was 16-5?
### Answer:
SELECT MAX(opp_points) FROM table_22903773_2 WHERE record = "16-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_79 (touchdowns INTEGER, receptions VARCHAR, games_started VARCHAR)
### Question:
With games started smaller than 16 plus receptions of 51, what is the smallest amount of touchdowns listed?
### Answer:
SELECT MIN(touchdowns) FROM table_name_79 WHERE receptions = 51 AND games_started < 16 |
Below is an context that describes a sql 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 (location VARCHAR, _number_found VARCHAR)
### Question:
What is the listed Location with a # found of 4?
### Answer:
SELECT location FROM table_name_47 WHERE _number_found = "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_19681738_1 (county VARCHAR, starky__percentage VARCHAR)
### Question:
How many times was country considered when starky % was 20.96%
### Answer:
SELECT COUNT(county) FROM table_19681738_1 WHERE starky__percentage = "20.96%" |
Below is an context that describes a sql 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 (score VARCHAR, year VARCHAR)
### Question:
What was the score in the year 2004?
### Answer:
SELECT score FROM table_name_72 WHERE year = "2004" |
Below is an context that describes a sql 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 INTEGER, club VARCHAR, fa_cup_goals VARCHAR, league_goals VARCHAR)
### Question:
What is the average Total, when FA Cup Goals is 1, when League Goals is 10, and when Club is Crystal Palace?
### Answer:
SELECT AVG(total) FROM table_name_20 WHERE fa_cup_goals = "1" AND league_goals = "10" AND club = "crystal palace" |
Below is an context that describes a sql 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 (name VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR)
### Question:
What is the name of the school with a decile of 1, a state authority, and located in Otahuhu?
### Answer:
SELECT name FROM table_name_41 WHERE decile = "1" AND authority = "state" AND area = "otahuhu" |
Below is an context that describes a sql 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, player VARCHAR)
### Question:
Alton Lister Category:Articles with hCards has what as the listed years?
### Answer:
SELECT years FROM table_name_56 WHERE player = "alton lister category:articles with hcards" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_68 (airport VARCHAR, iata VARCHAR)
### Question:
What is the name of the airport with an IATA of KUF?
### Answer:
SELECT airport FROM table_name_68 WHERE iata = "kuf" |
Below is an context that describes a sql 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 (match INTEGER, lost VARCHAR, team VARCHAR)
### Question:
What is the lowest match that has a lost greater than 3, and kolejarz rawicz as the team?
### Answer:
SELECT MIN(match) FROM table_name_99 WHERE lost > 3 AND team = "kolejarz rawicz" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14754471_1 (hispanic___percentage_ VARCHAR, free_reduced_lunch___percentage_ VARCHAR)
### Question:
What percentage of hispanics are there when the free/reduced lunch percentage is 81.4?
### Answer:
SELECT hispanic___percentage_ FROM table_14754471_1 WHERE free_reduced_lunch___percentage_ = "81.4" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.