output stringlengths 18 557 | instruction stringlengths 22 540 |
|---|---|
SELECT SUM(first_season_of_current_spell_in_segunda_división) FROM table_name_44 WHERE city = "cañete" | CREATE TABLE table_name_44 (first_season_of_current_spell_in_segunda_división INTEGER, city VARCHAR), What is the total of the first season in Segunda División that has a City of cañete? |
SELECT team FROM table_name_69 WHERE top_division_titles > 0 AND founded > 1927 AND stadium = "miguel grau" | CREATE TABLE table_name_69 (team VARCHAR, stadium VARCHAR, top_division_titles VARCHAR, founded VARCHAR), Which team has Top division titles larger than 0, a Founded larger than 1927, and a Stadium of miguel grau? |
SELECT city FROM table_name_69 WHERE first_season_of_current_spell_in_segunda_división < 2013 | CREATE TABLE table_name_69 (city VARCHAR, first_season_of_current_spell_in_segunda_división INTEGER), Which city has a First season of current spell in Segunda División smaller than 2013? |
SELECT MIN(capacity) FROM table_name_11 WHERE first_season_in_segunda_división = 2013 AND top_division_titles > 0 | CREATE TABLE table_name_11 (capacity INTEGER, first_season_in_segunda_división VARCHAR, top_division_titles VARCHAR), What is the smallest capacity for a First season in Segunda División of 2013, and Top division titles larger than 0? |
SELECT COUNT(enrollment) FROM table_name_99 WHERE institution = "mcgill university" AND capacity < 25 OFFSET 012 | CREATE TABLE table_name_99 (enrollment VARCHAR, institution VARCHAR, capacity VARCHAR), What's the total enrollment ofr Mcgill University that has a capacity less than 25,012? |
SELECT MIN(first_season) FROM table_name_8 WHERE city = "montreal" AND capacity > 5 OFFSET 100 | CREATE TABLE table_name_8 (first_season INTEGER, city VARCHAR, capacity VARCHAR), What's the smallest season for Montreal that's greater than 5,100 for capacity? |
SELECT city FROM table_name_32 WHERE first_season = 1996 | CREATE TABLE table_name_32 (city VARCHAR, first_season VARCHAR), What's the name of the city whose first season was in 1996? |
SELECT football_stadium FROM table_name_55 WHERE team = "carabins" | CREATE TABLE table_name_55 (football_stadium VARCHAR, team VARCHAR), What's the name of the carabins stadium? |
SELECT best FROM table_name_9 WHERE qual_2 = "1:44.050" | CREATE TABLE table_name_9 (best VARCHAR, qual_2 VARCHAR), what team has the qual 2 of 1:44.050? |
SELECT name FROM table_name_87 WHERE team = "forsythe racing" AND qual_2 = "1:47.132" | CREATE TABLE table_name_87 (name VARCHAR, team VARCHAR, qual_2 VARCHAR), what name goes along with the team of forsythe racing, and a Qual 2 of 1:47.132? |
SELECT team FROM table_name_82 WHERE qual_2 = "1:44.027" | CREATE TABLE table_name_82 (team VARCHAR, qual_2 VARCHAR), what team had the 1:44.027 qual 2? |
SELECT qual_1 FROM table_name_25 WHERE name = "alex tagliani" | CREATE TABLE table_name_25 (qual_1 VARCHAR, name VARCHAR), what is the qual 1 for alex tagliani? |
SELECT team FROM table_name_75 WHERE best = "1:43.134" | CREATE TABLE table_name_75 (team VARCHAR, best VARCHAR), what is the team with the best of 1:43.134? |
SELECT visiting_team FROM table_name_99 WHERE stadium = "rca dome" | CREATE TABLE table_name_99 (visiting_team VARCHAR, stadium VARCHAR), Who was the visiting team at the matchup at the RCA Dome? |
SELECT final_score FROM table_name_11 WHERE host_team = "detroit lions" | CREATE TABLE table_name_11 (final_score VARCHAR, host_team VARCHAR), What was the final score in the game in which the Detroit Lions were the home team? |
SELECT stadium FROM table_name_11 WHERE date = "november 20" | CREATE TABLE table_name_11 (stadium VARCHAR, date VARCHAR), Which stadium hosted the November 20 game? |
SELECT visiting_team FROM table_name_13 WHERE host_team = "minnesota vikings" | CREATE TABLE table_name_13 (visiting_team VARCHAR, host_team VARCHAR), Who was the visiting team against the Minnesota Vikings? |
SELECT host_team FROM table_name_22 WHERE stadium = "candlestick park" | CREATE TABLE table_name_22 (host_team VARCHAR, stadium VARCHAR), Who was the host team at Candlestick Park? |
SELECT date FROM table_name_58 WHERE final_score = "20-27" | CREATE TABLE table_name_58 (date VARCHAR, final_score VARCHAR), Which date had a final score of 20-27? |
SELECT COUNT(year) FROM table_name_66 WHERE position = "2nd" | CREATE TABLE table_name_66 (year VARCHAR, position VARCHAR), How many years have had the position of 2nd? |
SELECT position FROM table_name_29 WHERE notes = "20km" AND year < 2002 | CREATE TABLE table_name_29 (position VARCHAR, notes VARCHAR, year VARCHAR), What position had notes of 20km and a year earlier than 2002? |
SELECT venue FROM table_name_26 WHERE year < 2006 AND position = "10th" | CREATE TABLE table_name_26 (venue VARCHAR, year VARCHAR, position VARCHAR), What was the venue before 2006, with the position of 10th? |
SELECT notes FROM table_name_62 WHERE venue = "turin, italy" | CREATE TABLE table_name_62 (notes VARCHAR, venue VARCHAR), What were the notes when the Venue was Turin, Italy? |
SELECT secondary_military_speciality FROM table_name_21 WHERE real_name = "gareth morgan" | CREATE TABLE table_name_21 (secondary_military_speciality VARCHAR, real_name VARCHAR), What is Gareth Morgan's Secondary Military Specialty? |
SELECT code_name FROM table_name_81 WHERE birthplace = "hawaii" | CREATE TABLE table_name_81 (code_name VARCHAR, birthplace VARCHAR), What is the Code Name of the figure born in Hawaii? |
SELECT last_title FROM table_name_9 WHERE area_province = "greater buenos aires" AND first_season = "1920" | CREATE TABLE table_name_9 (last_title VARCHAR, area_province VARCHAR, first_season VARCHAR), Name the last title for greater buenos aires and first season of 1920 |
SELECT area_province FROM table_name_64 WHERE district = "córdoba" | CREATE TABLE table_name_64 (area_province VARCHAR, district VARCHAR), Name the area for District of córdoba |
SELECT last_title FROM table_name_36 WHERE club = "quilmes" | CREATE TABLE table_name_36 (last_title VARCHAR, club VARCHAR), Name the last title for club of quilmes |
SELECT last_title FROM table_name_11 WHERE club = "newell's old boys" | CREATE TABLE table_name_11 (last_title VARCHAR, club VARCHAR), Name the last time for club of newell's old boys |
SELECT AVG(scored) FROM table_name_64 WHERE competition = "2011 long teng cup" AND date = "2 october 2011" | CREATE TABLE table_name_64 (scored INTEGER, competition VARCHAR, date VARCHAR), Name the averag scored for 2011 long teng cup and 2 october 2011 |
SELECT barrel_twist FROM table_name_63 WHERE barrel_length = "11.5 in." | CREATE TABLE table_name_63 (barrel_twist VARCHAR, barrel_length VARCHAR), Can you tell me the Barrel twist that has the Barrel lenght of 11.5 in.? |
SELECT AVG(year) FROM table_name_27 WHERE inglewood < 2 OFFSET 575 | CREATE TABLE table_name_27 (year INTEGER, inglewood INTEGER), What is the average year that had a value less than 2,575 in Inglewood? |
SELECT nature_of_incident FROM table_name_62 WHERE location = "kabul" AND date = "2004-01-28" | CREATE TABLE table_name_62 (nature_of_incident VARCHAR, location VARCHAR, date VARCHAR), What is the nature of the incident in Kabul on 2004-01-28? |
SELECT nature_of_incident FROM table_name_69 WHERE circumstances = "bomb attack" | CREATE TABLE table_name_69 (nature_of_incident VARCHAR, circumstances VARCHAR), What is the nature of the incident that's a bomb attack? |
SELECT nature_of_incident FROM table_name_93 WHERE casualties = "3 wia" AND circumstances = "ied" | CREATE TABLE table_name_93 (nature_of_incident VARCHAR, casualties VARCHAR, circumstances VARCHAR), What is the nature of the incident with Casualties of 3 wia, and Circumstances of ied? |
SELECT casualties FROM table_name_24 WHERE location = "kunduz" AND circumstances = "suicide" | CREATE TABLE table_name_24 (casualties VARCHAR, location VARCHAR, circumstances VARCHAR), Which Casualties have a Location of kunduz, and Circumstances of suicide? |
SELECT casualties FROM table_name_67 WHERE nature_of_incident = "hostile" AND circumstances = "mortar attack" | CREATE TABLE table_name_67 (casualties VARCHAR, nature_of_incident VARCHAR, circumstances VARCHAR), Which Casualties have a hostile Nature of incident and Circumstances of mortar attack? |
SELECT born_in FROM table_name_36 WHERE former_experience = "commissioner of health" | CREATE TABLE table_name_36 (born_in VARCHAR, former_experience VARCHAR), When was the delegate who has previous experience as a commissioner of health born? |
SELECT airport FROM table_name_85 WHERE city = "kota kinabalu" | CREATE TABLE table_name_85 (airport VARCHAR, city VARCHAR), What is the name of the airport in the city of Kota Kinabalu? |
SELECT iata FROM table_name_23 WHERE city = "amsterdam" | CREATE TABLE table_name_23 (iata VARCHAR, city VARCHAR), What is the IATA for the city of Amsterdam? |
SELECT country FROM table_name_3 WHERE iata = "jfk" | CREATE TABLE table_name_3 (country VARCHAR, iata VARCHAR), Which country has an IATA of JFK? |
SELECT city FROM table_name_42 WHERE iata = "auh" | CREATE TABLE table_name_42 (city VARCHAR, iata VARCHAR), Which city has an IATA of AUH? |
SELECT airport FROM table_name_39 WHERE iata = "ams" | CREATE TABLE table_name_39 (airport VARCHAR, iata VARCHAR), Which airport has an IATA of AMS? |
SELECT city FROM table_name_59 WHERE icao = "kiah" | CREATE TABLE table_name_59 (city VARCHAR, icao VARCHAR), Which city has an ICAO of Kiah? |
SELECT genre FROM table_name_88 WHERE directed_by = "sándor simó" | CREATE TABLE table_name_88 (genre VARCHAR, directed_by VARCHAR), What Genre did Sándor Simó direct? |
SELECT genre FROM table_name_12 WHERE original_title = "malina (ger.-aus.-fr.)" | CREATE TABLE table_name_12 (genre VARCHAR, original_title VARCHAR), What is the Genre for Malina (ger.-aus.-fr.), an Original Title? |
SELECT original_title FROM table_name_91 WHERE title_in_english = "the last metro" | CREATE TABLE table_name_91 (original_title VARCHAR, title_in_english VARCHAR), The Last Metro refers to which Original Title? |
SELECT genre FROM table_name_48 WHERE role = "episode actor" AND original_title = "franciska vasárnapjai (hungarian)" | CREATE TABLE table_name_48 (genre VARCHAR, role VARCHAR, original_title VARCHAR), What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi? |
SELECT original_title FROM table_name_59 WHERE role = "episode actor" AND directed_by = "géza bereményi" | CREATE TABLE table_name_59 (original_title VARCHAR, role VARCHAR, directed_by VARCHAR), What is the Original title for an Episode Actor role which was Directed by Géza Bereményi? |
SELECT AVG(round) FROM table_name_13 WHERE name = "bob randall" | CREATE TABLE table_name_13 (round INTEGER, name VARCHAR), What is the round for bob randall? |
SELECT position FROM table_name_96 WHERE signed = "yes" AND round < 24 AND name = "charlie hough" | CREATE TABLE table_name_96 (position VARCHAR, name VARCHAR, signed VARCHAR, round VARCHAR), what is the position when signed is yes, round is less than 24 and name is charlie hough? |
SELECT school FROM table_name_26 WHERE signed = "no" AND round = 50 | CREATE TABLE table_name_26 (school VARCHAR, signed VARCHAR, round VARCHAR), what is the school when signed is no and round is 50? |
SELECT school FROM table_name_68 WHERE round = 8 | CREATE TABLE table_name_68 (school VARCHAR, round VARCHAR), what is the school for round 8? |
SELECT position FROM table_name_25 WHERE name = "robert johnson" | CREATE TABLE table_name_25 (position VARCHAR, name VARCHAR), what is the position for robert johnson? |
SELECT signed FROM table_name_48 WHERE position = "ss" AND school = "carson city high school" | CREATE TABLE table_name_48 (signed VARCHAR, position VARCHAR, school VARCHAR), Was position ss from carson city high school signed? |
SELECT AVG(yards) FROM table_name_46 WHERE starts > 12 | CREATE TABLE table_name_46 (yards INTEGER, starts INTEGER), What was the average number of yards Michael Henig had in a year when he had more than 12 starts/ |
SELECT AVG(starts) FROM table_name_54 WHERE yards > 1201 | CREATE TABLE table_name_54 (starts INTEGER, yards INTEGER), What was the average number of starts Michael Henig had in a year when he had more than 1201 yards? |
SELECT airport FROM table_name_64 WHERE iata = "cxb" | CREATE TABLE table_name_64 (airport VARCHAR, iata VARCHAR), Name the airport with IATA of cxb |
SELECT airport FROM table_name_74 WHERE iata = "dmk" | CREATE TABLE table_name_74 (airport VARCHAR, iata VARCHAR), Name the airport with IATA of dmk |
SELECT city FROM table_name_15 WHERE airport = "singapore changi airport" | CREATE TABLE table_name_15 (city VARCHAR, airport VARCHAR), Name the city that has singapore changi airport |
SELECT icao FROM table_name_22 WHERE iata = "zyl" | CREATE TABLE table_name_22 (icao VARCHAR, iata VARCHAR), Name the ICAO for when IATA is zyl |
SELECT icao FROM table_name_69 WHERE iata = "rgn" | CREATE TABLE table_name_69 (icao VARCHAR, iata VARCHAR), Name the ICAO for IATA of rgn |
SELECT icao FROM table_name_62 WHERE iata = "ccu" | CREATE TABLE table_name_62 (icao VARCHAR, iata VARCHAR), Name the ICAO for IATA of ccu |
SELECT MAX(gold) FROM table_name_90 WHERE total > 16 | CREATE TABLE table_name_90 (gold INTEGER, total INTEGER), What is the largest gold with a Total larger than 16? |
SELECT MAX(silver) FROM table_name_79 WHERE total < 2 AND bronze < 1 AND nation = "yugoslavia" | CREATE TABLE table_name_79 (silver INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR), What is the largest silver with a Total smaller than 2, a Bronze smaller than 1, and a Nation of yugoslavia? |
SELECT MIN(bronze) FROM table_name_58 WHERE nation = "west germany" AND gold > 0 | CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR, gold VARCHAR), What is the smallest bronze with a Nation of west germany, and a Gold larger than 0? |
SELECT record FROM table_name_34 WHERE date = "july 2" | CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR), What was the record on July 2? |
SELECT MAX(silver) FROM table_name_63 WHERE gold < 0 | CREATE TABLE table_name_63 (silver INTEGER, gold INTEGER), What is the largest silver with less than 0 gold? |
SELECT AVG(total_viewers) FROM table_name_96 WHERE share = "17.6%" | CREATE TABLE table_name_96 (total_viewers INTEGER, share VARCHAR), What's the average total viewers that has 17.6% Share? |
SELECT share FROM table_name_84 WHERE episode_no = 1 | CREATE TABLE table_name_84 (share VARCHAR, episode_no VARCHAR), What's the share of Episode 1? |
SELECT quantity_made FROM table_name_97 WHERE withdrawn = "1913" | CREATE TABLE table_name_97 (quantity_made VARCHAR, withdrawn VARCHAR), How many locomotives were made that were withdrawn in 1913? |
SELECT date_made FROM table_name_9 WHERE type = "0-4-2" | CREATE TABLE table_name_9 (date_made VARCHAR, type VARCHAR), What is the date of creation for the locomotive having a type of 0-4-2 |
SELECT date_made FROM table_name_31 WHERE type = "0-6-0" AND gsr_class = "441" | CREATE TABLE table_name_31 (date_made VARCHAR, type VARCHAR, gsr_class VARCHAR), What is the date of creation of the locomotive of type 0-6-0 and GSR class of 441? |
SELECT venue FROM table_name_20 WHERE round = "19" AND player = "tony lockett" | CREATE TABLE table_name_20 (venue VARCHAR, round VARCHAR, player VARCHAR), In Round 19, where did Tony Lockett play? |
SELECT opponent FROM table_name_17 WHERE year = "1992" | CREATE TABLE table_name_17 (opponent VARCHAR, year VARCHAR), Who is the opponent in 1992? |
SELECT club FROM table_name_87 WHERE score = "18.1" | CREATE TABLE table_name_87 (club VARCHAR, score VARCHAR), What club had a score of 18.1? |
SELECT COUNT(built) FROM table_name_51 WHERE withdrawn = 1967 AND br_sr_no = "w27" AND to_iow < 1926 | CREATE TABLE table_name_51 (built VARCHAR, to_iow VARCHAR, withdrawn VARCHAR, br_sr_no VARCHAR), What is the number for year built of W27 that was withdrawn in 1967 with a To LoW year earlier than 1926? |
SELECT COUNT(withdrawn) FROM table_name_19 WHERE lswr_no > 210 AND to_iow = 1923 | CREATE TABLE table_name_19 (withdrawn VARCHAR, lswr_no VARCHAR, to_iow VARCHAR), What is the number of the year withdrawn for a LSWR number greater than 210 and a To LoW year of 1923? |
SELECT br_sr_no FROM table_name_25 WHERE withdrawn = 1967 AND built < 1892 AND to_iow > 1927 AND sr_name = "freshwater" | CREATE TABLE table_name_25 (br_sr_no VARCHAR, sr_name VARCHAR, to_iow VARCHAR, withdrawn VARCHAR, built VARCHAR), What is the BR/SR number of Freshwater which was withdrawn in 1967 and built before 1892 with a To LoW year after 1927? |
SELECT engine FROM table_name_76 WHERE year < 1977 | CREATE TABLE table_name_76 (engine VARCHAR, year INTEGER), Name the engine for year less than 1977 |
SELECT start FROM table_name_70 WHERE year < 1977 | CREATE TABLE table_name_70 (start VARCHAR, year INTEGER), Name the start for year less than 1977 |
SELECT MIN(year) FROM table_name_13 WHERE start = "17th" | CREATE TABLE table_name_13 (year INTEGER, start VARCHAR), Name the least year for start of 17th |
SELECT start FROM table_name_39 WHERE finish = "21st" | CREATE TABLE table_name_39 (start VARCHAR, finish VARCHAR), Name the start for finish being 21st |
SELECT call_sign FROM table_name_52 WHERE network = "omni television" AND digital_psip = 14.1 | CREATE TABLE table_name_52 (call_sign VARCHAR, network VARCHAR, digital_psip VARCHAR), What is the Call sign of the Omni television network with a Digitial PSIP of 14.1? |
SELECT COUNT(rogers_cable__ottawa_) FROM table_name_58 WHERE digital_psip > 9.1 AND vidéotron__gatineau_ = 14 | CREATE TABLE table_name_58 (rogers_cable__ottawa_ VARCHAR, digital_psip VARCHAR, vidéotron__gatineau_ VARCHAR), What's the total number of Rogers Cable (Ottawa) channels that have a Digital PSIP greater than 9.1, and a Vidéotron (Gatineau) of channel 14? |
SELECT network FROM table_name_26 WHERE vidéotron__gatineau_ < 8 AND rogers_cable__ottawa_ < 8 AND call_sign = "cjoh-dt" | CREATE TABLE table_name_26 (network VARCHAR, call_sign VARCHAR, vidéotron__gatineau_ VARCHAR, rogers_cable__ottawa_ VARCHAR), Which Network is on a Vidéotron (Gatineau) channel lower than 8 and a Rogers Cable (Ottawa) channel lower than 8 and has a Call Sign of cjoh-dt? |
SELECT record FROM table_name_35 WHERE time = "8:17" | CREATE TABLE table_name_35 (record VARCHAR, time VARCHAR), What was the record after the fight that lasted 8:17? |
SELECT res FROM table_name_27 WHERE opponent = "tony halme" | CREATE TABLE table_name_27 (res VARCHAR, opponent VARCHAR), What was the result of the fight with Tony Halme? |
SELECT opponent FROM table_name_44 WHERE date = "august 26" | CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR), Who did they play on August 26? |
SELECT SUM(attendance) FROM table_name_74 WHERE date = "august 16" | CREATE TABLE table_name_74 (attendance INTEGER, date VARCHAR), What was the attendance for the game on August 16? |
SELECT opponent FROM table_name_60 WHERE loss = "johnson (11-7)" | CREATE TABLE table_name_60 (opponent VARCHAR, loss VARCHAR), What team did Johnson (11-7) play for? |
SELECT MAX(pts) FROM table_name_51 WHERE engine = "cosworth straight-4" | CREATE TABLE table_name_51 (pts INTEGER, engine VARCHAR), What is the highest number of points the cosworth straight-4 engine scored? |
SELECT MAX(year) FROM table_name_13 WHERE entrant = "shadow racing team" AND pts > 0 | CREATE TABLE table_name_13 (year INTEGER, entrant VARCHAR, pts VARCHAR), What is the latest year that shadow racing team scored more than 0 points? |
SELECT round FROM table_name_43 WHERE location = "palavas-les-flots , herault , france" | CREATE TABLE table_name_43 (round VARCHAR, location VARCHAR), What round was held in palavas-les-flots , herault , france? |
SELECT 2 AS nd_leg FROM table_name_33 WHERE team_2 = "valencia" | CREATE TABLE table_name_33 (team_2 VARCHAR), What is the second leg that Valencia was on? |
SELECT loss FROM table_name_68 WHERE record = "14-19" | CREATE TABLE table_name_68 (loss VARCHAR, record VARCHAR), Name the loss with record of 14-19 |
SELECT score FROM table_name_6 WHERE record = "17-27" | CREATE TABLE table_name_6 (score VARCHAR, record VARCHAR), Name the score with record of 17-27 |
SELECT opponent FROM table_name_20 WHERE record = "12-18" | CREATE TABLE table_name_20 (opponent VARCHAR, record VARCHAR), Name the opponent with record of 12-18 |
SELECT general_classification FROM table_name_90 WHERE winner = "pascal richard" | CREATE TABLE table_name_90 (general_classification VARCHAR, winner VARCHAR), Who was the General classification when Pascal Richard was the winner? |
SELECT points_classification FROM table_name_20 WHERE stage = "13" | CREATE TABLE table_name_20 (points_classification VARCHAR, stage VARCHAR), Who had the Points classification for Stage 13? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.