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_20854943_2 (sail_number VARCHAR, skipper VARCHAR)
### Question:
How many sail numbers for boat skippered by Geoff Ross?
### Answer:
SELECT COUNT(sail_number) FROM table_20854943_2 WHERE skipper = "Geoff Ross" |
Below is an context that describes a sql 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 (round VARCHAR, against VARCHAR, date VARCHAR)
### Question:
What was the round for 29 January 1949, when the against was 1?
### Answer:
SELECT round FROM table_name_52 WHERE against = 1 AND date = "29 january 1949" |
Below is an context that describes a sql 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 (date VARCHAR, circuit VARCHAR, winning_constructor VARCHAR)
### Question:
In the circuit of Madonie, what was the date that had the winning constructor Bugatti?
### Answer:
SELECT date FROM table_name_17 WHERE circuit = "madonie" AND winning_constructor = "bugatti" |
Below is an context that describes a sql 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 (grid VARCHAR, driver VARCHAR)
### Question:
What is the total number of Grids for Chuck Daigh?
### Answer:
SELECT COUNT(grid) FROM table_name_29 WHERE driver = "chuck daigh" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_14 (score VARCHAR, location VARCHAR, date VARCHAR)
### Question:
What was the score at Tiger Stadium on October 12?
### Answer:
SELECT score FROM table_name_14 WHERE location = "tiger stadium" AND date = "october 12" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_30 (points_for VARCHAR, played VARCHAR, tries_against VARCHAR)
### Question:
If played is 22 and the tries against are 43, what are the points?
### Answer:
SELECT points_for FROM table_name_30 WHERE played = "22" AND tries_against = "43" |
Below is an context that describes a sql 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 (driver VARCHAR, capacity VARCHAR, total_time VARCHAR)
### Question:
Which Driver has a Capacity smaller than 5700, and a Total Time of 08:29?
### Answer:
SELECT driver FROM table_name_21 WHERE capacity < 5700 AND total_time = "08:29" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_93 (avg_g INTEGER, yards VARCHAR, long VARCHAR, gp_gs VARCHAR)
### Question:
What is the highest average for a long less than 24, a GP-GS of 2-0, and less than 7 yards?
### Answer:
SELECT MAX(avg_g) FROM table_name_93 WHERE long < 24 AND gp_gs = "2-0" AND yards < 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_11734041_10 (school_club_team_country VARCHAR, player VARCHAR)
### Question:
Kimball, toby toby kimball is a player; How many times at school/ club team/country was the player present?
### Answer:
SELECT COUNT(school_club_team_country) FROM table_11734041_10 WHERE player = "Kimball, Toby Toby Kimball" |
Below is an context that describes a sql 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 (money___£__ VARCHAR, player VARCHAR)
### Question:
How much money has been won by Stephen Ames?
### Answer:
SELECT money___£__ FROM table_name_46 WHERE player = "stephen ames" |
Below is an context that describes a sql 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 (main_use VARCHAR, name VARCHAR)
### Question:
What is the Main use of emley moor tower (mk.3)?
### Answer:
SELECT main_use FROM table_name_54 WHERE name = "emley moor tower (mk.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_99 (construction_start VARCHAR, design_flow__lpm_ VARCHAR)
### Question:
What Construction Start has a Design flow (LPM) of 1300?
### Answer:
SELECT construction_start FROM table_name_99 WHERE design_flow__lpm_ = 1300 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27877656_7 (opponent_team VARCHAR, opponent VARCHAR, edition VARCHAR, outcome VARCHAR)
### Question:
For opponent is sandra kristjánsdóttir, outcome is winner and edition is 2009 europe/africa group iiib mention all the opponent team.
### Answer:
SELECT opponent_team FROM table_27877656_7 WHERE edition = "2009 Europe/Africa Group IIIB" AND outcome = "Winner" AND opponent = "Sandra Kristjánsdóttir" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26801821_1 (production_code VARCHAR, no_in_series VARCHAR)
### Question:
What is the production code for the number 5 series ?
### Answer:
SELECT production_code FROM table_26801821_1 WHERE no_in_series = 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_92 (entrant VARCHAR, engine_† VARCHAR)
### Question:
who is the entrant when the engine is bmw p82?
### Answer:
SELECT entrant FROM table_name_92 WHERE engine_† = "bmw p82" |
Below is an context that describes a sql 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 (cdp_name VARCHAR, fips_code VARCHAR)
### Question:
Name the CDP name for FIPS code of 3659708
### Answer:
SELECT cdp_name FROM table_name_58 WHERE fips_code = 3659708 |
Below is an context that describes a sql 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 (total INTEGER)
### Question:
What is the average total that is 1st in 2010?
### Answer:
SELECT AVG(total) FROM table_name_8 WHERE 2010 = "1st" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_98 (wins VARCHAR, points VARCHAR, position VARCHAR, fl VARCHAR, poles VARCHAR)
### Question:
What is the number of wins with a 0 F.L., 0 poles, a position of 7th, and 35 points?
### Answer:
SELECT wins FROM table_name_98 WHERE fl = "0" AND poles = "0" AND position = "7th" AND points = "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_16678052_2 (record VARCHAR, opponent VARCHAR)
### Question:
What record was reached when the Eagles played the Phoenix Cardinals?
### Answer:
SELECT record FROM table_16678052_2 WHERE opponent = "Phoenix Cardinals" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10602294_1 (pressure VARCHAR, deaths VARCHAR)
### Question:
What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)?
### Answer:
SELECT pressure FROM table_10602294_1 WHERE deaths = "95km/h (60mph)" |
Below is an context that describes a sql 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 (round INTEGER, player VARCHAR)
### Question:
what is the round for jake gardiner?
### Answer:
SELECT AVG(round) FROM table_name_3 WHERE player = "jake gardiner" |
Below is an context that describes a sql 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 (try_bonus VARCHAR, tries_against VARCHAR)
### Question:
What try bonus has 19 as the tries against?
### Answer:
SELECT try_bonus FROM table_name_17 WHERE tries_against = "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_name_23 (loss VARCHAR, date VARCHAR)
### Question:
Which loss was on June 13?
### Answer:
SELECT loss FROM table_name_23 WHERE date = "june 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_98 (score VARCHAR, record VARCHAR)
### Question:
What is the score of the game with a record of 12–8–3?
### Answer:
SELECT score FROM table_name_98 WHERE record = "12–8–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_22 (score VARCHAR, record VARCHAR)
### Question:
What was the score that made the record 47-49?
### Answer:
SELECT score FROM table_name_22 WHERE record = "47-49" |
Below is an context that describes a sql 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 (competition VARCHAR, opponent VARCHAR, date VARCHAR)
### Question:
What was the name of the competition that had Peterborough Phantoms as an opponent and a date of 2?
### Answer:
SELECT competition FROM table_name_26 WHERE opponent = "peterborough phantoms" AND date = 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_85 (crowd INTEGER, away_team VARCHAR)
### Question:
Which Crowd has a Away team of sydney?
### Answer:
SELECT MAX(crowd) FROM table_name_85 WHERE away_team = "sydney" |
Below is an context that describes a sql 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 (goals_scored INTEGER, loses VARCHAR, wins VARCHAR, goals_conceded VARCHAR)
### Question:
What is the maximum goals score with less than 13 wins, greater than 86 goals were conceded, and more than 32 games lost?
### Answer:
SELECT MAX(goals_scored) FROM table_name_87 WHERE wins < 13 AND goals_conceded > 86 AND loses > 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_1342292_2 (party VARCHAR, incumbent VARCHAR)
### Question:
what's the party with incumbent being william b. bankhead
### Answer:
SELECT party FROM table_1342292_2 WHERE incumbent = "William B. Bankhead" |
Below is an context that describes a sql 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 (home_team VARCHAR, venue VARCHAR)
### Question:
Which home team has a Venue of corio oval?
### Answer:
SELECT home_team FROM table_name_61 WHERE venue = "corio 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_name_99 (home VARCHAR, record VARCHAR)
### Question:
Who had a 33-30-8 record at home?
### Answer:
SELECT home FROM table_name_99 WHERE record = "33-30-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_21 (first_appearance VARCHAR, character VARCHAR)
### Question:
Where did the character of Aiden Burn csi detective first appear?
### Answer:
SELECT first_appearance FROM table_name_21 WHERE character = "aiden burn csi detective" |
Below is an context that describes a sql 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 (goals INTEGER, tries VARCHAR, position VARCHAR)
### Question:
Tell me the highest goals with tries less than 1 and fullback position
### Answer:
SELECT MAX(goals) FROM table_name_5 WHERE tries < 1 AND position = "fullback" |
Below is an context that describes a sql 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 (genes INTEGER, species VARCHAR)
### Question:
What is the lowest number of genes in Rubrobacter Xylanophilus?
### Answer:
SELECT MIN(genes) FROM table_name_66 WHERE species = "rubrobacter xylanophilus" |
Below is an context that describes a sql 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 (player VARCHAR, pick VARCHAR)
### Question:
What player was drafted 252?
### Answer:
SELECT player FROM table_name_52 WHERE pick = 252 |
Below is an context that describes a sql 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 (Leading VARCHAR, record VARCHAR)
### Question:
Which Leading Scorer has a Record of 3-3?
### Answer:
SELECT Leading AS scorer FROM table_name_70 WHERE record = "3-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_50 (away_team VARCHAR)
### Question:
WHAT DID HAWTHORN SCORE AT ITS AWAY GAME?
### Answer:
SELECT away_team AS score FROM table_name_50 WHERE away_team = "hawthorn" |
Below is an context that describes a sql 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 (diameter__km_ INTEGER, latitude VARCHAR)
### Question:
What is the highest diameter when the latitude is 43.5s?
### Answer:
SELECT MAX(diameter__km_) FROM table_name_3 WHERE latitude = "43.5s" |
Below is an context that describes a sql 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 (visitor VARCHAR, date VARCHAR)
### Question:
Which Visitor is listed as having a Date of December 17?
### Answer:
SELECT visitor FROM table_name_13 WHERE date = "december 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_86 (points_for VARCHAR, club VARCHAR)
### Question:
How many points for did Bridgend Athletic RFC score?
### Answer:
SELECT points_for FROM table_name_86 WHERE club = "bridgend athletic 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 table_1180228_1 (aspect_ratio VARCHAR, released VARCHAR)
### Question:
What is the aspect ratio of the DVD released on 12/10/2009?
### Answer:
SELECT aspect_ratio FROM table_1180228_1 WHERE released = "12/10/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 Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Friend (student_id VARCHAR)
### Question:
Show the names of high school students and their corresponding number of friends.
### Answer:
SELECT T2.name, COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_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_35 (stadium VARCHAR, final_score VARCHAR)
### Question:
Name the stadium with final score of 20-10
### Answer:
SELECT stadium FROM table_name_35 WHERE final_score = "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 song (languages VARCHAR, rating INTEGER)
### Question:
What is the average rating of songs for each language?
### Answer:
SELECT AVG(rating), languages FROM song GROUP BY languages |
Below is an context that describes a sql 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 (attendance INTEGER, date VARCHAR, week VARCHAR)
### Question:
What is the largest attendance on august 10, 1963, and a week larger than 1?
### Answer:
SELECT MAX(attendance) FROM table_name_75 WHERE date = "august 10, 1963" AND 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_82 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
### Question:
Who is the driver when the laps are smaller than 14, the grid is smaller than 16, and the Time/retired is not classified?
### Answer:
SELECT driver FROM table_name_82 WHERE laps < 14 AND grid < 16 AND time_retired = "not classified" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27871460_2 (channel_number INTEGER)
### Question:
What is the highest channel number?
### Answer:
SELECT MAX(channel_number) FROM table_27871460_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_78 (score VARCHAR, date VARCHAR, competition_round VARCHAR, away_team VARCHAR)
### Question:
What is the score of the copa libertadores group 4 competition round on 14 March 1972 with universitario as the away team?
### Answer:
SELECT score FROM table_name_78 WHERE competition_round = "copa libertadores group 4" AND away_team = "universitario" AND date = "14 march 1972" |
Below is an context that describes a sql 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 (republican_seat_plurality VARCHAR, republican__democratic VARCHAR)
### Question:
What is the Republican seat plurality of the state with a ratio of 12/4 Republicans to Democrats?
### Answer:
SELECT republican_seat_plurality FROM table_name_30 WHERE republican__democratic = "12/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_65 (score VARCHAR, date VARCHAR)
### Question:
What was the final score on 1 August 2008?
### Answer:
SELECT score FROM table_name_65 WHERE date = "1 august 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_20 (name VARCHAR, country VARCHAR, transfer_fee VARCHAR)
### Question:
What is the name when the country is ESP and the transfer fee is € 7m?
### Answer:
SELECT name FROM table_name_20 WHERE country = "esp" AND transfer_fee = "€ 7m" |
Below is an context that describes a sql 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 (rider VARCHAR, manufacturer VARCHAR, grid VARCHAR)
### Question:
Who is the rider with a yamaha manufacturer and a 17 grid?
### Answer:
SELECT rider FROM table_name_21 WHERE manufacturer = "yamaha" AND grid = "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_91 (entrant VARCHAR, points VARCHAR, chassis VARCHAR)
### Question:
Which entrant scored less than 8 points and used a Maserati chassis?
### Answer:
SELECT entrant FROM table_name_91 WHERE points < 8 AND chassis = "maserati" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24257833_4 (operating_system VARCHAR, webkit_version VARCHAR)
### Question:
List all OS's with a webkit version of 525.29.1.
### Answer:
SELECT operating_system FROM table_24257833_4 WHERE webkit_version = "525.29.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_65 (lost INTEGER, points VARCHAR, played VARCHAR)
### Question:
What is the highest lost number of the team with less than 14 points and less than 18 played?
### Answer:
SELECT MAX(lost) FROM table_name_65 WHERE points < 14 AND played < 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 dorm (Id VARCHAR)
### Question:
How many dorms are there?
### Answer:
SELECT COUNT(*) FROM dorm |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27722408_10 (record VARCHAR, game VARCHAR)
### Question:
Name the total number of record for 61
### Answer:
SELECT COUNT(record) FROM table_27722408_10 WHERE game = 61 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28211674_3 (mixed_restricted VARCHAR, mixed_veteran VARCHAR)
### Question:
When Paul Whiting won the mixed veteran, who won the mixed restricted?
### Answer:
SELECT mixed_restricted FROM table_28211674_3 WHERE mixed_veteran = "Paul Whiting" |
Below is an context that describes a sql 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 (project_name VARCHAR, country VARCHAR, peak VARCHAR)
### Question:
What is the Project Name with a Country that is kazakhstan and a Peak that is 150?
### Answer:
SELECT project_name FROM table_name_90 WHERE country = "kazakhstan" AND peak = "150" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (tournament VARCHAR, opponent VARCHAR)
### Question:
What tournament has an opponent gan teik chai lin woon fui?
### Answer:
SELECT tournament FROM table_name_77 WHERE opponent = "gan teik chai lin woon fui" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18812411_3 (country VARCHAR, r3 VARCHAR, player VARCHAR)
### Question:
What country had a r3 at 72, by Larry Mize?
### Answer:
SELECT country FROM table_18812411_3 WHERE r3 = 72 AND player = "Larry Mize" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (team VARCHAR, assists VARCHAR, rank VARCHAR)
### Question:
I want the team with assists greater than 118 and rank less than 2
### Answer:
SELECT team FROM table_name_10 WHERE assists > 118 AND rank < 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 Documents (template_id VARCHAR)
### Question:
How many different templates do all document use?
### Answer:
SELECT COUNT(DISTINCT template_id) FROM Documents |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_14 (result VARCHAR, opponent_number VARCHAR)
### Question:
What was the result when they played at Michigan State?
### Answer:
SELECT result FROM table_name_14 WHERE opponent_number = "at michigan 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_16034882_4 (points VARCHAR, wins VARCHAR)
### Question:
What is the amount of points for the team with 13 wins?
### Answer:
SELECT points FROM table_16034882_4 WHERE wins = 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_99 (result VARCHAR, attendance VARCHAR)
### Question:
What was the result when the attendance was 25,418?
### Answer:
SELECT result FROM table_name_99 WHERE attendance = "25,418" |
Below is an context that describes a sql 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 (rank INTEGER, name VARCHAR, goals VARCHAR)
### Question:
What is the highest rank for Nat Lofthouse, and goals more than 255?
### Answer:
SELECT MAX(rank) FROM table_name_20 WHERE name = "nat lofthouse" AND goals > 255 |
Below is an context that describes a sql 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 (result VARCHAR, film_title_used_in_nomination VARCHAR)
### Question:
What is Result, when Film Title Used In Nomination is "Kuei-Mei, A Woman"?
### Answer:
SELECT result FROM table_name_43 WHERE film_title_used_in_nomination = "kuei-mei, a woman" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (diameter VARCHAR, theme VARCHAR)
### Question:
What is the Diameter of the Dog Sled (gold variant) Theme coin?
### Answer:
SELECT diameter FROM table_name_74 WHERE theme = "dog sled (gold variant)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE stadium (id VARCHAR); CREATE TABLE game (stadium_id VARCHAR)
### Question:
How many games has each stadium held?
### Answer:
SELECT T1.id, COUNT(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.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_31 (kickoff___et__ VARCHAR, opponent VARCHAR)
### Question:
What time was the kickoff when the miami dolphins were the opponent?
### Answer:
SELECT kickoff___et__ FROM table_name_31 WHERE opponent = "miami dolphins" |
Below is an context that describes a sql 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 (scored VARCHAR, points VARCHAR, draws VARCHAR, wins VARCHAR)
### Question:
How many points are in the scored category for the team that has less than 5 draws, 8 total wins, and total overall points less than 27?
### Answer:
SELECT COUNT(scored) FROM table_name_83 WHERE draws < 5 AND wins = 8 AND points < 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_174491_2 (winter_olympics VARCHAR, winner VARCHAR)
### Question:
What year did Karl Schnabl win the Winter Olympics?
### Answer:
SELECT winter_olympics FROM table_174491_2 WHERE winner = "Karl Schnabl" |
Below is an context that describes a sql 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 (height_in_ft VARCHAR, no_s_ VARCHAR, school_club_team_country VARCHAR)
### Question:
How tall is player 42 from Long Beach State?
### Answer:
SELECT height_in_ft FROM table_name_69 WHERE no_s_ = "42" AND school_club_team_country = "long beach 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_17827271_1 (actor_in_original_production VARCHAR, actor_required VARCHAR)
### Question:
What actor played the "female, older" role in the original production?
### Answer:
SELECT actor_in_original_production FROM table_17827271_1 WHERE actor_required = "Female, older" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14911550_5 (position VARCHAR, team VARCHAR)
### Question:
In which position is the team Cerro Porteño?
### Answer:
SELECT position FROM table_14911550_5 WHERE team = "Cerro Porteño" |
Below is an context that describes a sql 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 (losses INTEGER, wins INTEGER)
### Question:
When the team had more than 46 wins, what were the average losses?
### Answer:
SELECT AVG(losses) FROM table_name_13 WHERE wins > 46 |
Below is an context that describes a sql 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 (goals_for INTEGER, drawn INTEGER)
### Question:
What is the most goals for when there are fewer than 4 draws?
### Answer:
SELECT MAX(goals_for) FROM table_name_1 WHERE drawn < 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_93 (lane INTEGER, time VARCHAR)
### Question:
What's the lane with a time of 1:00.66?
### Answer:
SELECT AVG(lane) FROM table_name_93 WHERE time = "1:00.66" |
Below is an context that describes a sql 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 (league VARCHAR, total INTEGER)
### Question:
What's the total for a league cup less than 1?
### Answer:
SELECT COUNT(league) AS Cup FROM table_name_30 WHERE 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_2527063_3 (growth_rate VARCHAR, district VARCHAR)
### Question:
Name the growth rate for hooghly
### Answer:
SELECT growth_rate FROM table_2527063_3 WHERE district = "Hooghly" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26781017_1 (motogp_winner VARCHAR, circuit VARCHAR)
### Question:
Who are all the motogp winners when the circuit was Catalunya?
### Answer:
SELECT motogp_winner FROM table_26781017_1 WHERE circuit = "Catalunya" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (year INTEGER, points INTEGER)
### Question:
Name the highest year with points more than 0
### Answer:
SELECT MAX(year) FROM table_name_90 WHERE points > 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_21 (semifinalists VARCHAR, tournament VARCHAR)
### Question:
Who was the semifinalist at the tournament in miami?
### Answer:
SELECT semifinalists FROM table_name_21 WHERE tournament = "miami" |
Below is an context that describes a sql 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 (team_2 VARCHAR)
### Question:
For a team 2 of Al-Faisaly, what was the 2nd leg?
### Answer:
SELECT 2 AS nd_leg FROM table_name_96 WHERE team_2 = "al-faisaly" |
Below is an context that describes a sql 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 (position VARCHAR, year VARCHAR, player VARCHAR)
### Question:
What was the position of Greg Fredlund in years after 2008?
### Answer:
SELECT position FROM table_name_30 WHERE year > 2008 AND player = "greg fredlund" |
Below is an context that describes a sql 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 (name VARCHAR, year VARCHAR, floors VARCHAR)
### Question:
What is the name before 1954 with more than 15 floors?
### Answer:
SELECT name FROM table_name_61 WHERE year < 1954 AND floors > 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_76 (representative VARCHAR, party VARCHAR)
### Question:
Name the representative for party of whig
### Answer:
SELECT representative FROM table_name_76 WHERE party = "whig" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE problems (product_id VARCHAR); CREATE TABLE product (product_name VARCHAR, product_id VARCHAR)
### Question:
Find the top 3 products which have the largest number of problems?
### Answer:
SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY COUNT(*) DESC LIMIT 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_64 (matches_w_l VARCHAR, players VARCHAR)
### Question:
Players of judith wiesner and alex antonitsch had what match w-l?
### Answer:
SELECT matches_w_l FROM table_name_64 WHERE players = "judith wiesner and alex antonitsch" |
Below is an context that describes a sql 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 (tenure VARCHAR, revenues VARCHAR)
### Question:
What is the tenure of the person with revenues of 60,000-->58,000 koku?
### Answer:
SELECT tenure FROM table_name_90 WHERE revenues = "60,000-->58,000 koku" |
Below is an context that describes a sql 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 (average INTEGER, rank_by_average VARCHAR, total VARCHAR, number_of_dances VARCHAR)
### Question:
Which Average is the lowest one that has a Total smaller than 134, and a Number of dances smaller than 3, and a Rank by average smaller than 12?
### Answer:
SELECT MIN(average) FROM table_name_38 WHERE total < 134 AND number_of_dances < 3 AND rank_by_average < 12 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_58 (airport VARCHAR, country VARCHAR, iata VARCHAR)
### Question:
which aiport is in the united kingdom and has iata of lcy?
### Answer:
SELECT airport FROM table_name_58 WHERE country = "united kingdom" AND iata = "lcy" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_98 (competition VARCHAR, position VARCHAR)
### Question:
What's the name of the competition in 8th position?
### Answer:
SELECT competition FROM table_name_98 WHERE position = "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_23 (place VARCHAR, score VARCHAR)
### Question:
What was the place when the score was 67-73-73=213?
### Answer:
SELECT place FROM table_name_23 WHERE score = 67 - 73 - 73 = 213 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2159547_3 (date_successor_seated VARCHAR, vacator VARCHAR)
### Question:
On what date was James P. Buchanan (d)'s successor seated?
### Answer:
SELECT date_successor_seated FROM table_2159547_3 WHERE vacator = "James P. Buchanan (D)" |
Below is an context that describes a sql 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 (pujehun INTEGER, tonkolili VARCHAR, kenema VARCHAR, kambia VARCHAR)
### Question:
What is the highest pjuehun with a kenema greater than 559, a kambia of 45,653, and a tonkolili greater than 113,926?
### Answer:
SELECT MAX(pujehun) FROM table_name_9 WHERE kenema > 559 AND kambia = "45,653" AND tonkolili > 113 OFFSET 926 |
Below is an context that describes a sql 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 (region VARCHAR, japanese VARCHAR)
### Question:
What region has the symbol 八尾?
### Answer:
SELECT region FROM table_name_71 WHERE japanese = "八尾" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (hard VARCHAR, record VARCHAR, carpet VARCHAR, clay VARCHAR, grass VARCHAR)
### Question:
Which hard has a Clay of 0–0, Grass of 0–0, Carpet of 0–0, and a Record of 1–0?
### Answer:
SELECT hard FROM table_name_10 WHERE clay = "0–0" AND grass = "0–0" AND carpet = "0–0" AND record = "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 table_name_34 (trainer VARCHAR, year VARCHAR, time VARCHAR)
### Question:
Which trainer had a time of 1:10.09 with a year less than 2009?
### Answer:
SELECT trainer FROM table_name_34 WHERE year < 2009 AND time = "1:10.09" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.