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_53 (manufacturer VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR) ### Question: Which manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams? ### Answer: SELECT manufacturer FROM table_name_53 WHERE laps < 28 AND grid < 9 AND rider = "jeremy mcwilliams"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_98 (total VARCHAR, silver VARCHAR, bronze VARCHAR, nation VARCHAR) ### Question: How many totals have a Bronze smaller than 3, a Nation of zimbabwe, and a Silver smaller than 6? ### Answer: SELECT COUNT(total) FROM table_name_98 WHERE bronze < 3 AND nation = "zimbabwe" AND silver < 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_65 (week INTEGER, result VARCHAR) ### Question: In what Week was the Result W 24-17? ### Answer: SELECT MAX(week) FROM table_name_65 WHERE result = "w 24-17"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11244302_1 (time_slot__est_ VARCHAR, rating VARCHAR) ### Question: What time slots have a 6.3 rating ### Answer: SELECT time_slot__est_ FROM table_11244302_1 WHERE rating = "6.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_23265433_2 (week VARCHAR, transition VARCHAR) ### Question: Name the week for steve toll ### Answer: SELECT week FROM table_23265433_2 WHERE transition = "Steve Toll"
Below is an context that describes a sql 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 (to_par VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR) ### Question: What is the to par for Leonard Thompson from the United States with a place of T6? ### Answer: SELECT to_par FROM table_name_3 WHERE place = "t6" AND country = "united states" AND player = "leonard thompson"
Below is an context that describes a sql 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 (overall VARCHAR, position VARCHAR) ### Question: What was the overall draft pick for the player selected for the tight end position? ### Answer: SELECT overall FROM table_name_72 WHERE position = "tight end"
Below is an context that describes a sql 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 (res VARCHAR, time VARCHAR) ### Question: In the round that lasted 0:20, what was the Res? ### Answer: SELECT res FROM table_name_1 WHERE time = "0:20"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_51 (country VARCHAR, date VARCHAR, sign VARCHAR) ### Question: Name the country for the 9th and sign of g e ### Answer: SELECT country FROM table_name_51 WHERE date = "9th" AND sign = "g e"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_99 (title VARCHAR, year VARCHAR, distributor_s_ VARCHAR) ### Question: What is the name of the movie from 1997 distributed from HBO Pictures? ### Answer: SELECT title FROM table_name_99 WHERE year = "1997" AND distributor_s_ = "hbo pictures"
Below is an context that describes a sql 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 (round2 INTEGER, round5 VARCHAR, round4 VARCHAR) ### Question: what is the lowest round2 when round5 is 71 and round4 is more than 64? ### Answer: SELECT MIN(round2) FROM table_name_88 WHERE round5 = 71 AND round4 > 64
Below is an context that describes a sql 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 (fleet VARCHAR, number VARCHAR) ### Question: what fleet is associated with the number L4? ### Answer: SELECT fleet FROM table_name_61 WHERE number = "l4"
Below is an context that describes a sql 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 (part_3 VARCHAR, class VARCHAR) ### Question: Which part three is class 4? ### Answer: SELECT part_3 FROM table_name_4 WHERE class = "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_15 (to_par VARCHAR, player VARCHAR) ### Question: What did Ernie Els par? ### Answer: SELECT to_par FROM table_name_15 WHERE player = "ernie els"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2668336_17 (result VARCHAR, candidates VARCHAR) ### Question: Candiates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% had what result? ### Answer: SELECT result FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.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_5 (lower_index_kcal__nm_3 INTEGER, lower_index_mj__nm_3 VARCHAR, upper_index_kcal__nm_3 VARCHAR) ### Question: What is the Lower index Kcal/ Nm 3 entry, for the row with entries of an Upper index Kcal/ Nm 3 smaller than 19,376, and a Lower index MJ/ Nm 3 of 74.54? ### Answer: SELECT AVG(lower_index_kcal__nm_3) FROM table_name_5 WHERE lower_index_mj__nm_3 = 74.54 AND upper_index_kcal__nm_3 < 19 OFFSET 376
Below is an context that describes a sql 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 (points INTEGER, position VARCHAR, lost VARCHAR) ### Question: Which Points is the highest one that has a Position of 1, and a Lost smaller than 0? ### Answer: SELECT MAX(points) FROM table_name_60 WHERE position = 1 AND lost < 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_49 (result VARCHAR, goal VARCHAR) ### Question: What was the result of the game with 9 goals? ### Answer: SELECT result FROM table_name_49 WHERE goal = 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 song (song_name VARCHAR, languages VARCHAR) ### Question: Find the names of all English songs. ### Answer: SELECT song_name FROM song WHERE languages = "english"
Below is an context that describes a sql 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 (location VARCHAR, aircraft VARCHAR) ### Question: What was the location of the Ju-52 aircraft? ### Answer: SELECT location FROM table_name_61 WHERE aircraft = "ju-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_22355_68 (rank INTEGER, gold VARCHAR) ### Question: Name the most rank for 2 gold ### Answer: SELECT MIN(rank) FROM table_22355_68 WHERE gold = 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_38 (directed_by VARCHAR, production_code VARCHAR) ### Question: who was the director of the episode with production code ad1a26? ### Answer: SELECT directed_by FROM table_name_38 WHERE production_code = "ad1a26"
Below is an context that describes a sql 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 (school_club_team VARCHAR, round INTEGER) ### Question: Which School/Club Team did not make it to round 2? ### Answer: SELECT school_club_team FROM table_name_5 WHERE 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_19329117_1 (version VARCHAR, official_name VARCHAR) ### Question: What's the version of AutoCAD Architectural Desktop 3? ### Answer: SELECT version FROM table_19329117_1 WHERE official_name = "AutoCAD Architectural Desktop 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_20754016_2 (height__cm_ VARCHAR, country VARCHAR) ### Question: How tall is the contestant from Guatemala? ### Answer: SELECT height__cm_ FROM table_20754016_2 WHERE country = "Guatemala"
Below is an context that describes 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_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_status_code VARCHAR) ### Question: Show the names of customers who have both an order in completed status and an order in part status. ### Answer: SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Completed' INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Part'
Below is an context that describes a sql 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 (candidate_name VARCHAR, list VARCHAR, gender VARCHAR, votes VARCHAR, rank VARCHAR) ### Question: Which candidate has more than 279 votes, rank less than 50, is ♀ and al-ahd? ### Answer: SELECT candidate_name FROM table_name_61 WHERE votes > 279 AND rank < 50 AND gender = "♀" AND list = "al-ahd"
Below is an context that describes a sql 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 (rank VARCHAR, total VARCHAR, nation VARCHAR) ### Question: Spain with a total of more than 4 medals is in what rank? ### Answer: SELECT rank FROM table_name_15 WHERE total > 4 AND nation = "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_91 (friday_shukra__venus_ VARCHAR, tuesday_mangala__mars_ VARCHAR) ### Question: What is the result of Friday that's တ္ၚဲ အၚါ [ŋoa əŋɛ̀a] from sans. aṅgāra on Tuesday? ### Answer: SELECT friday_shukra__venus_ FROM table_name_91 WHERE tuesday_mangala__mars_ = "တ္ၚဲ အၚါ [ŋoa əŋɛ̀a] from sans. aṅgāra"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE ref_product_categories (unit_of_measure VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR) ### Question: Find the unit of measurement and product category code of product named "chervil". ### Answer: SELECT t2.unit_of_measure, t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "chervil"
Below is an context that describes a sql 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 (club VARCHAR, lost VARCHAR, tries_for VARCHAR) ### Question: What is the Club, when the value for Lost is 9, and when the value for Tries is 55? ### Answer: SELECT club FROM table_name_8 WHERE lost = "9" AND tries_for = "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_name_88 (venue VARCHAR, season VARCHAR) ### Question: What was the venue during the Season of 2010–11? ### Answer: SELECT venue FROM table_name_88 WHERE season = "2010–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_11 (draws INTEGER, club VARCHAR, wins VARCHAR) ### Question: What is the average number of draws for Mortlake club when they have less than 0 wins? ### Answer: SELECT AVG(draws) FROM table_name_11 WHERE club = "mortlake" AND wins < 0
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_87 (lead VARCHAR, season VARCHAR) ### Question: What is the Lead for the 1999–00 season? ### Answer: SELECT lead FROM table_name_87 WHERE season = "1999–00"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_37 (year INTEGER, finish VARCHAR, team VARCHAR) ### Question: Which Year has a Finish of 22, and a Team of swan? ### Answer: SELECT AVG(year) FROM table_name_37 WHERE finish = "22" AND team = "swan"
Below is an context that describes a sql 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 (hometown VARCHAR, player VARCHAR) ### Question: What's the hometown of thomas tyner? ### Answer: SELECT hometown FROM table_name_80 WHERE player = "thomas tyner"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_18047346_4 (_percentage_chg_2009_10 VARCHAR, passengers VARCHAR) ### Question: If the amount of passengers is 15,505,566, what is the %/chg. for 2009/10? ### Answer: SELECT _percentage_chg_2009_10 FROM table_18047346_4 WHERE passengers = "15,505,566"
Below is an context that describes a sql 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 (competition VARCHAR, score VARCHAR) ### Question: What was the competition for score of 3-0 ### Answer: SELECT competition FROM table_name_71 WHERE score = "3-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_30 (surface VARCHAR, tournament VARCHAR) ### Question: What type of surface did the tournament canada f9, markham have? ### Answer: SELECT surface FROM table_name_30 WHERE tournament = "canada f9, markham"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_38 (score VARCHAR, date VARCHAR) ### Question: What was the score of the game on June 1? ### Answer: SELECT score FROM table_name_38 WHERE date = "june 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_11318462_5 (open_2nd_viii VARCHAR, u15_3rd_iv VARCHAR) ### Question: how many open 2nd viii had u15 3rd iv being gt ### Answer: SELECT COUNT(open_2nd_viii) FROM table_11318462_5 WHERE u15_3rd_iv = "GT"
Below is an context that describes a sql 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 (tournament VARCHAR, surface VARCHAR) ### Question: Which tournament had a hard surface? ### Answer: SELECT tournament FROM table_name_22 WHERE 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_name_3 (tournament VARCHAR) ### Question: Which Tournament has a 2007 of 19–4? ### Answer: SELECT tournament FROM table_name_3 WHERE 2007 = "19–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_61 (qual VARCHAR, year VARCHAR) ### Question: What was Tony Bettenhausen's qualifying time in 1947? ### Answer: SELECT qual FROM table_name_61 WHERE year = "1947"
Below is an context that describes a sql 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 (leading_scorer VARCHAR, visitor VARCHAR, home VARCHAR) ### Question: Who was the leading scorer in the match when the Golden State Warriors were visiting the Dallas Mavericks? ### Answer: SELECT leading_scorer FROM table_name_43 WHERE visitor = "golden state warriors" AND home = "dallas mavericks"
Below is an context that describes a 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_22 (population__2011_ VARCHAR, settlement VARCHAR) ### Question: Name the population for kolut ### Answer: SELECT COUNT(population__2011_) FROM table_2562572_22 WHERE settlement = "Kolut"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR) ### Question: What is the home team score when the venue is Princes Park? ### Answer: SELECT home_team AS score FROM table_name_40 WHERE venue = "princes park"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_15869204_6 (score VARCHAR, game VARCHAR) ### Question: WHAT WAS THE SCORE FOR GAME 31? ### Answer: SELECT score FROM table_15869204_6 WHERE game = 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_10 (date_of_inauguration VARCHAR, age_at_inauguration VARCHAR) ### Question: What is the Date of inauguration of the President with an Age at inauguration of 73years, 262days? ### Answer: SELECT date_of_inauguration FROM table_name_10 WHERE age_at_inauguration = "73years, 262days"
Below is an context that describes a sql 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 (team_1 VARCHAR) ### Question: What shows for the 1st round when the team 1 was Lb Châteauroux (d2)? ### Answer: SELECT 1 AS st_round FROM table_name_33 WHERE team_1 = "lb châteauroux (d2)"
Below is an context that describes a sql 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 (city VARCHAR, past_season VARCHAR) ### Question: what city has a past season of n/a? ### Answer: SELECT city FROM table_name_43 WHERE past_season = "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 Drama_Workshop_Groups (Store_Name VARCHAR) ### Question: Show all the Store_Name of drama workshop groups. ### Answer: SELECT Store_Name FROM Drama_Workshop_Groups
Below is an context that describes a sql 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 (wins INTEGER, position INTEGER) ### Question: What is the highest number of wins of the team with a position less than 1? ### Answer: SELECT MAX(wins) FROM table_name_8 WHERE position < 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_1 (transfer_fee VARCHAR, transfer_window VARCHAR) ### Question: What was the transfer fee when winter was the transfer window? ### Answer: SELECT transfer_fee FROM table_name_1 WHERE transfer_window = "winter"
Below is an context that describes a sql 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 (boiler_pressure VARCHAR, name VARCHAR) ### Question: What is the boiler pressure for the Hesperus model? ### Answer: SELECT boiler_pressure FROM table_name_58 WHERE name = "hesperus"
Below is an context that describes a sql 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 (conceded INTEGER, played INTEGER) ### Question: Please name the highest Conceded which has a Played smaller than 5? ### Answer: SELECT MAX(conceded) FROM table_name_4 WHERE played < 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_66 (school_colors VARCHAR, main_campus_location VARCHAR) ### Question: What are the school colors for the college whose main campus is overland park? ### Answer: SELECT school_colors FROM table_name_66 WHERE main_campus_location = "overland park"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2414_1 (reference VARCHAR, violas VARCHAR, author VARCHAR) ### Question: What reference, written by Nelson Riddle, suggests 2 violas? ### Answer: SELECT reference FROM table_2414_1 WHERE violas = 2 AND author = "Nelson Riddle"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE school (Enrollment VARCHAR, Denomination VARCHAR) ### Question: What are the enrollments of schools whose denomination is not "Catholic"? ### Answer: SELECT Enrollment FROM school WHERE Denomination <> "Catholic"
Below is an context that describes a sql 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 (event VARCHAR, result VARCHAR) ### Question: What event has the result of 7th (5-6)? ### Answer: SELECT event FROM table_name_82 WHERE result = "7th (5-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_82 (frequency VARCHAR, destination VARCHAR) ### Question: What is the frequency of the train to Bangalore? ### Answer: SELECT frequency FROM table_name_82 WHERE destination = "bangalore"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_21 (class VARCHAR, facility_id VARCHAR) ### Question: What is the class of facility ID 150935? ### Answer: SELECT class FROM table_name_21 WHERE facility_id = 150935
Below is an context that describes a sql 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 (pick__number VARCHAR, overall VARCHAR, college VARCHAR) ### Question: What is College of Ohio State's pick number with an overall lower than 145? ### Answer: SELECT pick__number FROM table_name_42 WHERE overall < 145 AND college = "ohio 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 follows (f1 VARCHAR, f2 VARCHAR); CREATE TABLE user_profiles (uid VARCHAR, name VARCHAR) ### Question: Find the id of users who are followed by Mary or Susan. ### Answer: SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Mary" OR T1.name = "Susan"
Below is an context that describes a sql 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 (attendance INTEGER, date VARCHAR) ### Question: How many people attended the game on February 3, 2008? ### Answer: SELECT SUM(attendance) FROM table_name_34 WHERE date = "february 3, 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_89 (opponent VARCHAR, week VARCHAR) ### Question: Who were the opponents on Week 8? ### Answer: SELECT opponent FROM table_name_89 WHERE week = 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_17155250_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) ### Question: What name was used for nomination for the film with an original title of "The Black Tulip"? ### Answer: SELECT film_title_used_in_nomination FROM table_17155250_1 WHERE original_title = "The Black Tulip"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_13643320_2 (results VARCHAR, gtu_winning_team VARCHAR) ### Question: How many different results came out of the round in which #98 All American Racers became the GTU winning team? ### Answer: SELECT COUNT(results) FROM table_13643320_2 WHERE gtu_winning_team = "#98 All American Racers"
Below is an context that describes a sql 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 (earnings_per_share__p_ VARCHAR, year_ended VARCHAR) ### Question: What is the year 2007 earnings per share? ### Answer: SELECT earnings_per_share__p_ FROM table_name_47 WHERE year_ended = "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_20573232_1 (nader_percentage VARCHAR, obama_percentage VARCHAR) ### Question: What is Nader's percentage when Obama is 44.6%? ### Answer: SELECT nader_percentage FROM table_20573232_1 WHERE obama_percentage = "44.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_5 (meet VARCHAR, time VARCHAR) ### Question: What Meet has a Time of 1:04.84? ### Answer: SELECT meet FROM table_name_5 WHERE time = "1:04.84"
Below is an context that describes a sql 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 (venue VARCHAR, date VARCHAR) ### Question: Where was the game held on August 20, 2004? ### Answer: SELECT venue FROM table_name_78 WHERE date = "august 20, 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_27987767_2 (points_margin VARCHAR, winners VARCHAR) ### Question: how many total number of points margin when brive is the winners ### Answer: SELECT COUNT(points_margin) FROM table_27987767_2 WHERE winners = "Brive"
Below is an context that describes a sql 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 (actor VARCHAR, number_of_episodes VARCHAR) ### Question: What is Actor, when Number Of Episodes is "117 Episodes"? ### Answer: SELECT actor FROM table_name_88 WHERE number_of_episodes = "117 episodes"
Below is an context that describes a sql 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 (against INTEGER, draws INTEGER) ### Question: What's the most against when the draws are more than 0? ### Answer: SELECT MAX(against) FROM table_name_43 WHERE 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_name_62 (overall INTEGER, position VARCHAR, college VARCHAR) ### Question: What is the College of Rice's highest overall for the guard position? ### Answer: SELECT MAX(overall) FROM table_name_62 WHERE position = "guard" AND college = "rice"
Below is an context that describes a sql 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 (score VARCHAR, date VARCHAR) ### Question: Name the score for april 28 ### Answer: SELECT score FROM table_name_66 WHERE date = "april 28"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_26914076_4 (teleplay_by VARCHAR, directed_by VARCHAR) ### Question: Who wrote the teleplay for the episode directed by Tim Robbins? ### Answer: SELECT teleplay_by FROM table_26914076_4 WHERE directed_by = "Tim Robbins"
Below is an context that describes a sql 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 (code__iata_icao_ VARCHAR, rank VARCHAR) ### Question: What is the code for rank 10? ### Answer: SELECT code__iata_icao_ FROM table_name_18 WHERE rank = 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 device (Carrier VARCHAR, Software_Platform VARCHAR) ### Question: What are the carriers of devices whose software platforms are not "Android"? ### Answer: SELECT Carrier FROM device WHERE Software_Platform <> 'Android'
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_10360656_1 (player_name VARCHAR, position VARCHAR) ### Question: What was the name of the quarterback drafted? ### Answer: SELECT player_name FROM table_10360656_1 WHERE position = "Quarterback"
Below is an context that describes a sql 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 (location VARCHAR, original_code VARCHAR) ### Question: What is the location of the original code for victorian rules? ### Answer: SELECT location FROM table_name_64 WHERE original_code = "victorian rules"
Below is an context that describes a sql 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 (away_team VARCHAR, home_team VARCHAR) ### Question: Who was Melbourne's away team opponent? ### Answer: SELECT away_team FROM table_name_48 WHERE home_team = "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 Employees (role_code VARCHAR) ### Question: What is the role code with the largest number of employees? ### Answer: SELECT role_code FROM Employees GROUP BY role_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_33 (race_leader VARCHAR, stage VARCHAR) ### Question: Which race Leader has a Stage of 7? ### Answer: SELECT race_leader FROM table_name_33 WHERE stage = "7"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_88 (downstream VARCHAR, upstream VARCHAR) ### Question: What is Downstream, when Upstream is "384 kbit"? ### Answer: SELECT downstream FROM table_name_88 WHERE upstream = "384 kbit"
Below is an context that describes a sql 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 (draws INTEGER, wins VARCHAR) ### Question: Which draws have an average of 14 wins? ### Answer: SELECT AVG(draws) FROM table_name_89 WHERE wins = 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_12962773_15 (player VARCHAR, no VARCHAR) ### Question: What player is number 6? ### Answer: SELECT player FROM table_12962773_15 WHERE no = 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_33 (team VARCHAR, laps VARCHAR, time_retired VARCHAR) ### Question: Which Team has Laps of 100, and a Time/Retired of +8.6 secs? ### Answer: SELECT team FROM table_name_33 WHERE laps = 100 AND time_retired = "+8.6 secs"
Below is an context that describes a sql 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 (call_sign VARCHAR, class VARCHAR, frequency_mhz VARCHAR) ### Question: Which call sign has a Class of A, and a Frequency MHz of 88.7? ### Answer: SELECT call_sign FROM table_name_1 WHERE class = "a" AND frequency_mhz = 88.7
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_62 (entrant VARCHAR, chassis VARCHAR) ### Question: Which entrant has a Mclaren m7c Chassis? ### Answer: SELECT entrant FROM table_name_62 WHERE chassis = "mclaren m7c"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_32 (venue VARCHAR, opponents VARCHAR) ### Question: What venue held that game against the Queens Park Rangers? ### Answer: SELECT venue FROM table_name_32 WHERE opponents = "queens park rangers"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_22673872_1 (track VARCHAR, race_name VARCHAR) ### Question: What is the name of the track for the International 500 mile Sweepstakes race? ### Answer: SELECT track FROM table_22673872_1 WHERE race_name = "International 500 Mile Sweepstakes"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_98 (status VARCHAR, against INTEGER) ### Question: Name the Status with an Against larger than 15? ### Answer: SELECT status FROM table_name_98 WHERE against > 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_54 (bronze VARCHAR, total VARCHAR, nation VARCHAR, gold VARCHAR, silver VARCHAR) ### Question: How much Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Nation of germany, and a Total larger than 11? ### Answer: SELECT COUNT(bronze) FROM table_name_54 WHERE gold > 1 AND silver < 3 AND nation = "germany" AND total > 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_20174050_1 (format VARCHAR, title VARCHAR) ### Question: What's the format of the audio book titled The Mind Robber? ### Answer: SELECT format FROM table_20174050_1 WHERE title = "The Mind Robber"
Below is an context that describes a sql 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 (date VARCHAR, score VARCHAR) ### Question: What is the Date of the Competition with a Score of 2–0? ### Answer: SELECT date FROM table_name_96 WHERE score = "2–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_23987362_2 (world_record VARCHAR) ### Question: How many of 3:26.00 have a championship record? ### Answer: SELECT COUNT(3) AS :2600 FROM table_23987362_2 WHERE world_record = "Championship record"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_23274514_4 (high_points VARCHAR, team VARCHAR) ### Question: Who tied in the highest point scorer when playing against Phoenix? ### Answer: SELECT high_points FROM table_23274514_4 WHERE team = "Phoenix"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_28688313_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR) ### Question: Who wrote the episode with 7.52 million US viewers? ### Answer: SELECT written_by FROM table_28688313_1 WHERE us_viewers__in_millions_ = "7.52"