instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What was the record during the loss by key (7-11)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_27 WHERE loss = "key (7-11)"
Write a SQL query that answers the following question: What is the total diagram for builder york?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (diagram INTEGER, builder VARCHAR)
SELECT SUM(diagram) FROM table_name_2 WHERE builder = "york"
Write a SQL query that answers the following question: What fleet numbers have a diagram less than 99 and built in 1960?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (fleet_numbers VARCHAR, diagram VARCHAR, built VARCHAR)
SELECT fleet_numbers FROM table_name_68 WHERE diagram < 99 AND built = "1960"
Write a SQL query that answers the following question: What diagram built in 1962 has a lot number smaller than 30702?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (diagram INTEGER, built VARCHAR, lot_no VARCHAR)
SELECT MIN(diagram) FROM table_name_4 WHERE built = "1962" AND lot_no < 30702
Write a SQL query that answers the following question: What builder has lot number 30702?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (builder VARCHAR, lot_no VARCHAR)
SELECT builder FROM table_name_44 WHERE lot_no = 30702
Write a SQL query that answers the following question: Which Genre has a Year before 2013, and a Name of kikumana?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (genre VARCHAR, year VARCHAR, name VARCHAR)
SELECT genre FROM table_name_92 WHERE year < 2013 AND name = "kikumana"
Write a SQL query that answers the following question: In what year has a Post of designer?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (year INTEGER, post VARCHAR)
SELECT SUM(year) FROM table_name_91 WHERE post = "designer"
Write a SQL query that answers the following question: Who is listed as the Visitor that has a Home of Boston Bruins and a Date of November 15?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_97 WHERE home = "boston bruins" AND date = "november 15"
Write a SQL query that answers the following question: Which Visitor is listed as having a Date of December 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_13 WHERE date = "december 17"
Write a SQL query that answers the following question: What's the Score with the Visitor of Montreal Maroons and has a Date of December 28?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_45 WHERE visitor = "montreal maroons" AND date = "december 28"
Write a SQL query that answers the following question: What's the attendance of the san diego chargers game before week 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT COUNT(attendance) FROM table_name_97 WHERE week < 6 AND opponent = "san diego chargers"
Write a SQL query that answers the following question: How many wins have a Top-25 of 1, Less than 2 cuts, and fewer than 5 events?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (wins VARCHAR, events VARCHAR, top_25 VARCHAR, cuts_made VARCHAR)
SELECT COUNT(wins) FROM table_name_97 WHERE top_25 = 1 AND cuts_made < 2 AND events < 5
Write a SQL query that answers the following question: How many events have a Top-25 of 1 and made less than 1 cut?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (events INTEGER, top_25 VARCHAR, cuts_made VARCHAR)
SELECT MAX(events) FROM table_name_38 WHERE top_25 = 1 AND cuts_made < 1
Write a SQL query that answers the following question: During the PGA Championship, what's the lowest amount of events with wins greater than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (events INTEGER, tournament VARCHAR, wins VARCHAR)
SELECT MIN(events) FROM table_name_10 WHERE tournament = "pga championship" AND wins > 0
Write a SQL query that answers the following question: What's the lowest number of cuts made while the win was less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (cuts_made INTEGER, wins INTEGER)
SELECT MIN(cuts_made) FROM table_name_65 WHERE wins < 0
Write a SQL query that answers the following question: Which Reactortype has a gross capacity of 417 mw and an Electricity Grid of 27.12.1971?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (reactortype VARCHAR, gross_capacity VARCHAR, electricity_grid VARCHAR)
SELECT reactortype FROM table_name_64 WHERE gross_capacity = "417 mw" AND electricity_grid = "27.12.1971"
Write a SQL query that answers the following question: Which Unit's Construction started on 01.07.1967?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (unit VARCHAR, construction_started VARCHAR)
SELECT unit FROM table_name_61 WHERE construction_started = "01.07.1967"
Write a SQL query that answers the following question: Which Commercial Operation has both a Gross Capacity of 417 mw and an Electricity Grid 27.12.1971?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (commercial_operation VARCHAR, gross_capacity VARCHAR, electricity_grid VARCHAR)
SELECT commercial_operation FROM table_name_48 WHERE gross_capacity = "417 mw" AND electricity_grid = "27.12.1971"
Write a SQL query that answers the following question: When did the Electricity Grid 28.12.1972 officially shutdown?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (shutdown VARCHAR, electricity_grid VARCHAR)
SELECT shutdown FROM table_name_26 WHERE electricity_grid = "28.12.1972"
Write a SQL query that answers the following question: Which Electricity Grid started its Commercial Operation of 24.03.1973?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (electricity_grid VARCHAR, commercial_operation VARCHAR)
SELECT electricity_grid FROM table_name_17 WHERE commercial_operation = "24.03.1973"
Write a SQL query that answers the following question: Tell what has the App(GS/Sub) of 14 (8/6)
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (name VARCHAR, app_gs_sub_ VARCHAR)
SELECT name FROM table_name_70 WHERE app_gs_sub_ = "14 (8/6)"
Write a SQL query that answers the following question: Name the goals with since less than 2007 and App(GS/Sub) of 97 (69/28)
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (goals VARCHAR, since VARCHAR, app_gs_sub_ VARCHAR)
SELECT goals FROM table_name_57 WHERE since < 2007 AND app_gs_sub_ = "97 (69/28)"
Write a SQL query that answers the following question: When is Cadott Rock Fest taken place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_65 WHERE venue = "cadott rock fest"
Write a SQL query that answers the following question: Which City has mandalay bay resort
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (city VARCHAR, venue VARCHAR)
SELECT city FROM table_name_29 WHERE venue = "mandalay bay resort"
Write a SQL query that answers the following question: Which City has a Date on october 26, 2007
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (city VARCHAR, date VARCHAR)
SELECT city FROM table_name_70 WHERE date = "october 26, 2007"
Write a SQL query that answers the following question: Which Attendance has Mandalay Bay Resort
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (attendance VARCHAR, venue VARCHAR)
SELECT attendance FROM table_name_75 WHERE venue = "mandalay bay resort"
Write a SQL query that answers the following question: When is Country of united states, and a Venue of mandalay bay resort in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (date VARCHAR, country VARCHAR, venue VARCHAR)
SELECT date FROM table_name_22 WHERE country = "united states" AND venue = "mandalay bay resort"
Write a SQL query that answers the following question: When has a City of san jacinto, california?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (date VARCHAR, city VARCHAR)
SELECT date FROM table_name_63 WHERE city = "san jacinto, california"
Write a SQL query that answers the following question: Which Chassis has more than 0 points, an Entrant of Scuderia Ferrari, and was later than 1952?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (chassis VARCHAR, year VARCHAR, points VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_name_37 WHERE points > 0 AND entrant = "scuderia ferrari" AND year > 1952
Write a SQL query that answers the following question: Which Entrant has a vanwall straight-4 engine?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (entrant VARCHAR, engine VARCHAR)
SELECT entrant FROM table_name_47 WHERE engine = "vanwall straight-4"
Write a SQL query that answers the following question: Which region has a date of 1970?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (region VARCHAR, date VARCHAR)
SELECT region FROM table_name_58 WHERE date = "1970"
Write a SQL query that answers the following question: Which label has a date of 1987?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (label VARCHAR, date VARCHAR)
SELECT label FROM table_name_52 WHERE date = "1987"
Write a SQL query that answers the following question: Which catalogue has a formate of "CD Remastered with 3 bonus tracks"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (catalogue VARCHAR, format VARCHAR)
SELECT catalogue FROM table_name_39 WHERE format = "cd remastered with 3 bonus tracks"
Write a SQL query that answers the following question: Which catalogue has a date of 1987?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (catalogue VARCHAR, date VARCHAR)
SELECT catalogue FROM table_name_63 WHERE date = "1987"
Write a SQL query that answers the following question: What is the latest season where Al Ahly is the runners-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (season INTEGER, runners_up VARCHAR)
SELECT MAX(season) FROM table_name_94 WHERE runners_up = "al ahly"
Write a SQL query that answers the following question: What is the season where Vasco da gama is the score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (season VARCHAR, score VARCHAR)
SELECT season FROM table_name_87 WHERE score = "vasco da gama"
Write a SQL query that answers the following question: Who is the winner in 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (winners VARCHAR, season VARCHAR)
SELECT winners FROM table_name_92 WHERE season = 2010
Write a SQL query that answers the following question: Who is the winner in 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (winners VARCHAR, season VARCHAR)
SELECT winners FROM table_name_30 WHERE season = 2011
Write a SQL query that answers the following question: What was the third place of the performance in 2006 with the host Japan?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (third_place VARCHAR, host VARCHAR, season VARCHAR)
SELECT third_place FROM table_name_79 WHERE host = "japan" AND season < 2006
Write a SQL query that answers the following question: Which round did Dundee United end in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (round VARCHAR, club VARCHAR)
SELECT round FROM table_name_11 WHERE club = "dundee united"
Write a SQL query that answers the following question: Name the event with pursuit of 18th and sprint of 20th
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (event VARCHAR, pursuit VARCHAR, sprint VARCHAR)
SELECT event FROM table_name_25 WHERE pursuit = "18th" AND sprint = "20th"
Write a SQL query that answers the following question: Name the pursuit for 1994 lillehammer
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (pursuit VARCHAR, event VARCHAR)
SELECT pursuit FROM table_name_43 WHERE event = "1994 lillehammer"
Write a SQL query that answers the following question: Name the sprint with mass start of 2nd
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (sprint VARCHAR, mass_start VARCHAR)
SELECT sprint FROM table_name_28 WHERE mass_start = "2nd"
Write a SQL query that answers the following question: What country had a film in 1993?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (country VARCHAR, year VARCHAR)
SELECT country FROM table_name_31 WHERE year = 1993
Write a SQL query that answers the following question: Where was Extreme Challenge 63 with a time of 2:00 held?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (location VARCHAR, event VARCHAR, time VARCHAR)
SELECT location FROM table_name_16 WHERE event = "extreme challenge 63" AND time = "2:00"
Write a SQL query that answers the following question: How many total rounds were there at UFC 114?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (round VARCHAR, event VARCHAR)
SELECT COUNT(round) FROM table_name_30 WHERE event = "ufc 114"
Write a SQL query that answers the following question: In the round that lasted 0:20, what was the Res?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (res VARCHAR, time VARCHAR)
SELECT res FROM table_name_1 WHERE time = "0:20"
Write a SQL query that answers the following question: In what City was the Ept Baden Classic?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (city VARCHAR, event VARCHAR)
SELECT city FROM table_name_94 WHERE event = "ept baden classic"
Write a SQL query that answers the following question: What Event has a Prize of €869,000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (event VARCHAR, prize VARCHAR)
SELECT event FROM table_name_77 WHERE prize = "€869,000"
Write a SQL query that answers the following question: What Winner had a Prize of zł2,153,999?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (winner VARCHAR, prize VARCHAR)
SELECT winner FROM table_name_22 WHERE prize = "zł2,153,999"
Write a SQL query that answers the following question: How many decile has a roll less than 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (decile INTEGER, roll INTEGER)
SELECT AVG(decile) FROM table_name_6 WHERE roll < 20
Write a SQL query that answers the following question: Which gender had a roll of 627?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (gender VARCHAR, roll VARCHAR)
SELECT gender FROM table_name_62 WHERE roll = 627
Write a SQL query that answers the following question: Glenorchy school has a decile less than 10 and is in what area?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (area VARCHAR, decile VARCHAR, name VARCHAR)
SELECT area FROM table_name_11 WHERE decile < 10 AND name = "glenorchy school"
Write a SQL query that answers the following question: Makarora primary school has a roll less than 141 and what gender?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (gender VARCHAR, roll VARCHAR, name VARCHAR)
SELECT gender FROM table_name_24 WHERE roll < 141 AND name = "makarora primary school"
Write a SQL query that answers the following question: In what season did the Sporting CP Club have a 1. round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (season VARCHAR, round VARCHAR, club VARCHAR)
SELECT season FROM table_name_78 WHERE round = "1. round" AND club = "sporting cp"
Write a SQL query that answers the following question: The Club of Ekranas was an away with a score of what?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (away VARCHAR, club VARCHAR)
SELECT away FROM table_name_28 WHERE club = "ekranas"
Write a SQL query that answers the following question: What is Rhiannon Leier's lane?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (lane VARCHAR, name VARCHAR)
SELECT lane FROM table_name_22 WHERE name = "rhiannon leier"
Write a SQL query that answers the following question: What pennant does Narbada have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (pennant VARCHAR, name VARCHAR)
SELECT pennant FROM table_name_13 WHERE name = "narbada"
Write a SQL query that answers the following question: What date was the U21 pennant laid down?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (laid_down VARCHAR, pennant VARCHAR)
SELECT laid_down FROM table_name_26 WHERE pennant = "u21"
Write a SQL query that answers the following question: What position went lower than 106 from the College of Virginia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (position VARCHAR, overall VARCHAR, college VARCHAR)
SELECT position FROM table_name_10 WHERE overall < 106 AND college = "virginia"
Write a SQL query that answers the following question: What is the lowest round a fullback went in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (round INTEGER, position VARCHAR)
SELECT MIN(round) FROM table_name_17 WHERE position = "fullback"
Write a SQL query that answers the following question: Name the province with rank more than 49
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (province VARCHAR, rank INTEGER)
SELECT province FROM table_name_6 WHERE rank > 49
Write a SQL query that answers the following question: Name the mountain peak with location of 46.7000°n 60.5992°w
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (mountain_peak VARCHAR, location VARCHAR)
SELECT mountain_peak FROM table_name_17 WHERE location = "46.7000°n 60.5992°w"
Write a SQL query that answers the following question: Name the mountain peak with rank less than 6 abd location of 81.9083°n 75.0250°w
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (mountain_peak VARCHAR, rank VARCHAR, location VARCHAR)
SELECT mountain_peak FROM table_name_16 WHERE rank < 6 AND location = "81.9083°n 75.0250°w"
Write a SQL query that answers the following question: Name the mountain range for nunavut with location of 73.2294°n 78.6233°w
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (mountain_range VARCHAR, province VARCHAR, location VARCHAR)
SELECT mountain_range FROM table_name_26 WHERE province = "nunavut" AND location = "73.2294°n 78.6233°w"
Write a SQL query that answers the following question: Name the mountain peak of 49 rank
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (mountain_peak VARCHAR, rank VARCHAR)
SELECT mountain_peak FROM table_name_67 WHERE rank = 49
Write a SQL query that answers the following question: What is the total number of live births in 2006 with 98.40% of the population as Whites and has more than 2 for the TFR?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (live_births_2006 INTEGER, whites_as__percentage_of_pop VARCHAR, tfr_2006 VARCHAR)
SELECT SUM(live_births_2006) FROM table_name_94 WHERE whites_as__percentage_of_pop = "98.40%" AND tfr_2006 > 2
Write a SQL query that answers the following question: What is the lowest total GFR that has 95.80% of the population as Whites, and a TFR total larger than 2.14, in 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (gfr_2006 INTEGER, whites_as__percentage_of_pop VARCHAR, tfr_2006 VARCHAR)
SELECT MIN(gfr_2006) FROM table_name_64 WHERE whites_as__percentage_of_pop = "95.80%" AND tfr_2006 > 2.14
Write a SQL query that answers the following question: In 2006, what is the highest number for Live births in the County of Cumbria that has a TFR larger than 1.76?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (live_births_2006 INTEGER, county VARCHAR, tfr_2006 VARCHAR)
SELECT MAX(live_births_2006) FROM table_name_6 WHERE county = "cumbria" AND tfr_2006 > 1.76
Write a SQL query that answers the following question: Question doesn't make sense since there is no team of pramac d'antin ducati
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (year INTEGER, team VARCHAR)
SELECT MIN(year) FROM table_name_46 WHERE team = "pramac d'antin ducati"
Write a SQL query that answers the following question: Which player from the Ironi Nahariya club was born in 1980?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (player VARCHAR, current_club VARCHAR, year_born VARCHAR)
SELECT player FROM table_name_4 WHERE current_club = "ironi nahariya" AND year_born = 1980
Write a SQL query that answers the following question: Which position from the Cherkassy Monkeys' club was born after 1978?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (position VARCHAR, year_born VARCHAR, current_club VARCHAR)
SELECT position FROM table_name_10 WHERE year_born > 1978 AND current_club = "cherkassy monkeys"
Write a SQL query that answers the following question: What is the rank of the cinema when the headquarters are in toronto, ON and the screens is less than 1,438?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (rank INTEGER, headquarters VARCHAR, screens VARCHAR)
SELECT AVG(rank) FROM table_name_19 WHERE headquarters = "toronto, on" AND screens < 1 OFFSET 438
Write a SQL query that answers the following question: what is the rank of the cinema when the number of sites is more than 62 and the circuit is cineplex entertainment?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (rank INTEGER, sites VARCHAR, circuit VARCHAR)
SELECT SUM(rank) FROM table_name_3 WHERE sites > 62 AND circuit = "cineplex entertainment"
Write a SQL query that answers the following question: what is the number of sites when the number of screens is 687 and rank is more than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (sites INTEGER, screens VARCHAR, rank VARCHAR)
SELECT AVG(sites) FROM table_name_8 WHERE screens = 687 AND rank > 7
Write a SQL query that answers the following question: what is the lowest number of sites when the headquarters are in columbus, ga and the rank is smaller than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (sites INTEGER, headquarters VARCHAR, rank VARCHAR)
SELECT MIN(sites) FROM table_name_33 WHERE headquarters = "columbus, ga" AND rank < 4
Write a SQL query that answers the following question: What is the Other transliteration for value 1 000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (other VARCHAR, value VARCHAR)
SELECT other FROM table_name_9 WHERE value = "1 000"
Write a SQL query that answers the following question: What is the word form for the ALA-LC transliteration of muay s″ain?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (word_form VARCHAR, ala_lc VARCHAR)
SELECT word_form FROM table_name_55 WHERE ala_lc = "muay s″ain"
Write a SQL query that answers the following question: What number value has the Other transliteration of muoy roy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (value VARCHAR, other VARCHAR)
SELECT value FROM table_name_90 WHERE other = "muoy roy"
Write a SQL query that answers the following question: What is the word form for the ALA-LC transliteration of muay bân?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (word_form VARCHAR, ala_lc VARCHAR)
SELECT word_form FROM table_name_79 WHERE ala_lc = "muay bân"
Write a SQL query that answers the following question: Name the loss when the record is 76-81
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_1 WHERE record = "76-81"
Write a SQL query that answers the following question: Which average bronze had a silver greater than 2 and a gold larger than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (bronze INTEGER, silver VARCHAR, gold VARCHAR)
SELECT AVG(bronze) FROM table_name_9 WHERE silver > 2 AND gold > 7
Write a SQL query that answers the following question: When the total was 11 and silver was greater than 4 what was the highest gold?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (gold INTEGER, total VARCHAR, silver VARCHAR)
SELECT MAX(gold) FROM table_name_15 WHERE total = 11 AND silver > 4
Write a SQL query that answers the following question: How many bronze had a total less than 4 and gold bigger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (bronze VARCHAR, total VARCHAR, gold VARCHAR)
SELECT COUNT(bronze) FROM table_name_43 WHERE total < 4 AND gold > 1
Write a SQL query that answers the following question: What is the enrollment associated with a capacity greater then 35,650?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (enrollment INTEGER, capacity INTEGER)
SELECT MIN(enrollment) FROM table_name_46 WHERE capacity > 35 OFFSET 650
Write a SQL query that answers the following question: Which Date has an Opposing Pitcher of jack morris, and an Inning of 4th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (date VARCHAR, opposing_pitcher VARCHAR, inning VARCHAR)
SELECT date FROM table_name_88 WHERE opposing_pitcher = "jack morris" AND inning = "4th"
Write a SQL query that answers the following question: Which average Home Run has a Game of 89?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (home_run INTEGER, game VARCHAR)
SELECT AVG(home_run) FROM table_name_55 WHERE game = 89
Write a SQL query that answers the following question: Which team has a Home Run of 27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (team VARCHAR, home_run VARCHAR)
SELECT team FROM table_name_18 WHERE home_run = 27
Write a SQL query that answers the following question: Which Assist/pass has a Score of 1-0, and a Goal of 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (assist_pass VARCHAR, score VARCHAR, goal VARCHAR)
SELECT assist_pass FROM table_name_85 WHERE score = "1-0" AND goal = "5"
Write a SQL query that answers the following question: Which Assist/pass has a Result of 6-2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (assist_pass VARCHAR, result VARCHAR)
SELECT assist_pass FROM table_name_73 WHERE result = "6-2"
Write a SQL query that answers the following question: Which Assist/pass has a Goal of 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (assist_pass VARCHAR, goal VARCHAR)
SELECT assist_pass FROM table_name_31 WHERE goal = "5"
Write a SQL query that answers the following question: Which location has a Goal of 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (location VARCHAR, goal VARCHAR)
SELECT location FROM table_name_25 WHERE goal = "2"
Write a SQL query that answers the following question: Which lineup has a Location of usa virginia beach?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (lineup VARCHAR, location VARCHAR)
SELECT lineup FROM table_name_95 WHERE location = "usa virginia beach"
Write a SQL query that answers the following question: Which date had a score of 5-1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_20 WHERE score = "5-1"
Write a SQL query that answers the following question: What result had a score of 2-1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (result VARCHAR, score VARCHAR)
SELECT result FROM table_name_73 WHERE score = "2-1"
Write a SQL query that answers the following question: Which date had a score of 3-2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_52 WHERE score = "3-2"
Write a SQL query that answers the following question: What is the oldest model Porsche v12 that has points less than or equal to 0.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (year INTEGER, engine VARCHAR, pts VARCHAR)
SELECT MIN(year) FROM table_name_98 WHERE engine = "porsche v12" AND pts < 0
Write a SQL query that answers the following question: Which design uses the theme alpine skiing?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (design VARCHAR, theme VARCHAR)
SELECT design FROM table_name_50 WHERE theme = "alpine skiing"
Write a SQL query that answers the following question: When did the Theme of bobsleigh release?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (date_of_issue VARCHAR, theme VARCHAR)
SELECT date_of_issue FROM table_name_56 WHERE theme = "bobsleigh"
Write a SQL query that answers the following question: What is the highest pts after 1952 with connaught type a?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (pts INTEGER, year VARCHAR, chassis VARCHAR)
SELECT MAX(pts) FROM table_name_79 WHERE year > 1952 AND chassis = "connaught type a"