instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: Who owns the item that was a T326 before conversion and re-entered service on 11 September 1985? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (owner VARCHAR, re_entered_service__p_ VARCHAR, pre_conversion VARCHAR) | SELECT owner FROM table_name_42 WHERE re_entered_service__p_ = "11 september 1985" AND pre_conversion = "t326" |
Write a SQL query that answers the following question: What date did the T328 that entered service on 18 June 1956 re-enter service? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (re_entered_service__p_ VARCHAR, entered_service__t_ VARCHAR, pre_conversion VARCHAR) | SELECT re_entered_service__p_ FROM table_name_22 WHERE entered_service__t_ = "18 june 1956" AND pre_conversion = "t328" |
Write a SQL query that answers the following question: Which of V/Line Passenger's pre-conversions re-entered service on 23 November 1984? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (pre_conversion VARCHAR, owner VARCHAR, re_entered_service__p_ VARCHAR) | SELECT pre_conversion FROM table_name_16 WHERE owner = "v/line passenger" AND re_entered_service__p_ = "23 november 1984" |
Write a SQL query that answers the following question: Who owns the locomotive that entered service on 30 October 1956? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (owner VARCHAR, entered_service__t_ VARCHAR) | SELECT owner FROM table_name_80 WHERE entered_service__t_ = "30 october 1956" |
Write a SQL query that answers the following question: What was the score of the game when the record was 50-85? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_73 WHERE record = "50-85" |
Write a SQL query that answers the following question: What was the loss of the game when the record was 46-84? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_65 WHERE record = "46-84" |
Write a SQL query that answers the following question: What was the record at the game with a loss of Cook (14–7)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (record VARCHAR, loss VARCHAR) | SELECT record FROM table_name_61 WHERE loss = "cook (14–7)" |
Write a SQL query that answers the following question: What album is 4:53 long? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (album VARCHAR, length VARCHAR) | SELECT album FROM table_name_74 WHERE length = "4:53" |
Write a SQL query that answers the following question: Which 1989 has a 1986 of 99? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (Id VARCHAR) | SELECT 1989 FROM table_name_42 WHERE 1986 = "99" |
Write a SQL query that answers the following question: Which 1983 has a Tournament of wimbledon? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (tournament VARCHAR) | SELECT 1983 FROM table_name_2 WHERE tournament = "wimbledon" |
Write a SQL query that answers the following question: Which Tournament has A in 1987? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (tournament VARCHAR) | SELECT tournament FROM table_name_11 WHERE 1987 = "a" |
Write a SQL query that answers the following question: Which 1988 has a 1985 of 2r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (Id VARCHAR) | SELECT 1988 FROM table_name_54 WHERE 1985 = "2r" |
Write a SQL query that answers the following question: Which 1988 has a 1982 of 104? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (Id VARCHAR) | SELECT 1988 FROM table_name_46 WHERE 1982 = "104" |
Write a SQL query that answers the following question: Which Tournament has a 1984 of 1r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (tournament VARCHAR) | SELECT tournament FROM table_name_26 WHERE 1984 = "1r" |
Write a SQL query that answers the following question: Release date of 2008 q3 has what release price? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (release_price___usd__ VARCHAR, release_date VARCHAR) | SELECT release_price___usd__ FROM table_name_69 WHERE release_date = "2008 q3" |
Write a SQL query that answers the following question: Frequency of 1.2 ghz, and a Release price ( USD ) of $70 is what socket? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (socket VARCHAR, frequency VARCHAR, release_price___usd__ VARCHAR) | SELECT socket FROM table_name_91 WHERE frequency = "1.2 ghz" AND release_price___usd__ = "$70" |
Write a SQL query that answers the following question: Socket of fcbga1088, and a Voltage of 1v, and a Part number(s) of nu80579ez600cnu80579ez600ct is what mult? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (mult VARCHAR, part_number_s_ VARCHAR, socket VARCHAR, voltage VARCHAR) | SELECT mult FROM table_name_3 WHERE socket = "fcbga1088" AND voltage = "1v" AND part_number_s_ = "nu80579ez600cnu80579ez600ct" |
Write a SQL query that answers the following question: Spec number of slj6d(b1)slj6f(b1) has what mult.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (mult VARCHAR, sspec_number VARCHAR) | SELECT mult FROM table_name_85 WHERE sspec_number = "slj6d(b1)slj6f(b1)" |
Write a SQL query that answers the following question: Socket of without quickassist has what release price? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (release_price___usd__ VARCHAR, socket VARCHAR) | SELECT release_price___usd__ FROM table_name_63 WHERE socket = "without quickassist" |
Write a SQL query that answers the following question: Release date of 2008 q3, and a Part number(s) of nu80579ez009c has what Release price ( USD )? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (release_price___usd__ VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR) | SELECT release_price___usd__ FROM table_name_3 WHERE release_date = "2008 q3" AND part_number_s_ = "nu80579ez009c" |
Write a SQL query that answers the following question: What is the lowest Hong Kong value with a 0 Brisbane value and a greater than 0 Kuala Lumpur value? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (hong_kong INTEGER, brisbane VARCHAR, kuala_lumpur VARCHAR) | SELECT MIN(hong_kong) FROM table_name_52 WHERE brisbane = 0 AND kuala_lumpur > 0 |
Write a SQL query that answers the following question: What is the highest Kuala Lumpur value with a Durban value less than 1 and a Mar Del Plata value greater than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (kuala_lumpur INTEGER, durban VARCHAR, mar_del_plata VARCHAR) | SELECT MAX(kuala_lumpur) FROM table_name_82 WHERE durban < 1 AND mar_del_plata > 0 |
Write a SQL query that answers the following question: What is the highest New Zealand value with a Hong Kong value less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (new_zealand INTEGER, hong_kong INTEGER) | SELECT MAX(new_zealand) FROM table_name_47 WHERE hong_kong < 0 |
Write a SQL query that answers the following question: What is the average Singapore value with a London value less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (singapore INTEGER, london INTEGER) | SELECT AVG(singapore) FROM table_name_80 WHERE london < 0 |
Write a SQL query that answers the following question: What position was picked for Canada on Pick 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (position VARCHAR, country VARCHAR, pick VARCHAR) | SELECT position FROM table_name_61 WHERE country = "canada" AND pick = "8" |
Write a SQL query that answers the following question: What is the position that is shown for 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (position VARCHAR, year VARCHAR) | SELECT position FROM table_name_41 WHERE year = 2011 |
Write a SQL query that answers the following question: what language is seethaiah in | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (language VARCHAR, film_name VARCHAR) | SELECT language FROM table_name_27 WHERE film_name = "seethaiah" |
Write a SQL query that answers the following question: Which Producer has a Role of rizzette? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (producer VARCHAR, role VARCHAR) | SELECT producer FROM table_name_74 WHERE role = "rizzette" |
Write a SQL query that answers the following question: Which Title has a Director of rowell santiago? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (title VARCHAR, director VARCHAR) | SELECT title FROM table_name_39 WHERE director = "rowell santiago" |
Write a SQL query that answers the following question: Which Year has a Producer of viva films, and a Title of magkapatid? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (year VARCHAR, producer VARCHAR, title VARCHAR) | SELECT year FROM table_name_41 WHERE producer = "viva films" AND title = "magkapatid" |
Write a SQL query that answers the following question: Which Director has a Role of melissa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (director VARCHAR, role VARCHAR) | SELECT director FROM table_name_80 WHERE role = "melissa" |
Write a SQL query that answers the following question: Which 1990-91 has an average number of 1.035? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (average VARCHAR) | SELECT 1990 AS _91 FROM table_name_34 WHERE average = 1.035 |
Write a SQL query that answers the following question: What results has a week larger than 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (result VARCHAR, week INTEGER) | SELECT result FROM table_name_90 WHERE week > 13 |
Write a SQL query that answers the following question: What results has a week smaller than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (result VARCHAR, week INTEGER) | SELECT result FROM table_name_79 WHERE week < 2 |
Write a SQL query that answers the following question: What was the score for game number 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (score VARCHAR, game VARCHAR) | SELECT score FROM table_name_71 WHERE game = 30 |
Write a SQL query that answers the following question: What is the sum for the game with a score of 103–126? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (game INTEGER, score VARCHAR) | SELECT SUM(game) FROM table_name_91 WHERE score = "103–126" |
Write a SQL query that answers the following question: What is the lowest game number that has a Record of 3–33? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (game INTEGER, record VARCHAR) | SELECT MIN(game) FROM table_name_93 WHERE record = "3–33" |
Write a SQL query that answers the following question: what score was on february 21 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (score VARCHAR, february VARCHAR) | SELECT score FROM table_name_18 WHERE february = 21 |
Write a SQL query that answers the following question: What is the nationality of the player from the Ohio State University (NCAA) Team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR) | SELECT nationality FROM table_name_20 WHERE college_junior_club_team__league_ = "ohio state university (ncaa)" |
Write a SQL query that answers the following question: What is the lowest round of the Kitchener Rangers (OHA)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (round INTEGER, college_junior_club_team__league_ VARCHAR) | SELECT MIN(round) FROM table_name_97 WHERE college_junior_club_team__league_ = "kitchener rangers (oha)" |
Write a SQL query that answers the following question: What is the position of Pierre Daigneault? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_58 WHERE player = "pierre daigneault" |
Write a SQL query that answers the following question: What is the average 2006 value with a 2010 value of 417.9 and a 2011 value greater than 426.7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (Id VARCHAR) | SELECT AVG(2006) FROM table_name_26 WHERE 2010 = 417.9 AND 2011 > 426.7 |
Write a SQL query that answers the following question: What is the 2011 total with a 2008 value greater than 346.5, a 2009 value of 392, and a 2010 value bigger than 354.6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (Id VARCHAR) | SELECT COUNT(2011) FROM table_name_45 WHERE 2008 > 346.5 AND 2009 = 392 AND 2010 > 354.6 |
Write a SQL query that answers the following question: What is the total 2008 value with a 2006 value greater than 322.7, a 353.9 in 2011, and a 2009 less than 392? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (Id VARCHAR) | SELECT COUNT(2008) FROM table_name_53 WHERE 2006 > 322.7 AND 2011 = 353.9 AND 2009 < 392 |
Write a SQL query that answers the following question: What is the highest 2009 value with a 2006 value smaller than 280.4, a 2007 less than 2.2, and a 2011 less than 3.5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (Id VARCHAR) | SELECT MAX(2009) FROM table_name_10 WHERE 2006 < 280.4 AND 2007 < 2.2 AND 2010 < 3.5 |
Write a SQL query that answers the following question: What is the average 2007 value with a 2009 value greater than 2.8, a 4.9 in 2010, and a 2006 less than 2.5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (Id VARCHAR) | SELECT AVG(2007) FROM table_name_19 WHERE 2009 > 2.8 AND 2010 = 4.9 AND 2006 < 2.5 |
Write a SQL query that answers the following question: What is the 2006 total with a 2010 value greater than 417.9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (Id VARCHAR) | SELECT COUNT(2006) FROM table_name_95 WHERE 2010 > 417.9 |
Write a SQL query that answers the following question: when has an Opponent of @ philadelphia phillies and an Attendance of 20,072? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (date VARCHAR, opponent VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_19 WHERE opponent = "@ philadelphia phillies" AND attendance = "20,072" |
Write a SQL query that answers the following question: Which Opponent is on april 28? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_19 WHERE date = "april 28" |
Write a SQL query that answers the following question: Which Record has an Attendance of 24,597? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (record VARCHAR, attendance VARCHAR) | SELECT record FROM table_name_62 WHERE attendance = "24,597" |
Write a SQL query that answers the following question: Which Record has a Loss of o'connor (0-1)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (record VARCHAR, loss VARCHAR) | SELECT record FROM table_name_44 WHERE loss = "o'connor (0-1)" |
Write a SQL query that answers the following question: which attendance has a Loss of drese (0-2)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (attendance VARCHAR, loss VARCHAR) | SELECT attendance FROM table_name_24 WHERE loss = "drese (0-2)" |
Write a SQL query that answers the following question: What is the highest 2nd in (m) that has a Rank more than 2 and Points more than 249.3 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (rank VARCHAR, points VARCHAR) | SELECT MAX(2 AS nd__m_) FROM table_name_14 WHERE rank > 2 AND points > 249.3 |
Write a SQL query that answers the following question: What is the first date of election for the incumbent that was re-elected in the South Carolina 1 district? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (first_elected VARCHAR, result VARCHAR, district VARCHAR) | SELECT first_elected FROM table_name_45 WHERE result = "re-elected" AND district = "south carolina 1" |
Write a SQL query that answers the following question: Who was the incumbent who was first elected in 1876? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (incumbent VARCHAR, first_elected VARCHAR) | SELECT incumbent FROM table_name_43 WHERE first_elected = "1876" |
Write a SQL query that answers the following question: Who was the Democratic incumbent in the South Carolina 5 District? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (incumbent VARCHAR, party VARCHAR, district VARCHAR) | SELECT incumbent FROM table_name_84 WHERE party = "democratic" AND district = "south carolina 5" |
Write a SQL query that answers the following question: What is the first elected date for the incumbent in the South Carolina 4 district? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (first_elected VARCHAR, district VARCHAR) | SELECT first_elected FROM table_name_98 WHERE district = "south carolina 4" |
Write a SQL query that answers the following question: Which area has a telephone of (052) of 3862279? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (area__km_2__ VARCHAR, telephone__052_ VARCHAR) | SELECT area__km_2__ FROM table_name_1 WHERE telephone__052_ = "3862279" |
Write a SQL query that answers the following question: Which driver had points over 252 in the season of 2012 with a percentage of possible points at 55.60%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (driver VARCHAR, percentage_of_possible_points VARCHAR, points VARCHAR, season VARCHAR) | SELECT driver FROM table_name_40 WHERE points > 252 AND season = "2012" AND percentage_of_possible_points = "55.60%" |
Write a SQL query that answers the following question: What is the number of races that took place with points of 257? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (races INTEGER, points VARCHAR) | SELECT SUM(races) FROM table_name_28 WHERE points = 257 |
Write a SQL query that answers the following question: What is the number of points that driver fernando alonso has in the season he had 20 races? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (points INTEGER, races VARCHAR, driver VARCHAR) | SELECT SUM(points) FROM table_name_72 WHERE races = 20 AND driver = "fernando alonso" |
Write a SQL query that answers the following question: What was the average Points of the season driver Fernando Alonso had a percentage of possible points of 53.05%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (points INTEGER, driver VARCHAR, percentage_of_possible_points VARCHAR) | SELECT AVG(points) FROM table_name_15 WHERE driver = "fernando alonso" AND percentage_of_possible_points = "53.05%" |
Write a SQL query that answers the following question: What position has 217 as the pick? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (position VARCHAR, pick VARCHAR) | SELECT position FROM table_name_93 WHERE pick = 217 |
Write a SQL query that answers the following question: Which score has a record of 18-21-7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_36 WHERE record = "18-21-7" |
Write a SQL query that answers the following question: What is the lowest value for apps in 2009 season in a division less than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (apps INTEGER, season VARCHAR, division VARCHAR) | SELECT MIN(apps) FROM table_name_86 WHERE season = "2009" AND division < 1 |
Write a SQL query that answers the following question: What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (goals INTEGER, apps VARCHAR, team VARCHAR, division VARCHAR) | SELECT SUM(goals) FROM table_name_48 WHERE team = "torpedo moscow" AND division = 1 AND apps < 29 |
Write a SQL query that answers the following question: Which Remixed by has a Version of album version, and an Album of les mots? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (remixed_by VARCHAR, version VARCHAR, album VARCHAR) | SELECT remixed_by FROM table_name_80 WHERE version = "album version" AND album = "les mots" |
Write a SQL query that answers the following question: How long was the instrumental version in 1986? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (length VARCHAR, year VARCHAR, version VARCHAR) | SELECT length FROM table_name_74 WHERE year = 1986 AND version = "instrumental" |
Write a SQL query that answers the following question: Which long version was remixed in 1986? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (remixed_by VARCHAR, year VARCHAR, version VARCHAR) | SELECT remixed_by FROM table_name_51 WHERE year = 1986 AND version = "long version" |
Write a SQL query that answers the following question: Who was Canada's lead? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (lead VARCHAR, country VARCHAR) | SELECT lead FROM table_name_76 WHERE country = "canada" |
Write a SQL query that answers the following question: What was Canada's skip? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (skip VARCHAR, country VARCHAR) | SELECT skip FROM table_name_68 WHERE country = "canada" |
Write a SQL query that answers the following question: Which country has a Lead of sarah wazney? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (country VARCHAR, lead VARCHAR) | SELECT country FROM table_name_50 WHERE lead = "sarah wazney" |
Write a SQL query that answers the following question: Which Lead has a Third of jeanne ellegaard? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (lead VARCHAR, third VARCHAR) | SELECT lead FROM table_name_56 WHERE third = "jeanne ellegaard" |
Write a SQL query that answers the following question: Which Skip has a Third of sara carlsson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (skip VARCHAR, third VARCHAR) | SELECT skip FROM table_name_39 WHERE third = "sara carlsson" |
Write a SQL query that answers the following question: Which Skip has a Second of vicki adams? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (skip VARCHAR, second VARCHAR) | SELECT skip FROM table_name_21 WHERE second = "vicki adams" |
Write a SQL query that answers the following question: Enrollment that has a School of south central (union mills) has what sum? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (enrollment INTEGER, school VARCHAR) | SELECT SUM(enrollment) FROM table_name_72 WHERE school = "south central (union mills)" |
Write a SQL query that answers the following question: Mascot of blazers involves what city? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (city VARCHAR, mascot VARCHAR) | SELECT city FROM table_name_17 WHERE mascot = "blazers" |
Write a SQL query that answers the following question: County of 46 laporte is what school? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (school VARCHAR, county VARCHAR) | SELECT school FROM table_name_83 WHERE county = "46 laporte" |
Write a SQL query that answers the following question: What is the average Laps that shows spun off for time? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (laps INTEGER, time VARCHAR) | SELECT AVG(laps) FROM table_name_56 WHERE time = "spun off" |
Write a SQL query that answers the following question: What is the average Laps for the Mexico team with a grid number of more than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (laps INTEGER, grid VARCHAR, team VARCHAR) | SELECT AVG(laps) FROM table_name_76 WHERE grid > 1 AND team = "mexico" |
Write a SQL query that answers the following question: What is name of the drive with a Time of +13.315? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (driver VARCHAR, time VARCHAR) | SELECT driver FROM table_name_85 WHERE time = "+13.315" |
Write a SQL query that answers the following question: What is the total grid number that has 14 laps and a time of +29.483? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (grid VARCHAR, laps VARCHAR, time VARCHAR) | SELECT COUNT(grid) FROM table_name_6 WHERE laps = 14 AND time = "+29.483" |
Write a SQL query that answers the following question: What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (laps VARCHAR, grid VARCHAR, time VARCHAR, team VARCHAR) | SELECT COUNT(laps) FROM table_name_39 WHERE time = "collision" AND team = "switzerland" AND grid < 11 |
Write a SQL query that answers the following question: What is the time of the game after week 4 against the Baltimore Ravens? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (time___et__ VARCHAR, week VARCHAR, opponent VARCHAR) | SELECT time___et__ FROM table_name_67 WHERE week > 4 AND opponent = "baltimore ravens" |
Write a SQL query that answers the following question: What nominated work has seattle international film festival as the award? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (nominated_work VARCHAR, award VARCHAR) | SELECT nominated_work FROM table_name_24 WHERE award = "seattle international film festival" |
Write a SQL query that answers the following question: What award has breakthrough performance as the category? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (award VARCHAR, category VARCHAR) | SELECT award FROM table_name_52 WHERE category = "breakthrough performance" |
Write a SQL query that answers the following question: What category has showest award for the category awards? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (category VARCHAR, award VARCHAR) | SELECT category FROM table_name_9 WHERE award = "showest award" |
Write a SQL query that answers the following question: What category has a year after 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (category VARCHAR, year INTEGER) | SELECT category FROM table_name_33 WHERE year > 2004 |
Write a SQL query that answers the following question: Which Opponent had a Score of 6-3, 6-2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_67 WHERE score = "6-3, 6-2" |
Write a SQL query that answers the following question: Which Score had an Opponent of chris evert-lloyd? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (score VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_53 WHERE opponent = "chris evert-lloyd" |
Write a SQL query that answers the following question: Which Surface had an Opponent of chris evert-lloyd? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (surface VARCHAR, opponent VARCHAR) | SELECT surface FROM table_name_45 WHERE opponent = "chris evert-lloyd" |
Write a SQL query that answers the following question: Which Surface had a Date of june 13, 1983? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_14 WHERE date = "june 13, 1983" |
Write a SQL query that answers the following question: What was the highest attendance for a game where Geelong was the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (crowd INTEGER, home_team VARCHAR) | SELECT MAX(crowd) FROM table_name_25 WHERE home_team = "geelong" |
Write a SQL query that answers the following question: What was the away team score when the home team was the Brisbane Lions? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_83 WHERE home_team = "brisbane lions" |
Write a SQL query that answers the following question: What was the largest attendance at the Telstra Dome, when the home team was the Western Bulldogs? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (crowd INTEGER, ground VARCHAR, home_team VARCHAR) | SELECT MAX(crowd) FROM table_name_30 WHERE ground = "telstra dome" AND home_team = "western bulldogs" |
Write a SQL query that answers the following question: What is the full amount of Total Cargo (in Metric Tonnes) where the Code (IATA/ICAO) is pvg/zspd, and the rank is less than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (total_cargo__metric_tonnes_ INTEGER, code__iata_icao_ VARCHAR, rank VARCHAR) | SELECT SUM(total_cargo__metric_tonnes_) FROM table_name_13 WHERE code__iata_icao_ = "pvg/zspd" AND rank < 3 |
Write a SQL query that answers the following question: What is the Date at memorial stadium • minneapolis, mn with an Attendance of 20,000, and a Result of w52-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (date VARCHAR, result VARCHAR, site VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_7 WHERE site = "memorial stadium • minneapolis, mn" AND attendance = "20,000" AND result = "w52-0" |
Write a SQL query that answers the following question: What is the Opponent name at memorial stadium • minneapolis, mn on 10/20/1928? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (opponent_number VARCHAR, site VARCHAR, date VARCHAR) | SELECT opponent_number FROM table_name_25 WHERE site = "memorial stadium • minneapolis, mn" AND date = "10/20/1928" |
Write a SQL query that answers the following question: What is the Attendance number when the Opponent was purdue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (attendance VARCHAR, opponent_number VARCHAR) | SELECT attendance FROM table_name_15 WHERE opponent_number = "purdue" |
Write a SQL query that answers the following question: What is the Site when the Result was w52-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (site VARCHAR, result VARCHAR) | SELECT site FROM table_name_92 WHERE result = "w52-0" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.