instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What was the date of game 81?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_40 WHERE game = 81
Write a SQL query that answers the following question: WHich Surface has an Opponent of gustavo kuerten?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_13 WHERE opponent = "gustavo kuerten"
Write a SQL query that answers the following question: Which Surface has a Tournament of st. petersburg , russia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (surface VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_53 WHERE tournament = "st. petersburg , russia"
Write a SQL query that answers the following question: When is the Surface of hard (i), and a Tournament of brighton , united kingdom taken?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (date VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_11 WHERE surface = "hard (i)" AND tournament = "brighton , united kingdom"
Write a SQL query that answers the following question: Which Opponent has a Score of 3–6, 5–7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_52 WHERE score = "3–6, 5–7"
Write a SQL query that answers the following question: When has a Tournament of palermo , italy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_17 WHERE tournament = "palermo , italy"
Write a SQL query that answers the following question: Which Opponent is on 29 september 1997?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_70 WHERE date = "29 september 1997"
Write a SQL query that answers the following question: Which constellation has hd 75732 as a destignation HD?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (constellation VARCHAR, designation_hd VARCHAR)
SELECT constellation FROM table_name_38 WHERE designation_hd = "hd 75732"
Write a SQL query that answers the following question: What message has hd 186408 as a designation HD?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (message VARCHAR, designation_hd VARCHAR)
SELECT message FROM table_name_75 WHERE designation_hd = "hd 186408"
Write a SQL query that answers the following question: What date sent has cygnus as a constellation, and hd 190360 as a designation HD?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (date_sent VARCHAR, constellation VARCHAR, designation_hd VARCHAR)
SELECT date_sent FROM table_name_65 WHERE constellation = "cygnus" AND designation_hd = "hd 190360"
Write a SQL query that answers the following question: What date sent has orion as the constellation?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (date_sent VARCHAR, constellation VARCHAR)
SELECT date_sent FROM table_name_63 WHERE constellation = "orion"
Write a SQL query that answers the following question: Which constellation has cosmic call 1 as the message, and an arrival date of october 2067?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (constellation VARCHAR, message VARCHAR, arrival_date VARCHAR)
SELECT constellation FROM table_name_27 WHERE message = "cosmic call 1" AND arrival_date = "october 2067"
Write a SQL query that answers the following question: What date sent has cancer as the constellation?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (date_sent VARCHAR, constellation VARCHAR)
SELECT date_sent FROM table_name_29 WHERE constellation = "cancer"
Write a SQL query that answers the following question: Which Conceded is the highest one that has Points larger than 17, and a Team of guaraní, and Losses smaller than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (conceded INTEGER, losses VARCHAR, points VARCHAR, team VARCHAR)
SELECT MAX(conceded) FROM table_name_39 WHERE points > 17 AND team = "guaraní" AND losses < 6
Write a SQL query that answers the following question: Which Conceded has Draws smaller than 5, and a Position larger than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (conceded INTEGER, draws VARCHAR, position VARCHAR)
SELECT SUM(conceded) FROM table_name_39 WHERE draws < 5 AND position > 6
Write a SQL query that answers the following question: How many Points have a Played larger than 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (points VARCHAR, played INTEGER)
SELECT COUNT(points) FROM table_name_65 WHERE played > 18
Write a SQL query that answers the following question: Which Scored has a Team of recoleta?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (scored INTEGER, team VARCHAR)
SELECT SUM(scored) FROM table_name_81 WHERE team = "recoleta"
Write a SQL query that answers the following question: Which Notes have a Date of 2008-01-27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (notes VARCHAR, date VARCHAR)
SELECT notes FROM table_name_21 WHERE date = "2008-01-27"
Write a SQL query that answers the following question: Which Date has a Distance of 3,000 m?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (date VARCHAR, distance VARCHAR)
SELECT date FROM table_name_63 WHERE distance = "3,000 m"
Write a SQL query that answers the following question: Which Distance has a Time of men's speed skating?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (distance VARCHAR, time VARCHAR)
SELECT distance FROM table_name_46 WHERE time = "men's speed skating"
Write a SQL query that answers the following question: Which Location has a Time of time?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (location VARCHAR)
SELECT location FROM table_name_89 WHERE "time" = "time"
Write a SQL query that answers the following question: Which Location has a Distance of 10,000 m?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (location VARCHAR, distance VARCHAR)
SELECT location FROM table_name_59 WHERE distance = "10,000 m"
Write a SQL query that answers the following question: Which Date has a Distance of 500 m?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (date VARCHAR, distance VARCHAR)
SELECT date FROM table_name_3 WHERE distance = "500 m"
Write a SQL query that answers the following question: What was the score for the June 22 game with attendance 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (score VARCHAR, date VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_44 WHERE date = "june 22" AND attendance = 0
Write a SQL query that answers the following question: What type of surface was used for the carthage tournament on august 14, 1994?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (surface VARCHAR, tournament VARCHAR, date VARCHAR)
SELECT surface FROM table_name_97 WHERE tournament = "carthage" AND date = "august 14, 1994"
Write a SQL query that answers the following question: Which tournament has marielle bruens for the opponent in the final?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT tournament FROM table_name_81 WHERE opponent_in_the_final = "marielle bruens"
Write a SQL query that answers the following question: What surface was used on may 13, 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_19 WHERE date = "may 13, 2007"
Write a SQL query that answers the following question: Frequency MHz of 93.7 has what class?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (class VARCHAR, frequency_mhz VARCHAR)
SELECT class FROM table_name_4 WHERE frequency_mhz = 93.7
Write a SQL query that answers the following question: What is the average Entre Ríos Municipality with less than 9 Pojo Municipalities?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (entre_ríos_municipality INTEGER, pojo_municipality INTEGER)
SELECT AVG(entre_ríos_municipality) FROM table_name_99 WHERE pojo_municipality < 9
Write a SQL query that answers the following question: What is Pocona Municipalities with 72 Totora municipalities and more than 74 pojo municipalities?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (pocona_municipality VARCHAR, totora_municipality VARCHAR, pojo_municipality VARCHAR)
SELECT COUNT(pocona_municipality) FROM table_name_98 WHERE totora_municipality = 72 AND pojo_municipality > 74
Write a SQL query that answers the following question: What is the highest chimore municipalities with 9 pojo municipalities and less than 7 totora municipalities?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (chimoré_municipality INTEGER, pojo_municipality VARCHAR, totora_municipality VARCHAR)
SELECT MAX(chimoré_municipality) FROM table_name_76 WHERE pojo_municipality = 9 AND totora_municipality < 7
Write a SQL query that answers the following question: Which Copa Libertadores 1996 has a Team of estudiantes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (copa_libertadores_1996 VARCHAR, team VARCHAR)
SELECT copa_libertadores_1996 FROM table_name_10 WHERE team = "estudiantes"
Write a SQL query that answers the following question: which CONMEBOL 1995 has a Supercopa 1995 of sf?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (conmebol_1995 VARCHAR, supercopa_1995 VARCHAR)
SELECT conmebol_1995 FROM table_name_86 WHERE supercopa_1995 = "sf"
Write a SQL query that answers the following question: which Copa Libertadores 1996 has round 1 Supercopa 1995 and argentinos juniors team ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (copa_libertadores_1996 VARCHAR, supercopa_1995 VARCHAR, team VARCHAR)
SELECT copa_libertadores_1996 FROM table_name_10 WHERE supercopa_1995 = "round 1" AND team = "argentinos juniors"
Write a SQL query that answers the following question: Which CONMEBOL 1995 has river plate team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (conmebol_1995 VARCHAR, team VARCHAR)
SELECT conmebol_1995 FROM table_name_61 WHERE team = "river plate"
Write a SQL query that answers the following question: Which Team has a round 1 CONMEBOL 1995?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (team VARCHAR, conmebol_1995 VARCHAR)
SELECT team FROM table_name_28 WHERE conmebol_1995 = "round 1"
Write a SQL query that answers the following question: Which Date has an Attendance of 57,013?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_36 WHERE attendance = "57,013"
Write a SQL query that answers the following question: Which Date has a TV Time of cbs 1:00pm, and a Game Site of rca dome, and an Opponent of cincinnati bengals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (date VARCHAR, opponent VARCHAR, tv_time VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_7 WHERE tv_time = "cbs 1:00pm" AND game_site = "rca dome" AND opponent = "cincinnati bengals"
Write a SQL query that answers the following question: Which TV Time has a Date of december 26, 1999?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (tv_time VARCHAR, date VARCHAR)
SELECT tv_time FROM table_name_63 WHERE date = "december 26, 1999"
Write a SQL query that answers the following question: Which Game Site has a Date of october 17, 1999?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (game_site VARCHAR, date VARCHAR)
SELECT game_site FROM table_name_1 WHERE date = "october 17, 1999"
Write a SQL query that answers the following question: what's the result with streak of won 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (result VARCHAR, streak VARCHAR)
SELECT result FROM table_name_21 WHERE streak = "won 6"
Write a SQL query that answers the following question: What was the 2nd leg score having an aggregate score of 4-2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (aggregate VARCHAR)
SELECT 2 AS nd_leg FROM table_name_88 WHERE aggregate = "4-2"
Write a SQL query that answers the following question: What was the home team for the 2nd leg of the match having an aggregate of 2-3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (home__2nd_leg_ VARCHAR, aggregate VARCHAR)
SELECT home__2nd_leg_ FROM table_name_59 WHERE aggregate = "2-3"
Write a SQL query that answers the following question: What is the lowest number of played games of the team with less than 12 drawns, 41 against, and less than 69 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (played INTEGER, points VARCHAR, drawn VARCHAR, against VARCHAR)
SELECT MIN(played) FROM table_name_58 WHERE drawn < 12 AND against = 41 AND points < 69
Write a SQL query that answers the following question: What is the highest number of played of the team with less than 11 losses and less than 12 drawns?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (played INTEGER, lost VARCHAR, drawn VARCHAR)
SELECT MAX(played) FROM table_name_9 WHERE lost < 11 AND drawn < 12
Write a SQL query that answers the following question: What is the sum of againsts the team with less than 38 played had?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (against INTEGER, played INTEGER)
SELECT SUM(against) FROM table_name_86 WHERE played < 38
Write a SQL query that answers the following question: What is the average drawn of the team with a difference of 4 and more than 13 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (drawn INTEGER, difference VARCHAR, lost VARCHAR)
SELECT AVG(drawn) FROM table_name_30 WHERE difference = "4" AND lost > 13
Write a SQL query that answers the following question: What is the position of the team with more than 16 losses and an against greater than 74?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (position INTEGER, lost VARCHAR, against VARCHAR)
SELECT SUM(position) FROM table_name_43 WHERE lost > 16 AND against > 74
Write a SQL query that answers the following question: What is the highest number of points team vitória, which had more than 38 played, had?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (points INTEGER, team VARCHAR, played VARCHAR)
SELECT MAX(points) FROM table_name_92 WHERE team = "vitória" AND played > 38
Write a SQL query that answers the following question: When the A Score was larger than 5.933 with a total of 19.833, what nation was this?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (nation VARCHAR, a_score VARCHAR, total VARCHAR)
SELECT nation FROM table_name_40 WHERE a_score > 5.933 AND total = 19.833
Write a SQL query that answers the following question: How large was the total when the E Score was greater than 9.35 and T Score was less than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (total INTEGER, e_score VARCHAR, t_score VARCHAR)
SELECT MAX(total) FROM table_name_35 WHERE e_score > 9.35 AND t_score < 4
Write a SQL query that answers the following question: What was the quantity of the A Score when the E Score was larger than 9.566 in the Greece and the T score was more than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (a_score INTEGER, t_score VARCHAR, e_score VARCHAR, nation VARCHAR)
SELECT SUM(a_score) FROM table_name_54 WHERE e_score > 9.566 AND nation = "greece" AND t_score > 4
Write a SQL query that answers the following question: What was the total of A Score when the E Score was greater than 9.383, total was less than 19.716 and the T Score was larger than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (a_score INTEGER, t_score VARCHAR, e_score VARCHAR, total VARCHAR)
SELECT SUM(a_score) FROM table_name_74 WHERE e_score > 9.383 AND total < 19.716 AND t_score > 4
Write a SQL query that answers the following question: Which city has a frequency of 104.5 fm?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (city_of_license VARCHAR, frequency_mhz VARCHAR)
SELECT city_of_license FROM table_name_1 WHERE frequency_mhz = "104.5 fm"
Write a SQL query that answers the following question: What is the frequency of Walterboro, SC?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT frequency_mhz FROM table_name_74 WHERE city_of_license = "walterboro, sc"
Write a SQL query that answers the following question: What is the FCC information of 104.5 fm frequency?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (fcc_info VARCHAR, frequency_mhz VARCHAR)
SELECT fcc_info FROM table_name_68 WHERE frequency_mhz = "104.5 fm"
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 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 does the ERP W sum equal for 105.1 fm frequency?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (erp_w INTEGER, frequency_mhz VARCHAR)
SELECT SUM(erp_w) FROM table_name_66 WHERE frequency_mhz = "105.1 fm"
Write a SQL query that answers the following question: What is surfside beach, SC frequency?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT frequency_mhz FROM table_name_79 WHERE city_of_license = "surfside beach, sc"
Write a SQL query that answers the following question: What is the player from Japan's To Par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (to_par VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_30 WHERE country = "japan"
Write a SQL query that answers the following question: What is the player from England's To Par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (to_par VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_68 WHERE country = "england"
Write a SQL query that answers the following question: What is the player from England's score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (score VARCHAR, country VARCHAR)
SELECT score FROM table_name_98 WHERE country = "england"
Write a SQL query that answers the following question: Which country does Adam Scott play for?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_39 WHERE player = "adam scott"
Write a SQL query that answers the following question: Name the ICAO for lilongwe international airport
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (icao VARCHAR, airport VARCHAR)
SELECT icao FROM table_name_43 WHERE airport = "lilongwe international airport"
Write a SQL query that answers the following question: Name the airport for ICAO of flls
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (airport VARCHAR, icao VARCHAR)
SELECT airport FROM table_name_6 WHERE icao = "flls"
Write a SQL query that answers the following question: Name the ICAO for lilongwe international airport
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (icao VARCHAR, airport VARCHAR)
SELECT icao FROM table_name_74 WHERE airport = "lilongwe international airport"
Write a SQL query that answers the following question: Name the ICAO for julius nyerere international airport
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (icao VARCHAR, airport VARCHAR)
SELECT icao FROM table_name_79 WHERE airport = "julius nyerere international airport"
Write a SQL query that answers the following question: Name the country for johannesburg
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (country VARCHAR, city VARCHAR)
SELECT country FROM table_name_35 WHERE city = "johannesburg"
Write a SQL query that answers the following question: Name the city for IATA of llw
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (city VARCHAR, iata VARCHAR)
SELECT city FROM table_name_32 WHERE iata = "llw"
Write a SQL query that answers the following question: What is the name of the home time with a 10 tie no?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_5 WHERE tie_no = "10"
Write a SQL query that answers the following question: What was the date of the game that was played against the away team of York City?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (attendance VARCHAR, away_team VARCHAR)
SELECT attendance FROM table_name_7 WHERE away_team = "york city"
Write a SQL query that answers the following question: What group of juventus had an attendance larger than 47,786?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (group_position VARCHAR, opponents VARCHAR, attendance VARCHAR)
SELECT group_position FROM table_name_2 WHERE opponents = "juventus" AND attendance > 47 OFFSET 786
Write a SQL query that answers the following question: Name the average week for result of l 28–17
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (week INTEGER, result VARCHAR)
SELECT AVG(week) FROM table_name_56 WHERE result = "l 28–17"
Write a SQL query that answers the following question: What was the score on April 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_48 WHERE date = "april 12"
Write a SQL query that answers the following question: Which 2009 has a 2008 of A, and a 2010 of 4r?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (Id VARCHAR)
SELECT 2009 FROM table_name_84 WHERE 2008 = "a" AND 2010 = "4r"
Write a SQL query that answers the following question: Which 2009 has a 2008 of wta premier mandatory tournaments?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (Id VARCHAR)
SELECT 2009 FROM table_name_64 WHERE 2008 = "wta premier mandatory tournaments"
Write a SQL query that answers the following question: Which 2010 has a Tournament of australian open?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (tournament VARCHAR)
SELECT 2010 FROM table_name_80 WHERE tournament = "australian open"
Write a SQL query that answers the following question: Which 2007 has a 2006 of A, and a Tournament of canada?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (tournament VARCHAR)
SELECT 2007 FROM table_name_8 WHERE 2006 = "a" AND tournament = "canada"
Write a SQL query that answers the following question: Which 2009 has a 2006 of A, and a 2011 of sf?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (Id VARCHAR)
SELECT 2009 FROM table_name_83 WHERE 2006 = "a" AND 2011 = "sf"
Write a SQL query that answers the following question: Which 2007 has a 2010 of A?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (Id VARCHAR)
SELECT 2007 FROM table_name_92 WHERE 2010 = "a"
Write a SQL query that answers the following question: What's Adam's score when Jade's score is greater than 5 and Peter's score is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (adam INTEGER, jade VARCHAR, peter VARCHAR)
SELECT AVG(adam) FROM table_name_40 WHERE jade > 5 AND peter < 0
Write a SQL query that answers the following question: Old Scotch had less than 9 losses and how much against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (against INTEGER, losses VARCHAR, ntfa_div_2 VARCHAR)
SELECT SUM(against) FROM table_name_70 WHERE losses < 9 AND ntfa_div_2 = "old scotch"
Write a SQL query that answers the following question: Of the teams that had more than 0 byes, what was the total number of losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (losses VARCHAR, byes INTEGER)
SELECT COUNT(losses) FROM table_name_54 WHERE byes < 0
Write a SQL query that answers the following question: Who was the incumbent in the 20th district?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_name_16 WHERE district = "20th"
Write a SQL query that answers the following question: Which party has the 6th district?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (party VARCHAR, district VARCHAR)
SELECT party FROM table_name_49 WHERE district = "6th"
Write a SQL query that answers the following question: Which party has Ken Cuccinelli as an incumbent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_name_34 WHERE incumbent = "ken cuccinelli"
Write a SQL query that answers the following question: Which party was elected in 2003 with incumbent Mark Obenshain?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (party VARCHAR, elected VARCHAR, incumbent VARCHAR)
SELECT party FROM table_name_47 WHERE elected = 2003 AND incumbent = "mark obenshain"
Write a SQL query that answers the following question: Which incumbent was in the 24th district?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_name_60 WHERE district = "24th"
Write a SQL query that answers the following question: Name the sum of laps for mi-jack conquest racing and points less than 11
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (laps INTEGER, team VARCHAR, points VARCHAR)
SELECT SUM(laps) FROM table_name_19 WHERE team = "mi-jack conquest racing" AND points < 11
Write a SQL query that answers the following question: Name the points with grid more than 8 and time/retired of +47.487 secs
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (points VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT points FROM table_name_74 WHERE grid > 8 AND time_retired = "+47.487 secs"
Write a SQL query that answers the following question: Name the team with laps of 97 and grid of 3
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (team VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT team FROM table_name_79 WHERE laps = 97 AND grid = 3
Write a SQL query that answers the following question: Name the sum of grid with laps more than 97
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (grid INTEGER, laps INTEGER)
SELECT SUM(grid) FROM table_name_82 WHERE laps > 97
Write a SQL query that answers the following question: What are the most wins in 1971 in 250cc class?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (wins INTEGER, class VARCHAR, year VARCHAR)
SELECT MAX(wins) FROM table_name_11 WHERE class = "250cc" AND year = 1971
Write a SQL query that answers the following question: What is the earliest year with less than 45 points for Yamaha team in 21st rank?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (year INTEGER, rank VARCHAR, points VARCHAR, team VARCHAR)
SELECT MIN(year) FROM table_name_49 WHERE points < 45 AND team = "yamaha" AND rank = "21st"
Write a SQL query that answers the following question: How many Ends Won have Blank Ends smaller than 14, and a Locale of manitoba, and Stolen Ends larger than 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (ends_won INTEGER, stolen_ends VARCHAR, blank_ends VARCHAR, locale VARCHAR)
SELECT SUM(ends_won) FROM table_name_58 WHERE blank_ends < 14 AND locale = "manitoba" AND stolen_ends > 13
Write a SQL query that answers the following question: Which Skip has Ends Lost larger than 44, and Blank Ends of 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (skip VARCHAR, ends_lost VARCHAR, blank_ends VARCHAR)
SELECT skip FROM table_name_80 WHERE ends_lost > 44 AND blank_ends = 10
Write a SQL query that answers the following question: How many Stolen Ends have Ends Lost smaller than 44, and Blank Ends smaller than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (stolen_ends VARCHAR, ends_lost VARCHAR, blank_ends VARCHAR)
SELECT COUNT(stolen_ends) FROM table_name_83 WHERE ends_lost < 44 AND blank_ends < 7
Write a SQL query that answers the following question: What is the current status for GM Advanced Design with more than 41 seats?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (current_status VARCHAR, make VARCHAR, number_of_seats VARCHAR)
SELECT current_status FROM table_name_64 WHERE make = "gm advanced design" AND number_of_seats > 41
Write a SQL query that answers the following question: What is the quantity with more than 45 seats and MCI make?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (quantity VARCHAR, number_of_seats VARCHAR, make VARCHAR)
SELECT quantity FROM table_name_80 WHERE number_of_seats > 45 AND make = "mci"
Write a SQL query that answers the following question: What is the largest number of seats with more than 32 of a MCI make?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (number_of_seats INTEGER, make VARCHAR, quantity VARCHAR)
SELECT MAX(number_of_seats) FROM table_name_24 WHERE make = "mci" AND quantity > 32