instruction
stringlengths
67
299
input
stringlengths
110
572
output
stringlengths
18
557
Write a SQL query that answers the following question: What was the result of the 2007-08 season for the city of Ferrara?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_33 (city VARCHAR)
SELECT 2007 AS _08_season FROM table_name_33 WHERE city = "ferrara"
Write a SQL query that answers the following question: When yen galagnara is the name what is the highest total days in the pbb house?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_19061741_1 (total_days_in_pbb_house INTEGER, name VARCHAR)
SELECT MAX(total_days_in_pbb_house) FROM table_19061741_1 WHERE name = "Yen Galagnara"
Write a SQL query that answers the following question: What was the issue price for the Trumpeter Swan set?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_44 (issue_price VARCHAR, theme VARCHAR)
SELECT issue_price FROM table_name_44 WHERE theme = "trumpeter swan"
Write a SQL query that answers the following question: Loss of finley (8-7) had what record?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_99 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_99 WHERE loss = "finley (8-7)"
Write a SQL query that answers the following question: Who is the away team when there are 15 ties?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_57 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_57 WHERE tie_no = "15"
Write a SQL query that answers the following question: Name the umbr of creators for flash of two worlds
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_19534677_1 (creators VARCHAR, volume_title VARCHAR)
SELECT COUNT(creators) FROM table_19534677_1 WHERE volume_title = "Flash of Two Worlds"
Write a SQL query that answers the following question: Which flight had the aircraft avro rj-100?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_28 (flight VARCHAR, aircraft VARCHAR)
SELECT flight FROM table_name_28 WHERE aircraft = "avro rj-100"
Write a SQL query that answers the following question: What is Detective Donald William Schneider's Cause of death?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_37 (cause_of_death VARCHAR, rank VARCHAR, name VARCHAR)
SELECT cause_of_death FROM table_name_37 WHERE rank = "detective" AND name = "donald william schneider"
Write a SQL query that answers the following question: Where is the orchestra when the year of recording is 1934?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_222198_1 (orchestra VARCHAR, year_of_recording VARCHAR)
SELECT orchestra FROM table_222198_1 WHERE year_of_recording = 1934
Write a SQL query that answers the following question: what's the minimum total with crop (kilotonnes) being s lupin
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1057262_2 (total INTEGER, crop__kilotonnes_ VARCHAR)
SELECT MIN(total) FROM table_1057262_2 WHERE crop__kilotonnes_ = "s Lupin"
Write a SQL query that answers the following question: Which Telugu తెలుగు has a Kannada ಕನ್ನಡ of chitra ಚಿತ್ತ?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_87 (telugu_తెలుగు VARCHAR, kannada_ಕನ್ನಡ VARCHAR)
SELECT telugu_తెలుగు FROM table_name_87 WHERE kannada_ಕನ್ನಡ = "chitra ಚಿತ್ತ"
Write a SQL query that answers the following question: what is the tournament when the score is 7-6(0), 6-3?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_48 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_48 WHERE score = "7-6(0), 6-3"
Write a SQL query that answers the following question: What is the crowd total at mcg?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_45 (crowd VARCHAR, venue VARCHAR)
SELECT COUNT(crowd) FROM table_name_45 WHERE venue = "mcg"
Write a SQL query that answers the following question: How many production codes are there for the episode that had 4.36 million u.s. viewers?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_28037619_2 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(production_code) FROM table_28037619_2 WHERE us_viewers__million_ = "4.36"
Write a SQL query that answers the following question: What is the highest score for the player with average of 30.00?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_28846752_12 (highest_score VARCHAR, average VARCHAR)
SELECT highest_score FROM table_28846752_12 WHERE average = "30.00"
Write a SQL query that answers the following question: Who had high rebounds when the date was march 25?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_27756314_10 (high_rebounds VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_27756314_10 WHERE date = "March 25"
Write a SQL query that answers the following question: When was the microprocessor with 1.65–1.7 v, a mult of 4.5×, and a slot 1 socket released?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_43 (release_date VARCHAR, socket VARCHAR, voltage VARCHAR, mult VARCHAR)
SELECT release_date FROM table_name_43 WHERE voltage = "1.65–1.7 v" AND mult = "4.5×" AND socket = "slot 1"
Write a SQL query that answers the following question: What type has the characters 廣利?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_48 (type VARCHAR, characters VARCHAR)
SELECT type FROM table_name_48 WHERE characters = "廣利"
Write a SQL query that answers the following question: What replica has the 5th position?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_82 (replica VARCHAR, position VARCHAR)
SELECT replica FROM table_name_82 WHERE position = "5th"
Write a SQL query that answers the following question: What is the money list rank for player Doug Barron?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_29504351_2 (money_list_rank INTEGER, player VARCHAR)
SELECT MAX(money_list_rank) FROM table_29504351_2 WHERE player = "Doug Barron"
Write a SQL query that answers the following question: for the rank of 8 and lane less than 3 what is the name?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_99 (name VARCHAR, lane VARCHAR, rank VARCHAR)
SELECT name FROM table_name_99 WHERE lane < 3 AND rank = 8
Write a SQL query that answers the following question: What was the region for Malartic with 159.31 km2?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_14 (region VARCHAR, name VARCHAR, area__km_2__ VARCHAR)
SELECT COUNT(region) FROM table_name_14 WHERE name = "malartic" AND area__km_2__ < 159.31
Write a SQL query that answers the following question: When was the game played against Southampton?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_29 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_29 WHERE opponent = "southampton"
Write a SQL query that answers the following question: what is the percent decline from peak population when the peak population (year) is 178320 (1960)?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_98 (percent_decline_from_peak_population VARCHAR, peak_population__year_ VARCHAR)
SELECT percent_decline_from_peak_population FROM table_name_98 WHERE peak_population__year_ = "178320 (1960)"
Write a SQL query that answers the following question: Where is David Frost from?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_38 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_38 WHERE player = "david frost"
Write a SQL query that answers the following question: What number in series was the episode written by Eric Gilliland?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_27987768_1 (no_in_series INTEGER, written_by VARCHAR)
SELECT MAX(no_in_series) FROM table_27987768_1 WHERE written_by = "Eric Gilliland"
Write a SQL query that answers the following question: What is the mean number of languages for the monthly frequency when the publisher is the hearst corporation?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_23 (number_of_languages INTEGER, frequency VARCHAR, publisher VARCHAR)
SELECT AVG(number_of_languages) FROM table_name_23 WHERE frequency = "monthly" AND publisher = "hearst corporation"
Write a SQL query that answers the following question: What score has an opponent gan teik chai lin woon fui?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_6 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_6 WHERE opponent = "gan teik chai lin woon fui"
Write a SQL query that answers the following question: Who was at Home when the Score was 13-19?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_83 (home VARCHAR, score VARCHAR)
SELECT home FROM table_name_83 WHERE score = "13-19"
Write a SQL query that answers the following question: What country has area of 7,914 m²?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_64 (country VARCHAR, area_in_m² VARCHAR)
SELECT country FROM table_name_64 WHERE area_in_m² = "7,914"
Write a SQL query that answers the following question: Which largest average had 1229 yards?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_83 (avg INTEGER, yards VARCHAR)
SELECT MAX(avg) FROM table_name_83 WHERE yards = 1229
Write a SQL query that answers the following question: Name the growth rate for hooghly
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2527063_3 (growth_rate VARCHAR, district VARCHAR)
SELECT growth_rate FROM table_2527063_3 WHERE district = "Hooghly"
Write a SQL query that answers the following question: What is the notes for the vehicle built in 1917?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_98 (notes VARCHAR, built VARCHAR)
SELECT notes FROM table_name_98 WHERE built = "1917"
Write a SQL query that answers the following question: What machine did Kenneth E. Herbert ride?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_2 (machine VARCHAR, rider VARCHAR)
SELECT machine FROM table_name_2 WHERE rider = "kenneth e. herbert"
Write a SQL query that answers the following question: Which municipality has a population of 24421?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_157826_1 (municipality VARCHAR, population VARCHAR)
SELECT municipality FROM table_157826_1 WHERE population = 24421
Write a SQL query that answers the following question: How many middlesex principals were there in 2000-2001?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_25037577_1 (middlesex_principal VARCHAR, year VARCHAR)
SELECT COUNT(middlesex_principal) FROM table_25037577_1 WHERE year = "2000-2001"
Write a SQL query that answers the following question: How many strokes for arnold palmer with a to par of greater than 9?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_69 (total INTEGER, to_par VARCHAR, player VARCHAR)
SELECT AVG(total) FROM table_name_69 WHERE to_par > 9 AND player = "arnold palmer"
Write a SQL query that answers the following question: Which game has an opponent of Phoenix Coyotes and was before Dec 9?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_96 (game INTEGER, opponent VARCHAR, december VARCHAR)
SELECT AVG(game) FROM table_name_96 WHERE opponent = "phoenix coyotes" AND december < 9
Write a SQL query that answers the following question: A plural abbreviation of pp. is used for what singular word?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_82 (singular_word VARCHAR, plural_abbreviation VARCHAR)
SELECT singular_word FROM table_name_82 WHERE plural_abbreviation = "pp."
Write a SQL query that answers the following question: What is the Date of the Athlete from Ferris High School?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_17 (date VARCHAR, school VARCHAR)
SELECT date FROM table_name_17 WHERE school = "ferris high school"
Write a SQL query that answers the following question: What is the date of the Cubs game when the Cubs had a record of 1-0?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_2 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_2 WHERE record = "1-0"
Write a SQL query that answers the following question: When 2008 is the year how many divisions are there?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1986692_1 (division VARCHAR, year VARCHAR)
SELECT COUNT(division) FROM table_1986692_1 WHERE year = "2008"
Write a SQL query that answers the following question: What's the average Week with the Result l 23–3?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_49 (week INTEGER, result VARCHAR)
SELECT AVG(week) FROM table_name_49 WHERE result = "l 23–3"
Write a SQL query that answers the following question: When has a Note of 45/48 renumbered 15/16; two sold to sl&ncr?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_46 (date_made VARCHAR, notes VARCHAR)
SELECT date_made FROM table_name_46 WHERE notes = "45/48 renumbered 15/16; two sold to sl&ncr"
Write a SQL query that answers the following question: Name the incumbent for district texas 12
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1341690_43 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341690_43 WHERE district = "Texas 12"
Write a SQL query that answers the following question: For entries with a lost of 5, what is the sum of the draw entry?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_23 (draw INTEGER, lost VARCHAR)
SELECT SUM(draw) FROM table_name_23 WHERE lost = 5
Write a SQL query that answers the following question: who else along with scott dixon and graham rahal drove with the most speed
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_13512105_3 (fastest_lap VARCHAR, most_laps_led VARCHAR, pole_position VARCHAR)
SELECT fastest_lap FROM table_13512105_3 WHERE most_laps_led = "Scott Dixon" AND pole_position = "Graham Rahal"
Write a SQL query that answers the following question: When fixed route is the type of fare how much is the 31-day pass?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_20803241_1 (day_pass VARCHAR, type_of_fare VARCHAR)
SELECT 31 - day_pass FROM table_20803241_1 WHERE type_of_fare = "Fixed Route"
Write a SQL query that answers the following question: When the position in 2012-23 is 4th, second division what is the club?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_27 (club VARCHAR, position_in_2012_13 VARCHAR)
SELECT club FROM table_name_27 WHERE position_in_2012_13 = "4th, second division"
Write a SQL query that answers the following question: What is the most elevated Played that has a Lost smaller than 12, and a Name of ec amberg (n), and a Position smaller than 4?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_59 (played INTEGER, position VARCHAR, lost VARCHAR, name VARCHAR)
SELECT MAX(played) FROM table_name_59 WHERE lost < 12 AND name = "ec amberg (n)" AND position < 4
Write a SQL query that answers the following question: What is the average 2006 value with a 2010 value of 417.9 and a 2011 value greater than 426.7?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_26 (Id VARCHAR)
SELECT AVG(2006) FROM table_name_26 WHERE 2010 = 417.9 AND 2011 > 426.7
Write a SQL query that answers the following question: What was the surface of the tournament where Anna Benzon was the opponent in the final?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_59 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT surface FROM table_name_59 WHERE opponent_in_the_final = "anna benzon"
Write a SQL query that answers the following question: What is the lowest CPC Blend Kazakhstan number when Draugen North Sea is 17?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_38 (cpc_blend_kazakhstan INTEGER, draugen_north_sea VARCHAR)
SELECT MIN(cpc_blend_kazakhstan) FROM table_name_38 WHERE draugen_north_sea = 17
Write a SQL query that answers the following question: What is the name of the tournament with 11 or more events a top-5 of 0 and a top-25 of 2?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_58 (tournament VARCHAR, top_25 VARCHAR, events VARCHAR, top_5 VARCHAR)
SELECT tournament FROM table_name_58 WHERE events > 11 AND top_5 = 0 AND top_25 = 2
Write a SQL query that answers the following question: Where is the nickname the Red Raiders?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_26476336_2 (location VARCHAR, team_nickname VARCHAR)
SELECT location FROM table_26476336_2 WHERE team_nickname = "Red Raiders"
Write a SQL query that answers the following question: What loss has 16,458 as an Att.?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_82 (loss VARCHAR, att VARCHAR)
SELECT loss FROM table_name_82 WHERE att = "16,458"
Write a SQL query that answers the following question: Which country had a score of 69-67=136?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_5 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_5 WHERE score = 69 - 67 = 136
Write a SQL query that answers the following question: Who is the week 12 for the week 2 with Magda Tomek?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_38 (week_12 VARCHAR, week_2 VARCHAR)
SELECT week_12 FROM table_name_38 WHERE week_2 = "magda tomek"
Write a SQL query that answers the following question: Name the percentage for georgia
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_22825679_1 (percentage VARCHAR, team VARCHAR)
SELECT percentage FROM table_22825679_1 WHERE team = "Georgia"
Write a SQL query that answers the following question: What was the score for the away team when they played collingwood?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_57 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_57 WHERE home_team = "collingwood"
Write a SQL query that answers the following question: Tell me the result for lincoln financial field december 11, 2005
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_90 (result VARCHAR, venue VARCHAR, date VARCHAR)
SELECT result FROM table_name_90 WHERE venue = "lincoln financial field" AND date = "december 11, 2005"
Write a SQL query that answers the following question: Which Player has a Score of 72-68-78-71=289?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_91 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_91 WHERE score = 72 - 68 - 78 - 71 = 289
Write a SQL query that answers the following question: What player has 1 as the place?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_69 (player VARCHAR, finish VARCHAR)
SELECT player FROM table_name_69 WHERE finish = "1"
Write a SQL query that answers the following question: What top round has a pick smaller than 2?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_7 (round INTEGER, pick INTEGER)
SELECT MAX(round) FROM table_name_7 WHERE pick < 2
Write a SQL query that answers the following question: What is the average episode number on 19 March 1993 with Jim Sweeney as performer 1?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_29 (episode INTEGER, performer_1 VARCHAR, date VARCHAR)
SELECT AVG(episode) FROM table_name_29 WHERE performer_1 = "jim sweeney" AND date = "19 march 1993"
Write a SQL query that answers the following question: What is the sector when the population change 2002-2012 (%) is 79.6?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_12496904_1 (sector VARCHAR, population_change_2002_2012___percentage_ VARCHAR)
SELECT sector FROM table_12496904_1 WHERE population_change_2002_2012___percentage_ = "79.6"
Write a SQL query that answers the following question: what is the home team when the opposition is east coast?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_26847237_3 (home_team VARCHAR, opposition VARCHAR)
SELECT home_team FROM table_26847237_3 WHERE opposition = "East Coast"
Write a SQL query that answers the following question: What is the highest number of bronzes for teams ranked number 7 with more than 0 silver?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_77 (bronze INTEGER, silver VARCHAR, rank VARCHAR)
SELECT MAX(bronze) FROM table_name_77 WHERE silver > 0 AND rank = 7
Write a SQL query that answers the following question: Which Founded has a Club of tri-city storm and a Titles larger than 1?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_68 (founded INTEGER, club VARCHAR, titles VARCHAR)
SELECT SUM(founded) FROM table_name_68 WHERE club = "tri-city storm" AND titles > 1
Write a SQL query that answers the following question: Name the loss with record of 38-53
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_48 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_48 WHERE record = "38-53"
Write a SQL query that answers the following question: What is the sambalpuri saree with a samaleswari temple as sambalpuri language?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_22 (sambalpuri_saree VARCHAR, sambalpuri_language VARCHAR)
SELECT sambalpuri_saree FROM table_name_22 WHERE sambalpuri_language = "samaleswari temple"
Write a SQL query that answers the following question: What date has @ new orleans as the team?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_47 (date VARCHAR, team VARCHAR)
SELECT date FROM table_name_47 WHERE team = "@ new orleans"
Write a SQL query that answers the following question: What was the away team that played against Melbourne?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_96 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_96 WHERE home_team = "melbourne"
Write a SQL query that answers the following question: Tell me the name of the person married to frederick ix
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_71 (name VARCHAR, spouse VARCHAR)
SELECT name FROM table_name_71 WHERE spouse = "frederick ix"
Write a SQL query that answers the following question: What is the date of the game with a score of 4-2?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_51 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_51 WHERE score = "4-2"
Write a SQL query that answers the following question: Which locomotive class had 5 items made?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_26 (class VARCHAR, quantity_made VARCHAR)
SELECT class FROM table_name_26 WHERE quantity_made = 5
Write a SQL query that answers the following question: What was the score with a goal of 16?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_93 (score VARCHAR, goal VARCHAR)
SELECT score FROM table_name_93 WHERE goal = 16
Write a SQL query that answers the following question: Name the example when the environment is #_x
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_46 (example VARCHAR, environment VARCHAR)
SELECT example FROM table_name_46 WHERE environment = "#_x"
Write a SQL query that answers the following question: What is the total of Golds with more bronzes than 1 and totaled larger than 4?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_64 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT COUNT(gold) FROM table_name_64 WHERE bronze > 1 AND total > 4
Write a SQL query that answers the following question: What place was Bill Glasson in?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_49 WHERE player = "bill glasson"
Write a SQL query that answers the following question: What Country is Tom Kite from?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_95 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_95 WHERE player = "tom kite"
Write a SQL query that answers the following question: how many times is the team oklahoma city?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_27715173_8 (high_points VARCHAR, team VARCHAR)
SELECT COUNT(high_points) FROM table_27715173_8 WHERE team = "Oklahoma City"
Write a SQL query that answers the following question: What is the average to par for a score of 78-67-73=218?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_2 (to_par INTEGER, score VARCHAR)
SELECT AVG(to_par) FROM table_name_2 WHERE score = 78 - 67 - 73 = 218
Write a SQL query that answers the following question: What is the total share with Timeslot of 8:30 p.m., anAir Date of march 27, 2008, and a Rank greater than 65?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_25 (share INTEGER, rank__overall_ VARCHAR, timeslot VARCHAR, air_date VARCHAR)
SELECT SUM(share) FROM table_name_25 WHERE timeslot = "8:30 p.m." AND air_date = "march 27, 2008" AND rank__overall_ > 65
Write a SQL query that answers the following question: What is Charleston, SC ERP W?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_2 (erp_w VARCHAR, city_of_license VARCHAR)
SELECT erp_w FROM table_name_2 WHERE city_of_license = "charleston, sc"
Write a SQL query that answers the following question: What team was the home team against Melbourne?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_36 WHERE away_team = "melbourne"
Write a SQL query that answers the following question: What was their record on July 22?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_58 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_58 WHERE date = "july 22"
Write a SQL query that answers the following question: What is the series episode where Segment B is popcorn ?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_15187735_12 (series_ep VARCHAR, segment_b VARCHAR)
SELECT series_ep FROM table_15187735_12 WHERE segment_b = "Popcorn"
Write a SQL query that answers the following question: What are the total number of positions on the Toronto team in 2006-07?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_10015132_9 (position VARCHAR, years_in_toronto VARCHAR)
SELECT COUNT(position) FROM table_10015132_9 WHERE years_in_toronto = "2006-07"
Write a SQL query that answers the following question: What is the rank of the reynard 2ki chassis before 2002?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_50 (rank VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT rank FROM table_name_50 WHERE year < 2002 AND chassis = "reynard 2ki"
Write a SQL query that answers the following question: What song was written after 1976 and directed by Rahul Dev Burman?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_23 (song VARCHAR, year VARCHAR, music_director_s_ VARCHAR)
SELECT song FROM table_name_23 WHERE year > 1976 AND music_director_s_ = "rahul dev burman"
Write a SQL query that answers the following question: Which Team has a Score of 108-107?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_82 (team VARCHAR, score VARCHAR)
SELECT team FROM table_name_82 WHERE score = "108-107"
Write a SQL query that answers the following question: What is the set 5 for the game with a set 2 of 21-25 and a set 1 of 41633?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_62 (set_5 VARCHAR, set_2 VARCHAR, set_1 VARCHAR)
SELECT set_5 FROM table_name_62 WHERE set_2 = "21-25" AND set_1 = "41633"
Write a SQL query that answers the following question: What is the whenbuilt of the Brighton built Blandford Forum with a withdrawn of september 1964?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_67 (whenbuilt VARCHAR, name VARCHAR, builder VARCHAR, withdrawn VARCHAR)
SELECT whenbuilt FROM table_name_67 WHERE builder = "brighton" AND withdrawn = "september 1964" AND name = "blandford forum"
Write a SQL query that answers the following question: What album is 4:53 long?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_74 (album VARCHAR, length VARCHAR)
SELECT album FROM table_name_74 WHERE length = "4:53"
Write a SQL query that answers the following question: What date was the game played against the home team Rockets?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_28 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_28 WHERE home = "rockets"
Write a SQL query that answers the following question: Who was the constructor of the officine alfieri maserati that was driven by Sergio Mantovani?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_77 (constructor VARCHAR, entrant VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_77 WHERE entrant = "officine alfieri maserati" AND driver = "sergio mantovani"
Write a SQL query that answers the following question: What was the 2010 result for a 2008 result of LQ and 2011 result of 2R?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_30 (Id VARCHAR)
SELECT 2010 FROM table_name_30 WHERE 2008 = "lq" AND 2011 = "2r"
Write a SQL query that answers the following question: tell the score when the times gone was 75
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_14070062_4 (points_against VARCHAR, tries_against VARCHAR)
SELECT points_against FROM table_14070062_4 WHERE tries_against = "75"
Write a SQL query that answers the following question: Who had the high assists on the date December 12?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_11960944_4 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_11960944_4 WHERE date = "December 12"