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_171236_2 (area_km_2 VARCHAR, census_ranking VARCHAR) ### Question: What is the Area KM 2 of the place that has a Census ranking of 1,016 of 5,008? ### Answer: SELECT area_km_2 FROM table_171236_2 WHERE census_ranking = "1,016 of 5,008"
Below is an context that describes a sql 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 (player VARCHAR, school VARCHAR, class VARCHAR, position VARCHAR) ### Question: What is Player, when Class is "senior", when Position is "shooting guard", and when School is "Bradley"? ### Answer: SELECT player FROM table_name_56 WHERE class = "senior" AND position = "shooting guard" AND school = "bradley"
Below is an context that describes a sql 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 (australian VARCHAR, british VARCHAR) ### Question: What is Australian, when British is "aɪ, ɪ, ə"? ### Answer: SELECT australian FROM table_name_12 WHERE british = "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_name_1 (snatch VARCHAR, marcin_dołęga___pol__ VARCHAR) ### Question: What is the snatch when Marcin Dołęga ( POL ) was 430kg? ### Answer: SELECT snatch FROM table_name_1 WHERE marcin_dołęga___pol__ = "430kg"
Below is an context that describes a sql 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 (score VARCHAR, country VARCHAR) ### Question: What was spain's score? ### Answer: SELECT score FROM table_name_93 WHERE country = "spain"
Below is an context that describes a sql 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 (rank INTEGER, bronze VARCHAR, silver VARCHAR, gold VARCHAR) ### Question: What is the smallest rank when there are fewer than 1 silver, 4 golds and less than 0 bronze? ### Answer: SELECT MIN(rank) FROM table_name_10 WHERE silver < 1 AND gold = 4 AND bronze < 0
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_75 (sspec_number VARCHAR, socket VARCHAR) ### Question: what is the sspec number when the socket is standard power? ### Answer: SELECT sspec_number FROM table_name_75 WHERE socket = "standard power"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_17058151_7 (record VARCHAR, game VARCHAR) ### Question: How many games was game 43? ### Answer: SELECT COUNT(record) FROM table_17058151_7 WHERE game = 43
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_2 (season VARCHAR, home VARCHAR) ### Question: Which season had a home 2-3? ### Answer: SELECT season FROM table_name_2 WHERE home = "2-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 railway (Builder VARCHAR) ### Question: Show different builders of railways, along with the corresponding number of railways using each builder. ### Answer: SELECT Builder, COUNT(*) FROM railway GROUP BY Builder
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_27 (tyre VARCHAR, entrant VARCHAR) ### Question: What tyre was used for an entrant of Ecurie Nationale Suisse? ### Answer: SELECT tyre FROM table_name_27 WHERE entrant = "ecurie nationale suisse"
Below is an context that describes a sql 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 (transfer_window VARCHAR, country VARCHAR, transfer_fee VARCHAR) ### Question: What transfer window has bra as the country, with £3.4m as the transfer fee? ### Answer: SELECT transfer_window FROM table_name_79 WHERE country = "bra" AND transfer_fee = "£3.4m"
Below is an context that describes a sql 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 (first_elected INTEGER, party VARCHAR, district VARCHAR) ### Question: What is the highest First Elected, when Party is "Republican", and when District is "Louisiana 7"? ### Answer: SELECT MAX(first_elected) FROM table_name_48 WHERE party = "republican" AND district = "louisiana 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_18569389_1 (original_air_date VARCHAR, directed_by VARCHAR) ### Question: Name the air date that chris long directed ### Answer: SELECT original_air_date FROM table_18569389_1 WHERE directed_by = "Chris Long"
Below is an context that describes a sql 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 (played VARCHAR, difference VARCHAR, against VARCHAR) ### Question: What is the total number played with a difference of 22 and less than 34 against? ### Answer: SELECT COUNT(played) FROM table_name_76 WHERE difference = "22" AND against < 34
Below is an context that describes a sql 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 (week INTEGER, date VARCHAR) ### Question: What is the lowest week that has November 30, 2003 as the date? ### Answer: SELECT MIN(week) FROM table_name_19 WHERE date = "november 30, 2003"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2439728_1 (varsity_teams INTEGER, location VARCHAR) ### Question: how many varsity teams are in west roxbury, ma? ### Answer: SELECT MAX(varsity_teams) FROM table_2439728_1 WHERE location = "West Roxbury, MA"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_30121075_1 (poor_law_union VARCHAR, townland VARCHAR) ### Question: How many entries are listed in poor law union when townland is dromidiclogh? ### Answer: SELECT COUNT(poor_law_union) FROM table_30121075_1 WHERE townland = "Dromidiclogh"
Below is an context that describes a sql 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 (drawn VARCHAR, against VARCHAR, points VARCHAR) ### Question: What is the Drawn has an Against smaller than 20 and Points of 15? ### Answer: SELECT drawn FROM table_name_46 WHERE against < 20 AND points = 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_2562572_2 (population__1991_ VARCHAR, city___municipality VARCHAR) ### Question: What is the number of 1991 populations named Bečej? ### Answer: SELECT COUNT(population__1991_) FROM table_2562572_2 WHERE city___municipality = "Bečej"
Below is an context that describes a sql 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 (home_team VARCHAR, away_team VARCHAR) ### Question: What was the home teams score when North Melbourne played as the away team? ### Answer: SELECT home_team AS score FROM table_name_15 WHERE away_team = "north 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_4 (election INTEGER, municipality VARCHAR) ### Question: What is the lowest election that has cinisello balsamo as the municipality? ### Answer: SELECT MIN(election) FROM table_name_4 WHERE municipality = "cinisello balsamo"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_26173058_2 (ahli VARCHAR, ramtha VARCHAR) ### Question: what is the location where the record is 1-0 ### Answer: SELECT ahli FROM table_26173058_2 WHERE ramtha = "1-0"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_23 (opponents_in_the_final VARCHAR, surface VARCHAR, score VARCHAR) ### Question: Who were the opponents on a hard surface with a score of 6-4, 7-6(2)? ### Answer: SELECT opponents_in_the_final FROM table_name_23 WHERE surface = "hard" AND score = "6-4, 7-6(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_57 (motor VARCHAR, quantity VARCHAR, class VARCHAR) ### Question: Which motor's quantity was more than 8, and a class of bs 1915? ### Answer: SELECT motor FROM table_name_57 WHERE quantity > 8 AND class = "bs 1915"
Below is an context that describes a sql 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 (Id VARCHAR) ### Question: what is 2008 when 2012 is 3r and 2009 is 2r? ### Answer: SELECT 2008 FROM table_name_79 WHERE 2012 = "3r" AND 2009 = "2r"
Below is an context that describes a sql 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 (task_no INTEGER, date_given VARCHAR) ### Question: What is the task number on January 22, 2010 (day 111)? ### Answer: SELECT MAX(task_no) FROM table_name_94 WHERE date_given = "january 22, 2010 (day 111)"
Below is an context that describes a sql 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 (tests VARCHAR, lost VARCHAR, name VARCHAR) ### Question: What is the total number of Tests when the lost is less than 9 for sir fred allen? ### Answer: SELECT COUNT(tests) FROM table_name_43 WHERE lost < 9 AND name = "sir fred allen"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_17088705_2 (evening_gown VARCHAR, swimsuit VARCHAR) ### Question: Evening gown scores of participants with 8.988 swimsuit score ### Answer: SELECT evening_gown FROM table_17088705_2 WHERE swimsuit = "8.988"
Below is an context that describes a sql 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 (losses VARCHAR, goals_for VARCHAR, team VARCHAR) ### Question: What is the total number of losses for the Team of Montreal with Goals For larger than 29? ### Answer: SELECT COUNT(losses) FROM table_name_50 WHERE goals_for > 29 AND team = "montreal"
Below is an context that describes a sql 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 (score VARCHAR, competition VARCHAR, date VARCHAR) ### Question: What was the score at Bernardo O'Higgins Cup on May 7, 1961? ### Answer: SELECT score FROM table_name_94 WHERE competition = "bernardo o'higgins cup" AND date = "may 7, 1961"
Below is an context that describes a sql 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 (crowd VARCHAR, home_team VARCHAR) ### Question: What was the attendance when Essendon played as the home team? ### Answer: SELECT COUNT(crowd) FROM table_name_42 WHERE home_team = "essendon"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE ARTIST (Name VARCHAR, ArtistID VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR) ### Question: Please list the name and id of all artists that have at least 3 albums in alphabetical order. ### Answer: SELECT T2.Name, T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name
Below is an context that describes a sql 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, competition VARCHAR, opponent VARCHAR) ### Question: What date was the UEFA Cup against Panathinaikos? ### Answer: SELECT date FROM table_name_29 WHERE competition = "uefa cup" AND opponent = "panathinaikos"
Below is an context that describes a sql 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 (name VARCHAR, year_named VARCHAR, longitude VARCHAR) ### Question: What name in a year after 1997 has a longitude of 213.0e? ### Answer: SELECT name FROM table_name_91 WHERE year_named > 1997 AND longitude = "213.0e"
Below is an context that describes a sql 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 (number_ VARCHAR, _name VARCHAR, date VARCHAR) ### Question: What's Number & Name listed for the Date 1967? ### Answer: SELECT number_ & _name FROM table_name_61 WHERE date = 1967
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_261222_1 (area__km_2__ VARCHAR, city___municipality VARCHAR) ### Question: How many places are named manolo fortich? ### Answer: SELECT COUNT(area__km_2__) FROM table_261222_1 WHERE city___municipality = "Manolo Fortich"
Below is an context that describes a sql 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 (away_team VARCHAR, home_team VARCHAR, score VARCHAR) ### Question: Can you tell me the Away team that has the Home team of south dragons, and the Score of 94-81? ### Answer: SELECT away_team FROM table_name_17 WHERE home_team = "south dragons" AND score = "94-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 table_name_23 (margin_of_victory VARCHAR, tournament VARCHAR) ### Question: What is the margin of victory when the tournament is konica san jose classic? ### Answer: SELECT margin_of_victory FROM table_name_23 WHERE tournament = "konica san jose classic"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_17941032_3 (points VARCHAR, tries_for VARCHAR) ### Question: Name the points when tries for is 49 ### Answer: SELECT points FROM table_17941032_3 WHERE tries_for = "49"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_76 (birthplace VARCHAR, name VARCHAR) ### Question: What is the Birthplace, when the Name is Bob Mcvey? ### Answer: SELECT birthplace FROM table_name_76 WHERE name = "bob mcvey"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_21436373_11 (result_games VARCHAR, attendance VARCHAR) ### Question: Name the result/games for 54741 ### Answer: SELECT result_games FROM table_21436373_11 WHERE attendance = 54741
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_23722304_2 (compression_ratio VARCHAR, torque__n_m_ VARCHAR) ### Question: what is the compression ratio whre the torque is 208? ### Answer: SELECT compression_ratio FROM table_23722304_2 WHERE torque__n_m_ = 208
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_65 (score VARCHAR, year VARCHAR, result VARCHAR) ### Question: What's the score for 1992, with the result of a loss? ### Answer: SELECT score FROM table_name_65 WHERE year = 1992 AND result = "loss"
Below is an context that describes a sql 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 (total_passengers INTEGER, annual_change VARCHAR, rank VARCHAR) ### Question: What is the sum of Total Passengers when the annual change is 9.7% and the rank is less than 6? ### Answer: SELECT SUM(total_passengers) FROM table_name_9 WHERE annual_change = "9.7%" AND rank < 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_40 (away VARCHAR, round VARCHAR) ### Question: What is the away where the round is the second round? ### Answer: SELECT away FROM table_name_40 WHERE round = "second round"
Below is an context that describes a sql 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 (lane VARCHAR, heat VARCHAR, nationality VARCHAR) ### Question: What lane number was Hungary and had a heat of 4? ### Answer: SELECT COUNT(lane) FROM table_name_22 WHERE heat = 4 AND nationality = "hungary"
Below is an context that describes a sql 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 (skip VARCHAR, third VARCHAR) ### Question: Which Skip has a Third of carlo alessandro zisa? ### Answer: SELECT skip FROM table_name_34 WHERE third = "carlo alessandro zisa"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1507806_1 (winning_score VARCHAR, year VARCHAR) ### Question: WHAT WAS THE WINNING SCORE IN YEAR 1922? ### Answer: SELECT winning_score FROM table_1507806_1 WHERE year = 1922
Below is an context that describes a sql 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 (name VARCHAR, roll VARCHAR, decile VARCHAR, authority VARCHAR) ### Question: What integrated school had a decile of 2 and a roll larger than 55? ### Answer: SELECT name FROM table_name_69 WHERE decile = 2 AND authority = "integrated" AND roll > 55
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_27298240_26 (pluperfect VARCHAR, perfect VARCHAR) ### Question: What is the pluperfect for the perfect si bio/la; bio/la si? ### Answer: SELECT pluperfect FROM table_27298240_26 WHERE perfect = "si bio/la; bio/la si"
Below is an context that describes a sql 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 (losses VARCHAR, awards VARCHAR) ### Question: What are the losses where the award is Mike Miller (Smoy)? ### Answer: SELECT losses FROM table_name_34 WHERE awards = "mike miller (smoy)"
Below is an context that describes a sql 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 (result VARCHAR, goal INTEGER) ### Question: What is the result when there's less than 2 goals? ### Answer: SELECT result FROM table_name_46 WHERE goal < 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_81 (result VARCHAR, opponent VARCHAR, date VARCHAR) ### Question: What is the result against Errol Zimmerman on 2007-04-07? ### Answer: SELECT result FROM table_name_81 WHERE opponent = "errol zimmerman" AND date = "2007-04-07"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR); CREATE TABLE TV_series (Episode VARCHAR, Channel VARCHAR) ### Question: List the Episode of all TV series showed on TV Channel with series name "Sky Radio". ### Answer: SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2417345_3 (successor VARCHAR, date_of_successors_formal_installation VARCHAR) ### Question: Who was the successor that was formally installed on March 30, 1870? ### Answer: SELECT successor FROM table_2417345_3 WHERE date_of_successors_formal_installation = "March 30, 1870"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_80 (date VARCHAR, away_team VARCHAR) ### Question: What was the date for the away team, team Southport? ### Answer: SELECT date FROM table_name_80 WHERE away_team = "southport"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_12271718_1 (station VARCHAR, network_affiliation VARCHAR) ### Question: What station has a univision network affiliation? ### Answer: SELECT station FROM table_12271718_1 WHERE network_affiliation = "Univision"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR) ### Question: Which home team's venue is Windy Hill? ### Answer: SELECT home_team FROM table_name_86 WHERE venue = "windy hill"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_11 (record VARCHAR, date VARCHAR) ### Question: What was the record at the game held on December 24, 2005? ### Answer: SELECT record FROM table_name_11 WHERE date = "december 24, 2005"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_17288845_8 (record VARCHAR, location_attendance VARCHAR) ### Question: Name the record for verizon center 20,173 ### Answer: SELECT record FROM table_17288845_8 WHERE location_attendance = "Verizon Center 20,173"
Below is an context that describes a sql 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 (round VARCHAR, opponents VARCHAR) ### Question: Name the round for southampton opponents ### Answer: SELECT round FROM table_name_43 WHERE opponents = "southampton"
Below is an context that describes a sql 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 (winner VARCHAR, score VARCHAR, season VARCHAR) ### Question: Which Winner has a Score of 1 – 0, and a Season of 2011–12? ### Answer: SELECT winner FROM table_name_30 WHERE score = "1 – 0" AND season = "2011–12"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_24027047_1 (population_density___km²_2011_ VARCHAR, area__km²__2011 VARCHAR) ### Question: What was the population density in km2 for 2011 in the division where area in km2 was 684.37 in 2011? ### Answer: SELECT population_density___km²_2011_ FROM table_24027047_1 WHERE area__km²__2011 * * = "684.37"
Below is an context that describes a sql 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 (team VARCHAR) ### Question: Name the 1st match for brisbane bears ### Answer: SELECT 1 AS st_match FROM table_name_61 WHERE team = "brisbane bears"
Below is an context that describes a sql 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 (type VARCHAR, principal_activities VARCHAR) ### Question: Which Type has a Principal activities of health services? ### Answer: SELECT type FROM table_name_28 WHERE principal_activities = "health services"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1969577_1 (institution VARCHAR, enrollment VARCHAR) ### Question: Name the college that has 10000 enrolled ### Answer: SELECT institution FROM table_1969577_1 WHERE enrollment = 10000
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_8 (opponent_in_the_final VARCHAR, tournament VARCHAR) ### Question: Who was the opponent in the final of the Senegal f2 tournament> ### Answer: SELECT opponent_in_the_final FROM table_name_8 WHERE tournament = "senegal f2"
Below is an context that describes a sql 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 (country VARCHAR, to_par VARCHAR, player VARCHAR) ### Question: What Country is Player Sam Snead with a To par of less than 5 from? ### Answer: SELECT country FROM table_name_26 WHERE to_par < 5 AND player = "sam snead"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_25548630_1 (points VARCHAR, team VARCHAR) ### Question: How many points does Marussia Manor Racing have? ### Answer: SELECT COUNT(points) FROM table_25548630_1 WHERE team = "Marussia Manor Racing"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE country (Name VARCHAR, SurfaceArea VARCHAR) ### Question: What are the names and areas of countries with the top 5 largest area? ### Answer: SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 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 Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Sections (course_id VARCHAR) ### Question: What are the names and id of courses having at most 2 sections? ### Answer: SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_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_1140116_6 (winning_driver VARCHAR, race_name VARCHAR) ### Question: How many winners did I Dessau Autobahnspinne have? ### Answer: SELECT COUNT(winning_driver) FROM table_1140116_6 WHERE race_name = "I Dessau Autobahnspinne"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR) ### Question: How many car models were produced by the maker with full name American Motor Company? ### Answer: SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_12 (genre VARCHAR, game VARCHAR) ### Question: Which Genre has a Game of tony hawk's pro skater 2? ### Answer: SELECT genre FROM table_name_12 WHERE game = "tony hawk's pro skater 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_12033013_3 (directed_by VARCHAR, production_code VARCHAR) ### Question: Who directed the episode with a production code 3ADK-03? ### Answer: SELECT directed_by FROM table_12033013_3 WHERE production_code = "3ADK-03"
Below is an context that describes a sql 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 (visitor VARCHAR, date VARCHAR) ### Question: Which visitor visited on February 21? ### Answer: SELECT visitor FROM table_name_14 WHERE date = "february 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_4 (date_and_opponent VARCHAR, position VARCHAR, career_games VARCHAR) ### Question: Name the Date and an Opponent which has a f Position and Career Games of 123 games? ### Answer: SELECT date_and_opponent FROM table_name_4 WHERE position = "f" AND career_games = "123 games"
Below is an context that describes a sql 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 (attendance INTEGER, record VARCHAR) ### Question: Name the least attendance for 52-37 record ### Answer: SELECT MIN(attendance) FROM table_name_53 WHERE record = "52-37"
Below is an context that describes a sql 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 (last_match VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR) ### Question: What is the name of the last match that had a sacked manner of departure and a geninho outgoing manner? ### Answer: SELECT last_match FROM table_name_8 WHERE manner_of_departure = "sacked" AND outgoing_manager = "geninho"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_11 (total VARCHAR, finish VARCHAR, to_par VARCHAR) ### Question: What is the total number of Total(s), when Finish is "T21", and when To Par is greater than 23? ### Answer: SELECT COUNT(total) FROM table_name_11 WHERE finish = "t21" AND to_par > 23
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_36 (material VARCHAR, completed VARCHAR, location VARCHAR) ### Question: What was the statue in st. paul, minnesota constructed before 1966 made out of? ### Answer: SELECT material FROM table_name_36 WHERE completed < 1966 AND location = "st. paul, minnesota"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_58 (object_type VARCHAR, declination___j2000__ VARCHAR) ### Question: What Object Type has a °03′32″ Declination (J2000)? ### Answer: SELECT object_type FROM table_name_58 WHERE declination___j2000__ = "°03′32″"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_15852257_1 (podiums VARCHAR, final_placing VARCHAR) ### Question: Which podiums have a final placing of 10th? ### Answer: SELECT podiums FROM table_15852257_1 WHERE final_placing = "10th"
Below is an context that describes a sql 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 (champion VARCHAR, tournament_location VARCHAR) ### Question: Which champion has sentosa golf club as the tournament location? ### Answer: SELECT champion FROM table_name_55 WHERE tournament_location = "sentosa golf club"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_13337302_16 (rank VARCHAR, dismissals VARCHAR) ### Question: List the ranks of all dismissals with a value of 4 ### Answer: SELECT rank FROM table_13337302_16 WHERE dismissals = 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_7 (presentation_of_credentials VARCHAR, title VARCHAR, representative VARCHAR) ### Question: What is the presentation of credentials date of raúl h. castro, who has a title of ambassador extraordinary and plenipotentiary? ### Answer: SELECT presentation_of_credentials FROM table_name_7 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "raúl h. castro"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE policies (customer_id VARCHAR, policy_type_code VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR) ### Question: Find the names of the customers who have an deputy policy. ### Answer: SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = "Deputy"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1036189_1 (primer_annulus_color VARCHAR, bullet_tip_color VARCHAR) ### Question: How many primers annulus colors were there when the color of the bullet tip was white? ### Answer: SELECT COUNT(primer_annulus_color) FROM table_1036189_1 WHERE bullet_tip_color = "White"
Below is an context that describes a sql 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 (points VARCHAR, games_played INTEGER) ### Question: What is the number of points of the match with less than 22 games played? ### Answer: SELECT COUNT(points) FROM table_name_69 WHERE games_played < 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_name_56 (dob VARCHAR, position VARCHAR, first VARCHAR, throws VARCHAR) ### Question: Which DOB has a First of david, and Throws of l, and a Position of if? ### Answer: SELECT dob FROM table_name_56 WHERE first = "david" AND throws = "l" AND position = "if"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_298550_1 (area__km²_ VARCHAR, capital VARCHAR) ### Question: What is every entry for area if capital is Port-au-Prince? ### Answer: SELECT area__km²_ FROM table_298550_1 WHERE capital = "Port-au-Prince"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_26957063_3 (length__aa_ INTEGER, ncbi_accession_number VARCHAR) ### Question: What is the length (AA) of the animal whose NCBI accession number is CAM15594.1? ### Answer: SELECT MIN(length__aa_) FROM table_26957063_3 WHERE ncbi_accession_number = "CAM15594.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 city (Status VARCHAR, City_ID VARCHAR); CREATE TABLE farm_competition (Host_city_ID VARCHAR) ### Question: Show the status of the city that has hosted the greatest number of competitions. ### Answer: SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_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_61 (poles INTEGER, position VARCHAR, wins VARCHAR, top_5 VARCHAR) ### Question: What is the lowest poles that have 0 as a win, 0 as the top 5, with 66th as the postion? ### Answer: SELECT MIN(poles) FROM table_name_61 WHERE wins = 0 AND top_5 = 0 AND position = "66th"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE VISITORS (Tourist_ID VARCHAR, Tourist_Details VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR) ### Question: Which tourist attractions does the visitor with detail 'Vincent' visit? ### Answer: SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = "Vincent"
Below is an context that describes a sql 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, type VARCHAR, pilot VARCHAR, record_description VARCHAR) ### Question: Pilot of g.v. alfyorov, and a Record description of altitude with kg (lb) payload, and a Type of mi-10 involved what date? ### Answer: SELECT date FROM table_name_39 WHERE pilot = "g.v. alfyorov" AND record_description = "altitude with kg (lb) payload" AND type = "mi-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_29332810_14 (general_classification VARCHAR, winner VARCHAR, young_rider_classification VARCHAR) ### Question: Who is listed under the general classifcation where Ben Swift won and Cameron Meyer was listed under the young rider? ### Answer: SELECT general_classification FROM table_29332810_14 WHERE winner = "Ben Swift" AND young_rider_classification = "Cameron Meyer"
Below is an context that describes a sql 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 (matches INTEGER, average VARCHAR, best_bowling VARCHAR, wickets VARCHAR, team VARCHAR) ### Question: What is the highest number of matches for Australia when the wickets are more than 13, the average is less than 23.33, and the best bowling is 5/36? ### Answer: SELECT MAX(matches) FROM table_name_35 WHERE wickets > 13 AND team = "australia" AND best_bowling = "5/36" AND average < 23.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_name_82 (gold INTEGER, bronze VARCHAR) ### Question: What is the average number of Gold medals when there are 5 bronze medals? ### Answer: SELECT AVG(gold) FROM table_name_82 WHERE bronze = 5