instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What office did Henry Hagner run for on the prohibition ticket?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (office VARCHAR, prohibition_ticket VARCHAR)
SELECT office FROM table_name_31 WHERE prohibition_ticket = "henry hagner"
Write a SQL query that answers the following question: What is the home of the team with a 16-8 record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_81 WHERE record = "16-8"
Write a SQL query that answers the following question: What is the date of the game that ended with a score of 96-89?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_92 WHERE score = "96-89"
Write a SQL query that answers the following question: How many people went to the game with Indiana visiting?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (attendance VARCHAR, visitor VARCHAR)
SELECT attendance FROM table_name_68 WHERE visitor = "indiana"
Write a SQL query that answers the following question: What is the date of the Cleveland home game with a 20-8 record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (date VARCHAR, home VARCHAR, record VARCHAR)
SELECT date FROM table_name_74 WHERE home = "cleveland" AND record = "20-8"
Write a SQL query that answers the following question: What is the score of the New Jersey home game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_42 WHERE home = "new jersey"
Write a SQL query that answers the following question: How many people attended the game with a final score of 75-90?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (attendance VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_29 WHERE score = "75-90"
Write a SQL query that answers the following question: What is Mike Weir's To par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_79 WHERE player = "mike weir"
Write a SQL query that answers the following question: From Country is Vijay Singh?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_48 WHERE player = "vijay singh"
Write a SQL query that answers the following question: What is the Player in T5 Place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_71 WHERE place = "t5"
Write a SQL query that answers the following question: What is the Place of the Player with a Score of 73-73-65-73=284?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_32 WHERE score = 73 - 73 - 65 - 73 = 284
Write a SQL query that answers the following question: Who was the Home captain that played at the venue Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (home_captain VARCHAR, venue VARCHAR)
SELECT home_captain FROM table_name_13 WHERE venue = "oval"
Write a SQL query that answers the following question: Who was the Away captain that played on 12,13,14 Jun 1902 which resulted in a draw?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (away_captain VARCHAR, result VARCHAR, date VARCHAR)
SELECT away_captain FROM table_name_83 WHERE result = "draw" AND date = "12,13,14 jun 1902"
Write a SQL query that answers the following question: Who is the Away captain that played on 11,12,13 Aug 1902?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (away_captain VARCHAR, date VARCHAR)
SELECT away_captain FROM table_name_95 WHERE date = "11,12,13 aug 1902"
Write a SQL query that answers the following question: What was the result of the game that was played on 29,30–31 May 1902?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_31 WHERE date = "29,30–31 may 1902"
Write a SQL query that answers the following question: What was the result of the game that was played on 3,4,5 Jul 1902?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_61 WHERE date = "3,4,5 jul 1902"
Write a SQL query that answers the following question: What is the number of ends lost when there are 15 blank ends, less than 14 stolen ends?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (ends_lost VARCHAR, blank_ends VARCHAR, stolen_ends VARCHAR)
SELECT COUNT(ends_lost) FROM table_name_67 WHERE blank_ends = 15 AND stolen_ends < 14
Write a SQL query that answers the following question: What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped with a more than 83 shot pct?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (blank_ends VARCHAR, shot_pct VARCHAR, stolen_ends VARCHAR, skip VARCHAR)
SELECT COUNT(blank_ends) FROM table_name_57 WHERE stolen_ends = 17 AND skip = "jennifer jones" AND shot_pct > 83
Write a SQL query that answers the following question: What is the average Wins, when F/Laps is greater than 1, and when Points is 80?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (wins INTEGER, f_laps VARCHAR, points VARCHAR)
SELECT AVG(wins) FROM table_name_18 WHERE f_laps > 1 AND points = "80"
Write a SQL query that answers the following question: What is the sum of Races, when Podiums is less than 3, when Wins is 0, when Season is after 2001, and when Points is 32?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (races INTEGER, points VARCHAR, season VARCHAR, podiums VARCHAR, wins VARCHAR)
SELECT SUM(races) FROM table_name_82 WHERE podiums < 3 AND wins = 0 AND season > 2001 AND points = "32"
Write a SQL query that answers the following question: What is the average Season, when F/Laps is 1, and when Poles is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (season INTEGER, f_laps VARCHAR, poles VARCHAR)
SELECT AVG(season) FROM table_name_14 WHERE f_laps = 1 AND poles < 0
Write a SQL query that answers the following question: What is the highest Poles, when Series is Ginetta Championship, and when Season is before 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (poles INTEGER, series VARCHAR, season VARCHAR)
SELECT MAX(poles) FROM table_name_56 WHERE series = "ginetta championship" AND season < 2007
Write a SQL query that answers the following question: What is the lowest wk 7 with a wk 3 value of 12, a wk 4 less than 9, and a wk 2 greater than 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (wk_7 INTEGER, wk_2 VARCHAR, wk_3 VARCHAR, wk_4 VARCHAR)
SELECT MIN(wk_7) FROM table_name_1 WHERE wk_3 = 12 AND wk_4 < 9 AND wk_2 > 11
Write a SQL query that answers the following question: What is the lowest wk 3 value with an n/r in wk 14, a wk 2 value of 7, and a wk 11 value greater than 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (wk_3 INTEGER, wk_11 VARCHAR, wk_14 VARCHAR, wk_2 VARCHAR)
SELECT MIN(wk_3) FROM table_name_11 WHERE wk_14 = "n/r" AND wk_2 = 7 AND wk_11 > 18
Write a SQL query that answers the following question: What is the Date for the actual title archie bunker's place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (date VARCHAR, actual_title VARCHAR)
SELECT date FROM table_name_42 WHERE actual_title = "archie bunker's place"
Write a SQL query that answers the following question: What is the name of the Artist for the Spoofed Title of the moron downer jr. show?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (artist VARCHAR, spoofed_title VARCHAR)
SELECT artist FROM table_name_13 WHERE spoofed_title = "the moron downer jr. show"
Write a SQL query that answers the following question: What issue was the Spoofed Title of the crockford files in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (issue VARCHAR, spoofed_title VARCHAR)
SELECT issue FROM table_name_50 WHERE spoofed_title = "the crockford files"
Write a SQL query that answers the following question: What is the name of the writer for issue 224?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (writer VARCHAR, issue VARCHAR)
SELECT writer FROM table_name_21 WHERE issue = 224
Write a SQL query that answers the following question: What is the smallest amount of points had a lost number of 2 when the position was less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (points INTEGER, lost VARCHAR, position VARCHAR)
SELECT MIN(points) FROM table_name_67 WHERE lost = 2 AND position < 1
Write a SQL query that answers the following question: What is the mean number of against when the position is less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (against INTEGER, position INTEGER)
SELECT AVG(against) FROM table_name_92 WHERE position < 1
Write a SQL query that answers the following question: What is the mean number of played when there are less than 18 points and the position is less than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (played INTEGER, points VARCHAR, position VARCHAR)
SELECT AVG(played) FROM table_name_45 WHERE points < 18 AND position < 8
Write a SQL query that answers the following question: What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (lost VARCHAR, played VARCHAR, against VARCHAR, drawn VARCHAR)
SELECT COUNT(lost) FROM table_name_93 WHERE against < 37 AND drawn > 2 AND played > 20
Write a SQL query that answers the following question: What is the total area of drakenstein and a population less than 251,262?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (area__km_2__ VARCHAR, name VARCHAR, population__2011_ VARCHAR)
SELECT COUNT(area__km_2__) FROM table_name_32 WHERE name = "drakenstein" AND population__2011_ < 251 OFFSET 262
Write a SQL query that answers the following question: For Stellenbosch, which has a population larger than 155,733, what is the average area?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (area__km_2__ INTEGER, name VARCHAR, population__2011_ VARCHAR)
SELECT AVG(area__km_2__) FROM table_name_38 WHERE name = "stellenbosch" AND population__2011_ > 155 OFFSET 733
Write a SQL query that answers the following question: What is the lowest population for the area that has a density of 36.7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (population__2011_ INTEGER, density__inhabitants_km_2__ VARCHAR)
SELECT MIN(population__2011_) FROM table_name_89 WHERE density__inhabitants_km_2__ = 36.7
Write a SQL query that answers the following question: How many points against has team Cardiff had when there were less than 7 tries?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (points_against VARCHAR, team VARCHAR, tries_against VARCHAR)
SELECT COUNT(points_against) FROM table_name_97 WHERE team = "cardiff" AND tries_against < 7
Write a SQL query that answers the following question: What is the amount of fog where the rain is 1 109?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (fog__days_year_ INTEGER, rain__mm_year_ VARCHAR)
SELECT SUM(fog__days_year_) FROM table_name_50 WHERE rain__mm_year_ = "1 109"
Write a SQL query that answers the following question: What is the amount of snow where the days for storms are 31?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (snow__days_year_ INTEGER, storms__days_year_ VARCHAR)
SELECT SUM(snow__days_year_) FROM table_name_61 WHERE storms__days_year_ = 31
Write a SQL query that answers the following question: What is the amount of snow where the sunshine is 1 633, and storms are lower than 29?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (snow__days_year_ INTEGER, sunshine__hrs_year_ VARCHAR, storms__days_year_ VARCHAR)
SELECT AVG(snow__days_year_) FROM table_name_23 WHERE sunshine__hrs_year_ = "1 633" AND storms__days_year_ < 29
Write a SQL query that answers the following question: What are the number of storms where fog is lower than 74, and sunshine is 2 668?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (storms__days_year_ VARCHAR, fog__days_year_ VARCHAR, sunshine__hrs_year_ VARCHAR)
SELECT COUNT(storms__days_year_) FROM table_name_74 WHERE fog__days_year_ < 74 AND sunshine__hrs_year_ = "2 668"
Write a SQL query that answers the following question: Who is the away team for the tome team Leeds United, at the League Cup Competition?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (away_team VARCHAR, home_team VARCHAR, competition VARCHAR)
SELECT away_team FROM table_name_12 WHERE home_team = "leeds united" AND competition = "league cup"
Write a SQL query that answers the following question: What chassis has patrick racing as an entrant, with a start greater than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (chassis VARCHAR, entrant VARCHAR, start VARCHAR)
SELECT chassis FROM table_name_69 WHERE entrant = "patrick racing" AND start > 6
Write a SQL query that answers the following question: What is the average finish that has 24 as the start, with a year after 1987?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (finish INTEGER, start VARCHAR, year VARCHAR)
SELECT AVG(finish) FROM table_name_89 WHERE start = 24 AND year > 1987
Write a SQL query that answers the following question: What is the lowest year that has lola t93/00 as the chassis with a start leas than 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (year INTEGER, chassis VARCHAR, start VARCHAR)
SELECT MIN(year) FROM table_name_59 WHERE chassis = "lola t93/00" AND start < 14
Write a SQL query that answers the following question: What is the lowest finish that has a start greater than 27, with a year after 1985?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (finish INTEGER, start VARCHAR, year VARCHAR)
SELECT MIN(finish) FROM table_name_62 WHERE start > 27 AND year > 1985
Write a SQL query that answers the following question: What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the entrant?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (start VARCHAR, entrant VARCHAR, engine VARCHAR, year VARCHAR)
SELECT start FROM table_name_22 WHERE engine = "ford cosworth dfx" AND year > 1981 AND entrant = "kraco enterprises"
Write a SQL query that answers the following question: What is the Date, when the Team Record is 2-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (date VARCHAR, team_record VARCHAR)
SELECT date FROM table_name_3 WHERE team_record = "2-0"
Write a SQL query that answers the following question: What is the Team Record, when the Result is l 0–24?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (team_record VARCHAR, result VARCHAR)
SELECT team_record FROM table_name_52 WHERE result = "l 0–24"
Write a SQL query that answers the following question: What is Team Record, when Attendance is 16,151?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (team_record VARCHAR, attendance VARCHAR)
SELECT team_record FROM table_name_34 WHERE attendance = "16,151"
Write a SQL query that answers the following question: What is the highest draw that has points greater than 4, with a match greater than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (draw INTEGER, points VARCHAR, match VARCHAR)
SELECT MAX(draw) FROM table_name_92 WHERE points > 4 AND match > 5
Write a SQL query that answers the following question: What is the average draw that has a lost less than 4, gwardia bydgoszcz as the team, with a match greater than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (draw INTEGER, match VARCHAR, lost VARCHAR, team VARCHAR)
SELECT AVG(draw) FROM table_name_14 WHERE lost < 4 AND team = "gwardia bydgoszcz" AND match > 5
Write a SQL query that answers the following question: What is the lowest match that has a lost greater than 3, and kolejarz rawicz as the team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (match INTEGER, lost VARCHAR, team VARCHAR)
SELECT MIN(match) FROM table_name_99 WHERE lost > 3 AND team = "kolejarz rawicz"
Write a SQL query that answers the following question: How many matches have 0 as the lost?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (match VARCHAR, lost VARCHAR)
SELECT COUNT(match) FROM table_name_32 WHERE lost = 0
Write a SQL query that answers the following question: What is the sum of Game with a Score that is w 104–90 (ot)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (game INTEGER, score VARCHAR)
SELECT SUM(game) FROM table_name_44 WHERE score = "w 104–90 (ot)"
Write a SQL query that answers the following question: What is the High rebounds of a Game with 56?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (high_rebounds VARCHAR, game VARCHAR)
SELECT high_rebounds FROM table_name_70 WHERE game = 56
Write a SQL query that answers the following question: What was the option from Italy with general television content, and the Cielo television service?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (package_option VARCHAR, television_service VARCHAR, country VARCHAR, content VARCHAR)
SELECT package_option FROM table_name_84 WHERE country = "italy" AND content = "general television" AND television_service = "cielo"
Write a SQL query that answers the following question: What country has Tematico Content, and a package with sky TV and the Lei television service?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (country VARCHAR, television_service VARCHAR, content VARCHAR, package_option VARCHAR)
SELECT country FROM table_name_91 WHERE content = "tematico" AND package_option = "sky tv" AND television_service = "lei"
Write a SQL query that answers the following question: What is the television service that has package with sky tv, and it in Italian English?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (television_service VARCHAR, package_option VARCHAR, language VARCHAR)
SELECT television_service FROM table_name_30 WHERE package_option = "sky tv" AND language = "italian english"
Write a SQL query that answers the following question: What language is the Tematico content with a sky tv package, and Fox Crime television service?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (language VARCHAR, television_service VARCHAR, content VARCHAR, package_option VARCHAR)
SELECT language FROM table_name_55 WHERE content = "tematico" AND package_option = "sky tv" AND television_service = "fox crime"
Write a SQL query that answers the following question: What country has a television service with Cartello Promozionale sky hd?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (country VARCHAR, television_service VARCHAR)
SELECT country FROM table_name_95 WHERE television_service = "cartello promozionale sky hd"
Write a SQL query that answers the following question: What country has a Fox television service?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (country VARCHAR, television_service VARCHAR)
SELECT country FROM table_name_7 WHERE television_service = "fox"
Write a SQL query that answers the following question: Who drove for Mathiasen Motorsports with dane cameron as pole position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (winning_driver VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
SELECT winning_driver FROM table_name_62 WHERE winning_team = "mathiasen motorsports" AND pole_position = "dane cameron"
Write a SQL query that answers the following question: What winning team did Jonathan bomarito drive for when jonathan summerton had the fastest lap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (winning_team VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR)
SELECT winning_team FROM table_name_84 WHERE winning_driver = "jonathan bomarito" AND fastest_lap = "jonathan summerton"
Write a SQL query that answers the following question: When Douglas Soares had the fastest lap, what was the report?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (report VARCHAR, fastest_lap VARCHAR)
SELECT report FROM table_name_39 WHERE fastest_lap = "douglas soares"
Write a SQL query that answers the following question: When the winning team of mathiasen motorsports has a pole position of jonathan bomarito, who has the fastest lap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (fastest_lap VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
SELECT fastest_lap FROM table_name_97 WHERE winning_team = "mathiasen motorsports" AND pole_position = "jonathan bomarito"
Write a SQL query that answers the following question: When the driver jonathan summerton won and dane cameron had the fastest lap, what was the report?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (report VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR)
SELECT report FROM table_name_42 WHERE winning_driver = "jonathan summerton" AND fastest_lap = "dane cameron"
Write a SQL query that answers the following question: Which Year has a Competition of olympic games, and a Venue of atlanta, united states?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (year INTEGER, competition VARCHAR, venue VARCHAR)
SELECT AVG(year) FROM table_name_93 WHERE competition = "olympic games" AND venue = "atlanta, united states"
Write a SQL query that answers the following question: Which Competition has a Year of 1993?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (competition VARCHAR, year VARCHAR)
SELECT competition FROM table_name_30 WHERE year = 1993
Write a SQL query that answers the following question: Which Notes has a Competition of venice marathon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (notes VARCHAR, competition VARCHAR)
SELECT notes FROM table_name_78 WHERE competition = "venice marathon"
Write a SQL query that answers the following question: Which Year has a Venue of atlanta, united states?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (year VARCHAR, venue VARCHAR)
SELECT year FROM table_name_13 WHERE venue = "atlanta, united states"
Write a SQL query that answers the following question: Which Notes has a Venue of barcelona, spain?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (notes VARCHAR, venue VARCHAR)
SELECT notes FROM table_name_89 WHERE venue = "barcelona, spain"
Write a SQL query that answers the following question: Which Event has a Year of 1986?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (event VARCHAR, year VARCHAR)
SELECT event FROM table_name_36 WHERE year = 1986
Write a SQL query that answers the following question: What is the average share for episodes with over 7.82 viewers, ranks of 3 and a weekly rank of 54?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (share INTEGER, rank__week_ VARCHAR, viewers__millions_ VARCHAR, rank__timeslot_ VARCHAR)
SELECT AVG(share) FROM table_name_56 WHERE viewers__millions_ > 7.82 AND rank__timeslot_ = "3" AND rank__week_ = "54"
Write a SQL query that answers the following question: What is the weekly rank for the episode with a share over 7 and a rating/share of 2.3/7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (rank__week_ VARCHAR, share VARCHAR, rating VARCHAR)
SELECT rank__week_ FROM table_name_77 WHERE share > 7 AND rating / SHARE(18 - 49) = 2.3 / 7
Write a SQL query that answers the following question: What is the weekly rank of the episode with more than 7.14mil viewers, a nightly rank of 5, and a rating/share of 2.9/10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (rank__week_ VARCHAR, viewers__millions_ VARCHAR, rank__night_ VARCHAR, rating VARCHAR)
SELECT rank__week_ FROM table_name_73 WHERE viewers__millions_ > 7.14 AND rank__night_ = "5" AND rating / SHARE(18 - 49) = 2.9 / 10
Write a SQL query that answers the following question: What is the total gain for Brandon Mcrae with a loss less than 4, and an Avg/g less than -0.1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (gain VARCHAR, avg_g VARCHAR, long VARCHAR, name VARCHAR)
SELECT COUNT(gain) FROM table_name_90 WHERE long < 4 AND name = "brandon mcrae" AND avg_g < -0.1
Write a SQL query that answers the following question: What is the lowest long with a Gp-GS of 11-8, and a gain less than 228?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (long INTEGER, gp_gs VARCHAR, gain VARCHAR)
SELECT MIN(long) FROM table_name_16 WHERE gp_gs = "11-8" AND gain < 228
Write a SQL query that answers the following question: What is the lowest gain with an 18 long, and a loss less than 191?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (gain INTEGER, long VARCHAR, loss VARCHAR)
SELECT MIN(gain) FROM table_name_40 WHERE long = 18 AND loss < 191
Write a SQL query that answers the following question: What is the sum of 1938 values where 1933 values are under 68.3 and 1940 valures are under 4.02?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (Id VARCHAR)
SELECT SUM(1938) FROM table_name_8 WHERE 1933 < 68.3 AND 1940 < 4.02
Write a SQL query that answers the following question: What is the average 1940 value where 1929 values are 101.4 and 1933 values are over 68.3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (Id VARCHAR)
SELECT AVG(1940) FROM table_name_6 WHERE 1929 = 101.4 AND 1933 > 68.3
Write a SQL query that answers the following question: What is the highest 1937 value that has a 1940 value over 126?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (Id VARCHAR)
SELECT MAX(1937) FROM table_name_60 WHERE 1940 > 126
Write a SQL query that answers the following question: At what time is the αƒ‘αƒ αƒαƒ–αƒ˜αƒšαƒ˜αƒ˜αƒ‘ αƒ£αƒ‘αƒαƒœαƒ˜ shown?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (timeslot VARCHAR, translation VARCHAR)
SELECT timeslot FROM table_name_43 WHERE translation = "αƒ‘αƒ αƒαƒ–αƒ˜αƒšαƒ˜αƒ˜αƒ‘ αƒ£αƒ‘αƒαƒœαƒ˜"
Write a SQL query that answers the following question: What country was the series finale present and was shown Monday to Sunday at 18:45-21:00?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (country VARCHAR, timeslot VARCHAR, series_finale VARCHAR, weekly_schedule VARCHAR)
SELECT country FROM table_name_70 WHERE series_finale = "present" AND weekly_schedule = "monday to sunday" AND timeslot = "18:45-21:00"
Write a SQL query that answers the following question: What series finale has the translation ოჰ ებ αƒͺαƒ αƒ”αƒ›αƒšαƒ”αƒ‘αƒ˜ / αƒžαƒαƒ αƒαƒšαƒ”αƒšαƒ£αƒ αƒ˜ αƒ‘αƒαƒ˜αƒ“αƒ£αƒ›αƒšαƒ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (series_finale VARCHAR, translation VARCHAR)
SELECT series_finale FROM table_name_56 WHERE translation = "ოჰ ებ αƒͺαƒ αƒ”αƒ›αƒšαƒ”αƒ‘αƒ˜ / αƒžαƒαƒ αƒαƒšαƒ”αƒšαƒ£αƒ αƒ˜ αƒ‘αƒαƒ˜αƒ“αƒ£αƒ›αƒšαƒ"
Write a SQL query that answers the following question: What days of the week is the show aired on that runs at 16:45?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (weekly_schedule VARCHAR, timeslot VARCHAR)
SELECT weekly_schedule FROM table_name_21 WHERE timeslot = "16:45"
Write a SQL query that answers the following question: Which days of the week does the telenovela play that is aired at 11:00?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (weekly_schedule VARCHAR, timeslot VARCHAR)
SELECT weekly_schedule FROM table_name_75 WHERE timeslot = "11:00"
Write a SQL query that answers the following question: Which Tournament was on 2 October 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_98 WHERE date = "2 october 2006"
Write a SQL query that answers the following question: Who is the Opponent in the final on 4 April 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_16 WHERE date = "4 april 2011"
Write a SQL query that answers the following question: What Surface was used on 2 June 2003?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_94 WHERE date = "2 june 2003"
Write a SQL query that answers the following question: Which award show nominated The Suite Life on Deck for the Teen Pick Show: Comedy category?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (award VARCHAR, category VARCHAR)
SELECT award FROM table_name_54 WHERE category = "teen pick show: comedy"
Write a SQL query that answers the following question: Which award show nominated Cole Sprouse for the Favorite TV Actor category?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (award VARCHAR, category VARCHAR, recipient VARCHAR)
SELECT award FROM table_name_49 WHERE category = "favorite tv actor" AND recipient = "cole sprouse"
Write a SQL query that answers the following question: What category was The Suite Life on Deck nominated for later than 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (category VARCHAR, recipient VARCHAR, year VARCHAR)
SELECT category FROM table_name_62 WHERE recipient = "the suite life on deck" AND year > 2010
Write a SQL query that answers the following question: Who won the 2010 Kids' Choice Awards?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (recipient VARCHAR, award VARCHAR, result VARCHAR)
SELECT recipient FROM table_name_30 WHERE award = "2010 kids' choice awards" AND result = "won"
Write a SQL query that answers the following question: What was the Rd. Time for October 3, 2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (rd VARCHAR, _time VARCHAR, date VARCHAR)
SELECT rd, _time FROM table_name_86 WHERE date = "october 3, 2009"
Write a SQL query that answers the following question: What is the greatest lost where played is less than 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (lost INTEGER, played INTEGER)
SELECT MAX(lost) FROM table_name_51 WHERE played < 9
Write a SQL query that answers the following question: What is the greatest played with a drawn less than 1 and a position of less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (played INTEGER, drawn VARCHAR, position VARCHAR)
SELECT MAX(played) FROM table_name_99 WHERE drawn < 1 AND position < 1
Write a SQL query that answers the following question: What is the smallest drawn when the points are less than 7 and the against greater than 31?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (drawn INTEGER, points VARCHAR, against VARCHAR)
SELECT MIN(drawn) FROM table_name_79 WHERE points < 7 AND against > 31
Write a SQL query that answers the following question: What is the name of the team that has 13 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (team VARCHAR, points VARCHAR)
SELECT team FROM table_name_47 WHERE points = 13
Write a SQL query that answers the following question: What was the Nominated Work earlier than 2003?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (nominated_work VARCHAR, year INTEGER)
SELECT nominated_work FROM table_name_85 WHERE year < 2003
Write a SQL query that answers the following question: What was the Nominated Work earlier than 2003?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (nominated_work VARCHAR, year INTEGER)
SELECT nominated_work FROM table_name_62 WHERE year < 2003