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_88 (venue VARCHAR, home_team VARCHAR)
### Question:
What venue features carlton at home?
### Answer:
SELECT venue FROM table_name_88 WHERE home_team = "carlton" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE furniture (market_rate INTEGER)
### Question:
find the total market rate of the furnitures that have the top 2 market shares.
### Answer:
SELECT SUM(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 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_62 (nation VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR)
### Question:
what is the nation with a total of 1, bronze smaller than 1 and a rank of 3?
### Answer:
SELECT nation FROM table_name_62 WHERE total = 1 AND bronze < 1 AND rank = 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_21 (year VARCHAR, venue VARCHAR, result VARCHAR)
### Question:
How many years did the team place 2nd in Antwerp, Belgium?
### Answer:
SELECT COUNT(year) FROM table_name_21 WHERE venue = "antwerp, belgium" AND result = "2nd" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17340355_10 (score VARCHAR, date VARCHAR)
### Question:
What was the team's score on April 1?
### Answer:
SELECT score FROM table_17340355_10 WHERE date = "April 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_45 (area_km_2 INTEGER, status VARCHAR, official_name VARCHAR)
### Question:
What is the area of drummond village?
### Answer:
SELECT MAX(area_km_2) FROM table_name_45 WHERE status = "village" AND official_name = "drummond" |
Below is an context that describes a sql 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 (rider VARCHAR, grid VARCHAR, laps VARCHAR, bike VARCHAR)
### Question:
Name the Rider which has Laps smaller than 11 and a Bike of kawasaki zx-10r, and a Grid of 8?
### Answer:
SELECT rider FROM table_name_98 WHERE laps < 11 AND bike = "kawasaki zx-10r" AND grid = 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_90 (college_junior_club_team VARCHAR, player VARCHAR)
### Question:
What college, junior, or club team did Victor Ignatjev play for?
### Answer:
SELECT college_junior_club_team FROM table_name_90 WHERE player = "victor ignatjev" |
Below is an context that describes a sql 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 (opponent VARCHAR, loss VARCHAR)
### Question:
Who was the opponent at the game that had a loss of Stieb (5-7)?
### Answer:
SELECT opponent FROM table_name_64 WHERE loss = "stieb (5-7)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (nomination VARCHAR, director VARCHAR)
### Question:
Tell me the nomination for goran paskaljevic
### Answer:
SELECT nomination FROM table_name_12 WHERE director = "goran paskaljevic" |
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
What is the 1987 value of the 1994 atp masters series?
### Answer:
SELECT 1987 FROM table_name_45 WHERE 1994 = "atp masters series" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1745843_6 (part_3 VARCHAR, verb_meaning VARCHAR)
### Question:
How many different part 3 verbs are there that mean to freeze?
### Answer:
SELECT COUNT(part_3) FROM table_1745843_6 WHERE verb_meaning = "to freeze" |
Below is an context that describes a sql 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 (score VARCHAR, competition VARCHAR, venue VARCHAR)
### Question:
What score did vasil levski national stadium, sofia, which was friendly during competition, earn?
### Answer:
SELECT score FROM table_name_96 WHERE competition = "friendly" AND venue = "vasil levski national stadium, sofia" |
Below is an context that describes a sql 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 (winner VARCHAR, finalist VARCHAR, season VARCHAR)
### Question:
Who was the winner of the season before 2010 with Lietuvos Rytas as a finalist?
### Answer:
SELECT winner FROM table_name_39 WHERE finalist = "lietuvos rytas" AND season < 2010 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_36 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR)
### Question:
What is re-elected Incumbent Jerry Costello's First elected date?
### Answer:
SELECT MIN(first_elected) FROM table_name_36 WHERE results = "re-elected" AND incumbent = "jerry costello" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14655985_1 (player VARCHAR, college VARCHAR)
### Question:
what's the player with college being penn state
### Answer:
SELECT player FROM table_14655985_1 WHERE college = "Penn State" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (venue VARCHAR, score VARCHAR)
### Question:
Where was the match with a score of 4.10 (34) - 8.12 (60)?
### Answer:
SELECT venue FROM table_name_51 WHERE score = "4.10 (34) - 8.12 (60)" |
Below is an context that describes a sql 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 (laps VARCHAR, driver VARCHAR)
### Question:
How many laps did Yannick Dalmas do?
### Answer:
SELECT laps FROM table_name_59 WHERE driver = "yannick dalmas" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23391714_1 (no VARCHAR, chassis_engine VARCHAR)
### Question:
How many drivers used lola t92/00/ buick for their chassis/engine?
### Answer:
SELECT COUNT(no) FROM table_23391714_1 WHERE chassis_engine = "Lola T92/00/ Buick" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27956_3 (national_rank VARCHAR, institution VARCHAR)
### Question:
Name the national rank for medical university of south carolina
### Answer:
SELECT national_rank FROM table_27956_3 WHERE institution = "Medical University of South Carolina" |
Below is an context that describes a sql 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 (ground VARCHAR, away VARCHAR)
### Question:
What is the Ground with an Away that is central blues?
### Answer:
SELECT ground FROM table_name_7 WHERE away = "central blues" |
Below is an context that describes a sql 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 (earnings___ INTEGER, wins INTEGER)
### Question:
How many earnings have Wins larger than 3?
### Answer:
SELECT SUM(earnings___) AS $__ FROM table_name_70 WHERE wins > 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_27721131_11 (high_assists VARCHAR, game VARCHAR)
### Question:
Who had the highest assists during game 78?
### Answer:
SELECT high_assists FROM table_27721131_11 WHERE game = 78 |
Below is an context that describes a sql 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 (away_team VARCHAR)
### Question:
What was South Melbourne's away team score?
### Answer:
SELECT away_team AS score FROM table_name_7 WHERE away_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_name_15 (min_press___mbar__ VARCHAR, storm_name VARCHAR)
### Question:
what is the minimum force of storm Adrian
### Answer:
SELECT min_press___mbar__ FROM table_name_15 WHERE storm_name = "adrian" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23239946_3 (wins VARCHAR, driver VARCHAR)
### Question:
How many wins did Andrew Ranger have?
### Answer:
SELECT COUNT(wins) FROM table_23239946_3 WHERE driver = "Andrew Ranger" |
Below is an context that describes a 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 (webkit_version VARCHAR, minor_version VARCHAR)
### Question:
What is the webkit version when the minor version was 3.1.2.?
### Answer:
SELECT webkit_version FROM table_24257833_4 WHERE minor_version = "3.1.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_59 (position VARCHAR, throws VARCHAR, dob VARCHAR)
### Question:
Which Position has Throws of r, and a DOB of 12 february 1983?
### Answer:
SELECT position FROM table_name_59 WHERE throws = "r" AND dob = "12 february 1983" |
Below is an context that describes a sql 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 (current_club VARCHAR, rank VARCHAR)
### Question:
Which Current Club has a Rank of 4?
### Answer:
SELECT current_club FROM table_name_20 WHERE 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_1342149_13 (incumbent VARCHAR, first_elected VARCHAR)
### Question:
What is the incumbent for 1932?
### Answer:
SELECT incumbent FROM table_1342149_13 WHERE first_elected = 1932 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26040604_1 (die_size__mm_2__ INTEGER, sm_count VARCHAR)
### Question:
What is the minimum die size for an SM count of exactly 2?
### Answer:
SELECT MIN(die_size__mm_2__) FROM table_26040604_1 WHERE sm_count = 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_1976898_1 (pinyin VARCHAR, post_code VARCHAR)
### Question:
What's the Pinyin name of the county with a postcode 246500?
### Answer:
SELECT pinyin FROM table_1976898_1 WHERE post_code = 246500 |
Below is an context that describes a sql 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 (time VARCHAR, event VARCHAR)
### Question:
What's the time of IFL: Championship Final?
### Answer:
SELECT time FROM table_name_98 WHERE event = "ifl: championship final" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20867295_2 (winner VARCHAR, third_place VARCHAR, runner_up VARCHAR)
### Question:
When az is the runner up nad feyenoord came in third place how many overall winners are there?
### Answer:
SELECT COUNT(winner) FROM table_20867295_2 WHERE third_place = "Feyenoord" AND runner_up = "AZ" |
Below is an context that describes a sql 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 (rider VARCHAR, laps VARCHAR, grid VARCHAR)
### Question:
Who was teh rider with 18 laps and a grid of 25?
### Answer:
SELECT rider FROM table_name_43 WHERE laps = 18 AND grid = 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_85 (played INTEGER, draws VARCHAR, scored VARCHAR, position VARCHAR)
### Question:
Which Played has a Scored larger than 25 and a Position of 1, and Draws smaller than 5?
### Answer:
SELECT MAX(played) FROM table_name_85 WHERE scored > 25 AND position = 1 AND draws < 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_18 (against INTEGER, lost VARCHAR, played VARCHAR)
### Question:
What is the maximum number of points against when the team has more than 0 losses and plays fewer than 6 games?
### Answer:
SELECT MAX(against) FROM table_name_18 WHERE lost > 0 AND played < 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_29 (points INTEGER, year VARCHAR, chassis VARCHAR)
### Question:
What is the sum of points in 1991, for footwork a11c chassis?
### Answer:
SELECT SUM(points) FROM table_name_29 WHERE year = 1991 AND chassis = "footwork a11c" |
Below is an context that describes a sql 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 (record VARCHAR, location VARCHAR, score VARCHAR)
### Question:
For the game played at the Boston Garden with a score of 118-110, what is the opposing team's record?
### Answer:
SELECT record FROM table_name_68 WHERE location = "boston garden" AND score = "118-110" |
Below is an context that describes a sql 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 (score VARCHAR, date VARCHAR)
### Question:
What score was on 13 June 2004?
### Answer:
SELECT score FROM table_name_50 WHERE date = "13 june 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 branch (membership_amount INTEGER)
### Question:
How many branches where have more than average number of memberships are there?
### Answer:
SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch) |
Below is an context that describes a sql 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 (round INTEGER, grand_prix VARCHAR)
### Question:
How many rounds have a Grand Prix of german gp?
### Answer:
SELECT SUM(round) FROM table_name_26 WHERE grand_prix = "german gp" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_29063233_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR)
### Question:
Who directed the episode with UK viewership of 6.09 million?
### Answer:
SELECT directed_by FROM table_29063233_1 WHERE uk_viewers__million_ = "6.09" |
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
What was 2002, when 2008 was, "career statistics"?
### Answer:
SELECT 2002 FROM table_name_6 WHERE 2008 = "career statistics" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26919_6 (hebrew VARCHAR, arabic VARCHAR)
### Question:
Name the hebrew for tisʕ-
### Answer:
SELECT hebrew FROM table_26919_6 WHERE arabic = "tisʕ-" |
Below is an context that describes a sql 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, player VARCHAR)
### Question:
Which position does bert coan play?
### Answer:
SELECT position FROM table_name_19 WHERE player = "bert coan" |
Below is an context that describes a sql 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 (runners_up VARCHAR, individual VARCHAR)
### Question:
Who were the runners-up when the individual winner was Tiger Woods?
### Answer:
SELECT runners_up FROM table_name_17 WHERE individual = "tiger woods" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_83 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
### Question:
What is the average Grid that has a Time/Retired of +2 laps, and under 51 laps?
### Answer:
SELECT AVG(grid) FROM table_name_83 WHERE time_retired = "+2 laps" AND laps < 51 |
Below is an context that describes a sql 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 (drawn VARCHAR, losing_bonus VARCHAR, played VARCHAR, points_against VARCHAR)
### Question:
For the club that had 453 points against, losing bonus of 5 and played of 22, what is the drawn?
### Answer:
SELECT drawn FROM table_name_94 WHERE played = "22" AND points_against = "453" AND losing_bonus = "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_28540539_2 (version VARCHAR, release VARCHAR)
### Question:
What's the version in the 1.0.4 release?
### Answer:
SELECT version FROM table_28540539_2 WHERE release = "1.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_24 (time VARCHAR, name VARCHAR, heat VARCHAR)
### Question:
What is Dominik Meichtry's Time in Heat 7 or lower?
### Answer:
SELECT COUNT(time) FROM table_name_24 WHERE name = "dominik meichtry" AND heat < 7 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_16 (time VARCHAR, distance VARCHAR, start_time VARCHAR)
### Question:
What was the finishing time of the stage that featured a distance of 18.25km and a start time of 11:31?
### Answer:
SELECT time FROM table_name_16 WHERE distance = "18.25km" AND start_time = "11: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_name_56 (superlative VARCHAR, actress VARCHAR)
### Question:
Which award has Thelma Ritter won?
### Answer:
SELECT superlative FROM table_name_56 WHERE actress = "thelma ritter" |
Below is an context that describes a sql 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 (type VARCHAR, capacity___mw__ VARCHAR, rank VARCHAR, province VARCHAR)
### Question:
what is the type when the rank is smaller than 70, the province is british columbia and the capacity (mw) is more than 2,480?
### Answer:
SELECT type FROM table_name_14 WHERE rank < 70 AND province = "british columbia" AND capacity___mw__ > 2 OFFSET 480 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28211988_1 (host VARCHAR, mens_singles VARCHAR)
### Question:
Who are all hosts when men's singles is Ma Wenge?
### Answer:
SELECT host FROM table_28211988_1 WHERE mens_singles = "Ma Wenge" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11680175_1 (year VARCHAR, Neu VARCHAR, vehlefanz VARCHAR)
### Question:
How many years where Neu-Vehlefanz had a number of 365?
### Answer:
SELECT COUNT(year) FROM table_11680175_1 WHERE Neu - vehlefanz = 365 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20754016_2 (country VARCHAR, hometown VARCHAR)
### Question:
What country is the contestant from Salto from?
### Answer:
SELECT country FROM table_20754016_2 WHERE hometown = "Salto" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR)
### Question:
Who was the game played against on October 9, 1966?
### Answer:
SELECT opponent FROM table_name_18 WHERE date = "october 9, 1966" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (number_of_districts__kecamatan_ INTEGER, province VARCHAR, villages VARCHAR)
### Question:
What is the lowest number of districts (kecamatan) in the north sulawesi province with more than 1,510 villages?
### Answer:
SELECT MIN(number_of_districts__kecamatan_) FROM table_name_97 WHERE province = "north sulawesi" AND villages > 1 OFFSET 510 |
Below is an context that describes a sql 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 (starts INTEGER, year VARCHAR, avg_start VARCHAR)
### Question:
What was the highest number of starts in 2007 when the average start was over 17.6?
### Answer:
SELECT MAX(starts) FROM table_name_49 WHERE year = 2007 AND avg_start > 17.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_41 (location VARCHAR, wrestler VARCHAR, reign VARCHAR)
### Question:
Where did the wrestler, super parka, with the title with a reign of 2?
### Answer:
SELECT location FROM table_name_41 WHERE wrestler = "super parka" AND reign = "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_89 (bronze INTEGER, total VARCHAR, rank VARCHAR, nation VARCHAR)
### Question:
Which is the highest bronze at Chinese Taipei when the rank was higher than 5 and total was smaller than 1?
### Answer:
SELECT MAX(bronze) FROM table_name_89 WHERE rank > 5 AND nation = "chinese taipei" AND total < 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_17 (season VARCHAR, races VARCHAR, points VARCHAR, percentage_of_possible_points VARCHAR)
### Question:
Which season with 16 races had less than 321 points and a larger percent than 65.78 possible?
### Answer:
SELECT season FROM table_name_17 WHERE points < 321 AND percentage_of_possible_points > 65.78 AND races = 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_69 (Id VARCHAR)
### Question:
What is the highest 2012 immigration for a country with an immigration of 81,094 in 2011?
### Answer:
SELECT MAX(2012) FROM table_name_69 WHERE 2011 = 81 OFFSET 094 |
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
What 2006 has q2 as the 2007?
### Answer:
SELECT 2006 FROM table_name_34 WHERE 2007 = "q2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20236726_2 (serial_no VARCHAR, wd_no VARCHAR)
### Question:
Name the total number of serial number for 24 wd no
### Answer:
SELECT COUNT(serial_no) FROM table_20236726_2 WHERE wd_no = 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 wedding (church_id VARCHAR, YEAR VARCHAR)
### Question:
How many churches have a wedding in year 2016?
### Answer:
SELECT COUNT(DISTINCT church_id) FROM wedding WHERE YEAR = 2016 |
Below is an context that describes a sql 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 (school VARCHAR, player VARCHAR, position VARCHAR, team VARCHAR)
### Question:
What school did P Jay Gehrke of the Kansas City Royals attend?
### Answer:
SELECT school FROM table_name_30 WHERE position = "p" AND team = "kansas city royals" AND player = "jay gehrke" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11677760_1 (college VARCHAR, player VARCHAR)
### Question:
what is the college for the player damon bailey?
### Answer:
SELECT college FROM table_11677760_1 WHERE player = "Damon Bailey" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_4 (tournament VARCHAR, wins VARCHAR, top_5 VARCHAR, top_25 VARCHAR)
### Question:
Name the tournament for top-5 more thn 1 and top-25 of 13 with wins of 3
### Answer:
SELECT tournament FROM table_name_4 WHERE top_5 > 1 AND top_25 = 13 AND wins = 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_52 (date VARCHAR, result VARCHAR)
### Question:
On what Date was the Result 82-92?
### Answer:
SELECT date FROM table_name_52 WHERE result = "82-92" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22897453_1 (tn_seshan__values_ VARCHAR, kr_narayanan__values_ VARCHAR)
### Question:
Name the number of tn seshan values for kr values is 478608
### Answer:
SELECT COUNT(tn_seshan__values_) FROM table_22897453_1 WHERE kr_narayanan__values_ = 478608 |
Below is an context that describes a sql 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 (geographical_regions VARCHAR, hometown VARCHAR)
### Question:
What is the geographical region for hometown Imbert?
### Answer:
SELECT geographical_regions FROM table_name_1 WHERE hometown = "imbert" |
Below is an context that describes a sql 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 (overs INTEGER, runs VARCHAR)
### Question:
What is the lowest Overs with a Run that is 18?
### Answer:
SELECT MIN(overs) FROM table_name_61 WHERE runs = 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_41 (home__2nd_leg_ VARCHAR)
### Question:
What was the 2nd leg that had the Estudiantes La Plata home for the 2nd leg?
### Answer:
SELECT 2 AS nd_leg FROM table_name_41 WHERE home__2nd_leg_ = "estudiantes la plata" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1740431_3 (gregorian_months VARCHAR, season_in_tamil VARCHAR)
### Question:
What is every Gregorian month when the season in Tamil is இளவேனில்?
### Answer:
SELECT gregorian_months FROM table_1740431_3 WHERE season_in_tamil = "இளவேனில்" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23286722_1 (season__number VARCHAR, production_code VARCHAR)
### Question:
Name the total number of season for production code 3m17
### Answer:
SELECT COUNT(season__number) FROM table_23286722_1 WHERE production_code = "3M17" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1601027_2 (driver_matched_db VARCHAR, headphone_class VARCHAR)
### Question:
Name the driver matched db for joseph grado signature
### Answer:
SELECT driver_matched_db FROM table_1601027_2 WHERE headphone_class = "Joseph Grado Signature" |
Below is an context that describes a sql 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 (score VARCHAR, country VARCHAR)
### Question:
What is the score of Australia?
### Answer:
SELECT score FROM table_name_55 WHERE country = "australia" |
Below is an context that describes a sql 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 (date VARCHAR, away_team VARCHAR)
### Question:
What date was Grimsby Town the away team?
### Answer:
SELECT date FROM table_name_34 WHERE away_team = "grimsby town" |
Below is an context that describes a sql 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 (championship VARCHAR, margin VARCHAR)
### Question:
Which championship has a margin of 8 strokes?
### Answer:
SELECT championship FROM table_name_89 WHERE margin = "8 strokes" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20726262_2 (no_in_series INTEGER, writtenby VARCHAR)
### Question:
What number episode was written by kurt sutter & jack logiudice?
### Answer:
SELECT MAX(no_in_series) FROM table_20726262_2 WHERE writtenby = "Kurt Sutter & Jack LoGiudice" |
Below is an context that describes a sql 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 (rank INTEGER, country VARCHAR)
### Question:
What is the Rank of the Guam Player?
### Answer:
SELECT AVG(rank) FROM table_name_83 WHERE country = "guam" |
Below is an context that describes a sql 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 (truck_s_ VARCHAR, driver_s_ VARCHAR, team VARCHAR)
### Question:
What is the truck used by Brett Moffitt, from Hattori Racing Enterprises?
### Answer:
SELECT truck_s_ FROM table_name_23 WHERE driver_s_ = "brett moffitt" AND team = "hattori racing enterprises" |
Below is an context that describes a sql 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 (top_5 INTEGER, top_10 VARCHAR, wins VARCHAR)
### Question:
What is the best top-5 when top-10 is 1 and there are more than 0 wins?
### Answer:
SELECT MAX(top_5) FROM table_name_93 WHERE top_10 = 1 AND wins > 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_27067379_1 (height VARCHAR, building VARCHAR)
### Question:
If the building is Costanera Center Torre 1, what is the height?
### Answer:
SELECT height FROM table_27067379_1 WHERE building = "Costanera Center Torre 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_3 (category VARCHAR, president VARCHAR, year VARCHAR)
### Question:
What was the category of Richard Nixon as President in a year prior to 2009?
### Answer:
SELECT category FROM table_name_3 WHERE president = "richard nixon" AND year < 2009 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2850912_10 (player VARCHAR, nhl_team VARCHAR)
### Question:
Which player was drafted by the New York Rangers?
### Answer:
SELECT player FROM table_2850912_10 WHERE nhl_team = "New York Rangers" |
Below is an context that describes a sql 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 (capacity INTEGER, location VARCHAR, venue VARCHAR)
### Question:
What is the highest capacity for the venue, ticha stadium, located in varna?
### Answer:
SELECT MAX(capacity) FROM table_name_1 WHERE location = "varna" AND venue = "ticha stadium" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17693171_1 (team VARCHAR, driver VARCHAR)
### Question:
If the driver is Milka Duno, what is the name of the team?
### Answer:
SELECT team FROM table_17693171_1 WHERE driver = "Milka Duno" |
Below is an context that describes a sql 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 (date VARCHAR, league_position VARCHAR, result_f___a VARCHAR)
### Question:
What date that was the league position was 1st, and the result F– A was 5 – 0?
### Answer:
SELECT date FROM table_name_29 WHERE league_position = "1st" AND result_f___a = "5 – 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_25252080_3 (august_21_22 VARCHAR, november_3 VARCHAR)
### Question:
What is shown for august 21-22 when november 3 is november 3, 1994?
### Answer:
SELECT august_21_22 FROM table_25252080_3 WHERE november_3 = "november_3, 1994" |
Below is an context that describes a sql 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 (date VARCHAR, surface VARCHAR, score VARCHAR)
### Question:
Name the date for clay surface and score of 0–6, 0–6
### Answer:
SELECT date FROM table_name_75 WHERE surface = "clay" AND score = "0–6, 0–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_55 (american_labor_ticket VARCHAR, socialist_ticket VARCHAR)
### Question:
Which American Labor candidate is running against the Socialist candidate Herman J. Hahn?
### Answer:
SELECT american_labor_ticket FROM table_name_55 WHERE socialist_ticket = "herman j. hahn" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Part_Faults (part_id VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR); CREATE TABLE Parts (part_id VARCHAR, part_name VARCHAR)
### Question:
Which part fault requires the most number of skills to fix? List part id and name.
### Answer:
SELECT T1.part_id, T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY COUNT(*) DESC LIMIT 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (nationality VARCHAR, position VARCHAR)
### Question:
Name the nationality for d
### Answer:
SELECT nationality FROM table_name_19 WHERE position = "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_87 (to_par VARCHAR, player VARCHAR)
### Question:
What is the to par of player hunter mahan?
### Answer:
SELECT to_par FROM table_name_87 WHERE player = "hunter mahan" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23835213_2 (undisclosed VARCHAR, wycombe_wanderers VARCHAR)
### Question:
What is the undisclosed when Wycombe Wanderers is unattached?
### Answer:
SELECT undisclosed FROM table_23835213_2 WHERE wycombe_wanderers = "Unattached" |
Below is an context that describes a sql 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 (venue VARCHAR, opponent VARCHAR)
### Question:
where did rochdale play as opponent?
### Answer:
SELECT venue FROM table_name_77 WHERE opponent = "rochdale" |
Below is an context that describes a sql 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 (opponents INTEGER, opponent VARCHAR, result VARCHAR, nuggets_points VARCHAR)
### Question:
How many Opponents have a Result of win, and Nuggets points smaller than 115, and an Opponent of washington?
### Answer:
SELECT SUM(opponents) FROM table_name_62 WHERE result = "win" AND nuggets_points < 115 AND opponent = "washington" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.