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_77 (object_type VARCHAR, right_ascension___j2000__ VARCHAR)
### Question:
what is the object type when the right ascension (j2000) is 11h10m42.8s?
### Answer:
SELECT object_type FROM table_name_77 WHERE right_ascension___j2000__ = "11h10m42.8s" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27733258_8 (team VARCHAR, date VARCHAR)
### Question:
Who did the team play on january 9?
### Answer:
SELECT team FROM table_27733258_8 WHERE date = "January 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_33 (losses INTEGER, draws VARCHAR, position VARCHAR, wins VARCHAR, goal_difference VARCHAR)
### Question:
What is the highest losses for more than 11 wins, a goal difference greater than 5, a 3 position, and more than 3 draws?
### Answer:
SELECT MAX(losses) FROM table_name_33 WHERE wins > 11 AND goal_difference > 5 AND position = 3 AND draws > 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_3 (color_commentator_s_ VARCHAR, studio_host VARCHAR)
### Question:
WHich Color commentatorhas a Studio host of gary tanguay & eric frede?
### Answer:
SELECT color_commentator_s_ FROM table_name_3 WHERE studio_host = "gary tanguay & eric frede" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE building (name VARCHAR, building_id VARCHAR); CREATE TABLE institution (building_id VARCHAR)
### Question:
For each building, show the name of the building and the number of institutions in it.
### Answer:
SELECT T1.name, COUNT(*) FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id GROUP BY T1.building_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_75 (music VARCHAR, dance VARCHAR)
### Question:
What is the Music if the Dance is Jive?
### Answer:
SELECT music FROM table_name_75 WHERE dance = "jive" |
Below is an context that describes a sql 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 (years_in_orlando VARCHAR, position VARCHAR, school_club_team VARCHAR)
### Question:
Which Years in Orlando has a Position of center, and a School/Club Team of louisiana state?
### Answer:
SELECT years_in_orlando FROM table_name_41 WHERE position = "center" AND school_club_team = "louisiana 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_27547668_4 (directed_by VARCHAR, written_by VARCHAR)
### Question:
what is the total number of films directy and written by john callaghan?
### Answer:
SELECT COUNT(directed_by) FROM table_27547668_4 WHERE written_by = "John Callaghan" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16677887_2 (record VARCHAR, date VARCHAR)
### Question:
What was the record for the game on Sept. 14?
### Answer:
SELECT record FROM table_16677887_2 WHERE date = "Sept. 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_26131768_4 (term_limited VARCHAR, representative VARCHAR)
### Question:
If the representative is Dave Hall, when was the term limited?
### Answer:
SELECT term_limited FROM table_26131768_4 WHERE representative = "Dave Hall" |
Below is an context that describes a sql 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 (game INTEGER, score VARCHAR)
### Question:
What is the Game # that scored 87-92?
### Answer:
SELECT SUM(game) FROM table_name_46 WHERE score = "87-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_17510803_2 (points_against VARCHAR, lost VARCHAR)
### Question:
How many points against have a lose of 13?
### Answer:
SELECT points_against FROM table_17510803_2 WHERE lost = "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_2668387_18 (incumbent VARCHAR, district VARCHAR)
### Question:
Name the incumbent for virginia 4
### Answer:
SELECT incumbent FROM table_2668387_18 WHERE district = "Virginia 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_1 (event VARCHAR, gold VARCHAR)
### Question:
what is the event when gold is darren kenny great britain (gbr)?
### Answer:
SELECT event FROM table_name_1 WHERE gold = "darren kenny great britain (gbr)" |
Below is an context that describes a sql 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 (player VARCHAR, position VARCHAR)
### Question:
Which player was the forward?
### Answer:
SELECT player FROM table_name_7 WHERE position = "forward" |
Below is an context that describes a sql 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 (attendance VARCHAR, date VARCHAR)
### Question:
What was November 4, 1973 attendance?
### Answer:
SELECT attendance FROM table_name_64 WHERE date = "november 4, 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_27712702_9 (score VARCHAR, date VARCHAR)
### Question:
What was the score of the January 8 game?
### Answer:
SELECT score FROM table_27712702_9 WHERE date = "January 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_23 (record VARCHAR, date VARCHAR)
### Question:
What is the Record of the game on June 24?
### Answer:
SELECT record FROM table_name_23 WHERE date = "june 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_2 (winners INTEGER, first_title VARCHAR, wins VARCHAR, country VARCHAR)
### Question:
How many Winners have Wins of 1 and a Country of fiji and a First title smaller than 2004?
### Answer:
SELECT AVG(winners) FROM table_name_2 WHERE wins = 1 AND country = "fiji" AND first_title < 2004 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (code_name VARCHAR, api_level VARCHAR)
### Question:
with api level 3, what is the code name?
### Answer:
SELECT code_name FROM table_name_12 WHERE api_level = 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_4 (player VARCHAR, club_province VARCHAR, caps VARCHAR, position VARCHAR)
### Question:
Which Ulster player has fewer than 49 caps and plays the wing position?
### Answer:
SELECT player FROM table_name_4 WHERE caps < 49 AND position = "wing" AND club_province = "ulster" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (density__hab__km²__ VARCHAR, population__hab_ VARCHAR)
### Question:
What is the Density (hab/ km²) when the population (hab) is 58 414*?
### Answer:
SELECT density__hab__km²__ FROM table_name_53 WHERE population__hab_ = "58 414*" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR)
### Question:
List ids and details for all projects.
### Answer:
SELECT project_id, project_details FROM Projects |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2454589_1 (last_title VARCHAR, home_city VARCHAR)
### Question:
Name the last title for cuenca
### Answer:
SELECT last_title FROM table_2454589_1 WHERE home_city = "Cuenca" |
Below is an context that describes a sql 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 (points INTEGER, performer VARCHAR)
### Question:
What is the total sum of points for songs performed by Partners in Crime?
### Answer:
SELECT SUM(points) FROM table_name_16 WHERE performer = "partners in crime" |
Below is an context that describes a sql 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 (listed VARCHAR, construction_completed VARCHAR)
### Question:
What construction completed on 08/10/2007?
### Answer:
SELECT listed FROM table_name_46 WHERE construction_completed = "08/10/2007" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_57 (against INTEGER, difference VARCHAR, played VARCHAR)
### Question:
How many against have a difference of 6, with a played greater than 19?
### Answer:
SELECT SUM(against) FROM table_name_57 WHERE difference = "6" AND played > 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_45 (final_position___giro VARCHAR, year VARCHAR, final_position___tour VARCHAR)
### Question:
How many Giro positions are associated with the year 1971 and Tour final positions over 50?
### Answer:
SELECT COUNT(final_position___giro) FROM table_name_45 WHERE year = 1971 AND final_position___tour > 50 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Products (Name VARCHAR)
### Question:
Select the names of all the products in the store.
### Answer:
SELECT Name FROM Products |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_44 (team VARCHAR, pick VARCHAR, position VARCHAR)
### Question:
What team has a position of running back and picked after 2?
### Answer:
SELECT team FROM table_name_44 WHERE pick > 2 AND position = "running back" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21632864_1 (third_place VARCHAR, fourth_place VARCHAR)
### Question:
how many persons got the third position whan sanyo electric tokushima got the fourth position?
### Answer:
SELECT COUNT(third_place) FROM table_21632864_1 WHERE fourth_place = "Sanyo Electric Tokushima" |
Below is an context that describes a sql 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 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, rank VARCHAR)
### Question:
Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1233, and a Rank of 9th?
### Answer:
SELECT SUM(altitude__mslm_) FROM table_name_85 WHERE density__inhabitants_km_2__ < 1233 AND rank = "9th" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_81 (venue VARCHAR, notes VARCHAR)
### Question:
What venue has 7964 pb notes?
### Answer:
SELECT venue FROM table_name_81 WHERE notes = "7964 pb" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Faculty (FacID VARCHAR, Sex VARCHAR)
### Question:
Show ids for all the male faculty.
### Answer:
SELECT FacID FROM Faculty WHERE Sex = 'M' |
Below is an context that describes a sql 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 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR)
### Question:
Who is the Winning Driver that has a Winning team of Engstler Motorsport Engstler Motorsport and also the Date 22 July?
### Answer:
SELECT winning_driver FROM table_name_55 WHERE winning_team = "engstler motorsport engstler motorsport" AND date = "22 july" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_42 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
### Question:
What is Date of Appointment, when Outgoing Manager is "Hakan Kutlu"?
### Answer:
SELECT date_of_appointment FROM table_name_42 WHERE outgoing_manager = "hakan kutlu" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_33 (crew VARCHAR, start_date_time VARCHAR)
### Question:
What crew's EVA started on 20 February 20:09?
### Answer:
SELECT crew FROM table_name_33 WHERE start_date_time = "20 february 20: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 College (enr INTEGER)
### Question:
What is the average enrollment number?
### Answer:
SELECT AVG(enr) FROM 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_69 (actor_in_original_production VARCHAR, gameplan VARCHAR)
### Question:
Who is the actor in the original production when Troy Stephens is the GamePlan?
### Answer:
SELECT actor_in_original_production FROM table_name_69 WHERE gameplan = "troy stephens" |
Below is an context that describes a sql 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 (date VARCHAR, shooter VARCHAR)
### Question:
What is the Date of Shooter New Targets from 1989's record?
### Answer:
SELECT date FROM table_name_39 WHERE shooter = "new targets from 1989" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (premiere_date VARCHAR, cycle INTEGER)
### Question:
What is Premier Date, when Cycle is less than 2?
### Answer:
SELECT premiere_date FROM table_name_53 WHERE cycle < 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_92 (reference VARCHAR, release_date VARCHAR)
### Question:
Which Reference has a Release date of 1996/10/10?
### Answer:
SELECT reference FROM table_name_92 WHERE release_date = "1996/10/10" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_89 (place VARCHAR, player VARCHAR)
### Question:
What is Greg Norman's place?
### Answer:
SELECT place FROM table_name_89 WHERE player = "greg norman" |
Below is an context that describes a sql 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 (engine VARCHAR, chassis VARCHAR)
### Question:
Which engine has a Lotus 49c chassis?
### Answer:
SELECT engine FROM table_name_41 WHERE chassis = "lotus 49c" |
Below is an context that describes a sql 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 (competition VARCHAR, score VARCHAR)
### Question:
what is the competition when the score is 2-1?
### Answer:
SELECT competition FROM table_name_28 WHERE score = "2-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_50 (championship VARCHAR, year VARCHAR, surface VARCHAR)
### Question:
What is Championship, when Year is greater than 2002, and when Surface is Hard?
### Answer:
SELECT championship FROM table_name_50 WHERE year > 2002 AND surface = "hard" |
Below is an context that describes a 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_10 (part_1 VARCHAR, class VARCHAR)
### Question:
What is part 1 of the verb in class 7b
### Answer:
SELECT part_1 FROM table_1745843_10 WHERE class = "7b" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22058547_1 (high_school VARCHAR, mascot VARCHAR)
### Question:
How many high schools have storm mascots?
### Answer:
SELECT high_school FROM table_22058547_1 WHERE mascot = "Storm" |
Below is an context that describes a sql 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 (extra_points_1_point INTEGER, total_points INTEGER)
### Question:
Which Extra points 1 point is the highest one that has a Total Points smaller than 8?
### Answer:
SELECT MAX(extra_points_1_point) FROM table_name_59 WHERE total_points < 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_2930244_3 (number_of_major_hurricanes INTEGER)
### Question:
What is the largest overall number of major hurricanes?
### Answer:
SELECT MAX(number_of_major_hurricanes) FROM table_2930244_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_67 (player VARCHAR, money___$__ VARCHAR, score VARCHAR)
### Question:
Which player has $450 and a score of 76-74-74-72=296?
### Answer:
SELECT player FROM table_name_67 WHERE money___$__ = "450" AND score = 76 - 74 - 74 - 72 = 296 |
Below is an context that describes a sql 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 (d_43 VARCHAR, d_41 VARCHAR)
### Question:
Name the D 43 when it has D 41 of d 56
### Answer:
SELECT d_43 FROM table_name_35 WHERE d_41 = "d 56" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE perpetrator (YEAR INTEGER)
### Question:
In which year did the most recent crime happen?
### Answer:
SELECT MAX(YEAR) FROM perpetrator |
Below is an context that describes a sql 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 (pick VARCHAR, player VARCHAR)
### Question:
What's the sum of the Pick that has the Player of Robert Ingalls?
### Answer:
SELECT COUNT(pick) FROM table_name_47 WHERE player = "robert ingalls" |
Below is an context that describes a sql 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 (opened INTEGER, city VARCHAR)
### Question:
What is the latest opened year of the team in Glasgow, Scotland?
### Answer:
SELECT MAX(opened) FROM table_name_34 WHERE city = "glasgow, scotland" |
Below is an context that describes a sql 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 (week VARCHAR, attendance VARCHAR)
### Question:
What week was the game that had an attendance of 24,242?
### Answer:
SELECT week FROM table_name_34 WHERE attendance = "24,242" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12078626_1 (deadline_for_completion VARCHAR, description VARCHAR)
### Question:
what's the deadline for completion where description is iphone recall within the first 3 months of release
### Answer:
SELECT deadline_for_completion FROM table_12078626_1 WHERE description = "iPhone recall within the first 3 months of release" |
Below is an context that describes a sql 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 (record VARCHAR, game VARCHAR, date VARCHAR)
### Question:
What was the record after game 51 on 1/27/1974?
### Answer:
SELECT record FROM table_name_87 WHERE game > 51 AND date = "1/27/1974" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_60 (result VARCHAR, date VARCHAR)
### Question:
WHAT IS THE RESULT OF THE GAME ON APRIL 23?
### Answer:
SELECT result FROM table_name_60 WHERE date = "april 23" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_30073089_2 (discipline VARCHAR, fis_points VARCHAR)
### Question:
Name the discipline for 1561 fis points
### Answer:
SELECT discipline FROM table_30073089_2 WHERE fis_points = 1561 |
Below is an context that describes a sql 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 (english_name VARCHAR, stat VARCHAR)
### Question:
What was the name in English that had a Stat of 7th cut?
### Answer:
SELECT english_name FROM table_name_43 WHERE stat = "7th cut" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27882867_9 (high_assists VARCHAR, team VARCHAR)
### Question:
Who had the high assists when the opponent was Indiana?
### Answer:
SELECT high_assists FROM table_27882867_9 WHERE team = "Indiana" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14630796_1 (class_aAAA VARCHAR, class_a VARCHAR)
### Question:
Name the class aaaa for menard
### Answer:
SELECT class_aAAA FROM table_14630796_1 WHERE class_a = "Menard" |
Below is an context that describes a sql 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 (sportsperson VARCHAR, sport VARCHAR)
### Question:
Who playes the sport of athletics?
### Answer:
SELECT sportsperson FROM table_name_36 WHERE sport = "athletics" |
Below is an context that describes a sql 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 (date VARCHAR, record VARCHAR)
### Question:
On what date was the record 59–59?
### Answer:
SELECT date FROM table_name_62 WHERE record = "59–59" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13836704_4 (total_passengers_2008 INTEGER, change_2008_09 VARCHAR)
### Question:
what being the maximum total passengers 2008 with change 2008/09 being 6.5%
### Answer:
SELECT MAX(total_passengers_2008) FROM table_13836704_4 WHERE change_2008_09 = "6.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_91 (result VARCHAR, attendance VARCHAR)
### Question:
What were the Results for 25,000 Attendance?
### Answer:
SELECT result FROM table_name_91 WHERE attendance = "25,000" |
Below is an context that describes a sql 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 (tv_time VARCHAR, week VARCHAR)
### Question:
Name the tv time for week 10
### Answer:
SELECT tv_time FROM table_name_49 WHERE week = 10 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (verb_meaning VARCHAR, part_1 VARCHAR)
### Question:
what is the verb meaning when the part 1 is lopen?
### Answer:
SELECT verb_meaning FROM table_name_53 WHERE part_1 = "lopen" |
Below is an context that describes a sql 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 (against VARCHAR, draws VARCHAR, wins VARCHAR, losses VARCHAR)
### Question:
What is the total number of Against values for clubs with more than 2 wins, 5 losses, and 0 draws?
### Answer:
SELECT COUNT(against) FROM table_name_4 WHERE wins > 2 AND losses = 5 AND draws < 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_1341865_23 (first_elected VARCHAR, party VARCHAR)
### Question:
Name the first elected for the republican party
### Answer:
SELECT first_elected FROM table_1341865_23 WHERE party = "Republican" |
Below is an context that describes a sql 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 (result VARCHAR, loser VARCHAR)
### Question:
What is the Result when the memphis grizzlies ( 2) were the loser?
### Answer:
SELECT result FROM table_name_10 WHERE loser = "memphis grizzlies ( 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_63 (week INTEGER, venue VARCHAR, date VARCHAR)
### Question:
What is the largest week number for the venue of League Park for the date of November 25, 1920?
### Answer:
SELECT MAX(week) FROM table_name_63 WHERE venue = "league park" AND date = "november 25, 1920" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10815352_1 (total_attendance INTEGER, sport VARCHAR, league VARCHAR)
### Question:
What's the minimum total attendance of the Premier League association football?
### Answer:
SELECT MIN(total_attendance) FROM table_10815352_1 WHERE sport = "Association football" AND league = "Premier league" |
Below is an context that describes a sql 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 (decision VARCHAR, record VARCHAR)
### Question:
What decision had a Record of 3–5–0?
### Answer:
SELECT decision FROM table_name_17 WHERE record = "3–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 Addresses (address_id VARCHAR, line_1 VARCHAR, line_2 VARCHAR); CREATE TABLE Students (current_address_id VARCHAR)
### Question:
Which address holds the most number of students currently? List the address id and all lines.
### Answer:
SELECT T1.address_id, T1.line_1, T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_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_43 (wins INTEGER, benalla_dfl VARCHAR)
### Question:
What's the most wins of Tatong?
### Answer:
SELECT MAX(wins) FROM table_name_43 WHERE benalla_dfl = "tatong" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_298883_5 (date_of_issue VARCHAR, obverse VARCHAR)
### Question:
How many different dates of issue are the for the coin with kumsusan memorial palace on the obverse?
### Answer:
SELECT COUNT(date_of_issue) FROM table_298883_5 WHERE obverse = "Kumsusan Memorial Palace" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_41 (venue VARCHAR)
### Question:
Who was the 3rd place team at Pardubice?
### Answer:
SELECT 3 AS rd_place FROM table_name_41 WHERE venue = "pardubice" |
Below is an context that describes a sql 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 (year VARCHAR, place VARCHAR, played VARCHAR)
### Question:
What year did the 11th place play 26 games?
### Answer:
SELECT year FROM table_name_96 WHERE place = "11th" AND played = 26 |
Below is an context that describes a sql 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, year_s__won VARCHAR)
### Question:
What country won in 1993?
### Answer:
SELECT country FROM table_name_28 WHERE year_s__won = "1993" |
Below is an context that describes a sql 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 (gold VARCHAR, year VARCHAR)
### Question:
Who won the gold in 1958?
### Answer:
SELECT gold FROM table_name_18 WHERE year = "1958" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE STUDENT (Advisor VARCHAR)
### Question:
For each advisor, report the total number of students advised by him or her.
### Answer:
SELECT Advisor, COUNT(*) FROM STUDENT GROUP BY Advisor |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE airports (dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR); CREATE TABLE routes (dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR)
### Question:
Find the number of routes from the United States to Canada.
### Answer:
SELECT COUNT(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States') |
Below is an context that describes a sql 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 (rowers VARCHAR, country VARCHAR)
### Question:
Who are the rowers for Australia?
### Answer:
SELECT rowers FROM table_name_54 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 Friend (student_id VARCHAR); CREATE TABLE Highschooler (id VARCHAR, name VARCHAR)
### Question:
How many friends does the high school student Kyle have?
### Answer:
SELECT COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = "Kyle" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23501776_18 (points INTEGER, seed VARCHAR)
### Question:
If seed number is 2, what is the maximum amount of points?
### Answer:
SELECT MAX(points) FROM table_23501776_18 WHERE seed = 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_1341707_45 (incumbent VARCHAR, district VARCHAR)
### Question:
Who is the incumbent in district Texas 15?
### Answer:
SELECT incumbent FROM table_1341707_45 WHERE district = "Texas 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 Customers (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customer_Payments (customer_id VARCHAR)
### Question:
List first name and last name of customers that have more than 2 payments.
### Answer:
SELECT T2.first_name, T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING 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_name_33 (goals_for VARCHAR, points_1 VARCHAR, drawn VARCHAR, lost VARCHAR)
### Question:
What is the total number of goals for when the drawn is less than 7, less than 21 games have been lost, and there are 1 of 33 points?
### Answer:
SELECT COUNT(goals_for) FROM table_name_33 WHERE drawn < 7 AND lost < 21 AND points_1 = "33" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_269888_1 (no_of_s_barangay VARCHAR, pop_density__per_km²_ VARCHAR)
### Question:
Name the number of barangay for 205.4 density
### Answer:
SELECT no_of_s_barangay FROM table_269888_1 WHERE pop_density__per_km²_ = "205.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_63 (draws INTEGER, wins VARCHAR, club VARCHAR)
### Question:
Club warrnambool has less than 9 wins and what average of draws?
### Answer:
SELECT AVG(draws) FROM table_name_63 WHERE wins < 9 AND club = "warrnambool" |
Below is an context that describes a sql 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 (seasons VARCHAR, entries VARCHAR, driver VARCHAR)
### Question:
Which season did jackie stewart enter with entries less than 215?
### Answer:
SELECT seasons FROM table_name_67 WHERE entries < 215 AND driver = "jackie stewart" |
Below is an context that describes a sql 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 (team VARCHAR, date_of_appointment VARCHAR)
### Question:
What is Team, when Date of Appointment is "10 November 2008"?
### Answer:
SELECT team FROM table_name_6 WHERE date_of_appointment = "10 november 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_61 (attendance VARCHAR, week VARCHAR, game_site VARCHAR, opponent VARCHAR)
### Question:
After week 2, how many people attended the game at Rich Stadium against the Miami Dolphins?
### Answer:
SELECT COUNT(attendance) FROM table_name_61 WHERE game_site = "rich stadium" AND opponent = "miami dolphins" AND week > 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 (laps VARCHAR, grid VARCHAR)
### Question:
How many laps for grid 25?
### Answer:
SELECT COUNT(laps) FROM table_name_91 WHERE 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_27877656_8 (edition VARCHAR, opponent_team VARCHAR)
### Question:
In what edition was the opponent team Zimbabwe?
### Answer:
SELECT edition FROM table_27877656_8 WHERE opponent_team = "Zimbabwe" |
Below is an context that describes a sql 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, bronze VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)
### Question:
What is the average Total, when the value for Silver is less than 1, when the value for Gold is 0, when the Nation is Switzerland, and when the value for Bronze is 2?
### Answer:
SELECT AVG(total) FROM table_name_8 WHERE silver < 1 AND gold = 0 AND nation = "switzerland" AND bronze < 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_15306124_1 (league_of_communists INTEGER, municipality VARCHAR)
### Question:
What is the least amount of league of communists where municipality is mojkovac
### Answer:
SELECT MIN(league_of_communists) FROM table_15306124_1 WHERE municipality = "Mojkovac" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1507431_1 (date VARCHAR, tournament VARCHAR)
### Question:
The tournament Buick Classic occured on what dates?
### Answer:
SELECT date FROM table_1507431_1 WHERE tournament = "Buick Classic" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.