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_23 (away_team VARCHAR, home_team VARCHAR)
### Question:
What is the away team for the home team wigan athletic?
### Answer:
SELECT away_team FROM table_name_23 WHERE home_team = "wigan athletic" |
Below is an context that describes a sql 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 (attendance INTEGER, score VARCHAR)
### Question:
How many Attendance in a match which scores 0:0 - 4:1 (pen)
### Answer:
SELECT AVG(attendance) FROM table_name_98 WHERE score = "0:0 - 4:1 (pen)" |
Below is an context that describes a sql 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 (notes VARCHAR, position VARCHAR)
### Question:
What are the notes of events that finished in 12th position?
### Answer:
SELECT notes FROM table_name_94 WHERE position = "12th" |
Below is an context that describes a sql 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 (games INTEGER, term_ VARCHAR, c_ VARCHAR)
### Question:
What is the of games when for the term [c] of 1969 – 1973?
### Answer:
SELECT SUM(games) FROM table_name_24 WHERE term_[c_] = "1969 – 1973" |
Below is an context that describes a sql 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 (country VARCHAR, score VARCHAR)
### Question:
What country was the golfer with a score of 72-72-72=216 representing?
### Answer:
SELECT country FROM table_name_78 WHERE score = 72 - 72 - 72 = 216 |
Below is an context that describes a sql 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 (opponent VARCHAR, date VARCHAR)
### Question:
Which opponent played on July 15?
### Answer:
SELECT opponent FROM table_name_3 WHERE date = "july 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_9 (name VARCHAR, moving_from VARCHAR)
### Question:
Name the name that has moving of 1. fc nürnberg.
### Answer:
SELECT name FROM table_name_9 WHERE moving_from = "1. fc nürnberg" |
Below is an context that describes a sql 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 (tournament VARCHAR)
### Question:
What results in 2012 also has 2013 results of 2r and the tournament was Wimbledon?
### Answer:
SELECT 2012 FROM table_name_65 WHERE 2013 = "2r" AND tournament = "wimbledon" |
Below is an context that describes a sql 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 (country VARCHAR, winter_olympics VARCHAR)
### Question:
Which Country has a Winter Olympics of 1948?
### Answer:
SELECT country FROM table_name_28 WHERE winter_olympics = "1948" |
Below is an context that describes a sql 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 (pick VARCHAR, round VARCHAR, player VARCHAR)
### Question:
What is the total number of Pick, when Round is greater than 1, and when Player is "Jim Stack"?
### Answer:
SELECT COUNT(pick) FROM table_name_1 WHERE round > 1 AND player = "jim stack" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1081235_1 (country VARCHAR, name_of_lava_dome VARCHAR)
### Question:
How many countries are the Tata Sabaya Lava domes located in?
### Answer:
SELECT COUNT(country) FROM table_1081235_1 WHERE name_of_lava_dome = "Tata Sabaya lava domes" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19834691_4 (viewers__millions_ VARCHAR, audience_share_in_timeslot VARCHAR)
### Question:
Name the total number of viewers for audience share in timeslot for 10.2%
### Answer:
SELECT COUNT(viewers__millions_) FROM table_19834691_4 WHERE audience_share_in_timeslot = "10.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_91 (home_team VARCHAR, venue VARCHAR)
### Question:
Which Home team plays at the arden street oval Venue?
### Answer:
SELECT home_team FROM table_name_91 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_name_49 (total__kg_ VARCHAR, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
### Question:
What is the total associated with a Clean & jerk of 135, and a Snatch of 115?
### Answer:
SELECT total__kg_ FROM table_name_49 WHERE clean_ & _jerk = 135 AND snatch = 115 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25517718_3 (touchdowns INTEGER, player VARCHAR)
### Question:
How many touchdowns does Boggs have?
### Answer:
SELECT MIN(touchdowns) FROM table_25517718_3 WHERE player = "Boggs" |
Below is an context that describes a sql 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 (developer VARCHAR, release_date VARCHAR, title VARCHAR)
### Question:
What Developer has a Release date of 2010-12-16, and a Title of facebook?
### Answer:
SELECT developer FROM table_name_12 WHERE release_date = "2010-12-16" AND title = "facebook" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_73 (capital VARCHAR, population VARCHAR)
### Question:
Which capital has a population of 308,610?
### Answer:
SELECT capital FROM table_name_73 WHERE population = "308,610" |
Below is an context that describes a sql 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 (score VARCHAR, opponent VARCHAR, record VARCHAR)
### Question:
What was score of the Blue Jays' game versus the Indians when their record was 21-19?
### Answer:
SELECT score FROM table_name_6 WHERE opponent = "indians" AND record = "21-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_2 (position VARCHAR, pick INTEGER)
### Question:
What position has a pick less than 20?
### Answer:
SELECT position FROM table_name_2 WHERE pick < 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_51 (driving_wheels VARCHAR, date_built VARCHAR)
### Question:
What are the driving wheels of the model built in 1883?
### Answer:
SELECT driving_wheels FROM table_name_51 WHERE date_built = "1883" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23619005_3 (player VARCHAR, cfl_team VARCHAR)
### Question:
How many different players got drafted for the Ottawa Renegades?
### Answer:
SELECT COUNT(player) FROM table_23619005_3 WHERE cfl_team = "Ottawa Renegades" |
Below is an context that describes a sql 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 (home_ground VARCHAR, region VARCHAR)
### Question:
What is the home ground in region NZL?
### Answer:
SELECT home_ground FROM table_name_40 WHERE region = "nzl" |
Below is an context that describes a sql 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 (set_2 VARCHAR, set_3 VARCHAR)
### Question:
What is the score for set 2 when set 3 was 15–6?
### Answer:
SELECT set_2 FROM table_name_61 WHERE set_3 = "15–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 medicine_enzyme_interaction (id VARCHAR, enzyme_id VARCHAR); CREATE TABLE enzyme (id VARCHAR, enzyme_id VARCHAR)
### Question:
How many enzymes do not have any interactions?
### Answer:
SELECT COUNT(*) FROM enzyme WHERE NOT id IN (SELECT enzyme_id FROM medicine_enzyme_interaction) |
Below is an context that describes a sql 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 (director VARCHAR, production_number VARCHAR)
### Question:
Who is the Director of the Filmography with Production Number of 11-14?
### Answer:
SELECT director FROM table_name_76 WHERE production_number = "11-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_85 (chinese_name VARCHAR, station_name VARCHAR)
### Question:
What's the Chinese name of the wudaokou station?
### Answer:
SELECT chinese_name FROM table_name_85 WHERE station_name = "wudaokou" |
Below is an context that describes a sql 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 (gold INTEGER, bronze INTEGER)
### Question:
Which Gold has a Bronze larger than 6?
### Answer:
SELECT MIN(gold) FROM table_name_34 WHERE bronze > 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_16 (country VARCHAR, start_source VARCHAR, name VARCHAR)
### Question:
What is the country named feeney with a bbc sport start source?
### Answer:
SELECT country FROM table_name_16 WHERE start_source = "bbc sport" AND name = "feeney" |
Below is an context that describes a sql 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 (total VARCHAR, fa_trophy VARCHAR, player VARCHAR)
### Question:
How many Total that has a FA Trophy of 0 and a Player of charlie butler?
### Answer:
SELECT COUNT(total) FROM table_name_99 WHERE fa_trophy = 0 AND player = "charlie butler" |
Below is an context that describes a sql 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 (location VARCHAR, time VARCHAR)
### Question:
what is the location when the time is 3:15?
### Answer:
SELECT location FROM table_name_7 WHERE time = "3: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_22603701_1 (position VARCHAR, college VARCHAR)
### Question:
What are the positions for Menlo College?
### Answer:
SELECT position FROM table_22603701_1 WHERE college = "Menlo college" |
Below is an context that describes a sql 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 (prominence__m_ INTEGER, peak VARCHAR, elevation__m_ VARCHAR)
### Question:
What is the average prominence in m of pietrosul rodnei peak, which has an elevation less than 2,303?
### Answer:
SELECT AVG(prominence__m_) FROM table_name_48 WHERE peak = "pietrosul rodnei" AND elevation__m_ < 2 OFFSET 303 |
Below is an context that describes a sql 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 (name VARCHAR, title VARCHAR)
### Question:
What is the name of the queen regnant?
### Answer:
SELECT name FROM table_name_48 WHERE title = "queen regnant" |
Below is an context that describes a sql 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 (location VARCHAR, method VARCHAR, res VARCHAR)
### Question:
Which Location has a Method of decision (unanimous), and Res of win x?
### Answer:
SELECT location FROM table_name_99 WHERE method = "decision (unanimous)" AND res = "win x" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (college VARCHAR, pick VARCHAR)
### Question:
What college had the 93 pick?
### Answer:
SELECT college FROM table_name_50 WHERE pick = 93 |
Below is an context that describes a sql 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 (crowd INTEGER, home_team VARCHAR)
### Question:
How many people were in the crowd at collingwood's home game?
### Answer:
SELECT SUM(crowd) FROM table_name_46 WHERE home_team = "collingwood" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16751596_13 (lead_maragin VARCHAR, dates_administered VARCHAR)
### Question:
On July 17, 2008, what was the total number of lead maragin?
### Answer:
SELECT COUNT(lead_maragin) FROM table_16751596_13 WHERE dates_administered = "July 17, 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_22 (year VARCHAR, fleet_number VARCHAR)
### Question:
Which year has a fleet number of 603?
### Answer:
SELECT year FROM table_name_22 WHERE fleet_number = "603" |
Below is an context that describes a sql 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 (april INTEGER, record VARCHAR, points VARCHAR)
### Question:
What is the highest value in April with a record of 35–37–11 and more than 81 points?
### Answer:
SELECT MAX(april) FROM table_name_99 WHERE record = "35–37–11" AND points > 81 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR, share_count INTEGER)
### Question:
Show the maximum and minimum share count of different transaction types.
### Answer:
SELECT transaction_type_code, MAX(share_count), MIN(share_count) FROM TRANSACTIONS GROUP BY transaction_type_code |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_98 (us_rap VARCHAR, album VARCHAR)
### Question:
What is the U.S. Rap chart number of the album west coast bad boyz, vol. 3: poppin' collars?
### Answer:
SELECT us_rap FROM table_name_98 WHERE album = "west coast bad boyz, vol. 3: poppin' collars" |
Below is an context that describes a sql 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 (nationality VARCHAR, player VARCHAR)
### Question:
What nationality is Gerry Methe?
### Answer:
SELECT nationality FROM table_name_34 WHERE player = "gerry methe" |
Below is an context that describes a sql 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 (result VARCHAR, opponent VARCHAR)
### Question:
What is Result, when Opponent is "Rochester Royals"?
### Answer:
SELECT result FROM table_name_19 WHERE opponent = "rochester royals" |
Below is an context that describes a sql 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 (no_3 VARCHAR, no_7 VARCHAR, no_4 VARCHAR)
### Question:
What is No. 3, when No. 7 is Abigail, and when No. 4 is Ava?
### Answer:
SELECT no_3 FROM table_name_79 WHERE no_7 = "abigail" AND no_4 = "ava" |
Below is an context that describes a sql 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 (nominated_work VARCHAR, year VARCHAR)
### Question:
Which Nominated work has a Year of 1997?
### Answer:
SELECT nominated_work FROM table_name_96 WHERE year = 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_5 (year VARCHAR, note VARCHAR, title VARCHAR)
### Question:
what is the year when the note is supporting and the title is rokumeikan?
### Answer:
SELECT year FROM table_name_5 WHERE note = "supporting" AND title = "rokumeikan" |
Below is an context that describes a sql 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 (place VARCHAR, score VARCHAR)
### Question:
What is the Place of the Player with a Score of 67?
### Answer:
SELECT place FROM table_name_16 WHERE score = 67 |
Below is an context that describes a sql 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 (writer VARCHAR, producer_executive_producer VARCHAR)
### Question:
Which writer had a producer DKA, JL, AS?
### Answer:
SELECT writer FROM table_name_85 WHERE producer_executive_producer = "dka, jl, as" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE city (Official_Name VARCHAR, Population VARCHAR)
### Question:
Find the official names of cities with population bigger than 1500 or smaller than 500.
### Answer:
SELECT Official_Name FROM city WHERE Population > 1500 OR Population < 500 |
Below is an context that describes a sql 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 (drawn INTEGER, against VARCHAR, lost VARCHAR, points VARCHAR)
### Question:
What is the highest Drawn when the lost is 7 and the points are more than 4, and the against is less than 22?
### Answer:
SELECT MAX(drawn) FROM table_name_12 WHERE lost = 7 AND points > 4 AND against < 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_1566850_9 (centerfold_model VARCHAR, date VARCHAR)
### Question:
How many centerfolds were in the 9-98 issue?
### Answer:
SELECT COUNT(centerfold_model) FROM table_1566850_9 WHERE date = "9-98" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_3 (singapore_gross VARCHAR, title VARCHAR)
### Question:
For the film titled 1997, what was the gross in Singapore?
### Answer:
SELECT singapore_gross FROM table_name_3 WHERE title = "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_46 (place VARCHAR, to_par VARCHAR)
### Question:
What place has a to par of E?
### Answer:
SELECT place FROM table_name_46 WHERE to_par = "e" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_61 (lost VARCHAR, highest_ranking VARCHAR)
### Question:
What is the total number of Lost for the Highest Ranking of – –?
### Answer:
SELECT COUNT(lost) FROM table_name_61 WHERE highest_ranking = "– –" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12792876_4 (tries_against VARCHAR, points VARCHAR)
### Question:
Name the tries against for 87 points
### Answer:
SELECT tries_against FROM table_12792876_4 WHERE points = "87" |
Below is an context that describes a sql 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 (conventional_plans VARCHAR, pos_plans VARCHAR)
### Question:
Which conventional plan has a POS plan of 21%?
### Answer:
SELECT conventional_plans FROM table_name_14 WHERE pos_plans = "21%" |
Below is an context that describes a sql 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 (team VARCHAR, circuit VARCHAR)
### Question:
Which team won at winton motor raceway?
### Answer:
SELECT team FROM table_name_5 WHERE circuit = "winton motor raceway" |
Below is an context that describes a sql 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 (nationality VARCHAR, player VARCHAR)
### Question:
What Nationality has the Player of Marcus Walker?
### Answer:
SELECT nationality FROM table_name_19 WHERE player = "marcus walker" |
Below is an context that describes a sql 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 (rank VARCHAR, goals VARCHAR, scorer VARCHAR)
### Question:
Which Rank has Goals larger than 10, and a Scorer of choi sang-kuk?
### Answer:
SELECT rank FROM table_name_35 WHERE goals > 10 AND scorer = "choi sang-kuk" |
Below is an context that describes a sql 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 (runner_s__up VARCHAR, winning_score VARCHAR)
### Question:
Who has the Winning score of –10 (66-71-62-71=270) ?
### Answer:
SELECT runner_s__up FROM table_name_21 WHERE winning_score = –10(66 - 71 - 62 - 71 = 270) |
Below is an context that describes a sql 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 (name VARCHAR, street_address VARCHAR)
### Question:
Street Address of 401 n. wabash avenue involves what name?
### Answer:
SELECT name FROM table_name_32 WHERE street_address = "401 n. wabash avenue" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_62 (population VARCHAR, code VARCHAR, county VARCHAR, municipality VARCHAR)
### Question:
What is the population of Danderyd municipality in Stockholm County with a code lower than 162?
### Answer:
SELECT COUNT(population) FROM table_name_62 WHERE county = "stockholm county" AND municipality = "danderyd municipality" AND code < 162 |
Below is an context that describes a sql 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 (ties INTEGER, gp INTEGER)
### Question:
What was the largest tie when the G.P was more than 5?
### Answer:
SELECT MAX(ties) FROM table_name_56 WHERE gp > 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_85 (country VARCHAR, place VARCHAR, score VARCHAR)
### Question:
What is the country listed that has a place of t4 with a score of 72-70=142?
### Answer:
SELECT country FROM table_name_85 WHERE place = "t4" AND score = 72 - 70 = 142 |
Below is an context that describes a sql 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 (assists INTEGER, club VARCHAR, points VARCHAR)
### Question:
What is the amount of assists for richmond kickers and points larger than 24
### Answer:
SELECT SUM(assists) FROM table_name_32 WHERE club = "richmond kickers" AND points > 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_91 (score VARCHAR, home VARCHAR, record VARCHAR)
### Question:
What was the score of the game where Montreal was the home team and the Devils had a record of 40–24–6?
### Answer:
SELECT score FROM table_name_91 WHERE home = "montreal" AND record = "40–24–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_17 (game VARCHAR, date VARCHAR)
### Question:
What is the Game held on february 9?
### Answer:
SELECT game FROM table_name_17 WHERE date = "february 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_57 (games_played INTEGER, team VARCHAR, wins VARCHAR)
### Question:
Which average games played number has the Ottawa Hockey Club as a team and a number of wins bigger than 5?
### Answer:
SELECT AVG(games_played) FROM table_name_57 WHERE team = "ottawa hockey club" AND wins > 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_1949746_1 (licensee VARCHAR, frequency VARCHAR)
### Question:
When 90.7 fm is the frequency who is the licensee?
### Answer:
SELECT licensee FROM table_1949746_1 WHERE frequency = "90.7 FM" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (status VARCHAR, opposing_teams VARCHAR)
### Question:
Who won the event against U.S.A.?
### Answer:
SELECT status FROM table_name_39 WHERE opposing_teams = "u.s.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_13079788_3 (circuit VARCHAR, date VARCHAR, gt3_winner VARCHAR)
### Question:
what are all the circuit for 9 september and gt3 winner hector lester allan simonsen
### Answer:
SELECT circuit FROM table_13079788_3 WHERE date = "9 September" AND gt3_winner = "Hector Lester Allan Simonsen" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14962287_2 (years VARCHAR, total VARCHAR)
### Question:
What years have a total of 139?
### Answer:
SELECT years FROM table_14962287_2 WHERE total = "139" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2351952_1 (serial_numbers VARCHAR, order_number VARCHAR)
### Question:
The order number 713726-713735 has what serial number?
### Answer:
SELECT serial_numbers FROM table_2351952_1 WHERE order_number = "713726-713735" |
Below is an context that describes a sql 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 (born___died VARCHAR, connection_with_australia VARCHAR)
### Question:
The person that was born in Sydney died in what year?
### Answer:
SELECT born___died FROM table_name_47 WHERE connection_with_australia = "born in 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_65 (year INTEGER, publication VARCHAR, rank VARCHAR)
### Question:
What is the sum of Year, when Publication is "VH1", and when Rank is greater than 11?
### Answer:
SELECT SUM(year) FROM table_name_65 WHERE publication = "vh1" AND rank > 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_52 (size_km² INTEGER, density_hab_km VARCHAR)
### Question:
what is the size km² when the density hab/km is 8,321?
### Answer:
SELECT SUM(size_km²) FROM table_name_52 WHERE density_hab_km = 8 OFFSET 321 |
Below is an context that describes a sql 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 (_2_clubs VARCHAR, nation VARCHAR, total VARCHAR)
### Question:
What is the highest 4 hoops, 2 clubs of Belarus, which has a total less than 38.25?
### Answer:
SELECT MAX(4 AS _hoops), _2_clubs FROM table_name_14 WHERE nation = "belarus" AND total < 38.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_55 (round VARCHAR, attendance VARCHAR)
### Question:
What round has an attendance of 12,127?
### Answer:
SELECT round FROM table_name_55 WHERE attendance = "12,127" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE mill (architect_id VARCHAR); CREATE TABLE architect (id VARCHAR, name VARCHAR, gender VARCHAR); CREATE TABLE bridge (architect_id VARCHAR)
### Question:
What are the ids, names and genders of the architects who built two bridges or one mill?
### Answer:
SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) = 2 UNION SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.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_93 (country VARCHAR, rank VARCHAR)
### Question:
Which country has a rank of 2?
### Answer:
SELECT country FROM table_name_93 WHERE 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 table_name_14 (league_cup_goals INTEGER, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)
### Question:
What is the lowest league cup goals for the entry with fa cup goals greater than 0 and FA cup apps larger than 2?
### Answer:
SELECT MIN(league_cup_goals) FROM table_name_14 WHERE fa_cup_goals > 0 AND fa_cup_apps > 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_68 (runners_up VARCHAR, semifinalists VARCHAR)
### Question:
Whose Runner-up has a Semifinalist of guillermo pérez-roldán andrea gaudenzi?
### Answer:
SELECT runners_up FROM table_name_68 WHERE semifinalists = "guillermo pérez-roldán andrea gaudenzi" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2182654_3 (no_in_series VARCHAR, directed_by VARCHAR)
### Question:
How many episodes in the series were directed by Alan Taylor?
### Answer:
SELECT COUNT(no_in_series) FROM table_2182654_3 WHERE directed_by = "Alan Taylor" |
Below is an context that describes a sql 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 (opponent VARCHAR, surface VARCHAR, date VARCHAR)
### Question:
Who is the opponent on November 22, 2009, clay surface?
### Answer:
SELECT opponent FROM table_name_46 WHERE surface = "clay" AND date = "november 22, 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 channel (name VARCHAR, rating_in_percent VARCHAR)
### Question:
List all channel names ordered by their rating in percent from big to small.
### Answer:
SELECT name FROM channel ORDER BY rating_in_percent 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_1342359_17 (incumbent VARCHAR, first_elected VARCHAR)
### Question:
Who won in 1927
### Answer:
SELECT incumbent FROM table_1342359_17 WHERE first_elected = 1927 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_62 (laps INTEGER, time_retired VARCHAR)
### Question:
What is the lowest number of laps with a time/retired of +38.426?
### Answer:
SELECT MIN(laps) FROM table_name_62 WHERE time_retired = "+38.426" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE artwork (TYPE VARCHAR)
### Question:
List the most common type of artworks.
### Answer:
SELECT TYPE FROM artwork GROUP BY TYPE 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_38 (area_2006_km² INTEGER, area_1996_km² INTEGER)
### Question:
Which area 2006 km² has an area 1996 km² smaller than 17.31?
### Answer:
SELECT MAX(area_2006_km²) FROM table_name_38 WHERE area_1996_km² < 17.31 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1449169_1 (common VARCHAR, area__km_2__ VARCHAR)
### Question:
Which common has an area (km2) of 38.38?
### Answer:
SELECT common FROM table_1449169_1 WHERE area__km_2__ = "38.38" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_85 (score VARCHAR, location VARCHAR, date VARCHAR)
### Question:
What is the score of the game on June 25 at the mohegan sun arena?
### Answer:
SELECT score FROM table_name_85 WHERE location = "mohegan sun arena" AND date = "june 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_83 (transfer_fee VARCHAR, name VARCHAR, transfer_window VARCHAR, country VARCHAR)
### Question:
What was the transfer fee for the summer transfer involving the SCO named Crainey?
### Answer:
SELECT transfer_fee FROM table_name_83 WHERE transfer_window = "summer" AND country = "sco" AND name = "crainey" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19495707_1 (license VARCHAR, application VARCHAR)
### Question:
Name the license for e-on vue
### Answer:
SELECT license FROM table_19495707_1 WHERE application = "E-on Vue" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16432543_1 (established VARCHAR, institution VARCHAR)
### Question:
What is the year Rowan University was established
### Answer:
SELECT established FROM table_16432543_1 WHERE institution = "Rowan University" |
Below is an context that describes a sql 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 (place INTEGER, lost VARCHAR, points VARCHAR)
### Question:
what is the place when losses is less than 12 and points is less than 19?
### Answer:
SELECT SUM(place) FROM table_name_12 WHERE lost < 12 AND points < 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_19439864_2 (total INTEGER)
### Question:
What is the lowest total?
### Answer:
SELECT MIN(total) FROM table_19439864_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_67 (margin_of_victory VARCHAR, winning_score VARCHAR)
### Question:
What was the margin of victory when the winning score was −12 (66-67-64-71=268)?
### Answer:
SELECT margin_of_victory FROM table_name_67 WHERE winning_score = −12(66 - 67 - 64 - 71 = 268) |
Below is an context that describes a sql 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 (main_contestant VARCHAR, total_score_week VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
### Question:
Who is the main contestant with a total score/week of 42/60 and a co-contestant (Yaar vs. Pyaa) of Tina Sachdev?
### Answer:
SELECT main_contestant FROM table_name_29 WHERE total_score_week = "42/60" AND co_contestant__yaar_vs_pyaar_ = "tina sachdev" |
Below is an context that describes a sql 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 (goals INTEGER, result VARCHAR)
### Question:
How many Goals have a Result of 0 – 4?
### Answer:
SELECT AVG(goals) FROM table_name_26 WHERE result = "0 – 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_13 (run_3 VARCHAR, run_1 VARCHAR)
### Question:
Which Run 3 has a Run 1 of 2:20.10?
### Answer:
SELECT run_3 FROM table_name_13 WHERE run_1 = "2:20.10" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.