instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the Power when the acceleration 0–100km/h (0–62mph) is 9.1 s?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (power VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)
SELECT power FROM table_name_49 WHERE acceleration_0_100km_h__0_62mph_ = "9.1 s"
Write a SQL query that answers the following question: What is the transmission when the engine is 2.0l, and acceleration 0–100km/h (0–62mph) is 10.5 s?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (transmission VARCHAR, engine VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)
SELECT transmission FROM table_name_99 WHERE engine = "2.0l" AND acceleration_0_100km_h__0_62mph_ = "10.5 s"
Write a SQL query that answers the following question: What is the production when engine is 2.7l, and acceleration 0–100km/h (0–62mph) is 8.5 s?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (production VARCHAR, engine VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)
SELECT production FROM table_name_5 WHERE engine = "2.7l" AND acceleration_0_100km_h__0_62mph_ = "8.5 s"
Write a SQL query that answers the following question: What is the transmission when the production was 2002-2005?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (transmission VARCHAR, production VARCHAR)
SELECT transmission FROM table_name_29 WHERE production = "2002-2005"
Write a SQL query that answers the following question: What is the acceleration 0–100km/h (0–62mph) when the transmission is 5-speed manual?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (acceleration_0_100km_h__0_62mph_ VARCHAR, transmission VARCHAR)
SELECT acceleration_0_100km_h__0_62mph_ FROM table_name_69 WHERE transmission = "5-speed manual"
Write a SQL query that answers the following question: What is the highest year for the Bethesda Game Studios Developer?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (year INTEGER, developer_s_ VARCHAR)
SELECT MAX(year) FROM table_name_68 WHERE developer_s_ = "bethesda game studios"
Write a SQL query that answers the following question: What is the lowest year for the game called The Elder Scrolls v: Skyrim?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (year INTEGER, game VARCHAR)
SELECT MIN(year) FROM table_name_99 WHERE game = "the elder scrolls v: skyrim"
Write a SQL query that answers the following question: What game was developed by Naughty Dog?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (genre VARCHAR, developer_s_ VARCHAR)
SELECT genre FROM table_name_33 WHERE developer_s_ = "naughty dog"
Write a SQL query that answers the following question: What is the imed/avicenna listed for a medical school offshore in saint kitts and nevis which was established before 2000 and will give you an MD?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (imed_avicenna_listed VARCHAR, established VARCHAR, degree VARCHAR, regional_offshore VARCHAR, country_territory VARCHAR)
SELECT imed_avicenna_listed FROM table_name_31 WHERE regional_offshore = "offshore" AND country_territory = "saint kitts and nevis" AND degree = "md" AND established < 2000
Write a SQL query that answers the following question: What country has a medical school established in 1969 with both an IMED and avicenna?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (country_territory VARCHAR, imed_avicenna_listed VARCHAR, established VARCHAR)
SELECT country_territory FROM table_name_15 WHERE imed_avicenna_listed = "both" AND established = 1969
Write a SQL query that answers the following question: What is the average year that the medical school in dominican republic was established?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (established INTEGER, country_territory VARCHAR)
SELECT AVG(established) FROM table_name_86 WHERE country_territory = "dominican republic"
Write a SQL query that answers the following question: What are the most wins with byes more than 0 and 1637 against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (wins INTEGER, against VARCHAR, byes VARCHAR)
SELECT MAX(wins) FROM table_name_99 WHERE against = 1637 AND byes > 0
Write a SQL query that answers the following question: What are the total byes for the Red Cliffs with more than 4 losses and more than 2422 against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (byes VARCHAR, against VARCHAR, losses VARCHAR, sunrayia_fl VARCHAR)
SELECT COUNT(byes) FROM table_name_78 WHERE losses > 4 AND sunrayia_fl = "red cliffs" AND against > 2422
Write a SQL query that answers the following question: What's the total wins for Wentworth with less than 0 byes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (wins VARCHAR, sunrayia_fl VARCHAR, byes VARCHAR)
SELECT COUNT(wins) FROM table_name_45 WHERE sunrayia_fl = "wentworth" AND byes < 0
Write a SQL query that answers the following question: Which venue had an opponent of Sunderland and a result of a 1-1 draw?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (venue VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT venue FROM table_name_40 WHERE opponent = "sunderland" AND result = "1-1"
Write a SQL query that answers the following question: What is the number of attendance values for ties having an opponent of Middlesbrough and result of 3-1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (attendance VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT COUNT(attendance) FROM table_name_2 WHERE opponent = "middlesbrough" AND result = "3-1"
Write a SQL query that answers the following question: Which venue ended in a 3-0 result?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_35 WHERE result = "3-0"
Write a SQL query that answers the following question: Where was a 0-5 game played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_7 WHERE result = "0-5"
Write a SQL query that answers the following question: What is the average rank of a player with fewer than 3 matches?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (rank INTEGER, matches INTEGER)
SELECT AVG(rank) FROM table_name_38 WHERE matches < 3
Write a SQL query that answers the following question: Who was the opponent on April 21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_24 WHERE date = "april 21"
Write a SQL query that answers the following question: What's the record on April 12 when the location was The Omni?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (record VARCHAR, location_attendance VARCHAR, date VARCHAR)
SELECT record FROM table_name_25 WHERE location_attendance = "the omni" AND date = "april 12"
Write a SQL query that answers the following question: What date was the score "score"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (date VARCHAR)
SELECT date FROM table_name_91 WHERE "score" = "score"
Write a SQL query that answers the following question: What's the score of game 77?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_20 WHERE game = "77"
Write a SQL query that answers the following question: What date had a record of 43-34?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_17 WHERE record = "43-34"
Write a SQL query that answers the following question: What Artist had a Percentage of 17.14%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (artist VARCHAR, percentage VARCHAR)
SELECT artist FROM table_name_5 WHERE percentage = "17.14%"
Write a SQL query that answers the following question: What Percentage has a Place of 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (percentage VARCHAR, place VARCHAR)
SELECT percentage FROM table_name_73 WHERE place = 5
Write a SQL query that answers the following question: Which BR number has an LMS number over 14768?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (br_number VARCHAR, lms_number INTEGER)
SELECT br_number FROM table_name_5 WHERE lms_number > 14768
Write a SQL query that answers the following question: what is the frequency when the city of license is belleville?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (frequency VARCHAR, city_of_license VARCHAR)
SELECT frequency FROM table_name_42 WHERE city_of_license = "belleville"
Write a SQL query that answers the following question: what is the class when the power is 22500 watts?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (class VARCHAR, power VARCHAR)
SELECT class FROM table_name_17 WHERE power = "22500 watts"
Write a SQL query that answers the following question: what is the class when the identifier is cjbc-1-fm?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (class VARCHAR, identifier VARCHAR)
SELECT class FROM table_name_60 WHERE identifier = "cjbc-1-fm"
Write a SQL query that answers the following question: what is the recnet when the city of license is peterborough?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (recnet VARCHAR, city_of_license VARCHAR)
SELECT recnet FROM table_name_68 WHERE city_of_license = "peterborough"
Write a SQL query that answers the following question: what is the power when the city of license is belleville?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (power VARCHAR, city_of_license VARCHAR)
SELECT power FROM table_name_71 WHERE city_of_license = "belleville"
Write a SQL query that answers the following question: what is the identifier when the power is 22500 watts?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (identifier VARCHAR, power VARCHAR)
SELECT identifier FROM table_name_17 WHERE power = "22500 watts"
Write a SQL query that answers the following question: What is the Opponents in the game with a Date of nov. 25?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (opponents INTEGER, date VARCHAR)
SELECT MIN(opponents) FROM table_name_80 WHERE date = "nov. 25"
Write a SQL query that answers the following question: How many games does leandro love have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (games VARCHAR, name VARCHAR)
SELECT games FROM table_name_96 WHERE name = "leandro love"
Write a SQL query that answers the following question: What is the lowest number of goals joe keenan, who has more than 1 assists, had in 2007/08?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (goals INTEGER, assists VARCHAR, years VARCHAR, name VARCHAR)
SELECT MIN(goals) FROM table_name_84 WHERE years = "2007/08" AND name = "joe keenan" AND assists > 1
Write a SQL query that answers the following question: What is the lowest number of goals of the player with 9 (0) games and less than 0 assists?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (goals INTEGER, games VARCHAR, assists VARCHAR)
SELECT MIN(goals) FROM table_name_37 WHERE games = "9 (0)" AND assists < 0
Write a SQL query that answers the following question: How many finals had more than 0 goals and 8 assists?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (finals VARCHAR, goals VARCHAR, assists VARCHAR)
SELECT finals FROM table_name_14 WHERE goals > 0 AND assists = 8
Write a SQL query that answers the following question: When the nationality is united states, and the time is 58.06, and the heat is larger than 5 what is the lowest rank?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (rank INTEGER, heat VARCHAR, nationality VARCHAR, time VARCHAR)
SELECT MIN(rank) FROM table_name_6 WHERE nationality = "united states" AND time = "58.06" AND heat > 5
Write a SQL query that answers the following question: What is the highest rank when the lane is larger than 6, and the heat is 3, and the nationality is colombia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (rank INTEGER, nationality VARCHAR, lane VARCHAR, heat VARCHAR)
SELECT MAX(rank) FROM table_name_67 WHERE lane > 6 AND heat = 3 AND nationality = "colombia"
Write a SQL query that answers the following question: What is the total lane for a heat larger than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (lane VARCHAR, heat INTEGER)
SELECT COUNT(lane) FROM table_name_16 WHERE heat > 7
Write a SQL query that answers the following question: What is the highest heat when the nationality is poland, and the lane is smaller than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (heat INTEGER, nationality VARCHAR, lane VARCHAR)
SELECT MAX(heat) FROM table_name_22 WHERE nationality = "poland" AND lane < 6
Write a SQL query that answers the following question: Which Lead Pitch/mm has a Body Width/mm larger than 10.16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (lead_pitch_mm INTEGER, body_width_mm INTEGER)
SELECT SUM(lead_pitch_mm) FROM table_name_28 WHERE body_width_mm > 10.16
Write a SQL query that answers the following question: How much Body Width/mm has a Part Number of tsop40/44, and a Body Length/mm smaller than 18.42?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (body_width_mm INTEGER, part_number VARCHAR, body_length_mm VARCHAR)
SELECT SUM(body_width_mm) FROM table_name_66 WHERE part_number = "tsop40/44" AND body_length_mm < 18.42
Write a SQL query that answers the following question: Which Lead Pitch/mm has a Part Number of tsop24/28?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (lead_pitch_mm INTEGER, part_number VARCHAR)
SELECT MAX(lead_pitch_mm) FROM table_name_13 WHERE part_number = "tsop24/28"
Write a SQL query that answers the following question: What is the highest amount of silver when gold is 1 and bronze larger than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (silver INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT MAX(silver) FROM table_name_40 WHERE gold = 1 AND bronze > 0
Write a SQL query that answers the following question: What is the Time of the Athlete with a Reaction time of 0.164?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (time INTEGER, reaction_time VARCHAR)
SELECT SUM(time) FROM table_name_48 WHERE reaction_time = 0.164
Write a SQL query that answers the following question: What is the Time of the Athlete in Lane 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (time VARCHAR, lane VARCHAR)
SELECT COUNT(time) FROM table_name_34 WHERE lane = 4
Write a SQL query that answers the following question: What is the Lane of the Athlete from Great Britain with a Reaction time of less than 0.218 and a Time larger than 44.74?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (lane INTEGER, nationality VARCHAR, reaction_time VARCHAR, time VARCHAR)
SELECT SUM(lane) FROM table_name_82 WHERE reaction_time < 0.218 AND time > 44.74 AND nationality = "great britain"
Write a SQL query that answers the following question: What is the time in week 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (tv_time VARCHAR, week VARCHAR)
SELECT tv_time FROM table_name_29 WHERE week = 3
Write a SQL query that answers the following question: What is the week with attendance of 73,572?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (week INTEGER, attendance VARCHAR)
SELECT MAX(week) FROM table_name_61 WHERE attendance = "73,572"
Write a SQL query that answers the following question: What week was the opponent the San Diego Chargers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (week VARCHAR, opponent VARCHAR)
SELECT COUNT(week) FROM table_name_94 WHERE opponent = "san diego chargers"
Write a SQL query that answers the following question: What week was the result of l 38–21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (week INTEGER, result VARCHAR)
SELECT MAX(week) FROM table_name_63 WHERE result = "l 38–21"
Write a SQL query that answers the following question: What's the total of Rank for the County of Galway and has a Total that's larger than 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (rank INTEGER, county VARCHAR, total VARCHAR)
SELECT SUM(rank) FROM table_name_60 WHERE county = "galway" AND total > 13
Write a SQL query that answers the following question: What County has an Opposition of Antrim and the Player Bernie Forde?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (county VARCHAR, opposition VARCHAR, player VARCHAR)
SELECT county FROM table_name_53 WHERE opposition = "antrim" AND player = "bernie forde"
Write a SQL query that answers the following question: What's the highest Rank for the County of Offaly, the Player of Mark Corrigan, and the Total that is smaller than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (rank INTEGER, total VARCHAR, county VARCHAR, player VARCHAR)
SELECT MAX(rank) FROM table_name_49 WHERE county = "offaly" AND player = "mark corrigan" AND total < 8
Write a SQL query that answers the following question: Which Channel has an Opponent of washington redskins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (channel VARCHAR, opponent VARCHAR)
SELECT channel FROM table_name_41 WHERE opponent = "washington redskins"
Write a SQL query that answers the following question: Which attendance has a Channel of espn, and a Date of september 5, 2002?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (attendance VARCHAR, channel VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_57 WHERE channel = "espn" AND date = "september 5, 2002"
Write a SQL query that answers the following question: Which Date has a Result of w 27–20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_30 WHERE result = "w 27–20"
Write a SQL query that answers the following question: Which Week has an Attendance of 63,447?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (week VARCHAR, attendance VARCHAR)
SELECT week FROM table_name_35 WHERE attendance = "63,447"
Write a SQL query that answers the following question: Which Date has a Stadium of giants stadium, and a Week smaller than 13, and an Opponent of seattle seahawks?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (date VARCHAR, opponent VARCHAR, stadium VARCHAR, week VARCHAR)
SELECT date FROM table_name_79 WHERE stadium = "giants stadium" AND week < 13 AND opponent = "seattle seahawks"
Write a SQL query that answers the following question: Who was the athlete with react of 0.185?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (athlete VARCHAR, react VARCHAR)
SELECT athlete FROM table_name_79 WHERE react = 0.185
Write a SQL query that answers the following question: What's the smallest react of Zimbabwe, ranked after 1 in a lane after 3 and a time less than 20.3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (react INTEGER, rank VARCHAR, nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT MIN(react) FROM table_name_90 WHERE lane > 3 AND time < 20.3 AND nationality = "zimbabwe" AND rank > 1
Write a SQL query that answers the following question: What is the total number of white (Hispanic/Non-Hispanic) having a black (Hispanic/Non-Hispanic) of 9.9 and Hispanic under 99.5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (white__both_hispanic_and_non_hispanic_ VARCHAR, black__both_hispanic_and_non_hispanic_ VARCHAR, hispanic__of_any_race_ VARCHAR)
SELECT COUNT(white__both_hispanic_and_non_hispanic_) FROM table_name_77 WHERE black__both_hispanic_and_non_hispanic_ = 9.9 AND hispanic__of_any_race_ < 99.5
Write a SQL query that answers the following question: What is the average black value (Hispanic/Non-Hispanic) having a white (Hispanic/Non-Hispanic) under 61.9, Multiracial (Hispanic/Non-Hispanic) under 12.5 and Hispanic under 99.4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (black__both_hispanic_and_non_hispanic_ INTEGER, hispanic__of_any_race_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR, multiracial__both_hispanic_and_non_hispanic_ VARCHAR)
SELECT AVG(black__both_hispanic_and_non_hispanic_) FROM table_name_99 WHERE white__both_hispanic_and_non_hispanic_ < 61.9 AND multiracial__both_hispanic_and_non_hispanic_ < 12.5 AND hispanic__of_any_race_ < 99.4
Write a SQL query that answers the following question: What is the highest Amerindian (Hispanic/Non-Hispanic) value having a Black (Hispanic/Non-Hispanic) of 15.7 and White (Hispanic/Non-Hispanic) over 69.5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (amerindian__both_hispanic_and_non_hispanic_ INTEGER, black__both_hispanic_and_non_hispanic_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR)
SELECT MAX(amerindian__both_hispanic_and_non_hispanic_) FROM table_name_67 WHERE black__both_hispanic_and_non_hispanic_ = 15.7 AND white__both_hispanic_and_non_hispanic_ > 69.5
Write a SQL query that answers the following question: What is the Black (Hispanic/Non-Hispanic) value having a white (Hispanic/Non-Hispanic) under 80.6, Asian (Hispanic/Non-Hispanic) of 0.1, Amerindian (Hispanic/Non-Hispanic) under 0.6000000000000001, and municipality of Vega Baja?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (black__both_hispanic_and_non_hispanic_ VARCHAR, municipality__2010_ VARCHAR, amerindian__both_hispanic_and_non_hispanic_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR, n_asia__both_hispanic_and_non_hispanic_ VARCHAR)
SELECT black__both_hispanic_and_non_hispanic_ FROM table_name_63 WHERE white__both_hispanic_and_non_hispanic_ < 80.6 AND n_asia__both_hispanic_and_non_hispanic_ = 0.1 AND amerindian__both_hispanic_and_non_hispanic_ < 0.6000000000000001 AND municipality__2010_ = "vega baja"
Write a SQL query that answers the following question: What season had 3rd position, a 36 pld, and a bbl div?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (season VARCHAR, div VARCHAR, pos VARCHAR, pld VARCHAR)
SELECT season FROM table_name_81 WHERE pos = "3rd" AND pld = "36" AND div = "bbl"
Write a SQL query that answers the following question: What season has 36 pld, a bbl div, and 6th position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (season VARCHAR, pos VARCHAR, pld VARCHAR, div VARCHAR)
SELECT season FROM table_name_87 WHERE pld = "36" AND div = "bbl" AND pos = "6th"
Write a SQL query that answers the following question: What season had 6th position and 36 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (season VARCHAR, pos VARCHAR, pts VARCHAR)
SELECT season FROM table_name_40 WHERE pos = "6th" AND pts = "36"
Write a SQL query that answers the following question: What season had 1st position, 33 pld, and 58 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (season VARCHAR, pts VARCHAR, pos VARCHAR, pld VARCHAR)
SELECT season FROM table_name_21 WHERE pos = "1st" AND pld = "33" AND pts = "58"
Write a SQL query that answers the following question: Which School has a Mascot of generals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (school VARCHAR, mascot VARCHAR)
SELECT school FROM table_name_21 WHERE mascot = "generals"
Write a SQL query that answers the following question: Which School has an IHSAA Class of aaa, and a Mascot of saints?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (school VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)
SELECT school FROM table_name_76 WHERE ihsaa_class = "aaa" AND mascot = "saints"
Write a SQL query that answers the following question: What is the highest enrollment in Lagrange where the mascot is panthers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (enrollment INTEGER, location VARCHAR, mascot VARCHAR)
SELECT MAX(enrollment) FROM table_name_48 WHERE location = "lagrange" AND mascot = "panthers"
Write a SQL query that answers the following question: What is the enrollment at the school of Hamilton community?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (enrollment INTEGER, school VARCHAR)
SELECT AVG(enrollment) FROM table_name_3 WHERE school = "hamilton community"
Write a SQL query that answers the following question: What school that has a IHSAA Class of AA, in Butler?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (school VARCHAR, ihsaa_class VARCHAR, location VARCHAR)
SELECT school FROM table_name_62 WHERE ihsaa_class = "aa" AND location = "butler"
Write a SQL query that answers the following question: What is the mascot at Hamilton Community?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (mascot VARCHAR, school VARCHAR)
SELECT mascot FROM table_name_62 WHERE school = "hamilton community"
Write a SQL query that answers the following question: What school is in Lagrange, with an IHSAA Class of aaa?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (school VARCHAR, location VARCHAR, ihsaa_class VARCHAR)
SELECT school FROM table_name_80 WHERE location = "lagrange" AND ihsaa_class = "aaa"
Write a SQL query that answers the following question: What school is in Ligonier?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (school VARCHAR, location VARCHAR)
SELECT school FROM table_name_11 WHERE location = "ligonier"
Write a SQL query that answers the following question: What is the total in 2000–2012, with more than 2 silver, 0 Bronze, and a Rank smaller than 70?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (total INTEGER, rank VARCHAR, bronze VARCHAR, years VARCHAR, silver VARCHAR)
SELECT SUM(total) FROM table_name_71 WHERE years = "2000–2012" AND silver > 2 AND bronze = 0 AND rank < 70
Write a SQL query that answers the following question: What nation scored 7 in shooting in 1920?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (nation VARCHAR, years VARCHAR, sport VARCHAR, total VARCHAR)
SELECT nation FROM table_name_39 WHERE sport = "shooting" AND total = 7 AND years = "1920"
Write a SQL query that answers the following question: What's the average Round of Pete Laframboise?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (round INTEGER, player VARCHAR)
SELECT AVG(round) FROM table_name_59 WHERE player = "pete laframboise"
Write a SQL query that answers the following question: What country is Pick 100?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (nationality VARCHAR, pick VARCHAR)
SELECT nationality FROM table_name_97 WHERE pick = 100
Write a SQL query that answers the following question: Who were the rowers for Great britain?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (rowers VARCHAR, country VARCHAR)
SELECT rowers FROM table_name_50 WHERE country = "great britain"
Write a SQL query that answers the following question: What country has a time of 7:28.66 and a rank less than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (country VARCHAR, rank VARCHAR, time VARCHAR)
SELECT country FROM table_name_27 WHERE rank < 3 AND time = "7:28.66"
Write a SQL query that answers the following question: What are the notes when the time was 7:42.92 and the rank is more than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (notes VARCHAR, rank VARCHAR, time VARCHAR)
SELECT notes FROM table_name_65 WHERE rank > 1 AND time = "7:42.92"
Write a SQL query that answers the following question: What's the score of Tie number 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_48 WHERE tie_no = "11"
Write a SQL query that answers the following question: What's the tie number when the away team was Mansfield Town?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_3 WHERE away_team = "mansfield town"
Write a SQL query that answers the following question: What date was Newcastle United the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_42 WHERE away_team = "newcastle united"
Write a SQL query that answers the following question: Who was the away team when Brighton & Hove Albion was home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_95 WHERE home_team = "brighton & hove albion"
Write a SQL query that answers the following question: What's the tie number of Chelsea when they were home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_96 WHERE home_team = "chelsea"
Write a SQL query that answers the following question: What's the score when Orient was home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_10 WHERE home_team = "orient"
Write a SQL query that answers the following question: What designer has a restaurant named The Citizen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (designer VARCHAR, restaurant_name VARCHAR)
SELECT designer FROM table_name_42 WHERE restaurant_name = "the citizen"
Write a SQL query that answers the following question: What is the original name of the place by designer Glen Peloso with a Location of n/a?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (original_name VARCHAR, designer VARCHAR, location VARCHAR)
SELECT original_name FROM table_name_4 WHERE designer = "glen peloso" AND location = "n/a"
Write a SQL query that answers the following question: What chef that has a location in Toronto, ON, that has n/a as the original name, and a Restaurant Name of Bagel World?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (chef VARCHAR, restaurant_name VARCHAR, location VARCHAR, original_name VARCHAR)
SELECT chef FROM table_name_6 WHERE location = "toronto, on" AND original_name = "n/a" AND restaurant_name = "bagel world"
Write a SQL query that answers the following question: What is the name of the restaurant originally named Essence?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (restaurant_name VARCHAR, original_name VARCHAR)
SELECT restaurant_name FROM table_name_93 WHERE original_name = "essence"
Write a SQL query that answers the following question: What designer has a restaurant named of Cork & Cabbage?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (designer VARCHAR, restaurant_name VARCHAR)
SELECT designer FROM table_name_53 WHERE restaurant_name = "cork & cabbage"
Write a SQL query that answers the following question: Which athlete had a six month suspension from IIHF?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (athlete VARCHAR, punishment VARCHAR)
SELECT athlete FROM table_name_55 WHERE punishment = "six month suspension from iihf"
Write a SQL query that answers the following question: How many bronze medals did the team have with 0 total silver and less than 3 total medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT bronze FROM table_name_4 WHERE total < 3 AND silver > 0
Write a SQL query that answers the following question: What is the total number of bronze medals for the team with more than 4 silver and less than 30 gold medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (bronze VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT COUNT(bronze) FROM table_name_41 WHERE silver > 4 AND nation = "total" AND gold < 30