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_56 (number_of_electorates__2009_ VARCHAR, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR) ### Question: Which Number of electorates (2009) has a District of jhajjar, and a Reserved for (SC/ST/None) of sc, and a Constituency number smaller than 66? ### Answer: SELECT COUNT(number_of_electorates__2009_) FROM table_name_56 WHERE district = "jhajjar" AND reserved_for___sc___st__none_ = "sc" AND constituency_number < 66
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_24066938_1 (area_km_2 VARCHAR, member_state VARCHAR) ### Question: What is the area of Austria's territory in square kilometers? ### Answer: SELECT area_km_2 FROM table_24066938_1 WHERE member_state = "Austria"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2102945_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR) ### Question: When 24:31 is the run time how many millions of viewers are there? ### Answer: SELECT viewers__in_millions_ FROM table_2102945_1 WHERE run_time = "24: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_70 (date INTEGER, catalog VARCHAR) ### Question: WHAT DATE HAS A CATALOG OF 486553.4? ### Answer: SELECT MAX(date) FROM table_name_70 WHERE catalog = "486553.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_17355716_10 (score VARCHAR, high_rebounds VARCHAR) ### Question: how many times were high rebounds mehmet okur , paul millsap (6) ### Answer: SELECT COUNT(score) FROM table_17355716_10 WHERE high_rebounds = "Mehmet Okur , Paul Millsap (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_18 (country VARCHAR, place VARCHAR, score VARCHAR) ### Question: Which country earned place T3 with a score of 70-68=138? ### Answer: SELECT country FROM table_name_18 WHERE place = "t3" AND score = 70 - 68 = 138
Below is an context that describes 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 (customer_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE addresses (city VARCHAR) ### Question: Find the list of cities that no customer is living in. ### Answer: SELECT city FROM addresses WHERE NOT city IN (SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_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_51 (engine VARCHAR, points VARCHAR, chassis VARCHAR) ### Question: Which engine scored 6 points and used the march 88c chassis? ### Answer: SELECT engine FROM table_name_51 WHERE points = 6 AND chassis = "march 88c"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_17355408_4 (date VARCHAR, team VARCHAR) ### Question: Name the date for chicago ### Answer: SELECT date FROM table_17355408_4 WHERE team = "Chicago"
Below is an context that describes a sql 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 (score VARCHAR, player VARCHAR) ### Question: What was the score for Tom Lehman? ### Answer: SELECT score FROM table_name_68 WHERE player = "tom lehman"
Below is an context that describes a sql 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 (laps INTEGER, driver VARCHAR) ### Question: What is the highest number of laps for chris amon? ### Answer: SELECT MAX(laps) FROM table_name_51 WHERE driver = "chris amon"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_31 (colour VARCHAR, compound_name VARCHAR) ### Question: What color is the super-soft compound? ### Answer: SELECT colour FROM table_name_31 WHERE compound_name = "super-soft"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_25604014_9 (no_in_season INTEGER, directed_by VARCHAR) ### Question: Name the most number in season for leslie hill ### Answer: SELECT MAX(no_in_season) FROM table_25604014_9 WHERE directed_by = "Leslie 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_26996293_4 (cfl_team VARCHAR, college VARCHAR) ### Question: what is the cfl team where college is waterloo? ### Answer: SELECT COUNT(cfl_team) FROM table_26996293_4 WHERE college = "Waterloo"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_25034983_2 (start INTEGER, owner VARCHAR) ### Question: In what year was cumulus founded? ### Answer: SELECT MIN(start) FROM table_25034983_2 WHERE owner = "Cumulus"
Below is an context that describes a sql 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 (outcome VARCHAR, opponents VARCHAR) ### Question: What Outcome has Opponents of bob hewitt frew mcmillan? ### Answer: SELECT outcome FROM table_name_2 WHERE opponents = "bob hewitt frew mcmillan"
Below is an context that describes a sql 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 (gold INTEGER, bronze INTEGER) ### Question: What is the fewest gold medals when the bronze medals is greater than 5? ### Answer: SELECT MIN(gold) FROM table_name_49 WHERE bronze > 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_1802522_4 (vacator VARCHAR, district VARCHAR) ### Question: Name the vacator for tennessee 1st ### Answer: SELECT vacator FROM table_1802522_4 WHERE district = "Tennessee 1st"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_20 (overall VARCHAR, college VARCHAR, round VARCHAR) ### Question: Name the total number of overall for villanova and round less than 2 ### Answer: SELECT COUNT(overall) FROM table_name_20 WHERE college = "villanova" AND round < 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_16331025_2 (sellout___percentage_ VARCHAR, gross_sales VARCHAR) ### Question: What is the sellout % when the gross sales is $1,727,400? ### Answer: SELECT sellout___percentage_ FROM table_16331025_2 WHERE gross_sales = "$1,727,400"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_71 (rank INTEGER, player VARCHAR, wickets VARCHAR) ### Question: What is the total rank for player Delyone Borden with more than 15 wickets? ### Answer: SELECT SUM(rank) FROM table_name_71 WHERE player = "delyone borden" AND wickets > 15
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_87 (wins INTEGER, player VARCHAR) ### Question: What is the lowest number of wins for ben crenshaw? ### Answer: SELECT MIN(wins) FROM table_name_87 WHERE player = "ben crenshaw"
Below is an context that describes a sql 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 (date VARCHAR, venue VARCHAR, opponent VARCHAR) ### Question: Which date has an A venue with an Opponent of stoke city? ### Answer: SELECT date FROM table_name_61 WHERE venue = "a" AND opponent = "stoke city"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_66 (event VARCHAR, location VARCHAR) ### Question: what is the event when the location is saitama, japan? ### Answer: SELECT event FROM table_name_66 WHERE location = "saitama, japan"
Below is an context that describes a sql 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 (score VARCHAR, opponent_team VARCHAR, opponent VARCHAR) ### Question: What is Score, when Opponent Team is Belgium, and when Opponent is Kirsten Flipkens? ### Answer: SELECT score FROM table_name_83 WHERE opponent_team = "belgium" AND opponent = "kirsten flipkens"
Below is an context that describes a sql 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 (team_1 VARCHAR) ### Question: Which first round has a first team of angers sco (d1)? ### Answer: SELECT 1 AS st_round FROM table_name_90 WHERE team_1 = "angers sco (d1)"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_5 (money___$__ VARCHAR, score VARCHAR) ### Question: How much money does the player with a score of 74-71-76-76=297 have? ### Answer: SELECT money___$__ FROM table_name_5 WHERE score = 74 - 71 - 76 - 76 = 297
Below is an context that describes a sql 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 (opponent VARCHAR, edition VARCHAR) ### Question: Who was the opponent for the 2003 davis cup europe/africa group ii? ### Answer: SELECT opponent FROM table_name_23 WHERE edition = "2003 davis cup europe/africa group ii"
Below is an context that describes a sql 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 (floors VARCHAR, rank VARCHAR, height VARCHAR, _m__ft_ VARCHAR) ### Question: How many floors were there with a building rank of less than 3 and a height of 300 / 985 m (ft)? ### Answer: SELECT COUNT(floors) FROM table_name_3 WHERE height * _m__ft_ = "300 / 985" 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_24 (player VARCHAR, position VARCHAR, school_club_team VARCHAR) ### Question: Who is the forward from Grambling State? ### Answer: SELECT player FROM table_name_24 WHERE position = "forward" AND school_club_team = "grambling 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_68 (recnet VARCHAR, city_of_license VARCHAR) ### Question: what is the recnet when the city of license is peterborough? ### Answer: SELECT recnet FROM table_name_68 WHERE city_of_license = "peterborough"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2226817_3 (directed_by VARCHAR, written_by VARCHAR) ### Question: Who directed what was written by Michael G. Moye & Ron Leavitt & J. Stanford Parker? ### Answer: SELECT directed_by FROM table_2226817_3 WHERE written_by = "Michael G. Moye & Ron Leavitt & J. Stanford Parker"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_84 (persian VARCHAR, domari VARCHAR) ### Question: What Persian word has the same meaning as the Domari word na? ### Answer: SELECT persian FROM table_name_84 WHERE domari = "na"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1463383_1 (date_released VARCHAR, green_communist VARCHAR) ### Question: When was there 8.9% Green-Communist? ### Answer: SELECT date_released FROM table_1463383_1 WHERE green_communist = "8.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_28281704_1 (tenant VARCHAR, country VARCHAR, stadium VARCHAR) ### Question: Name the number of tenants for russia at the saransk stadium ### Answer: SELECT COUNT(tenant) FROM table_28281704_1 WHERE country = "Russia" AND stadium = "Saransk 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_19283806_4 (cook_pvi VARCHAR) ### Question: How many election results in 2012 had a Cook PVI of D+16? ### Answer: SELECT COUNT(2012 AS _election_results) FROM table_19283806_4 WHERE cook_pvi = "D+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 TV_Channel (series_name VARCHAR, content VARCHAR) ### Question: List the number of different series names and contents in the TV Channel table. ### Answer: SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel
Below is an context that describes a sql 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 (points INTEGER, played INTEGER) ### Question: What is the total amount of points when the played number was less than 12? ### Answer: SELECT SUM(points) FROM table_name_93 WHERE played < 12
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_81 (venue VARCHAR) ### Question: What shows for 3rd place when the venue was Pardubice? ### Answer: SELECT 3 AS rd_place FROM table_name_81 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_20 (lane INTEGER, name VARCHAR) ### Question: Which lane did George Bovell swim in? ### Answer: SELECT SUM(lane) FROM table_name_20 WHERE name = "george bovell"
Below is an context that describes a sql 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 (first_year_aired VARCHAR, prize VARCHAR) ### Question: What was the first year that had a prize of 50,000? ### Answer: SELECT first_year_aired FROM table_name_28 WHERE prize = "50,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_1676073_13 (won VARCHAR, points_for VARCHAR) ### Question: How many wins does the club with 565 points for have? ### Answer: SELECT won FROM table_1676073_13 WHERE points_for = "565"
Below is an context that describes a sql 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 (against VARCHAR, date VARCHAR) ### Question: What is the total number of Against, when Date is "16/03/1996"? ### Answer: SELECT COUNT(against) FROM table_name_88 WHERE date = "16/03/1996"
Below is an context that describes a sql 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 (earnings_per_share__ INTEGER, ebit__us_$m_ VARCHAR, year_to_april VARCHAR, revenue__us_$million_ VARCHAR) ### Question: Count the Earnings per share (¢) in April smaller than 2012, a Revenue (US $million) of 432.6 and a EBIT (US $m) smaller than 150.5? ### Answer: SELECT SUM(earnings_per_share__) AS ¢_ FROM table_name_34 WHERE year_to_april < 2012 AND revenue__us_$million_ = 432.6 AND ebit__us_$m_ < 150.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_99 (match INTEGER, attendance VARCHAR, venue VARCHAR, date VARCHAR) ### Question: WHich Match has a Venue of h on 22 september 1888 with Attendances smaller than 4,000? ### Answer: SELECT MAX(match) FROM table_name_99 WHERE venue = "h" AND date = "22 september 1888" AND attendance < 4 OFFSET 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 gas_station (manager_name VARCHAR, station_id VARCHAR); CREATE TABLE station_company (company_id VARCHAR, station_id VARCHAR); CREATE TABLE company (company_id VARCHAR, company VARCHAR) ### Question: Show the manager name for gas stations belonging to the ExxonMobil company. ### Answer: SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.company = 'ExxonMobil'
Below is an context that describes a sql 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 (format VARCHAR, label VARCHAR, region VARCHAR, date VARCHAR) ### Question: What is the format for the label Mightier than Sword on January 12, 2010 in the United States? ### Answer: SELECT format FROM table_name_50 WHERE region = "united states" AND date = "january 12, 2010" AND label = "mightier than sword"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost INTEGER) ### Question: Find the physicians who are trained in a procedure that costs more than 5000. ### Answer: SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000
Below is an context that describes a sql 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 (played VARCHAR, lost VARCHAR, team VARCHAR) ### Question: Which Played has a Lost larger than 2, and a Team of américa? ### Answer: SELECT played FROM table_name_4 WHERE lost > 2 AND team = "américa"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1342331_43 (party VARCHAR, incumbent VARCHAR) ### Question: What party is incumbent Oliver H. Cross? ### Answer: SELECT party FROM table_1342331_43 WHERE incumbent = "Oliver H. Cross"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1346118_5 (district VARCHAR, candidates VARCHAR) ### Question: Which district was the race between john i. nolan (r) 87% thomas f. feeley (s) 13%? ### Answer: SELECT district FROM table_1346118_5 WHERE candidates = "John I. Nolan (R) 87% Thomas F. Feeley (S) 13%"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_60 (story_title VARCHAR, letterer_s VARCHAR) ### Question: What is the Story Title that has Albers as the Letterer? ### Answer: SELECT story_title FROM table_name_60 WHERE letterer_s = "albers"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_25360865_1 (_number INTEGER, name VARCHAR) ### Question: Name the most number for charvez davis ### Answer: SELECT MAX(_number) FROM table_25360865_1 WHERE name = "Charvez Davis"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_78 (circuit VARCHAR, length VARCHAR, date VARCHAR) ### Question: Which circuit has a length of 45 minutes and is held on August 6? ### Answer: SELECT circuit FROM table_name_78 WHERE length = "45 minutes" AND date = "august 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_1875157_1 (winnings VARCHAR, position VARCHAR) ### Question: How many wins in the season he finished 33rd ### Answer: SELECT winnings FROM table_1875157_1 WHERE position = "33rd"
Below is an context that describes a sql 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 (place VARCHAR, player VARCHAR) ### Question: What did Fred Couples place? ### Answer: SELECT place FROM table_name_61 WHERE player = "fred couples"
Below is an context that describes a sql 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 (total VARCHAR, rank_points VARCHAR) ### Question: Which Total has an olympic bronze medalist? ### Answer: SELECT total FROM table_name_27 WHERE rank_points = "olympic bronze medalist"
Below is an context that describes a sql 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 (position VARCHAR, years_in_orlando VARCHAR) ### Question: Which position was in Orlando in 2000? ### Answer: SELECT position FROM table_name_15 WHERE years_in_orlando = "2000"
Below is an context that describes a sql 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 (name VARCHAR, law_school_attended VARCHAR, appointed VARCHAR) ### Question: Who attended Columbia law school and was appointed in 2004? ### Answer: SELECT name FROM table_name_30 WHERE law_school_attended = "columbia law school" AND appointed = 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_18946749_1 (island VARCHAR, peak VARCHAR) ### Question: When mount wondiwoi is the peak what is the island? ### Answer: SELECT island FROM table_18946749_1 WHERE peak = "Mount Wondiwoi"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_74 (channel VARCHAR, date VARCHAR) ### Question: Which channel was on 28 December 2008? ### Answer: SELECT channel FROM table_name_74 WHERE date = "28 december 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 museum (name VARCHAR, num_of_staff INTEGER, open_year INTEGER) ### Question: find the names of museums which have more staff than the minimum staff number of all museums opened after 2010. ### Answer: SELECT name FROM museum WHERE num_of_staff > (SELECT MIN(num_of_staff) FROM museum WHERE open_year > 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_47 (result VARCHAR, category VARCHAR, year VARCHAR) ### Question: What is the Result with a Category of album of the year in a Year that is 2011? ### Answer: SELECT result FROM table_name_47 WHERE category = "album of the year" AND year = 2011
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1140083_2 (date VARCHAR, race VARCHAR) ### Question: How many days is the Monaco Grand Prix? ### Answer: SELECT COUNT(date) FROM table_1140083_2 WHERE race = "Monaco Grand Prix"
Below is an context that describes a sql 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 (circuit VARCHAR, championship VARCHAR) ### Question: What circuit is the Sprint Cup series championship? ### Answer: SELECT circuit FROM table_name_29 WHERE championship = "sprint cup 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_name_58 (round VARCHAR, player VARCHAR) ### Question: In which round was Jerry Butler chosen? ### Answer: SELECT round FROM table_name_58 WHERE player = "jerry butler"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_74 (goals_against INTEGER, club VARCHAR, played VARCHAR) ### Question: What is the highest Goals Against, when Club is "Pontevedra CF", and when Played is less than 38? ### Answer: SELECT MAX(goals_against) FROM table_name_74 WHERE club = "pontevedra cf" AND played < 38
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_20 (winner VARCHAR, runner_up VARCHAR) ### Question: Who was the Winner when the Runner-up was Real Salt Lake? ### Answer: SELECT winner FROM table_name_20 WHERE runner_up = "real salt lake"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11734041_20 (years_for_rockets VARCHAR, school_club_team_country VARCHAR) ### Question: what is the total number of years for rockets where school/club team/country is baylor ### Answer: SELECT COUNT(years_for_rockets) FROM table_11734041_20 WHERE school_club_team_country = "Baylor"
Below is an context that describes a sql 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 (drivers VARCHAR, laps VARCHAR) ### Question: What driver had 101 laps? ### Answer: SELECT drivers FROM table_name_86 WHERE laps = 101
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE tryout (cName VARCHAR) ### Question: How many different colleges do attend the tryout test? ### Answer: SELECT COUNT(DISTINCT cName) FROM tryout
Below is an context that describes a sql 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 (record VARCHAR, game VARCHAR) ### Question: What was the Maple Leafs' record on game 52? ### Answer: SELECT record FROM table_name_51 WHERE game = 52
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_99 (method VARCHAR, event VARCHAR) ### Question: What methos did Keith Wisniewski use in the ufc fight night: teixeira vs. bader? ### Answer: SELECT method FROM table_name_99 WHERE event = "ufc fight night: teixeira vs. bader"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_99 (owner VARCHAR, post_position VARCHAR, jockey VARCHAR) ### Question: Who owns the horse with a post position of less than 4 with jockey todd pletcher? ### Answer: SELECT owner FROM table_name_99 WHERE post_position < 4 AND jockey = "todd pletcher"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2461720_1 (theatre_name VARCHAR, language_of_films VARCHAR) ### Question: Name the theatre name for french ### Answer: SELECT theatre_name FROM table_2461720_1 WHERE language_of_films = "French"
Below is an context that describes a sql 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 (year INTEGER, runner_s__up VARCHAR) ### Question: When was the most recent year that kathy whitworth was the runner-up? ### Answer: SELECT MAX(year) FROM table_name_49 WHERE runner_s__up = "kathy whitworth"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1908877_2 (last_top_division_title VARCHAR, club VARCHAR) ### Question: when did the club Citizen achieve its last top division title? ### Answer: SELECT last_top_division_title FROM table_1908877_2 WHERE club = "Citizen"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_13 (drawn INTEGER, points VARCHAR, played VARCHAR) ### Question: What was the drawn amount for teams with points of 12 and played smaller than 10? ### Answer: SELECT AVG(drawn) FROM table_name_13 WHERE points = 12 AND played < 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 (season VARCHAR, goals VARCHAR, apps VARCHAR) ### Question: How many seasons have 1 goals and more than 11 apps? ### Answer: SELECT COUNT(season) FROM table_name_89 WHERE goals = 1 AND apps > 11
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_46 (lot_no INTEGER, notes VARCHAR, diagram VARCHAR) ### Question: Name the most lot number with notes of b4 bogies and diagram of 185 ### Answer: SELECT MAX(lot_no) FROM table_name_46 WHERE notes = "b4 bogies" AND diagram = 185
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_24212608_1 (episode VARCHAR, broadcast_date VARCHAR) ### Question: How many episodes were broadcast in 2010? ### Answer: SELECT COUNT(episode) FROM table_24212608_1 WHERE broadcast_date = 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_62 (date VARCHAR, attendance VARCHAR) ### Question: What is the date where the attendance was 31,220? ### Answer: SELECT date FROM table_name_62 WHERE attendance = "31,220"
Below is an context that describes a sql 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 (record VARCHAR, nationality VARCHAR, date VARCHAR) ### Question: What is the record for Norway on 23 august 1981? ### Answer: SELECT record FROM table_name_56 WHERE nationality = "norway" AND date = "23 august 1981"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_13642023_2 (gto_winning_team VARCHAR, to_winning_team VARCHAR) ### Question: Who was the GTO winning team when the TO winning team was #84 Camaro? ### Answer: SELECT gto_winning_team FROM table_13642023_2 WHERE to_winning_team = "#84 Camaro"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1281200_1 (new_entries_this_round VARCHAR, round VARCHAR) ### Question: From the round name of third round; what would the new entries this round that would be found? ### Answer: SELECT new_entries_this_round FROM table_1281200_1 WHERE round = "Third 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_13 (crowd INTEGER, away_team VARCHAR) ### Question: What was the largest crowd at a game where Collingwood was the away team? ### Answer: SELECT MAX(crowd) FROM table_name_13 WHERE away_team = "collingwood"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_72 (total INTEGER, country VARCHAR, player VARCHAR) ### Question: What was the total for united states player phil mickelson? ### Answer: SELECT MIN(total) FROM table_name_72 WHERE country = "united states" AND player = "phil mickelson"
Below is an context that describes a sql 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 (first_game INTEGER, played VARCHAR, lost VARCHAR) ### Question: How many first games are associated with 5 games played and under 3 games lost? ### Answer: SELECT SUM(first_game) FROM table_name_85 WHERE played = 5 AND lost < 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_18539834_2 (average_ratings VARCHAR, tv_station VARCHAR) ### Question: What is the average rating for tv asahi? ### Answer: SELECT average_ratings FROM table_18539834_2 WHERE tv_station = "TV Asahi"
Below is an context that describes a sql 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 (Id VARCHAR) ### Question: what is 2005 when 2003 is A, 2007 is 2r and 2012 is 3r? ### Answer: SELECT 2005 FROM table_name_49 WHERE 2003 = "a" AND 2007 = "2r" AND 2012 = "3r"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_21350934_2 (opponent VARCHAR, attendance VARCHAR) ### Question: Who is the opponent when the attendance is n/a? ### Answer: SELECT opponent FROM table_21350934_2 WHERE attendance = "N/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_3 (location VARCHAR, date VARCHAR) ### Question: What Location has a Date of 1995-06-15? ### Answer: SELECT location FROM table_name_3 WHERE date = "1995-06-15"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_55 (college VARCHAR, overall VARCHAR, name VARCHAR) ### Question: what is the college for keenan robinson when overall is more than 102? ### Answer: SELECT college FROM table_name_55 WHERE overall > 102 AND name = "keenan robinson"
Below is an context that describes a sql 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 (opponent VARCHAR, date VARCHAR) ### Question: Who did the team play on april 19? ### Answer: SELECT opponent FROM table_name_2 WHERE date = "april 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_73 (Id VARCHAR) ### Question: What is the 2004 value if the 1998 value is 35? ### Answer: SELECT 2004 FROM table_name_73 WHERE 1998 = "35"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE players (country_code VARCHAR) ### Question: find the code of the country where has the greatest number of players. ### Answer: SELECT country_code FROM players GROUP BY country_code 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_9 (silver INTEGER, bronze VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR) ### Question: What is the highest number of silvers for qatar with under 8 total, 0 golds, and over 2 bronzes? ### Answer: SELECT MAX(silver) FROM table_name_9 WHERE total < 8 AND gold = 0 AND nation = "qatar" 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_name_64 (year VARCHAR, country VARCHAR, dates VARCHAR) ### Question: What Year was the United States the country for aug 3–5? ### Answer: SELECT year FROM table_name_64 WHERE country = "united states" AND dates = "aug 3–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_8 (Id VARCHAR) ### Question: What is the sum of 1938 values where 1933 values are under 68.3 and 1940 valures are under 4.02? ### Answer: SELECT SUM(1938) FROM table_name_8 WHERE 1933 < 68.3 AND 1940 < 4.02
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Payments (Payment_Method_Code VARCHAR) ### Question: With which kind of payment method were the least number of payments processed? ### Answer: SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY COUNT(*) LIMIT 1