instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Tell me the record for december 3
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_47 WHERE date = "december 3"
Write a SQL query that answers the following question: Name the record for dallas visitor
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_86 WHERE visitor = "dallas"
Write a SQL query that answers the following question: Name the score for december 5
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_36 WHERE date = "december 5"
Write a SQL query that answers the following question: Who is Princes Park's home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_6 WHERE venue = "princes park"
Write a SQL query that answers the following question: Who is North Melbourne's home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_30 WHERE away_team = "north melbourne"
Write a SQL query that answers the following question: In the Crews beyond 2006 what was the Year 8 1st Quads that exists in the same row that had the year 9 2nd Quads of BGGS?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (year_8_1st_quad VARCHAR, year_9_2nd_quad VARCHAR, crew VARCHAR)
SELECT year_8_1st_quad FROM table_name_67 WHERE year_9_2nd_quad = "bggs" AND crew > 2006
Write a SQL query that answers the following question: For the Crew with Year 9 2nd Quads of STM, Year 9 1st Quads of SOM, and a Year 8 3rd Quads of STA what was the Year 8 1st Quads?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (year_8_1st_quad VARCHAR, year_8_3rd_quad VARCHAR, year_9_2nd_quad VARCHAR, year_9_1st_quad VARCHAR)
SELECT year_8_1st_quad FROM table_name_5 WHERE year_9_2nd_quad = "stm" AND year_9_1st_quad = "som" AND year_8_3rd_quad = "sta"
Write a SQL query that answers the following question: Which character was in the sexiest female category of the British Soap Awards?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (character VARCHAR, category VARCHAR, award VARCHAR)
SELECT character FROM table_name_59 WHERE category = "sexiest female" AND award = "british soap awards"
Write a SQL query that answers the following question: Which film or series was nominated in the category of best fansite?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (film_or_series VARCHAR, result VARCHAR, category VARCHAR)
SELECT film_or_series FROM table_name_2 WHERE result = "nominated" AND category = "best fansite"
Write a SQL query that answers the following question: Where does Essendon play their home games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_38 WHERE home_team = "essendon"
Write a SQL query that answers the following question: What team plays their home games in Victoria Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_30 WHERE venue = "victoria park"
Write a SQL query that answers the following question: What is the total attendance with a Report of sd.hr, and a Score of 3–1, and a Date of 14 apr 2001?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (attendance INTEGER, date VARCHAR, report VARCHAR, score VARCHAR)
SELECT SUM(attendance) FROM table_name_22 WHERE report = "sd.hr" AND score = "3–1" AND date = "14 apr 2001"
Write a SQL query that answers the following question: What is the highest production code when the writer was brian egeston after season 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (production_code INTEGER, written_by VARCHAR, season__number VARCHAR)
SELECT MAX(production_code) FROM table_name_6 WHERE written_by = "brian egeston" AND season__number > 5
Write a SQL query that answers the following question: What was the record when chicago was the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (record VARCHAR, home VARCHAR)
SELECT record FROM table_name_63 WHERE home = "chicago"
Write a SQL query that answers the following question: How many people were in the crowd when the Home Team was Hawthorn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(crowd) FROM table_name_58 WHERE home_team = "hawthorn"
Write a SQL query that answers the following question: What's the average Grid with Laps of 88?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (grid INTEGER, laps VARCHAR)
SELECT AVG(grid) FROM table_name_66 WHERE laps = 88
Write a SQL query that answers the following question: Which driver has a Time/Retired of +6 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (driver VARCHAR, time_retired VARCHAR)
SELECT driver FROM table_name_21 WHERE time_retired = "+6 laps"
Write a SQL query that answers the following question: What did Hawthorn score as the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_21 WHERE home_team = "hawthorn"
Write a SQL query that answers the following question: What team played South Melbourne at their home game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_22 WHERE home_team = "south melbourne"
Write a SQL query that answers the following question: What team played Geelong at their away game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_59 WHERE away_team = "geelong"
Write a SQL query that answers the following question: What is the 1989 result of the tournament in which Katerina Maleeva finished 4r in 1991?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (Id VARCHAR)
SELECT 1989 FROM table_name_60 WHERE 1991 = "4r"
Write a SQL query that answers the following question: What is the 1989 result of the tournament in which Katerina finished nh in 1986?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (Id VARCHAR)
SELECT 1989 FROM table_name_94 WHERE 1986 = "nh"
Write a SQL query that answers the following question: What is the total of the ranks that did not participate?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (total VARCHAR, rank VARCHAR)
SELECT total FROM table_name_88 WHERE rank = "did not participate"
Write a SQL query that answers the following question: What is the decile for Westminster Christian School with a state integrated authority?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (decile VARCHAR, authority VARCHAR, name VARCHAR)
SELECT decile FROM table_name_55 WHERE authority = "state integrated" AND name = "westminster christian school"
Write a SQL query that answers the following question: What are the years when the authority was state integrated and a decile of 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (years VARCHAR, authority VARCHAR, decile VARCHAR)
SELECT years FROM table_name_45 WHERE authority = "state integrated" AND decile = "9"
Write a SQL query that answers the following question: What did the team score while away in moorabbin oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_30 WHERE venue = "moorabbin oval"
Write a SQL query that answers the following question: When was the general foods pga seniors' championship tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_66 WHERE tournament = "general foods pga seniors' championship"
Write a SQL query that answers the following question: What was the attendance on location when the record was 3–16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (location_attendance VARCHAR, record VARCHAR)
SELECT location_attendance FROM table_name_86 WHERE record = "3–16"
Write a SQL query that answers the following question: On what date was a two-way tie (8) the high rebound?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (date VARCHAR, high_rebounds VARCHAR)
SELECT date FROM table_name_3 WHERE high_rebounds = "two-way tie (8)"
Write a SQL query that answers the following question: What is the home team score with Away team Richmond?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_20 WHERE away_team = "richmond"
Write a SQL query that answers the following question: What is the smallest crowd for victoria park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_89 WHERE venue = "victoria park"
Write a SQL query that answers the following question: what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (_jerk VARCHAR, clean_ INTEGER, total__kg_ VARCHAR, snatch VARCHAR)
SELECT MAX(clean_) & _jerk FROM table_name_92 WHERE total__kg_ = "200.0" AND snatch > 87.5
Write a SQL query that answers the following question: what is the average bodyweight when snatch is 80?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (bodyweight INTEGER, snatch VARCHAR)
SELECT AVG(bodyweight) FROM table_name_89 WHERE snatch = 80
Write a SQL query that answers the following question: What did the home team score at Windy Hill?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_92 WHERE venue = "windy hill"
Write a SQL query that answers the following question: When the home team was Richmond, what was the largest crowd?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_49 WHERE home_team = "richmond"
Write a SQL query that answers the following question: Tell me the average 1st prize for tennessee
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (location VARCHAR)
SELECT AVG(1 AS st_prize__) AS $__ FROM table_name_55 WHERE location = "tennessee"
Write a SQL query that answers the following question: Tell me the winner of the comfort classic
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (winner VARCHAR, tournament VARCHAR)
SELECT winner FROM table_name_97 WHERE tournament = "comfort classic"
Write a SQL query that answers the following question: How many percentages have losses fewer than 1 with finals appearances of 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (pct VARCHAR, losses VARCHAR, finals VARCHAR)
SELECT COUNT(pct) FROM table_name_13 WHERE losses < 1 AND finals = 4
Write a SQL query that answers the following question: Name the least age for the 1st dose for 3 doses of 2-3 drops
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (minimum_age_at_1st_dose VARCHAR, number_of_doses VARCHAR, dose VARCHAR)
SELECT minimum_age_at_1st_dose FROM table_name_28 WHERE number_of_doses = "3 doses" AND dose = "2-3 drops"
Write a SQL query that answers the following question: How many doses for the bacillus calmette-guérin?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (number_of_doses VARCHAR, vaccine VARCHAR)
SELECT number_of_doses FROM table_name_13 WHERE vaccine = "bacillus calmette-guérin"
Write a SQL query that answers the following question: What team did team carlton play while away?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_42 WHERE away_team = "carlton"
Write a SQL query that answers the following question: What home team plays at Windy Hill?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_77 WHERE venue = "windy hill"
Write a SQL query that answers the following question: What was the 2nd Party in the 1918 Election?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (election VARCHAR)
SELECT 2 AS nd_party FROM table_name_66 WHERE election = "1918"
Write a SQL query that answers the following question: What was the 3rd Party in the Election of 1922?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (election VARCHAR)
SELECT 3 AS rd_party FROM table_name_35 WHERE election = "1922"
Write a SQL query that answers the following question: What is the ERP W number where the frequency is smaller than 91.1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (erp_w INTEGER, frequency_mhz INTEGER)
SELECT MAX(erp_w) FROM table_name_6 WHERE frequency_mhz < 91.1
Write a SQL query that answers the following question: What was the score of Collingwood?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_69 WHERE home_team = "collingwood"
Write a SQL query that answers the following question: Where did South Melbourne play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_83 WHERE away_team = "south melbourne"
Write a SQL query that answers the following question: What is the venue of North Melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_79 WHERE home_team = "north melbourne"
Write a SQL query that answers the following question: What was the loss from the coyotes as opponents?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (loss VARCHAR, opponent VARCHAR)
SELECT loss FROM table_name_20 WHERE opponent = "coyotes"
Write a SQL query that answers the following question: What was the last episode featuring Rob Estes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (final_episode VARCHAR, actor VARCHAR)
SELECT final_episode FROM table_name_93 WHERE actor = "rob estes"
Write a SQL query that answers the following question: What block has a COSPAR ID of 1995-060a?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (block VARCHAR, cospar_id VARCHAR)
SELECT block FROM table_name_23 WHERE cospar_id = "1995-060a"
Write a SQL query that answers the following question: What rocket has a Block of block i and a COSPAR ID of 1995-060a?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (rocket VARCHAR, block VARCHAR, cospar_id VARCHAR)
SELECT rocket FROM table_name_41 WHERE block = "block i" AND cospar_id = "1995-060a"
Write a SQL query that answers the following question: What name has a Rocket of titan iv(401)b and a Block of block i/ii hybrid?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (name VARCHAR, rocket VARCHAR, block VARCHAR)
SELECT name FROM table_name_2 WHERE rocket = "titan iv(401)b" AND block = "block i/ii hybrid"
Write a SQL query that answers the following question: What rocket has a block i/ii hybrid?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (rocket VARCHAR, block VARCHAR)
SELECT rocket FROM table_name_30 WHERE block = "block i/ii hybrid"
Write a SQL query that answers the following question: What rocket has a COSPAR ID of 2002-001a?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (rocket VARCHAR, cospar_id VARCHAR)
SELECT rocket FROM table_name_31 WHERE cospar_id = "2002-001a"
Write a SQL query that answers the following question: What COSPAR ID has a Launch date/time (UTC) of 1995-11-06, 05:15:01?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (cospar_id VARCHAR, launch_date_time__utc_ VARCHAR)
SELECT cospar_id FROM table_name_40 WHERE launch_date_time__utc_ = "1995-11-06, 05:15:01"
Write a SQL query that answers the following question: On 15/04/07 in the competition Super League XII, what was the score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT score FROM table_name_94 WHERE competition = "super league xii" AND date = "15/04/07"
Write a SQL query that answers the following question: On 21/07/07, what was the score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_12 WHERE date = "21/07/07"
Write a SQL query that answers the following question: What was the venue of season 1907?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (venue VARCHAR, season VARCHAR)
SELECT venue FROM table_name_48 WHERE season = "1907"
Write a SQL query that answers the following question: What is the bowling score of season 1907?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (bowling VARCHAR, season VARCHAR)
SELECT bowling FROM table_name_23 WHERE season = "1907"
Write a SQL query that answers the following question: Which season did Tich Freeman play against opponent V Warwickshire?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (season VARCHAR, player VARCHAR, opponent VARCHAR)
SELECT season FROM table_name_62 WHERE player = "tich freeman" AND opponent = "v warwickshire"
Write a SQL query that answers the following question: What was South Melbourne's score as the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_45 WHERE home_team = "south melbourne"
Write a SQL query that answers the following question: How many points did the home team Essendon score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_4 WHERE home_team = "essendon"
Write a SQL query that answers the following question: What character is in over 22 episodes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (character VARCHAR, episodes INTEGER)
SELECT character FROM table_name_91 WHERE episodes > 22
Write a SQL query that answers the following question: What is the lowest number of episodes for anabel barnston?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (episodes INTEGER, actor VARCHAR)
SELECT MIN(episodes) FROM table_name_35 WHERE actor = "anabel barnston"
Write a SQL query that answers the following question: What character is played by dani harmer for under 23 episodes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (character VARCHAR, episodes VARCHAR, actor VARCHAR)
SELECT character FROM table_name_51 WHERE episodes < 23 AND actor = "dani harmer"
Write a SQL query that answers the following question: How many episodes have a duration of 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (episodes VARCHAR, duration VARCHAR)
SELECT COUNT(episodes) FROM table_name_35 WHERE duration = "3"
Write a SQL query that answers the following question: What is the name of the away team who play Collingwood?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_7 WHERE home_team = "collingwood"
Write a SQL query that answers the following question: What date did Collingwood play as the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_75 WHERE home_team = "collingwood"
Write a SQL query that answers the following question: What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (year_of_disaffiliation INTEGER, station VARCHAR, year_of_affiliation VARCHAR)
SELECT MAX(year_of_disaffiliation) FROM table_name_31 WHERE station = "chch-tv" AND year_of_affiliation > 2001
Write a SQL query that answers the following question: What is the earliest year of disaffiliation of a CHCH-TV station, licensed in Hamilton, Ontario?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (year_of_disaffiliation INTEGER, city_of_license_market VARCHAR)
SELECT MIN(year_of_disaffiliation) FROM table_name_74 WHERE city_of_license_market = "hamilton, ontario"
Write a SQL query that answers the following question: How many bronze medals did west germany win when they had less than 2 silver medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT SUM(bronze) FROM table_name_29 WHERE nation = "west germany" AND silver < 2
Write a SQL query that answers the following question: How many bronze medals were won when the total was larger than 2 and the more than 2 gold medals were won?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (bronze INTEGER, total VARCHAR, gold VARCHAR)
SELECT SUM(bronze) FROM table_name_70 WHERE total > 2 AND gold > 2
Write a SQL query that answers the following question: How many gold medals were won when more than 2 bronze medals were won?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (gold INTEGER, bronze INTEGER)
SELECT SUM(gold) FROM table_name_62 WHERE bronze > 2
Write a SQL query that answers the following question: What was the PI GP fpr pick# 235 for Rd# larger than 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (pl_gp INTEGER, pick__number VARCHAR, rd__number VARCHAR)
SELECT MIN(pl_gp) FROM table_name_18 WHERE pick__number = 235 AND rd__number > 12
Write a SQL query that answers the following question: What was the largest crowd when South Melbourne was the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_89 WHERE away_team = "south melbourne"
Write a SQL query that answers the following question: What is richmond's scores when they are the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_53 WHERE home_team = "richmond"
Write a SQL query that answers the following question: What is south melbourne's scores when they are the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_32 WHERE away_team = "south melbourne"
Write a SQL query that answers the following question: What dates were the matches at windy hill?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_1 WHERE venue = "windy hill"
Write a SQL query that answers the following question: What is the average number of laps for the driver Piero Taruffi?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (laps INTEGER, driver VARCHAR)
SELECT AVG(laps) FROM table_name_50 WHERE driver = "piero taruffi"
Write a SQL query that answers the following question: Which driver has 12 laps and a grid of less than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_23 WHERE laps = 12 AND grid < 10
Write a SQL query that answers the following question: What is the Illustration with a Design of tim nokes, and a First Day Cover Cancellation with calgary, alberta?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (illustration VARCHAR, design VARCHAR, first_day_cover_cancellation VARCHAR)
SELECT illustration FROM table_name_76 WHERE design = "tim nokes" AND first_day_cover_cancellation = "calgary, alberta"
Write a SQL query that answers the following question: What is the Date of Issue with a Theme with mental health?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (date_of_issue VARCHAR, theme VARCHAR)
SELECT date_of_issue FROM table_name_3 WHERE theme = "mental health"
Write a SQL query that answers the following question: What is the Theme with a Design with sputnik design partners?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (theme VARCHAR, design VARCHAR)
SELECT theme FROM table_name_55 WHERE design = "sputnik design partners"
Write a SQL query that answers the following question: What is the Paper Type with a First Day Cover Cancellation with ottawa, on?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (paper_type VARCHAR, first_day_cover_cancellation VARCHAR)
SELECT paper_type FROM table_name_11 WHERE first_day_cover_cancellation = "ottawa, on"
Write a SQL query that answers the following question: What is the Paper Type with an Illustration with martin dee, ubc public affairs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (paper_type VARCHAR, illustration VARCHAR)
SELECT paper_type FROM table_name_51 WHERE illustration = "martin dee, ubc public affairs"
Write a SQL query that answers the following question: What is the Theme with a Paper Type of tullis russell coatings, and a Date with Issue of 1 october 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (theme VARCHAR, paper_type VARCHAR, date_of_issue VARCHAR)
SELECT theme FROM table_name_28 WHERE paper_type = "tullis russell coatings" AND date_of_issue = "1 october 2008"
Write a SQL query that answers the following question: What is the tie number when the away team is Lewes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_73 WHERE away_team = "lewes"
Write a SQL query that answers the following question: What is the away team when the home team is Cheltenham Town?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_5 WHERE home_team = "cheltenham town"
Write a SQL query that answers the following question: What is the home team of the game with tie number 34?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_76 WHERE tie_no = "34"
Write a SQL query that answers the following question: What is the away team of the game with tie number 31?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_33 WHERE tie_no = "31"
Write a SQL query that answers the following question: How many goals for were scored for the team(s) that won fewer than 4 games and lost more than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (goals_for INTEGER, wins VARCHAR, losses VARCHAR)
SELECT SUM(goals_for) FROM table_name_50 WHERE wins < 4 AND losses > 6
Write a SQL query that answers the following question: What is the average losses for the team(s) that played more than 8 games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (losses INTEGER, games_played INTEGER)
SELECT AVG(losses) FROM table_name_37 WHERE games_played > 8
Write a SQL query that answers the following question: What is the fleet size of the Vanguard 0-6-0dh class?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (fleet_size VARCHAR, class VARCHAR)
SELECT fleet_size FROM table_name_73 WHERE class = "vanguard 0-6-0dh"
Write a SQL query that answers the following question: What is the year of introduction for the Electro-Diesel locomotive?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (introduced VARCHAR, type VARCHAR)
SELECT introduced FROM table_name_64 WHERE type = "electro-diesel locomotive"
Write a SQL query that answers the following question: What is the average fleet size for the Shunter type introduced in 1959?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (fleet_size INTEGER, type VARCHAR, introduced VARCHAR)
SELECT AVG(fleet_size) FROM table_name_3 WHERE type = "shunter" AND introduced = "1959"
Write a SQL query that answers the following question: What is the smallest fleet size with a type of shunter introduced in 1953?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (fleet_size INTEGER, type VARCHAR, introduced VARCHAR)
SELECT MIN(fleet_size) FROM table_name_87 WHERE type = "shunter" AND introduced = "1953"
Write a SQL query that answers the following question: What show that was aired on January 24, 2008 with a rating larger than 3.6 had the lowest viewers? How Many Viewers in the millions?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (viewers__m_ INTEGER, air_date VARCHAR, rating VARCHAR)
SELECT MIN(viewers__m_) FROM table_name_65 WHERE air_date = "january 24, 2008" AND rating > 3.6
Write a SQL query that answers the following question: Which round has a car with a chassis of sf01?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (rounds VARCHAR, chassis VARCHAR)
SELECT rounds FROM table_name_20 WHERE chassis = "sf01"
Write a SQL query that answers the following question: Which country has swimsuit more than 9.46 and interview more than 9.22 with average less than 9.6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (country VARCHAR, swimsuit VARCHAR, average VARCHAR, interview VARCHAR)
SELECT country FROM table_name_22 WHERE average < 9.6 AND interview > 9.22 AND swimsuit > 9.46