instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the Artist of the Song with a Place of withdrawn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (artist VARCHAR, place VARCHAR)
SELECT artist FROM table_name_28 WHERE place = "withdrawn"
Write a SQL query that answers the following question: Which week had a result of L 38-21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_91 WHERE result = "l 38-21"
Write a SQL query that answers the following question: Who was the opponent after week 8 that had 72,190 people in attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (opponent VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_96 WHERE week > 8 AND attendance = "72,190"
Write a SQL query that answers the following question: Who won the Gold Medal in Moscow after the year 1982?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (gold VARCHAR, year VARCHAR, place VARCHAR)
SELECT gold FROM table_name_55 WHERE year > 1982 AND place = "moscow"
Write a SQL query that answers the following question: What is the lowest total that has a rank less than 8, a silver greater than 6, and 20 as the bronze?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (total INTEGER, bronze VARCHAR, rank VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_70 WHERE rank < 8 AND silver > 6 AND bronze = 20
Write a SQL query that answers the following question: What is the average silver that has a gold greater than 3, with soviet union (urs) as the nation, and a bronze greater than 26?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (silver INTEGER, bronze VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT AVG(silver) FROM table_name_8 WHERE gold > 3 AND nation = "soviet union (urs)" AND bronze > 26
Write a SQL query that answers the following question: What is the highest silver that has 57 as the total, with a bronze greater than 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (silver INTEGER, total VARCHAR, bronze VARCHAR)
SELECT MAX(silver) FROM table_name_82 WHERE total = 57 AND bronze > 20
Write a SQL query that answers the following question: What rank has a gold greater than 0, 0 as the bronze, with germany (ger) as the nation?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (rank VARCHAR, nation VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT rank FROM table_name_20 WHERE gold > 0 AND bronze = 0 AND nation = "germany (ger)"
Write a SQL query that answers the following question: How many bronzes have 1 as the total, with spain (esp) as the nation, and a gold greater than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (bronze VARCHAR, gold VARCHAR, total VARCHAR, nation VARCHAR)
SELECT COUNT(bronze) FROM table_name_31 WHERE total = 1 AND nation = "spain (esp)" AND gold > 0
Write a SQL query that answers the following question: Which Prominence (m) has a Peak of nakanai mountains high point, and an Elevation (m) smaller than 2,316?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (prominence__m_ INTEGER, peak VARCHAR, elevation__m_ VARCHAR)
SELECT AVG(prominence__m_) FROM table_name_37 WHERE peak = "nakanai mountains high point" AND elevation__m_ < 2 OFFSET 316
Write a SQL query that answers the following question: What position Jason Fitzgerald played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_89 WHERE player = "jason fitzgerald"
Write a SQL query that answers the following question: Jason Romano played for what team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (team VARCHAR, player VARCHAR)
SELECT team FROM table_name_9 WHERE player = "jason romano"
Write a SQL query that answers the following question: What are the dimensions of the amp with a 180W output?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (dimensions VARCHAR, output VARCHAR)
SELECT dimensions FROM table_name_96 WHERE output = "180w"
Write a SQL query that answers the following question: Which player was from Fermanagh and had an average score of 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (average INTEGER, total VARCHAR, county VARCHAR)
SELECT AVG(average) FROM table_name_53 WHERE total = 22 AND county = "fermanagh"
Write a SQL query that answers the following question: How many total points did Oisin McConville have from his 5 matches?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (total VARCHAR, player VARCHAR, matches VARCHAR)
SELECT COUNT(total) FROM table_name_90 WHERE player = "oisin mcconville" AND matches < 5
Write a SQL query that answers the following question: How many attendances have October 30, 1977 as the date, with a week greater than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (attendance VARCHAR, date VARCHAR, week VARCHAR)
SELECT COUNT(attendance) FROM table_name_16 WHERE date = "october 30, 1977" AND week > 7
Write a SQL query that answers the following question: What is the lowest attendance that has l 42-35 as the result, with a week less than 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (attendance INTEGER, result VARCHAR, week VARCHAR)
SELECT MIN(attendance) FROM table_name_82 WHERE result = "l 42-35" AND week < 13
Write a SQL query that answers the following question: Who is from south korea and has a heat less than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (name VARCHAR, heat VARCHAR, nationality VARCHAR)
SELECT name FROM table_name_44 WHERE heat < 3 AND nationality = "south korea"
Write a SQL query that answers the following question: What is the highest heat of the athlete from spain with a lane less than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (heat INTEGER, nationality VARCHAR, lane VARCHAR)
SELECT MAX(heat) FROM table_name_2 WHERE nationality = "spain" AND lane < 7
Write a SQL query that answers the following question: What is the average lane of the athlete from japan with a time of 4:37.35 and a heat less than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (lane INTEGER, heat VARCHAR, nationality VARCHAR, time VARCHAR)
SELECT AVG(lane) FROM table_name_78 WHERE nationality = "japan" AND time = "4:37.35" AND heat < 3
Write a SQL query that answers the following question: What is the lowest Gold count if the Bronze is 4 and Silver is greater than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (gold INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT MIN(gold) FROM table_name_45 WHERE bronze = 4 AND silver > 5
Write a SQL query that answers the following question: What is the Average for Silver medals that have more than 17 Golds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (silver INTEGER, gold INTEGER)
SELECT AVG(silver) FROM table_name_50 WHERE gold > 17
Write a SQL query that answers the following question: What is the highest number of Silver medals with a Total greater than 14 and more than 15 Bronze medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (silver INTEGER, total VARCHAR, bronze VARCHAR)
SELECT MAX(silver) FROM table_name_38 WHERE total > 14 AND bronze > 15
Write a SQL query that answers the following question: Who is the music-director for the song from the film khaleja who had a co-singer of hemachandra?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (music___director VARCHAR, co___singer VARCHAR, film VARCHAR)
SELECT music___director FROM table_name_69 WHERE co___singer = "hemachandra" AND film = "khaleja"
Write a SQL query that answers the following question: What was the score for the matchup having attendance of 354?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (score VARCHAR, att VARCHAR)
SELECT score FROM table_name_25 WHERE att = 354
Write a SQL query that answers the following question: What nation had a medal total of less than 10, less than 1 bronze medal, in rank 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (nation VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT nation FROM table_name_79 WHERE total < 10 AND bronze < 1 AND rank = "11"
Write a SQL query that answers the following question: How many gold medals did the team that won a total of 10 medals and 3 silver medals win?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT gold FROM table_name_44 WHERE silver = 3 AND total = 10
Write a SQL query that answers the following question: What is the total number of medals won by teams that won more than 11 bronze medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (total VARCHAR, bronze INTEGER)
SELECT COUNT(total) FROM table_name_41 WHERE bronze > 11
Write a SQL query that answers the following question: What is the lowest react of the athlete from the United States who has a lane less than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (react INTEGER, country VARCHAR, lane VARCHAR)
SELECT MIN(react) FROM table_name_53 WHERE country = "united states" AND lane < 4
Write a SQL query that answers the following question: What is the lowest of the athlete from sri lanka who has a lane greater than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (react INTEGER, country VARCHAR, lane VARCHAR)
SELECT MIN(react) FROM table_name_62 WHERE country = "sri lanka" AND lane > 8
Write a SQL query that answers the following question: What is the average react of athlete muna lee, who is ranked greater than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (react INTEGER, athlete VARCHAR, rank VARCHAR)
SELECT AVG(react) FROM table_name_4 WHERE athlete = "muna lee" AND rank > 3
Write a SQL query that answers the following question: What is the average lane of the athlete from cuba who has a time greater than 22.57 and react less than 0.245?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (lane INTEGER, country VARCHAR, time VARCHAR, react VARCHAR)
SELECT AVG(lane) FROM table_name_8 WHERE time > 22.57 AND react < 0.245 AND country = "cuba"
Write a SQL query that answers the following question: What is the average react of the athlete with a time less than 22.29 and a rank greater than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (react INTEGER, time VARCHAR, rank VARCHAR)
SELECT AVG(react) FROM table_name_11 WHERE time < 22.29 AND rank > 1
Write a SQL query that answers the following question: Who is the Opponent on December 7, 2003?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_22 WHERE date = "december 7, 2003"
Write a SQL query that answers the following question: What is the Tv Time of the game with an Attendance of 73,578?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (tv_time VARCHAR, attendance VARCHAR)
SELECT tv_time FROM table_name_40 WHERE attendance = "73,578"
Write a SQL query that answers the following question: What is the highest result for Wallace Spearmon when the reaction time is greater than 0.167?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (result INTEGER, name VARCHAR, reaction_time VARCHAR)
SELECT MAX(result) FROM table_name_7 WHERE name = "wallace spearmon" AND reaction_time > 0.167
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 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 lowest result for Christian Malcolm with a reaction time greater than 0.185 and a lane higher than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (result INTEGER, lane VARCHAR, reaction_time VARCHAR, name VARCHAR)
SELECT MIN(result) FROM table_name_66 WHERE reaction_time > 0.185 AND name = "christian malcolm" AND lane > 3
Write a SQL query that answers the following question: What are the lowest conceded with 1 draw, and a score larger than 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (conceded INTEGER, draws VARCHAR, scored VARCHAR)
SELECT MIN(conceded) FROM table_name_71 WHERE draws = 1 AND scored > 14
Write a SQL query that answers the following question: What are the lowest losses with more than 13 scored, and more than 7 draws?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (losses INTEGER, scored VARCHAR, draws VARCHAR)
SELECT MIN(losses) FROM table_name_38 WHERE scored > 13 AND draws > 7
Write a SQL query that answers the following question: What is the average played for less than 8 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (played INTEGER, points INTEGER)
SELECT AVG(played) FROM table_name_37 WHERE points < 8
Write a SQL query that answers the following question: What competition has a Result of 1–2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (competition VARCHAR, result VARCHAR)
SELECT competition FROM table_name_73 WHERE result = "1–2"
Write a SQL query that answers the following question: What is moving from fee in Hun country?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (moving_from VARCHAR, country VARCHAR)
SELECT moving_from FROM table_name_33 WHERE country = "hun"
Write a SQL query that answers the following question: What is thr type in Aut country?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (type VARCHAR, country VARCHAR)
SELECT type FROM table_name_81 WHERE country = "aut"
Write a SQL query that answers the following question: Who is the owner of the radio station that plays adult hits?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (owner VARCHAR, format VARCHAR)
SELECT owner FROM table_name_8 WHERE format = "adult hits"
Write a SQL query that answers the following question: What is the call sign for the radio owned by astral media?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (call_sign VARCHAR, owner VARCHAR)
SELECT call_sign FROM table_name_7 WHERE owner = "astral media"
Write a SQL query that answers the following question: What is the frequency for the radio owned by bell media with a call sign of chsu-fm?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (frequency VARCHAR, owner VARCHAR, call_sign VARCHAR)
SELECT frequency FROM table_name_6 WHERE owner = "bell media" AND call_sign = "chsu-fm"
Write a SQL query that answers the following question: What is the branding for the radio with a frequency of 1150 am?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (branding VARCHAR, frequency VARCHAR)
SELECT branding FROM table_name_44 WHERE frequency = "1150 am"
Write a SQL query that answers the following question: What was the format for the radio with a frequency of 00 96.3 fm?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (format VARCHAR, frequency VARCHAR)
SELECT format FROM table_name_8 WHERE frequency = "00 96.3 fm"
Write a SQL query that answers the following question: Who is the owner of the radio frequency of 0 101.5 fm?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (owner VARCHAR, frequency VARCHAR)
SELECT owner FROM table_name_90 WHERE frequency = "0 101.5 fm"
Write a SQL query that answers the following question: how many times is the name matt targett and the lane higher than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (time VARCHAR, name VARCHAR, lane VARCHAR)
SELECT COUNT(time) FROM table_name_44 WHERE name = "matt targett" AND lane > 7
Write a SQL query that answers the following question: what is the highest time when the rank is less than 5 and the name is eamon sullivan?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (time INTEGER, rank VARCHAR, name VARCHAR)
SELECT MAX(time) FROM table_name_30 WHERE rank < 5 AND name = "eamon sullivan"
Write a SQL query that answers the following question: what is the average rank when the lane is more than 4 and the name is dominik meichtry?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (rank INTEGER, lane VARCHAR, name VARCHAR)
SELECT AVG(rank) FROM table_name_97 WHERE lane > 4 AND name = "dominik meichtry"
Write a SQL query that answers the following question: What is the 2012 Employees (Total) when the rank (2012) is 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (rank__2012_ VARCHAR)
SELECT 2012 AS _employees__total_ FROM table_name_63 WHERE rank__2012_ = 7
Write a SQL query that answers the following question: What shows for 2010 Employees (Total) when the employer is University of Alberta?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (employer VARCHAR)
SELECT SUM(2010 AS _employees__total_) FROM table_name_1 WHERE employer = "university of alberta"
Write a SQL query that answers the following question: What year was the 190 South Lasalle Street?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (year INTEGER, name VARCHAR)
SELECT MAX(year) FROM table_name_9 WHERE name = "190 south lasalle street"
Write a SQL query that answers the following question: What rank has a Time of 4:00.191?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (rank VARCHAR, time VARCHAR)
SELECT rank FROM table_name_94 WHERE time = "4:00.191"
Write a SQL query that answers the following question: What is the time for Brazil?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (time VARCHAR, country VARCHAR)
SELECT time FROM table_name_5 WHERE country = "brazil"
Write a SQL query that answers the following question: what is the date when the format is cd (limited edition steel-box) from united kingdom?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (date VARCHAR, format VARCHAR, country VARCHAR)
SELECT date FROM table_name_16 WHERE format = "cd (limited edition steel-box)" AND country = "united kingdom"
Write a SQL query that answers the following question: What is the country that has the format of cd, the label of sony music and the catalogue no sicp-2055?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (country VARCHAR, catalogue_no VARCHAR, format VARCHAR, label VARCHAR)
SELECT country FROM table_name_61 WHERE format = "cd" AND label = "sony music" AND catalogue_no = "sicp-2055"
Write a SQL query that answers the following question: what is the format for the country united kingdom on 20 october 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (format VARCHAR, country VARCHAR, date VARCHAR)
SELECT format FROM table_name_28 WHERE country = "united kingdom" AND date = "20 october 2008"
Write a SQL query that answers the following question: what is the catalogue no when the format is cd (limited edition steel-box) and the country is germany?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (catalogue_no VARCHAR, format VARCHAR, country VARCHAR)
SELECT catalogue_no FROM table_name_12 WHERE format = "cd (limited edition steel-box)" AND country = "germany"
Write a SQL query that answers the following question: Which Total has a Rank of 4, and a Silver larger than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (total INTEGER, rank VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_11 WHERE rank = "4" AND silver > 2
Write a SQL query that answers the following question: How much Total has a Rank of 5, and a Bronze larger than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (total INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT SUM(total) FROM table_name_44 WHERE rank = "5" AND bronze > 3
Write a SQL query that answers the following question: Which Silver has a Nation of total, and a Bronze smaller than 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT MAX(silver) FROM table_name_1 WHERE nation = "total" AND bronze < 18
Write a SQL query that answers the following question: How much Silver has a Nation of total, and a Total smaller than 54?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (silver VARCHAR, nation VARCHAR)
SELECT COUNT(silver) FROM table_name_58 WHERE nation = "total" AND "total" < 54
Write a SQL query that answers the following question: What was the result for the award for best current affairs presenter?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (result VARCHAR, award VARCHAR)
SELECT result FROM table_name_68 WHERE award = "best current affairs presenter"
Write a SQL query that answers the following question: Which award was given to Lianhe Zaobao?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (award VARCHAR, organisation VARCHAR)
SELECT award FROM table_name_84 WHERE organisation = "lianhe zaobao"
Write a SQL query that answers the following question: What's the release date of Feather Finger with an MM Series?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (release_date VARCHAR, series VARCHAR, title VARCHAR)
SELECT release_date FROM table_name_4 WHERE series = "mm" AND title = "feather finger"
Write a SQL query that answers the following question: Which Opponent has a Venue of h, and a Result of 0–1, and a Date of 29 august 1998?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (opponent VARCHAR, date VARCHAR, venue VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_12 WHERE venue = "h" AND result = "0–1" AND date = "29 august 1998"
Write a SQL query that answers the following question: Which Opponent has a Result of 1–1, and a Date of 28 november 1998?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (opponent VARCHAR, result VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_30 WHERE result = "1–1" AND date = "28 november 1998"
Write a SQL query that answers the following question: What was the venue on 14 november 1998?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_82 WHERE date = "14 november 1998"
Write a SQL query that answers the following question: Which Place is the highest one that has a Draw larger than 1, and 49 Points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (place INTEGER, draw VARCHAR, points VARCHAR)
SELECT MAX(place) FROM table_name_3 WHERE draw > 1 AND points = 49
Write a SQL query that answers the following question: Which Song has Points smaller than 54, and a Draw smaller than 4, and a Place smaller than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (song VARCHAR, place VARCHAR, points VARCHAR, draw VARCHAR)
SELECT song FROM table_name_90 WHERE points < 54 AND draw < 4 AND place < 10
Write a SQL query that answers the following question: What is the bronze number when the total is 54/
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (bronze INTEGER, total VARCHAR)
SELECT AVG(bronze) FROM table_name_30 WHERE total = 54
Write a SQL query that answers the following question: What is the least bronze number when the silver is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (bronze INTEGER, silver INTEGER)
SELECT MIN(bronze) FROM table_name_34 WHERE silver < 0
Write a SQL query that answers the following question: What is the least silver when the total is more than 2, bronze is 3, gold is more than 0, and rank is 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (silver INTEGER, rank VARCHAR, gold VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT MIN(silver) FROM table_name_4 WHERE total > 2 AND bronze = 3 AND gold > 0 AND rank = "1"
Write a SQL query that answers the following question: What is the number of silver when the total is more than 2, and bronze is less than 3, with a rank of 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (silver VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT COUNT(silver) FROM table_name_44 WHERE total > 2 AND bronze < 3 AND rank = "7"
Write a SQL query that answers the following question: Which Time has a Lane smaller than 4, and a Rank larger than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (time INTEGER, lane VARCHAR, rank VARCHAR)
SELECT AVG(time) FROM table_name_94 WHERE lane < 4 AND rank > 6
Write a SQL query that answers the following question: Which Rank has a Nationality of france, and a Name of alain bernard, and a Lane smaller than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (rank INTEGER, lane VARCHAR, nationality VARCHAR, name VARCHAR)
SELECT AVG(rank) FROM table_name_18 WHERE nationality = "france" AND name = "alain bernard" AND lane < 6
Write a SQL query that answers the following question: Which Nationality has a Rank larger than 1, and a Time smaller than 22.12, and a Lane smaller than 4, and a Name of ashley callus?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (nationality VARCHAR, name VARCHAR, lane VARCHAR, rank VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_99 WHERE rank > 1 AND time < 22.12 AND lane < 4 AND name = "ashley callus"
Write a SQL query that answers the following question: When the date is 8 october 2008 what is the sum of attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_62 WHERE date = "8 october 2008"
Write a SQL query that answers the following question: What date has an against of pohang steelers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (date VARCHAR, against VARCHAR)
SELECT date FROM table_name_2 WHERE against = "pohang steelers"
Write a SQL query that answers the following question: What weekday has an against of kashima antlers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (weekday VARCHAR, against VARCHAR)
SELECT weekday FROM table_name_68 WHERE against = "kashima antlers"
Write a SQL query that answers the following question: What was the final score of Game #4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_14 WHERE game = 4
Write a SQL query that answers the following question: Which Level has a Leading scorer 1 of tom greaves 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (level VARCHAR, leading_scorer_1 VARCHAR)
SELECT level FROM table_name_26 WHERE leading_scorer_1 = "tom greaves 8"
Write a SQL query that answers the following question: Which Leading scorer 1 has a Season of 2010–11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (leading_scorer_1 VARCHAR, season VARCHAR)
SELECT leading_scorer_1 FROM table_name_8 WHERE season = "2010–11"
Write a SQL query that answers the following question: Which Leading scorer 1 has a League Contested of northern premier league premier division, and an FA Cup of 2q?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (leading_scorer_1 VARCHAR, leaguecontested VARCHAR, fa_cup VARCHAR)
SELECT leading_scorer_1 FROM table_name_2 WHERE leaguecontested = "northern premier league premier division" AND fa_cup = "2q"
Write a SQL query that answers the following question: Which Level has a League Contested of northern premier league premier division, and a Season of 2011–12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (level INTEGER, leaguecontested VARCHAR, season VARCHAR)
SELECT AVG(level) FROM table_name_45 WHERE leaguecontested = "northern premier league premier division" AND season = "2011–12"
Write a SQL query that answers the following question: What is the least Top-5 when 1 is the cuts made?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (top_5 INTEGER, cuts_made VARCHAR)
SELECT MIN(top_5) FROM table_name_36 WHERE cuts_made = 1
Write a SQL query that answers the following question: With events less than 0, what is the fewest Top-5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (top_5 INTEGER, events INTEGER)
SELECT MIN(top_5) FROM table_name_12 WHERE events < 0
Write a SQL query that answers the following question: How many wins of average has cuts made less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (wins INTEGER, cuts_made INTEGER)
SELECT AVG(wins) FROM table_name_79 WHERE cuts_made < 0
Write a SQL query that answers the following question: How many events total is the Top-5 2, and 4 is the cuts made, and less than 0 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (events VARCHAR, wins VARCHAR, top_5 VARCHAR, cuts_made VARCHAR)
SELECT COUNT(events) FROM table_name_58 WHERE top_5 = 2 AND cuts_made = 4 AND wins < 0
Write a SQL query that answers the following question: In the Open Championship with more than 3 cuts made, what is the average wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (wins INTEGER, tournament VARCHAR, cuts_made VARCHAR)
SELECT AVG(wins) FROM table_name_15 WHERE tournament = "the open championship" AND cuts_made > 3
Write a SQL query that answers the following question: What lane did the barbados swimmer compete in before heat 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (lane VARCHAR, heat VARCHAR, nationality VARCHAR)
SELECT lane FROM table_name_23 WHERE heat < 3 AND nationality = "barbados"
Write a SQL query that answers the following question: What was the time of the 5th ranked swimmer who swam after heat 3 and was in a lane under 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (time VARCHAR, rank VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT time FROM table_name_24 WHERE heat > 3 AND lane < 5 AND rank = 5
Write a SQL query that answers the following question: What is the average population for an area less than 433.7km and a 23013 code?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (population INTEGER, area__km_2__ VARCHAR, code VARCHAR)
SELECT AVG(population) FROM table_name_17 WHERE area__km_2__ < 433.7 AND code = 23013
Write a SQL query that answers the following question: What is the total code number for Amadiba?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (code VARCHAR, place VARCHAR)
SELECT COUNT(code) FROM table_name_54 WHERE place = "amadiba"
Write a SQL query that answers the following question: What is the total capacity for the Leicester Tigers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (capacity VARCHAR, club VARCHAR)
SELECT COUNT(capacity) FROM table_name_61 WHERE club = "leicester tigers"
Write a SQL query that answers the following question: What town has the Welford Road Stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (city_town VARCHAR, stadium VARCHAR)
SELECT city_town FROM table_name_3 WHERE stadium = "welford road"