instruction
stringlengths
67
299
input
stringlengths
110
572
output
stringlengths
18
557
Write a SQL query that answers the following question: Name the least races for carlin
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_24587026_1 (races INTEGER, team VARCHAR)
SELECT MIN(races) FROM table_24587026_1 WHERE team = "Carlin"
Write a SQL query that answers the following question: How many values for number occur with the hometown of Canton, Illinois?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_22824297_1 (no VARCHAR, hometown VARCHAR)
SELECT COUNT(no) FROM table_22824297_1 WHERE hometown = "Canton, Illinois"
Write a SQL query that answers the following question: What is the lowest number of losses for Nottingham City with fewer than 0 wins?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_28 (losses INTEGER, team VARCHAR, wins VARCHAR)
SELECT MIN(losses) FROM table_name_28 WHERE team = "nottingham city" AND wins < 0
Write a SQL query that answers the following question: What's the score when the Wolverhampton Wanderers played at home?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_4 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_4 WHERE home_team = "wolverhampton wanderers"
Write a SQL query that answers the following question: What is the total number of byes that has 13 losses and wins less than 5?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_41 (byes VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT COUNT(byes) FROM table_name_41 WHERE losses = 13 AND wins < 5
Write a SQL query that answers the following question: What date has an outcome of runner-up, and a Score of 6–4, 6–2, and a Opponents of gisela dulko flavia pennetta?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_42 (date VARCHAR, opponents VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT date FROM table_name_42 WHERE outcome = "runner-up" AND score = "6–4, 6–2" AND opponents = "gisela dulko flavia pennetta"
Write a SQL query that answers the following question: List the name of the phone model launched in year 2002 and with the highest RAM size.
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE chip_model (Model_name VARCHAR, Launch_year VARCHAR, RAM_MiB VARCHAR); CREATE TABLE phone (Hardware_Model_name VARCHAR, chip_model VARCHAR)
SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1
Write a SQL query that answers the following question: Who won at the Circuit of lakeside international raceway?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_89 (winner VARCHAR, circuit VARCHAR)
SELECT winner FROM table_name_89 WHERE circuit = "lakeside international raceway"
Write a SQL query that answers the following question: How many power kw have a frequency of 93.7 mhz?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_23915973_1 (power_kw VARCHAR, frequency VARCHAR)
SELECT COUNT(power_kw) FROM table_23915973_1 WHERE frequency = "93.7 MHz"
Write a SQL query that answers the following question: What is the description for the livery Br Grey?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_81 (description VARCHAR, livery VARCHAR)
SELECT description FROM table_name_81 WHERE livery = "br grey"
Write a SQL query that answers the following question: Who were the comedians on episode 1x03?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_23122988_1 (comedians VARCHAR, episode VARCHAR)
SELECT comedians FROM table_23122988_1 WHERE episode = "1x03"
Write a SQL query that answers the following question: What is the Year of the Film Belle of the Nineties?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_22 (year VARCHAR, film VARCHAR)
SELECT year FROM table_name_22 WHERE film = "belle of the nineties"
Write a SQL query that answers the following question: If Safari is 3.76%, what is the other Mozilla amount?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1876262_10 (other_mozilla VARCHAR, safari VARCHAR)
SELECT other_mozilla FROM table_1876262_10 WHERE safari = "3.76%"
Write a SQL query that answers the following question: Who replaced the outgoing manager Hüsnü Özkara?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_27091128_3 (replaced_by VARCHAR, outgoing_manager VARCHAR)
SELECT replaced_by FROM table_27091128_3 WHERE outgoing_manager = "Hüsnü Özkara"
Write a SQL query that answers the following question: What time did the game start during week 1?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_9 (time___et__ VARCHAR, week VARCHAR)
SELECT time___et__ FROM table_name_9 WHERE week = 1
Write a SQL query that answers the following question: What was the sum of Events, when Wins were less than 1, when Top-25 was 3, and when Top-5 was less than 1?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_57 (events INTEGER, top_5 VARCHAR, wins VARCHAR, top_25 VARCHAR)
SELECT SUM(events) FROM table_name_57 WHERE wins < 1 AND top_25 = 3 AND top_5 < 1
Write a SQL query that answers the following question: What is the Series of the Filmography by Directory Friz Freleng?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_93 (series VARCHAR, director VARCHAR)
SELECT series FROM table_name_93 WHERE director = "friz freleng"
Write a SQL query that answers the following question: What is average Overall, when Pick is 19?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_80 (overall INTEGER, pick VARCHAR)
SELECT AVG(overall) FROM table_name_80 WHERE pick = 19
Write a SQL query that answers the following question: Name the nominated work for 1996 and festival of black maria film and video festival
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_7 (nominated_work VARCHAR, year VARCHAR, festival VARCHAR)
SELECT nominated_work FROM table_name_7 WHERE year = 1996 AND festival = "black maria film and video festival"
Write a SQL query that answers the following question: When arthur collins is the winner what is the reason?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_28898948_3 (reason VARCHAR, winner VARCHAR)
SELECT reason FROM table_28898948_3 WHERE winner = "Arthur Collins"
Write a SQL query that answers the following question: What is the total and minimum enrollment of all schools?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE university (enrollment INTEGER)
SELECT SUM(enrollment), MIN(enrollment) FROM university
Write a SQL query that answers the following question: Who is the owner of Miss Terrible?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_40 (owner VARCHAR, winner VARCHAR)
SELECT owner FROM table_name_40 WHERE winner = "miss terrible"
Write a SQL query that answers the following question: What is Date, when Away Team is "Liverpool"?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_91 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_91 WHERE away_team = "liverpool"
Write a SQL query that answers the following question: WHAT IS THE HIGHEST POINTS FOR LOS ANGELES?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_89 (high_points VARCHAR, opponent VARCHAR)
SELECT high_points FROM table_name_89 WHERE opponent = "los angeles"
Write a SQL query that answers the following question: Which National team has a Club of arsenal, and Apps smaller than 4, and a Year of 2010?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_95 (national_team VARCHAR, year VARCHAR, club VARCHAR, apps VARCHAR)
SELECT national_team FROM table_name_95 WHERE club = "arsenal" AND apps < 4 AND year = "2010"
Write a SQL query that answers the following question: When kitchener rangers (oha) is the college, junior, or club team team who is the player?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1965650_9 (player VARCHAR, college_junior_club_team VARCHAR)
SELECT player FROM table_1965650_9 WHERE college_junior_club_team = "Kitchener Rangers (OHA)"
Write a SQL query that answers the following question: What is the frequency when callsign is dxru-fm?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_23915973_1 (frequency VARCHAR, callsign VARCHAR)
SELECT frequency FROM table_23915973_1 WHERE callsign = "DXRU-FM"
Write a SQL query that answers the following question: Name the loss for record of 71-81
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_23 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_23 WHERE record = "71-81"
Write a SQL query that answers the following question: Find the name of captains whose rank are either Midshipman or Lieutenant.
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE captain (name VARCHAR, rank VARCHAR)
SELECT name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant'
Write a SQL query that answers the following question: Which Points has a Position of 3, and a Drawn smaller than 2?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_55 (points INTEGER, position VARCHAR, drawn VARCHAR)
SELECT MAX(points) FROM table_name_55 WHERE position = 3 AND drawn < 2
Write a SQL query that answers the following question: What type of state was Lu, when Yi was the ruler from the royal house of Ji?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_39 (type VARCHAR, state VARCHAR, royal_house VARCHAR, name VARCHAR)
SELECT type FROM table_name_39 WHERE royal_house = "ji" AND name = "yi" AND state = "lu"
Write a SQL query that answers the following question: Can you tell me the lowest Losses that has the Gains smaller than 0?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_24 (losses INTEGER, gains INTEGER)
SELECT MIN(losses) FROM table_name_24 WHERE gains < 0
Write a SQL query that answers the following question: What nation has the lowest gold average that has a rank over 9?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_56 (gold INTEGER, rank INTEGER)
SELECT MIN(gold) FROM table_name_56 WHERE rank > 9
Write a SQL query that answers the following question: Which position is most popular among players in the tryout?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE tryout (pPos VARCHAR)
SELECT pPos FROM tryout GROUP BY pPos ORDER BY COUNT(*) DESC LIMIT 1
Write a SQL query that answers the following question: What is the Home Captain which has Waca Ground as a Venue
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_81 (home_captain VARCHAR, venue VARCHAR)
SELECT home_captain FROM table_name_81 WHERE venue = "waca ground"
Write a SQL query that answers the following question: Which ship had a tonnage over 8,782?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_8 (name_of_ship VARCHAR, tonnage INTEGER)
SELECT name_of_ship FROM table_name_8 WHERE tonnage > 8 OFFSET 782
Write a SQL query that answers the following question: What is the maximum McCain population turnout number?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_20684390_1 (mccain_number INTEGER)
SELECT MAX(mccain_number) FROM table_20684390_1
Write a SQL query that answers the following question: What is the game number held on May 20?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_52 (game INTEGER, date VARCHAR)
SELECT AVG(game) FROM table_name_52 WHERE date = "may 20"
Write a SQL query that answers the following question: Who all had the most assists in game 12?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_17060277_5 (high_assists VARCHAR, game VARCHAR)
SELECT high_assists FROM table_17060277_5 WHERE game = 12
Write a SQL query that answers the following question: What is the call sign for channel 6?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2638104_1 (callsign VARCHAR, channel VARCHAR)
SELECT callsign FROM table_2638104_1 WHERE channel = 6
Write a SQL query that answers the following question: Which Division has a Year larger than 1996,a Regular Season of 4th, and a Playoffs of final?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_76 (division VARCHAR, playoffs VARCHAR, year VARCHAR, regular_season VARCHAR)
SELECT division FROM table_name_76 WHERE year > 1996 AND regular_season = "4th" AND playoffs = "final"
Write a SQL query that answers the following question: How many laps have a Time/Retired of + 4 laps, and a Driver of graham hill?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_3 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_3 WHERE time_retired = "+ 4 laps" AND driver = "graham hill"
Write a SQL query that answers the following question: What is the id and detail of the vehicle used in lessons for most of the times?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE Lessons (vehicle_id VARCHAR); CREATE TABLE Vehicles (vehicle_id VARCHAR, vehicle_details VARCHAR)
SELECT T1.vehicle_id, T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY COUNT(*) DESC LIMIT 1
Write a SQL query that answers the following question: What is the title written by David Mamet?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_10908676_7 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_10908676_7 WHERE written_by = "David Mamet"
Write a SQL query that answers the following question: What was the Home team when Farnborough Town was the Away team?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_90 WHERE away_team = "farnborough town"
Write a SQL query that answers the following question: Name the total number of population for 1991 for 9564 for 2011
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2562572_5 (population__1991_ VARCHAR, population__2011_ VARCHAR)
SELECT COUNT(population__1991_) FROM table_2562572_5 WHERE population__2011_ = 9564
Write a SQL query that answers the following question: How many Bronze medals did the team ranked 1 win?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_32 (bronze VARCHAR, rank VARCHAR)
SELECT bronze FROM table_name_32 WHERE rank = "1"
Write a SQL query that answers the following question: What is the strongs words compounded when the english spelling is jonadab?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1242447_1 (strongs_words_compounded VARCHAR, english_spelling VARCHAR)
SELECT strongs_words_compounded FROM table_1242447_1 WHERE english_spelling = "Jonadab"
Write a SQL query that answers the following question: What is the home team score when north Melbourne was the away team?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_49 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_49 WHERE away_team = "north melbourne"
Write a SQL query that answers the following question: Which week had an attendance of 51,265?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_93 (week VARCHAR, attendance VARCHAR)
SELECT week FROM table_name_93 WHERE attendance = "51,265"
Write a SQL query that answers the following question: Which rank has 0 bronze and 2 silver?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_7 (gold INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT MIN(gold) FROM table_name_7 WHERE bronze = 0 AND silver < 2
Write a SQL query that answers the following question: What is ASTC Member, when State is Arkansas, when AAM Member is No, and when AAM Accredited is Yes?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_39 (astc_member VARCHAR, aam_accredited VARCHAR, state VARCHAR, aam_member VARCHAR)
SELECT astc_member FROM table_name_39 WHERE state = "arkansas" AND aam_member = "no" AND aam_accredited = "yes"
Write a SQL query that answers the following question: How many marks are there when tackles are 3?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2814720_1 (marks VARCHAR, tackles VARCHAR)
SELECT marks FROM table_2814720_1 WHERE tackles = 3
Write a SQL query that answers the following question: Which Surname has Bats of r, and a Position of p, and a DOB of 20 may 1989?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_73 (surname VARCHAR, dob VARCHAR, bats VARCHAR, position VARCHAR)
SELECT surname FROM table_name_73 WHERE bats = "r" AND position = "p" AND dob = "20 may 1989"
Write a SQL query that answers the following question: How many Againsts have more than 15 wins?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_84 (against VARCHAR, wins INTEGER)
SELECT COUNT(against) FROM table_name_84 WHERE wins > 15
Write a SQL query that answers the following question: Which date has a Score in the final of 4–6, 3–6?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_11 (date VARCHAR, score_in_the_final VARCHAR)
SELECT date FROM table_name_11 WHERE score_in_the_final = "4–6, 3–6"
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 statement: 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: Who are all the stage winners where the team classification is Caisse D'epargne?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_17672500_19 (stage__winner_ VARCHAR, team_classification VARCHAR)
SELECT stage__winner_ FROM table_17672500_19 WHERE team_classification = "Caisse d'Epargne"
Write a SQL query that answers the following question: Find the name and address of the department that has the highest number of students.
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR)
SELECT T2.dept_name, T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 1
Write a SQL query that answers the following question: Digital channel of 32 belongs to what analog channel?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_3 (analog_channel VARCHAR, digital_channel VARCHAR)
SELECT analog_channel FROM table_name_3 WHERE digital_channel = "32"
Write a SQL query that answers the following question: How many times did Boston Red Stockings lose in 2009 postseason?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE postseason (team_id_loser VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009
Write a SQL query that answers the following question: Which city has the most addresses? List the city name, number of addresses, and city id.
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE address (city_id VARCHAR); CREATE TABLE city (city VARCHAR, city_id VARCHAR)
SELECT T2.city, COUNT(*), T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id = T2.city_id GROUP BY T1.city_id ORDER BY COUNT(*) DESC LIMIT 1
Write a SQL query that answers the following question: What round is player phil graham in?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_8 (round VARCHAR, player VARCHAR)
SELECT round FROM table_name_8 WHERE player = "phil graham"
Write a SQL query that answers the following question: when was the loan ended when the country is ghana?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_37 (ended VARCHAR, country VARCHAR)
SELECT ended FROM table_name_37 WHERE country = "ghana"
Write a SQL query that answers the following question: What is the highest Top-5 ranking with Events less than 4?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_63 (top_5 INTEGER, events INTEGER)
SELECT MAX(top_5) FROM table_name_63 WHERE events < 4
Write a SQL query that answers the following question: What opponent got 44 points in their game?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_23243769_4 (opponent VARCHAR, opp_points VARCHAR)
SELECT opponent FROM table_23243769_4 WHERE opp_points = 44
Write a SQL query that answers the following question: What is the average number of people injured by all perpetrators?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE perpetrator (Injured INTEGER)
SELECT AVG(Injured) FROM perpetrator
Write a SQL query that answers the following question: Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE Treatments (dog_id VARCHAR, cost_of_treatment INTEGER); CREATE TABLE Owners (owner_id VARCHAR, zip_code VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR, dog_id VARCHAR)
SELECT T1.owner_id, T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY SUM(T3.cost_of_treatment) DESC LIMIT 1
Write a SQL query that answers the following question: What is the average number of laps for grid 8?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_69 (laps INTEGER, grid VARCHAR)
SELECT AVG(laps) FROM table_name_69 WHERE grid = 8
Write a SQL query that answers the following question: What is the maximum torque at rpm for the engine coded BJB/BKC/BXE/BLS?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_7 (max_torque_at_rpm VARCHAR, engine_code_s_ VARCHAR)
SELECT max_torque_at_rpm FROM table_name_7 WHERE engine_code_s_ = "bjb/bkc/bxe/bls"
Write a SQL query that answers the following question: What is the Location and Attendance with a Record of 21–22?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_16 (location_attendance VARCHAR, record VARCHAR)
SELECT location_attendance FROM table_name_16 WHERE record = "21–22"
Write a SQL query that answers the following question: What is the Opponent of the game with a H/A/N of H and Score of 120-99?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_89 (opponent VARCHAR, h_a_n VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_89 WHERE h_a_n = "h" AND score = "120-99"
Write a SQL query that answers the following question: Name the highest Against on 21 november 1978?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_30 (against INTEGER, date VARCHAR)
SELECT MAX(against) FROM table_name_30 WHERE date = "21 november 1978"
Write a SQL query that answers the following question: What Venue had Carlton has the Away team?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_29 WHERE away_team = "carlton"
Write a SQL query that answers the following question: What was the result for Lane 3?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_12 (result VARCHAR, lane VARCHAR)
SELECT result FROM table_name_12 WHERE lane = 3
Write a SQL query that answers the following question: What is the Date of the Sutton United Home game?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_35 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_35 WHERE home_team = "sutton united"
Write a SQL query that answers the following question: How many games does novica veličković have when there's more than 24 rebounds?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_57 (games VARCHAR, name VARCHAR, rebounds VARCHAR)
SELECT COUNT(games) FROM table_name_57 WHERE name = "novica veličković" AND rebounds > 24
Write a SQL query that answers the following question: What is the Region of the release on December 22, 2008?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_2 (region VARCHAR, date VARCHAR)
SELECT region FROM table_name_2 WHERE date = "december 22, 2008"
Write a SQL query that answers the following question: What was the tries against count for the club whose tries for count was 29?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_12886178_4 (tries_against VARCHAR, tries_for VARCHAR)
SELECT tries_against FROM table_12886178_4 WHERE tries_for = "29"
Write a SQL query that answers the following question: What is the highest crude death rate when deaths are 3 433 and average population is greater than 298?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_16 (crude_death_rate__per_1000_ INTEGER, deaths VARCHAR, average_population__x_1000_ VARCHAR)
SELECT MAX(crude_death_rate__per_1000_) FROM table_name_16 WHERE deaths = "3 433" AND average_population__x_1000_ > 298
Write a SQL query that answers the following question: What is the result of the game played at Jinan?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_26 (result VARCHAR, venue VARCHAR)
SELECT result FROM table_name_26 WHERE venue = "jinan"
Write a SQL query that answers the following question: What is the pos for the New York Knicks?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_2 (pos VARCHAR, team VARCHAR)
SELECT pos FROM table_name_2 WHERE team = "new york knicks"
Write a SQL query that answers the following question: How many movie reviews does each director get?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE Rating (mID VARCHAR); CREATE TABLE Movie (director VARCHAR, mID VARCHAR)
SELECT COUNT(*), T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director
Write a SQL query that answers the following question: What's the date for princess royal class locomotive trust?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_77 (date VARCHAR, owner_s_ VARCHAR)
SELECT date FROM table_name_77 WHERE owner_s_ = "princess royal class locomotive trust"
Write a SQL query that answers the following question: What is the score for set 1 with a total of 117–109?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_58 (set_1 VARCHAR, total VARCHAR)
SELECT set_1 FROM table_name_58 WHERE total = "117–109"
Write a SQL query that answers the following question: What is the s7 4.0 tfsi quattro engine torque?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_21154679_1 (torque VARCHAR, model VARCHAR)
SELECT torque FROM table_21154679_1 WHERE model = "S7 4.0 TFSI quattro"
Write a SQL query that answers the following question: Name the area for north bay village
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_22916979_5 (metropolitan_area VARCHAR, densest_incorporated_place VARCHAR)
SELECT metropolitan_area FROM table_22916979_5 WHERE densest_incorporated_place = "North Bay Village"
Write a SQL query that answers the following question: How much Drawn has Goals Against larger than 74, and a Lost smaller than 20, and a Played larger than 38?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_43 (drawn VARCHAR, played VARCHAR, goals_against VARCHAR, lost VARCHAR)
SELECT COUNT(drawn) FROM table_name_43 WHERE goals_against > 74 AND lost < 20 AND played > 38
Write a SQL query that answers the following question: What is the date for the Indianapolis circuit?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_15299235_1 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_15299235_1 WHERE circuit = "Indianapolis"
Write a SQL query that answers the following question: What is the Chinese title with a premiere rating of 31?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_91 (chinese_title VARCHAR, premiere VARCHAR)
SELECT chinese_title FROM table_name_91 WHERE premiere = 31
Write a SQL query that answers the following question: What is the lowest pick number for players from king's (ny)?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_13 (pick INTEGER, college VARCHAR)
SELECT MIN(pick) FROM table_name_13 WHERE college = "king's (ny)"
Write a SQL query that answers the following question: How long does track Fast As a Shark has?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE tracks (milliseconds VARCHAR, name VARCHAR)
SELECT milliseconds FROM tracks WHERE name = "Fast As a Shark"
Write a SQL query that answers the following question: Name the sum of week with attendance of 62,233
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_49 (week INTEGER, attendance VARCHAR)
SELECT SUM(week) FROM table_name_49 WHERE attendance = 62 OFFSET 233
Write a SQL query that answers the following question: What is the sum of Week, when Date is December 2, 2001?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_7 (week INTEGER, date VARCHAR)
SELECT SUM(week) FROM table_name_7 WHERE date = "december 2, 2001"
Write a SQL query that answers the following question: What week was the game that had an attendance of 24,242?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_34 (week VARCHAR, attendance VARCHAR)
SELECT week FROM table_name_34 WHERE attendance = "24,242"
Write a SQL query that answers the following question: How many votes did Jeannemarie Devolites Davis get in 1995-Special?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_90 (votes VARCHAR, opponent VARCHAR, year VARCHAR)
SELECT votes FROM table_name_90 WHERE opponent = "jeannemarie devolites davis" AND year = "1995-special"
Write a SQL query that answers the following question: When victoria coren and rhod gilbert are both on the lees team what is the score?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_23575917_6 (scores VARCHAR, lees_team VARCHAR)
SELECT scores FROM table_23575917_6 WHERE lees_team = "Victoria Coren and Rhod Gilbert"
Write a SQL query that answers the following question: what is the owner of the callsign wliw
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1979203_1 (owner VARCHAR, callsign VARCHAR)
SELECT owner FROM table_1979203_1 WHERE callsign = "WLIW"
Write a SQL query that answers the following question: Who has an overall greater than 414 with a pick# bigger than 9?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_81 (name VARCHAR, overall VARCHAR, pick__number VARCHAR)
SELECT name FROM table_name_81 WHERE overall > 414 AND pick__number > 9
Write a SQL query that answers the following question: What is the format for Digital 94.9?
The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_73 (format VARCHAR, brand VARCHAR)
SELECT format FROM table_name_73 WHERE brand = "digital 94.9"