instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: Which Byes have a Lexton Plains of skipton? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (byes INTEGER, lexton_plains VARCHAR) | SELECT MAX(byes) FROM table_name_87 WHERE lexton_plains = "skipton" |
Write a SQL query that answers the following question: What is the value for Lost when Drawn is 0, and Tries against is 41? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (lost VARCHAR, drawn VARCHAR, tries_against VARCHAR) | SELECT lost FROM table_name_33 WHERE drawn = "0" AND tries_against = "41" |
Write a SQL query that answers the following question: What is the drawn value for furnace united rfc? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (drawn VARCHAR, club VARCHAR) | SELECT drawn FROM table_name_47 WHERE club = "furnace united rfc" |
Write a SQL query that answers the following question: What tries against value does burry port rfc have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (tries_against VARCHAR, club VARCHAR) | SELECT tries_against FROM table_name_87 WHERE club = "burry port rfc" |
Write a SQL query that answers the following question: Of the ships with diesel-electric hybrid engines, length of 443 feet, and over 190 guests, what is the lowest number of staterooms? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (staterooms INTEGER, guests VARCHAR, comments VARCHAR, length VARCHAR) | SELECT MIN(staterooms) FROM table_name_44 WHERE comments = "diesel-electric hybrid engines" AND length = "443 feet" AND guests > 190 |
Write a SQL query that answers the following question: How many wins for the year that is later than 1987 and has points less than 188? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (wins VARCHAR, year VARCHAR, points VARCHAR) | SELECT wins FROM table_name_47 WHERE year > 1987 AND points < 188 |
Write a SQL query that answers the following question: What is the name of the machine that ranked 4th and has 2 wins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (machine VARCHAR, rank VARCHAR, wins VARCHAR) | SELECT machine FROM table_name_59 WHERE rank = "4th" AND wins = 2 |
Write a SQL query that answers the following question: How many wins were there in 1994? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (wins INTEGER, year VARCHAR) | SELECT SUM(wins) FROM table_name_20 WHERE year = 1994 |
Write a SQL query that answers the following question: What is the rank associated with the team that has more than 2 wins and has greater than 204 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (rank VARCHAR, wins VARCHAR, points VARCHAR) | SELECT rank FROM table_name_34 WHERE wins > 2 AND points > 204 |
Write a SQL query that answers the following question: How many picks have a Player of pong escobal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (pick INTEGER, player VARCHAR) | SELECT SUM(pick) FROM table_name_80 WHERE player = "pong escobal" |
Write a SQL query that answers the following question: Which PBA team has a College of nu? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (pba_team VARCHAR, college VARCHAR) | SELECT pba_team FROM table_name_61 WHERE college = "nu" |
Write a SQL query that answers the following question: What is the birth place for someone elevated by Lucius III, and has the Cardinalatial title of Deacon of S. Giorgio in Velabro? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (place_of_birth VARCHAR, elevator VARCHAR, cardinalatial_title VARCHAR) | SELECT place_of_birth FROM table_name_65 WHERE elevator = "lucius iii" AND cardinalatial_title = "deacon of s. giorgio in velabro" |
Write a SQL query that answers the following question: What is the place of birth for the elector Laborante de Panormo? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (place_of_birth VARCHAR, elector VARCHAR) | SELECT place_of_birth FROM table_name_94 WHERE elector = "laborante de panormo" |
Write a SQL query that answers the following question: Who is the elector that has the cardinalatial title of Deacon of SS. Cosma e Damiano? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (elector VARCHAR, cardinalatial_title VARCHAR) | SELECT elector FROM table_name_86 WHERE cardinalatial_title = "deacon of ss. cosma e damiano" |
Write a SQL query that answers the following question: Who is the elevator with the cardinalatial title of Deacon of SS. Sergio e Bacco? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (elevator VARCHAR, cardinalatial_title VARCHAR) | SELECT elevator FROM table_name_14 WHERE cardinalatial_title = "deacon of ss. sergio e bacco" |
Write a SQL query that answers the following question: How much Premier League has an FA Cup of 0, and a Total of 1, and a UEFA Cup larger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (premier_league INTEGER, UEfa_cup VARCHAR, fa_cup VARCHAR, total VARCHAR) | SELECT SUM(premier_league) FROM table_name_20 WHERE fa_cup = 0 AND total = 1 AND UEfa_cup > 1 |
Write a SQL query that answers the following question: How many totals have a Premier League smaller than 6, and a League Cup larger than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (total INTEGER, premier_league VARCHAR, league_cup VARCHAR) | SELECT SUM(total) FROM table_name_9 WHERE premier_league < 6 AND league_cup > 0 |
Write a SQL query that answers the following question: Which FA Cup has a Total smaller than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (fa_cup INTEGER, total INTEGER) | SELECT AVG(fa_cup) FROM table_name_24 WHERE total < 1 |
Write a SQL query that answers the following question: What week is the opponent the Indianapolis Colts with an attendance of 68,932? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (week VARCHAR, attendance VARCHAR, opponent VARCHAR) | SELECT COUNT(week) FROM table_name_26 WHERE attendance = "68,932" AND opponent = "indianapolis colts" |
Write a SQL query that answers the following question: What was the attendance for the week before 10 with a result of L 12-15 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (attendance VARCHAR, week VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_86 WHERE week < 10 AND result = "l 12-15" |
Write a SQL query that answers the following question: What week has a result of L 17-31 first? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (week INTEGER, result VARCHAR) | SELECT MAX(week) FROM table_name_17 WHERE result = "l 17-31" |
Write a SQL query that answers the following question: What was the score for the game that attendance was 70,721? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_24 WHERE attendance = "70,721" |
Write a SQL query that answers the following question: What week was she safe for a salsa dance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (week INTEGER, result VARCHAR, dance VARCHAR) | SELECT SUM(week) FROM table_name_8 WHERE result = "safe" AND dance = "salsa" |
Write a SQL query that answers the following question: Who was the opponent with the loss in Westbury, NY? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (opponent VARCHAR, result VARCHAR, location VARCHAR) | SELECT opponent FROM table_name_37 WHERE result = "loss" AND location = "westbury, ny" |
Write a SQL query that answers the following question: What is the date where the type is type? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (date VARCHAR) | SELECT date FROM table_name_4 WHERE "type" = "type" |
Write a SQL query that answers the following question: What is the total rank for the player with less than 2 silvers, 4 golds, and more than 2 bronze? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR) | SELECT COUNT(rank) FROM table_name_2 WHERE silver < 2 AND gold = 4 AND bronze > 2 |
Write a SQL query that answers the following question: What is the sum of rank with more than 1 silver medal, 1 gold medal, and less than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (rank INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR) | SELECT SUM(rank) FROM table_name_78 WHERE silver > 1 AND gold = 1 AND total < 6 |
Write a SQL query that answers the following question: What's the date of the circuit Winton Motor Raceway? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (date VARCHAR, circuit VARCHAR) | SELECT date FROM table_name_21 WHERE circuit = "winton motor raceway" |
Write a SQL query that answers the following question: What's the city/state of Hidden Valley Raceway? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (city___state VARCHAR, circuit VARCHAR) | SELECT city___state FROM table_name_16 WHERE circuit = "hidden valley raceway" |
Write a SQL query that answers the following question: What's the date of Bahrain International Circuit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (date VARCHAR, circuit VARCHAR) | SELECT date FROM table_name_95 WHERE circuit = "bahrain international circuit" |
Write a SQL query that answers the following question: What's the circuit that had an event cancelled? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (circuit VARCHAR, winner VARCHAR) | SELECT circuit FROM table_name_11 WHERE winner = "event cancelled" |
Write a SQL query that answers the following question: what is the distance for ridge? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (distance VARCHAR, feature VARCHAR) | SELECT distance FROM table_name_57 WHERE feature = "ridge" |
Write a SQL query that answers the following question: what is the latitude when the distance is 42.5km? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (latitude VARCHAR, distance VARCHAR) | SELECT latitude FROM table_name_70 WHERE distance = "42.5km" |
Write a SQL query that answers the following question: what is the feature named bird ridge? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (feature VARCHAR, name VARCHAR) | SELECT feature FROM table_name_60 WHERE name = "bird ridge" |
Write a SQL query that answers the following question: what is the distance for mjåkollen? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (distance VARCHAR, name VARCHAR) | SELECT distance FROM table_name_89 WHERE name = "mjåkollen" |
Write a SQL query that answers the following question: what is the distance for bearing 297°? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (distance VARCHAR, bearing VARCHAR) | SELECT distance FROM table_name_27 WHERE bearing = "297°" |
Write a SQL query that answers the following question: What platform has a year of 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (platform_s_ VARCHAR, year VARCHAR) | SELECT platform_s_ FROM table_name_8 WHERE year = 2007 |
Write a SQL query that answers the following question: Which game was released in 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (game VARCHAR, year VARCHAR) | SELECT game FROM table_name_13 WHERE year = 2011 |
Write a SQL query that answers the following question: What platform came out before 2009 with the game wii sports? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (platform_s_ VARCHAR, year VARCHAR, game VARCHAR) | SELECT platform_s_ FROM table_name_38 WHERE year < 2009 AND game = "wii sports" |
Write a SQL query that answers the following question: What nationality has a lane less than 6, with 1 as the rank? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (nationality VARCHAR, lane VARCHAR, rank VARCHAR) | SELECT nationality FROM table_name_32 WHERE lane < 6 AND rank = 1 |
Write a SQL query that answers the following question: What time has a lane less than 5, with Poland as the nationality? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (time VARCHAR, lane VARCHAR, nationality VARCHAR) | SELECT time FROM table_name_63 WHERE lane < 5 AND nationality = "poland" |
Write a SQL query that answers the following question: How many lanes have 1:53.70 as the time? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (lane VARCHAR, time VARCHAR) | SELECT COUNT(lane) FROM table_name_62 WHERE time = "1:53.70" |
Write a SQL query that answers the following question: How many ranks have chen yin as the name, with a lane greater than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (rank INTEGER, name VARCHAR, lane VARCHAR) | SELECT SUM(rank) FROM table_name_22 WHERE name = "chen yin" AND lane > 8 |
Write a SQL query that answers the following question: What nationality has 1:55.35 as the time? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (nationality VARCHAR, time VARCHAR) | SELECT nationality FROM table_name_96 WHERE time = "1:55.35" |
Write a SQL query that answers the following question: How many lanes have a rank greater than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (lane INTEGER, rank INTEGER) | SELECT SUM(lane) FROM table_name_25 WHERE rank > 8 |
Write a SQL query that answers the following question: Where in Sweden is the home of the Swedish team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (home VARCHAR, country VARCHAR) | SELECT home FROM table_name_14 WHERE country = "sweden" |
Write a SQL query that answers the following question: Who is third to Xu Xiaoming at second? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (third VARCHAR, second VARCHAR) | SELECT third FROM table_name_23 WHERE second = "xu xiaoming" |
Write a SQL query that answers the following question: Who is the lead for the team from Saskatoon, Saskatchewan? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (lead VARCHAR, home VARCHAR) | SELECT lead FROM table_name_84 WHERE home = "saskatoon, saskatchewan" |
Write a SQL query that answers the following question: Who is second on the team with Euan Byers at lead? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (second VARCHAR, lead VARCHAR) | SELECT second FROM table_name_38 WHERE lead = "euan byers" |
Write a SQL query that answers the following question: Who is the third on the team from Madison, Wisconsin that has Craig Brown as skip? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (third VARCHAR, home VARCHAR, skip VARCHAR) | SELECT third FROM table_name_23 WHERE home = "madison, wisconsin" AND skip = "craig brown" |
Write a SQL query that answers the following question: On which date was the opponent the Chicago Bears? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_54 WHERE opponent = "chicago bears" |
Write a SQL query that answers the following question: Which week was on october 30, 1983? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (week INTEGER, date VARCHAR) | SELECT SUM(week) FROM table_name_40 WHERE date = "october 30, 1983" |
Write a SQL query that answers the following question: What is the Mascot for the team from leo that had a Previous Conference value of independent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (mascot VARCHAR, previous_conference VARCHAR, location VARCHAR) | SELECT mascot FROM table_name_13 WHERE previous_conference = "independent" AND location = "leo" |
Write a SQL query that answers the following question: What School had 3a/2a as the value for IHSAA Class/ Football Class? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (school VARCHAR, ihsaa_class__football_class VARCHAR) | SELECT school FROM table_name_81 WHERE ihsaa_class__football_class = "3a/2a" |
Write a SQL query that answers the following question: How many July 1, 2013 projections have a Rank of 27? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (_2013_projection VARCHAR, july_1 VARCHAR, rank VARCHAR) | SELECT COUNT(july_1), _2013_projection FROM table_name_58 WHERE rank = "27" |
Write a SQL query that answers the following question: What is the format for the one which has a call sign of cite-fm-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (format VARCHAR, call_sign VARCHAR) | SELECT format FROM table_name_94 WHERE call_sign = "cite-fm-1" |
Write a SQL query that answers the following question: What'd the total Dolphin points when there was an attendance of 52,860? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (dolphins_points VARCHAR, attendance VARCHAR) | SELECT COUNT(dolphins_points) FROM table_name_80 WHERE attendance = 52 OFFSET 860 |
Write a SQL query that answers the following question: What's the most in attendance when the Dolphins points were less than 24 and, they played the New England Patriots? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (attendance INTEGER, dolphins_points VARCHAR, opponent VARCHAR) | SELECT MAX(attendance) FROM table_name_77 WHERE dolphins_points < 24 AND opponent = "new england patriots" |
Write a SQL query that answers the following question: Which district had SC reserved and 169 Constituents? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) | SELECT district FROM table_name_2 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "169" |
Write a SQL query that answers the following question: What was reserved in the district that has 169 constituents? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) | SELECT reserved_for___sc___st__none_ FROM table_name_72 WHERE constituency_number = "169" |
Write a SQL query that answers the following question: What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (Id VARCHAR) | SELECT 1995 FROM table_name_81 WHERE 1997 = "lq" AND 1989 = "1r" |
Write a SQL query that answers the following question: What is 1996 Grand Slam Tournament if 1994 is LQ and 1992 is 3R? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (Id VARCHAR) | SELECT 1996 FROM table_name_4 WHERE 1994 = "lq" AND 1992 = "3r" |
Write a SQL query that answers the following question: What is 1994 Grand Slam Tournament if 1993 is also grand slam tournaments? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (Id VARCHAR) | SELECT 1994 FROM table_name_88 WHERE 1993 = "grand slam tournaments" |
Write a SQL query that answers the following question: What is 1995 Grand Slam Tournament if 1990 is LQ? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (Id VARCHAR) | SELECT 1995 FROM table_name_96 WHERE 1990 = "lq" |
Write a SQL query that answers the following question: What is 1995 Grand Slam Tournament if 1996 is also grand slam tournaments? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (Id VARCHAR) | SELECT 1990 FROM table_name_33 WHERE 1996 = "grand slam tournaments" |
Write a SQL query that answers the following question: What is 1987 Grand Slam Tournament if 1989 is also grand slam tournaments? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (Id VARCHAR) | SELECT 1987 FROM table_name_71 WHERE 1989 = "grand slam tournaments" |
Write a SQL query that answers the following question: How many people attended the home game against the New York Jets? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (attendance INTEGER, opponent VARCHAR) | SELECT SUM(attendance) FROM table_name_61 WHERE opponent = "new york jets" |
Write a SQL query that answers the following question: How many people attended the September 14, 1968 game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR) | SELECT COUNT(attendance) FROM table_name_28 WHERE date = "september 14, 1968" |
Write a SQL query that answers the following question: Who is the director of the production number 9368? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (director VARCHAR, production_number VARCHAR) | SELECT director FROM table_name_51 WHERE production_number = "9368" |
Write a SQL query that answers the following question: What is the title with chuck jones as the director and the production number 9537? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (title VARCHAR, director VARCHAR, production_number VARCHAR) | SELECT title FROM table_name_78 WHERE director = "chuck jones" AND production_number = "9537" |
Write a SQL query that answers the following question: What is the release date of the mm series, which has the title tom thumb in trouble? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (release_date VARCHAR, series VARCHAR, title VARCHAR) | SELECT release_date FROM table_name_40 WHERE series = "mm" AND title = "tom thumb in trouble" |
Write a SQL query that answers the following question: What is the release date of the mm series which has the title confederate honey? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (release_date VARCHAR, series VARCHAR, title VARCHAR) | SELECT release_date FROM table_name_92 WHERE series = "mm" AND title = "confederate honey" |
Write a SQL query that answers the following question: What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (start INTEGER, year VARCHAR, team VARCHAR, finish VARCHAR) | SELECT AVG(start) FROM table_name_33 WHERE team = "andretti green racing" AND finish > 3 AND year < 2007 |
Write a SQL query that answers the following question: What is the lowest start in a year after 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (start INTEGER, year INTEGER) | SELECT MIN(start) FROM table_name_62 WHERE year > 2008 |
Write a SQL query that answers the following question: What finish has a start smaller than 25? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (finish VARCHAR, start INTEGER) | SELECT finish FROM table_name_73 WHERE start < 25 |
Write a SQL query that answers the following question: Where did the team of Rahal Letterman in 2006 start? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (start VARCHAR, team VARCHAR, year VARCHAR) | SELECT COUNT(start) FROM table_name_53 WHERE team = "rahal letterman" AND year = 2006 |
Write a SQL query that answers the following question: What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (year VARCHAR, finish VARCHAR, chassis VARCHAR, team VARCHAR) | SELECT year FROM table_name_51 WHERE chassis = "dallara" AND team = "andretti green racing" AND finish < 8 |
Write a SQL query that answers the following question: What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (director VARCHAR, release_date VARCHAR, characters VARCHAR) | SELECT director FROM table_name_93 WHERE release_date = "2004-03-31" AND characters = "daffy (as duck dodgers)" |
Write a SQL query that answers the following question: What title has daffy (as duck dodgers) as the character? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (title VARCHAR, characters VARCHAR) | SELECT title FROM table_name_98 WHERE characters = "daffy (as duck dodgers)" |
Write a SQL query that answers the following question: What series has dan povenmire as the director, with museum scream as the title? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (series VARCHAR, director VARCHAR, title VARCHAR) | SELECT series FROM table_name_46 WHERE director = "dan povenmire" AND title = "museum scream" |
Write a SQL query that answers the following question: What was the highest number of 2009 electorates for Raisen when the consituency number was 142? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (number_of_electorates__2009_ INTEGER, district VARCHAR, constituency_number VARCHAR) | SELECT MAX(number_of_electorates__2009_) FROM table_name_86 WHERE district = "raisen" AND constituency_number = "142" |
Write a SQL query that answers the following question: How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (population_density__per_km²_ VARCHAR, name VARCHAR, population__2006_ VARCHAR) | SELECT COUNT(population_density__per_km²_) FROM table_name_98 WHERE name = "total northern villages" AND population__2006_ > 11414 |
Write a SQL query that answers the following question: Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area (km²) smaller than 15.59, and a Population (2011) larger than 790? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (population_density__per_km²_ INTEGER, population__2011_ VARCHAR, change___percentage_ VARCHAR, land_area__km²_ VARCHAR) | SELECT MAX(population_density__per_km²_) FROM table_name_90 WHERE change___percentage_ > 4.9 AND land_area__km²_ < 15.59 AND population__2011_ > 790 |
Write a SQL query that answers the following question: How much Population (2011) has a Land area (km²) larger than 15.69, and a Population density (per km²) larger than 57.3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (population__2011_ INTEGER, land_area__km²_ VARCHAR, population_density__per_km²_ VARCHAR) | SELECT SUM(population__2011_) FROM table_name_28 WHERE land_area__km²_ > 15.69 AND population_density__per_km²_ > 57.3 |
Write a SQL query that answers the following question: Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (land_area__km²_ INTEGER, name VARCHAR, population_density__per_km²_ VARCHAR, population__2006_ VARCHAR) | SELECT MAX(land_area__km²_) FROM table_name_12 WHERE population_density__per_km²_ > 112.6 AND population__2006_ > 785 AND name = "pinehouse" |
Write a SQL query that answers the following question: With a converted less than 1966 and a number of 32 (2nd), what is the largest number listed for withdrawn? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (withdrawn INTEGER, number VARCHAR, converted VARCHAR) | SELECT MAX(withdrawn) FROM table_name_18 WHERE number = "32 (2nd)" AND converted < 1966 |
Write a SQL query that answers the following question: What is the average when the matches are 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (average VARCHAR, matches VARCHAR) | SELECT average FROM table_name_47 WHERE matches = "11" |
Write a SQL query that answers the following question: What is the overs when the matches are 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (overs VARCHAR, matches VARCHAR) | SELECT overs FROM table_name_88 WHERE matches = "10" |
Write a SQL query that answers the following question: Which Car # has a Driver of ryan newman, and a Position larger than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (car__number INTEGER, driver VARCHAR, pos VARCHAR) | SELECT MIN(car__number) FROM table_name_39 WHERE driver = "ryan newman" AND pos > 10 |
Write a SQL query that answers the following question: Which Car # has a Team of hendrick motorsports, and a Driver of mark martin, and a Position larger than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (car__number INTEGER, pos VARCHAR, team VARCHAR, driver VARCHAR) | SELECT AVG(car__number) FROM table_name_95 WHERE team = "hendrick motorsports" AND driver = "mark martin" AND pos > 4 |
Write a SQL query that answers the following question: Which time has a local/networked value of Local, ad frequency of every 20 minutes, and news frequency of n/a after 7PM news? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (time VARCHAR, news_freq VARCHAR, local_networked VARCHAR, ad_freq VARCHAR) | SELECT time FROM table_name_24 WHERE local_networked = "local" AND ad_freq = "20 minutes" AND news_freq = "n/a after 7pm news" |
Write a SQL query that answers the following question: Which time has a news frequency of 1 hour and show name of Best Mix Overnight? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (time VARCHAR, news_freq VARCHAR, show_name VARCHAR) | SELECT time FROM table_name_84 WHERE news_freq = "1 hour" AND show_name = "best mix overnight" |
Write a SQL query that answers the following question: What is the ad frequency for the show named Health Matters? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (ad_freq VARCHAR, show_name VARCHAR) | SELECT ad_freq FROM table_name_58 WHERE show_name = "health matters" |
Write a SQL query that answers the following question: What is the news frequency for the show Locker Room? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (news_freq VARCHAR, show_name VARCHAR) | SELECT news_freq FROM table_name_73 WHERE show_name = "locker room" |
Write a SQL query that answers the following question: What is the local/networked value for the show with an ad frequency of N/A? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (local_networked VARCHAR, ad_freq VARCHAR) | SELECT local_networked FROM table_name_38 WHERE ad_freq = "n/a" |
Write a SQL query that answers the following question: When france had a rank larger than 2, what was their time? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (time VARCHAR, rank VARCHAR, country VARCHAR) | SELECT time FROM table_name_94 WHERE rank > 2 AND country = "france" |
Write a SQL query that answers the following question: What was the time for the country of kazakhstan? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (time VARCHAR, country VARCHAR) | SELECT time FROM table_name_13 WHERE country = "kazakhstan" |
Write a SQL query that answers the following question: What athletes represented the country of germany? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (athletes VARCHAR, country VARCHAR) | SELECT athletes FROM table_name_82 WHERE country = "germany" |
Write a SQL query that answers the following question: What was the rank for the finish time of 1:42.054? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (rank INTEGER, time VARCHAR) | SELECT AVG(rank) FROM table_name_38 WHERE time = "1:42.054" |
Write a SQL query that answers the following question: Which country had a rank smaller than 7 and a time of 1:43.189? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (country VARCHAR, rank VARCHAR, time VARCHAR) | SELECT country FROM table_name_81 WHERE rank < 7 AND time = "1:43.189" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.