instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: How much Lost has Points larger than 15, and a Name of ev pegnitz? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (lost VARCHAR, points VARCHAR, name VARCHAR) | SELECT COUNT(lost) FROM table_name_23 WHERE points > 15 AND name = "ev pegnitz" |
Write a SQL query that answers the following question: what is the english translation when the artist is ann christine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (english_translation VARCHAR, artist VARCHAR) | SELECT english_translation FROM table_name_10 WHERE artist = "ann christine" |
Write a SQL query that answers the following question: What player was picked earlier than 126 by the Houston Oilers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (player VARCHAR, pick VARCHAR, team VARCHAR) | SELECT player FROM table_name_3 WHERE pick < 126 AND team = "houston oilers" |
Write a SQL query that answers the following question: What college was picked later than 122 by the Boston Patriots? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (college VARCHAR, pick VARCHAR, team VARCHAR) | SELECT college FROM table_name_88 WHERE pick > 122 AND team = "boston patriots" |
Write a SQL query that answers the following question: what is the to par for geoff ogilvy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_65 WHERE player = "geoff ogilvy" |
Write a SQL query that answers the following question: what is the country for geoff ogilvy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_88 WHERE player = "geoff ogilvy" |
Write a SQL query that answers the following question: what is the to par for retief goosen? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_93 WHERE player = "retief goosen" |
Write a SQL query that answers the following question: how many times is the player jim furyk? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (total VARCHAR, player VARCHAR) | SELECT COUNT(total) FROM table_name_55 WHERE player = "jim furyk" |
Write a SQL query that answers the following question: What is the lowest lane in which an athlete got a time larger than 20.75 and a react smaller than 0.166? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (lane INTEGER, time VARCHAR, react VARCHAR) | SELECT MIN(lane) FROM table_name_50 WHERE time > 20.75 AND react < 0.166 |
Write a SQL query that answers the following question: What is Christian Malcolm´s highest react when his time was below 20.58? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (react INTEGER, time VARCHAR, athlete VARCHAR) | SELECT MAX(react) FROM table_name_72 WHERE time < 20.58 AND athlete = "christian malcolm" |
Write a SQL query that answers the following question: what is the position when the year [A} is after 2011 and the pick is 28? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (position VARCHAR, pick VARCHAR, year_ VARCHAR, a_ VARCHAR) | SELECT position FROM table_name_67 WHERE year_[a_] > 2011 AND pick = "28" |
Write a SQL query that answers the following question: Who is the player when the pick is 22 and the year [A] is after 1979? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (player_name VARCHAR, pick VARCHAR, year_ VARCHAR, a_ VARCHAR) | SELECT player_name FROM table_name_5 WHERE pick = "22" AND year_[a_] > 1979 |
Write a SQL query that answers the following question: who is the player when the pick is 15 and the year [A] is 2000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (player_name VARCHAR, pick VARCHAR, year_ VARCHAR, a_ VARCHAR) | SELECT player_name FROM table_name_75 WHERE pick = "15" AND year_[a_] = 2000 |
Write a SQL query that answers the following question: Which country was the player from who scored 66-72-70=207? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_45 WHERE score = 66 - 72 - 70 = 207 |
Write a SQL query that answers the following question: What place was the player who scored 70-69-68=207? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_6 WHERE score = 70 - 69 - 68 = 207 |
Write a SQL query that answers the following question: What country was the player in t10 place with a score of 66-72-70=207? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (country VARCHAR, place VARCHAR, score VARCHAR) | SELECT country FROM table_name_12 WHERE place = "t10" AND score = 66 - 72 - 70 = 207 |
Write a SQL query that answers the following question: What is the to par of United States' Cristie Kerr? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (to_par VARCHAR, country VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_66 WHERE country = "united states" AND player = "cristie kerr" |
Write a SQL query that answers the following question: Who is the original artist of the 3:00 song? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (original_artist VARCHAR, length VARCHAR) | SELECT original_artist FROM table_name_87 WHERE length = "3:00" |
Write a SQL query that answers the following question: Which song lasts 3:34? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (song VARCHAR, length VARCHAR) | SELECT song FROM table_name_59 WHERE length = "3:34" |
Write a SQL query that answers the following question: Which song lasts 4:08? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (song VARCHAR, length VARCHAR) | SELECT song FROM table_name_86 WHERE length = "4:08" |
Write a SQL query that answers the following question: How many bronze medals for Romania when the silver count is more than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (bronze INTEGER, nation VARCHAR, silver VARCHAR) | SELECT AVG(bronze) FROM table_name_96 WHERE nation = "romania" AND silver > 1 |
Write a SQL query that answers the following question: Which manager had less than 287 losses, less than 80 wins, a win percentage of 0.296, and was employed in 1904? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (manager VARCHAR, wpct VARCHAR, years VARCHAR, losses VARCHAR, wins VARCHAR) | SELECT manager FROM table_name_96 WHERE losses < 287 AND wins < 80 AND years = "1904" AND wpct = 0.296 |
Write a SQL query that answers the following question: Which U.S. Hot has 13 as the U.S. R&B? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (us_hot_100 VARCHAR, us_r VARCHAR, b VARCHAR) | SELECT us_hot_100 FROM table_name_95 WHERE us_r & b = "13" |
Write a SQL query that answers the following question: What U.S. Rap has life in the concrete jungle as the album? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (us_rap VARCHAR, album VARCHAR) | SELECT us_rap FROM table_name_15 WHERE album = "life in the concrete jungle" |
Write a SQL query that answers the following question: What are the Notes of the Mill Built in the 19th Century? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (notes VARCHAR, built VARCHAR) | SELECT notes FROM table_name_27 WHERE built = "19th century" |
Write a SQL query that answers the following question: What is the Type of Mill at Molen de Stud? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (type VARCHAR, name_of_mill VARCHAR) | SELECT type FROM table_name_84 WHERE name_of_mill = "molen de stud" |
Write a SQL query that answers the following question: What is the Name of the Mill Built in 1802? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (name_of_mill VARCHAR, built VARCHAR) | SELECT name_of_mill FROM table_name_73 WHERE built = "1802" |
Write a SQL query that answers the following question: What is the Location of the Mill Built in the Early 19th Century? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (location VARCHAR, built VARCHAR) | SELECT location FROM table_name_50 WHERE built = "early 19th century" |
Write a SQL query that answers the following question: What was the record for the game played by the home team San Francisco 49ers and visitor Philadelphia Eagles? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (record VARCHAR, home VARCHAR, visitor VARCHAR) | SELECT record FROM table_name_58 WHERE home = "san francisco 49ers" AND visitor = "philadelphia eagles" |
Write a SQL query that answers the following question: What is the record for the game played on September 27? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_26 WHERE date = "september 27" |
Write a SQL query that answers the following question: What is the highest place of a song by Henri Dès that has fewer than 8 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (place INTEGER, artist VARCHAR, points VARCHAR) | SELECT MAX(place) FROM table_name_6 WHERE artist = "henri dès" AND points < 8 |
Write a SQL query that answers the following question: What team was 2 on November 22, 2008 when the result was 1-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (team_2 VARCHAR, date VARCHAR, result VARCHAR) | SELECT team_2 FROM table_name_82 WHERE date = "november 22, 2008" AND result = "1-0" |
Write a SQL query that answers the following question: What team was 2 when Tatung was team 1 at National Pei Men Senior High School? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (team_2 VARCHAR, team_1 VARCHAR, ground VARCHAR) | SELECT team_2 FROM table_name_32 WHERE team_1 = "tatung" AND ground = "national pei men senior high school" |
Write a SQL query that answers the following question: Where was the game played that has a result of 0-4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (ground VARCHAR, result VARCHAR) | SELECT ground FROM table_name_36 WHERE result = "0-4" |
Write a SQL query that answers the following question: What team is 2 when 1 is Taipower and the result is 0-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (team_2 VARCHAR, team_1 VARCHAR, result VARCHAR) | SELECT team_2 FROM table_name_90 WHERE team_1 = "taipower" AND result = "0-1" |
Write a SQL query that answers the following question: What team is 2 when the game result is 0-4 at Pailing Sport Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (team_2 VARCHAR, ground VARCHAR, result VARCHAR) | SELECT team_2 FROM table_name_32 WHERE ground = "pailing sport park" AND result = "0-4" |
Write a SQL query that answers the following question: What is the total point value when there are less than 12 draws, the rank is less than 17, and Philipp Kirkorov is the artist? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (points VARCHAR, place VARCHAR, draw VARCHAR, artist VARCHAR) | SELECT COUNT(points) FROM table_name_24 WHERE draw < 12 AND artist = "philipp kirkorov" AND place < 17 |
Write a SQL query that answers the following question: What is the total ranking when there are less than 16 draws, less than 1 point, and the English translation is in love with you? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (place INTEGER, points VARCHAR, draw VARCHAR, english_translation VARCHAR) | SELECT SUM(place) FROM table_name_22 WHERE draw < 16 AND english_translation = "in love with you" AND points < 1 |
Write a SQL query that answers the following question: What is the highest draw number when there are more than 31 points, a rank greater than 6, and the English translation is listen to me? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (draw INTEGER, english_translation VARCHAR, points VARCHAR, place VARCHAR) | SELECT MAX(draw) FROM table_name_83 WHERE points > 31 AND place > 6 AND english_translation = "listen to me" |
Write a SQL query that answers the following question: What was the population of Green County? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (population INTEGER, county VARCHAR) | SELECT MIN(population) FROM table_name_15 WHERE county = "green" |
Write a SQL query that answers the following question: What was the score of the game against Minnesota? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (score VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_69 WHERE opponent = "minnesota" |
Write a SQL query that answers the following question: What player had the high point on July 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (high_points VARCHAR, date VARCHAR) | SELECT high_points FROM table_name_21 WHERE date = "july 7" |
Write a SQL query that answers the following question: What's the format of the single, I Can't Stay? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (format VARCHAR, single VARCHAR) | SELECT format FROM table_name_6 WHERE single = "i can't stay" |
Write a SQL query that answers the following question: What's the Backed after 2008 with a label of Wild World? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (backed_with VARCHAR, record_label VARCHAR, date VARCHAR) | SELECT backed_with FROM table_name_24 WHERE record_label = "wild world" AND date > 2008 |
Write a SQL query that answers the following question: What's the date for Details of 1000 copies? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (date INTEGER, other_details VARCHAR) | SELECT MIN(date) FROM table_name_74 WHERE other_details = "1000 copies" |
Write a SQL query that answers the following question: What nation has paavo nurmi as the athlete, with a medal count less than 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (nation VARCHAR, athlete VARCHAR, medal_count VARCHAR) | SELECT nation FROM table_name_62 WHERE athlete = "paavo nurmi" AND medal_count < 12 |
Write a SQL query that answers the following question: Which sport has 17 as the medal count? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (sport VARCHAR, medal_count VARCHAR) | SELECT sport FROM table_name_4 WHERE medal_count = 17 |
Write a SQL query that answers the following question: What record medal event has athletics as the sport, with robert garrett as the athlete, and a medal count less than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (record_medal_event VARCHAR, medal_count VARCHAR, sport VARCHAR, athlete VARCHAR) | SELECT record_medal_event FROM table_name_33 WHERE sport = "athletics" AND athlete = "robert garrett" AND medal_count < 3 |
Write a SQL query that answers the following question: What is the Opponent of the game in Week 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_21 WHERE week = 3 |
Write a SQL query that answers the following question: What is the Attendance of the game on December 12, 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_84 WHERE date = "december 12, 2004" |
Write a SQL query that answers the following question: What is the Attendance of the game against Jacksonville Jaguars? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (attendance VARCHAR, opponent VARCHAR) | SELECT attendance FROM table_name_53 WHERE opponent = "jacksonville jaguars" |
Write a SQL query that answers the following question: Which Score has a Money ( £ ) of 90,400, and a Country of south africa, and a Player of thomas aiken? Question 1 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, money___£__ VARCHAR, country VARCHAR) | SELECT score FROM table_name_38 WHERE money___£__ = "90,400" AND country = "south africa" AND player = "thomas aiken" |
Write a SQL query that answers the following question: How much Money( £ )australia has ? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (money___£__ VARCHAR, country VARCHAR) | SELECT money___£__ FROM table_name_11 WHERE country = "australia" |
Write a SQL query that answers the following question: Count the Money ( £ ) of south africa with a To par of +1, and a Player of ernie els? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (money___£__ VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR) | SELECT money___£__ FROM table_name_50 WHERE country = "south africa" AND to_par = "+1" AND player = "ernie els" |
Write a SQL query that answers the following question: Where has a Player of tom watson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_22 WHERE player = "tom watson" |
Write a SQL query that answers the following question: Which Score has a To par of +1 in sweden? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (score VARCHAR, to_par VARCHAR, country VARCHAR) | SELECT score FROM table_name_67 WHERE to_par = "+1" AND country = "sweden" |
Write a SQL query that answers the following question: Which To par is of thomas aiken? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_77 WHERE player = "thomas aiken" |
Write a SQL query that answers the following question: What is the average expenditures on R&D for Croatia after 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (_ppp__ VARCHAR, d__billions_of_us$_ VARCHAR, expenditures_on_r INTEGER, country_region VARCHAR, year VARCHAR) | SELECT AVG(expenditures_on_r) & d__billions_of_us$_, _ppp__ FROM table_name_32 WHERE country_region = "croatia" AND year > 2007 |
Write a SQL query that answers the following question: What is the lowest expenditures on R&D for Poland after 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (_ppp__ VARCHAR, d__billions_of_us$_ VARCHAR, expenditures_on_r INTEGER, country_region VARCHAR, year VARCHAR) | SELECT MIN(expenditures_on_r) & d__billions_of_us$_, _ppp__ FROM table_name_94 WHERE country_region = "poland" AND year > 2011 |
Write a SQL query that answers the following question: What is the Opposition in the First Round of the UEFA Cup with a Score of 3–1 (h), 2–0 (a)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (opposition VARCHAR, score VARCHAR, round VARCHAR, competition VARCHAR) | SELECT opposition FROM table_name_66 WHERE round = "first round" AND competition = "uefa cup" AND score = "3–1 (h), 2–0 (a)" |
Write a SQL query that answers the following question: What is the Season of the game with a Score of 0–2 (a), 3–1 (h)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (season VARCHAR, score VARCHAR) | SELECT season FROM table_name_24 WHERE score = "0–2 (a), 3–1 (h)" |
Write a SQL query that answers the following question: Which Location has a Year Joined of 1966, and a Previous Conference of noble county, and a School of wawaka? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (location VARCHAR, school VARCHAR, year_joined VARCHAR, previous_conference VARCHAR) | SELECT location FROM table_name_83 WHERE year_joined = 1966 AND previous_conference = "noble county" AND school = "wawaka" |
Write a SQL query that answers the following question: How much Year Left has a Location of howe? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (year_left INTEGER, location VARCHAR) | SELECT SUM(year_left) FROM table_name_13 WHERE location = "howe" |
Write a SQL query that answers the following question: Which School has a Year Left of 1966, and a Mascot of indians? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (school VARCHAR, year_left VARCHAR, mascot VARCHAR) | SELECT school FROM table_name_8 WHERE year_left = 1966 AND mascot = "indians" |
Write a SQL query that answers the following question: Who was the Elevator of Giacomo Colonna? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (elevator VARCHAR, elector VARCHAR) | SELECT elevator FROM table_name_21 WHERE elector = "giacomo colonna" |
Write a SQL query that answers the following question: What is the date of elevation for the Cardinal elevated by Nicholas III to the title of Cardinal-Deacon of S. Eustachio? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (elevated VARCHAR, elevator VARCHAR, cardinalatial_order_and_title VARCHAR) | SELECT elevated FROM table_name_7 WHERE elevator = "nicholas iii" AND cardinalatial_order_and_title = "cardinal-deacon of s. eustachio" |
Write a SQL query that answers the following question: What was the date of elevation for the cardinal given the order and title of Cardinal-Priest of S. Pudenziana? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (elevated VARCHAR, cardinalatial_order_and_title VARCHAR) | SELECT elevated FROM table_name_91 WHERE cardinalatial_order_and_title = "cardinal-priest of s. pudenziana" |
Write a SQL query that answers the following question: What are the games behind for the Oklahoma City Thunder division? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (games_behind__gb_ VARCHAR, division__div_ VARCHAR) | SELECT games_behind__gb_ FROM table_name_49 WHERE division__div_ = "oklahoma city thunder" |
Write a SQL query that answers the following question: What is the highest elevation of a place where the lowest point is the Allaine River, National border? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (highest_elevation VARCHAR, lowest_point VARCHAR) | SELECT highest_elevation FROM table_name_93 WHERE lowest_point = "allaine river, national border" |
Write a SQL query that answers the following question: What is the lowest elevation value whose highest point is Mont Raimeux? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (lowest_elevation VARCHAR, highest_point VARCHAR) | SELECT lowest_elevation FROM table_name_62 WHERE highest_point = "mont raimeux" |
Write a SQL query that answers the following question: What rank is Vaud with the lowest point is Lake Geneva? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (rank INTEGER, lowest_point VARCHAR, canton VARCHAR) | SELECT SUM(rank) FROM table_name_19 WHERE lowest_point = "lake geneva" AND canton = "vaud" |
Write a SQL query that answers the following question: Wich rank is given to the Canton of Schaffhausen? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (rank INTEGER, canton VARCHAR) | SELECT SUM(rank) FROM table_name_4 WHERE canton = "schaffhausen" |
Write a SQL query that answers the following question: What is the highest elevation for the highest point of Schnebelhorn? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (highest_elevation VARCHAR, highest_point VARCHAR) | SELECT highest_elevation FROM table_name_7 WHERE highest_point = "schnebelhorn" |
Write a SQL query that answers the following question: What is the Canton of Vaud's highest point? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (highest_point VARCHAR, canton VARCHAR) | SELECT highest_point FROM table_name_85 WHERE canton = "vaud" |
Write a SQL query that answers the following question: What type of ship is a Kobben class vessel that has been in service longer than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (type VARCHAR, in_service VARCHAR, vessel VARCHAR) | SELECT type FROM table_name_18 WHERE in_service > 2 AND vessel = "kobben class" |
Write a SQL query that answers the following question: What is the unit for a submarine type ship from Norway? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (unit VARCHAR, type VARCHAR, origin VARCHAR) | SELECT unit FROM table_name_74 WHERE type = "submarine" AND origin = "norway" |
Write a SQL query that answers the following question: Who was the opponent with a 32-25 record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_50 WHERE record = "32-25" |
Write a SQL query that answers the following question: What is the location/ attendance for a 35-28 record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_name_4 WHERE record = "35-28" |
Write a SQL query that answers the following question: What is the latest year when Neal Baer was a nominee, and the result was nominated? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (year INTEGER, result VARCHAR, nominee_s_ VARCHAR) | SELECT MAX(year) FROM table_name_38 WHERE result = "nominated" AND nominee_s_ = "neal baer" |
Write a SQL query that answers the following question: That is the total year that Neal Baer is a nominee? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (year INTEGER, nominee_s_ VARCHAR) | SELECT SUM(year) FROM table_name_91 WHERE nominee_s_ = "neal baer" |
Write a SQL query that answers the following question: For what episode was the nominee (s) Walon Green, Joe Sachs nominated as a result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (episode VARCHAR, result VARCHAR, nominee_s_ VARCHAR) | SELECT episode FROM table_name_52 WHERE result = "nominated" AND nominee_s_ = "walon green, joe sachs" |
Write a SQL query that answers the following question: Nominee Neal Baer had what result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (result VARCHAR, nominee_s_ VARCHAR) | SELECT result FROM table_name_23 WHERE nominee_s_ = "neal baer" |
Write a SQL query that answers the following question: What episode after 1998 had John Wells as the nominee? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (episode VARCHAR, year VARCHAR, nominee_s_ VARCHAR) | SELECT episode FROM table_name_25 WHERE year > 1998 AND nominee_s_ = "john wells" |
Write a SQL query that answers the following question: Who has the world record of 153kg in the clean & jerk? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (world_record VARCHAR) | SELECT 153 AS kg FROM table_name_27 WHERE world_record = "clean & jerk" |
Write a SQL query that answers the following question: What's the release date for the processor spec number SLBEQ(d0)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (release_date VARCHAR, sspec_number VARCHAR) | SELECT release_date FROM table_name_29 WHERE sspec_number = "slbeq(d0)" |
Write a SQL query that answers the following question: What's the release date of model number CORE I7-940? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (release_date VARCHAR, model_number VARCHAR) | SELECT release_date FROM table_name_27 WHERE model_number = "core i7-940" |
Write a SQL query that answers the following question: What's the release price of the processor with the part number bx80601975at80601002274aa, and has 1 × 6.4 gt/s qpi I/O? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (release_price___usd__ VARCHAR, i_o_bus VARCHAR, part_number_s_ VARCHAR) | SELECT release_price___usd__ FROM table_name_12 WHERE i_o_bus = "1 × 6.4 gt/s qpi" AND part_number_s_ = "bx80601975at80601002274aa" |
Write a SQL query that answers the following question: What's the release price of a processor that has a frequency of 3.2 ghz and 1 × 6.4 gt/s qpi I/O? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (release_price___usd__ VARCHAR, frequency VARCHAR, i_o_bus VARCHAR) | SELECT release_price___usd__ FROM table_name_76 WHERE frequency = "3.2 ghz" AND i_o_bus = "1 × 6.4 gt/s qpi" |
Write a SQL query that answers the following question: What is the number of AIDS Orphans as % of Orphans when the Double (AIDS Related) number is 41,000, and the Paternal (Total) is larger than 442,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (aids_orphans_as__percentage_of_orphans INTEGER, double__aids_related_ VARCHAR, paternal__total_ VARCHAR) | SELECT SUM(aids_orphans_as__percentage_of_orphans) FROM table_name_41 WHERE double__aids_related_ = "41,000" AND paternal__total_ > 442 OFFSET 000 |
Write a SQL query that answers the following question: What is the Total Orphans number when the number of Total Orphans (AIDS Related) is < 100, and the Maternal (Total) is smaller than 31,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (total_orphans__total_ INTEGER, total_orphans__aids_related_ VARCHAR, maternal__total_ VARCHAR) | SELECT MIN(total_orphans__total_) FROM table_name_66 WHERE total_orphans__aids_related_ = "< 100" AND maternal__total_ < 31 OFFSET 000 |
Write a SQL query that answers the following question: What's the term start date for Meretz? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (term_start VARCHAR, party VARCHAR) | SELECT term_start FROM table_name_94 WHERE party = "meretz" |
Write a SQL query that answers the following question: How many clubs are involved when the clubs remaining are 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (clubs_involved INTEGER, clubs_remaining VARCHAR) | SELECT SUM(clubs_involved) FROM table_name_88 WHERE clubs_remaining = 2 |
Write a SQL query that answers the following question: How many new entries when the leagues entering in the round are tff third league & turkish regional amateur league? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (new_entries_this_round VARCHAR, leagues_entering_at_this_round VARCHAR) | SELECT new_entries_this_round FROM table_name_87 WHERE leagues_entering_at_this_round = "tff third league & turkish regional amateur league" |
Write a SQL query that answers the following question: What is the number of clubs remaining in the second round? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (clubs_remaining INTEGER, round VARCHAR) | SELECT MIN(clubs_remaining) FROM table_name_65 WHERE round = "second round" |
Write a SQL query that answers the following question: Which round has 4 clubs involved? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (round VARCHAR, clubs_involved VARCHAR) | SELECT round FROM table_name_51 WHERE clubs_involved = 4 |
Write a SQL query that answers the following question: How many clubs are involved when there are 4 winners from the previous rounds and more than 4 clubs remaining? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (clubs_involved INTEGER, winners_from_previous_round VARCHAR, clubs_remaining VARCHAR) | SELECT MIN(clubs_involved) FROM table_name_59 WHERE winners_from_previous_round = "4" AND clubs_remaining > 4 |
Write a SQL query that answers the following question: What is the Away team at the game with a Score of 4 – 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (away_team VARCHAR, score VARCHAR) | SELECT away_team FROM table_name_29 WHERE score = "4 – 2" |
Write a SQL query that answers the following question: What is the Tie no of the game with an Attendance of 4,658? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (tie_no VARCHAR, attendance VARCHAR) | SELECT tie_no FROM table_name_34 WHERE attendance = "4,658" |
Write a SQL query that answers the following question: What is the Home team at the Lincoln City Away game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_80 WHERE away_team = "lincoln city" |
Write a SQL query that answers the following question: What is the Away team at the game with a Score of 1 – 0 and Attendance of 1,791? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (away_team VARCHAR, score VARCHAR, attendance VARCHAR) | SELECT away_team FROM table_name_4 WHERE score = "1 – 0" AND attendance = "1,791" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.