text_output
stringlengths 114
770
|
|---|
<s>[INST] <<SYS>>
CREATE TABLE table_name_28 (total_apps INTEGER, cl_apps VARCHAR, pl_g VARCHAR, player VARCHAR)
<</SYS>>
SELECT SUM(total_apps) FROM table_name_28 WHERE pl_g > 0 AND player = "benayoun" AND cl_apps > 9[/INST] What is the sum of the total apps of player benayoun, who has a PL G greater than 0 and more than 9 CL apps?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_5 (drawn INTEGER, win__percentage VARCHAR, lost VARCHAR, nationality VARCHAR, matches VARCHAR)
<</SYS>>
SELECT MIN(drawn) FROM table_name_5 WHERE nationality = "england" AND matches < 510 AND lost = 4 AND win__percentage < 28.6[/INST] Nationality of england, and a Matches smaller than 510, and a Lost of 4, and a Win % smaller than 28.6 had what lowest drawn?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_16 (school VARCHAR, team VARCHAR)
<</SYS>>
SELECT school FROM table_name_16 WHERE team = "blue raiders"[/INST] What school does the Blue Raiders belong to?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_2159571_2 (reason_for_change VARCHAR, district VARCHAR)
<</SYS>>
SELECT reason_for_change FROM table_2159571_2 WHERE district = "Washington 3rd"[/INST] What is every reason for change for the Washington 3rd District?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_2 (rank INTEGER, gold INTEGER)
<</SYS>>
SELECT SUM(rank) FROM table_name_2 WHERE gold < 0[/INST] What's the total Rank that has a Gold that's smaller than 0?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR)
<</SYS>>
SELECT score FROM table_name_32 WHERE date = "february 18, 2008"[/INST] What was the Score on February 18, 2008?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_2879165_1 (country VARCHAR, ioc_code VARCHAR)
<</SYS>>
SELECT country FROM table_2879165_1 WHERE ioc_code = "MAS"[/INST] What is the name of the country when the ioc code is mas?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_11 (winner VARCHAR, year VARCHAR)
<</SYS>>
SELECT winner FROM table_name_11 WHERE year = 2013[/INST] What is Winner, when Year is 2013?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1979203_1 (_virtual_ VARCHAR, callsign VARCHAR)
<</SYS>>
SELECT _virtual_ FROM table_1979203_1 WHERE callsign = "WNET"[/INST] what is the virtual callsign if is wnet</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR)
<</SYS>>
SELECT opponent FROM table_name_18 WHERE date = "8 april 1999"[/INST] What is Opponent, when Date is 8 April 1999?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_65 (Id VARCHAR)
<</SYS>>
SELECT 1997 FROM table_name_65 WHERE 1992 = "atp masters series"[/INST] Name the 1997 for atp masters series 1992</s>
|
<s>[INST] <<SYS>>
CREATE TABLE airport (Airport_ID VARCHAR, Airport_Name VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR); CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR)
<</SYS>>
SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Heathrow" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Gatwick"[/INST] Show the names of aircrafts that are associated with both an airport named "London Heathrow" and an airport named "London Gatwick"</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_16 (total VARCHAR, set_2 VARCHAR, score VARCHAR, set_3 VARCHAR)
<</SYS>>
SELECT total FROM table_name_16 WHERE score = "3-0" AND set_3 = "25-18" AND set_2 = "25-12"[/INST] What is the total of the 3-0 score with a set 2 of 25-12 and a set 3 of 25-18?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_74 (nation VARCHAR, rank VARCHAR, gold VARCHAR, total VARCHAR)
<</SYS>>
SELECT nation FROM table_name_74 WHERE gold > 0 AND total > 4 AND rank = "6"[/INST] Which Nation has a Gold larger than 0, and a Total larger than 4, and a Rank of 6?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1161065_27 (total INTEGER, team VARCHAR)
<</SYS>>
SELECT MAX(total) FROM table_1161065_27 WHERE team = "Port Adelaide"[/INST] What is the total of port adelaide</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_72 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
<</SYS>>
SELECT AVG(laps) FROM table_name_72 WHERE time_retired = "+ 4 laps" AND grid > 18[/INST] Which Laps have a Time/Retired of + 4 laps, and a Grid larger than 18?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_24 (home_team VARCHAR, venue VARCHAR)
<</SYS>>
SELECT home_team AS score FROM table_name_24 WHERE venue = "mcg"[/INST] What is the home team score when played at mcg?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_28 (budget VARCHAR, film VARCHAR)
<</SYS>>
SELECT budget FROM table_name_28 WHERE film = "the incredibles"[/INST] WHAT IS THE BUDGET FOR THE INCREDIBLES?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_65 (money___ INTEGER, score VARCHAR)
<</SYS>>
SELECT MAX(money___) AS $__ FROM table_name_65 WHERE score = 69 - 71 - 70 - 74 = 284[/INST] What is the highest Money ( $ ), when Score is "69-71-70-74=284"?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR)
<</SYS>>
SELECT record FROM table_name_37 WHERE opponent = "akiko inoue"[/INST] what is the record when the opponent is akiko inoue?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE Flight (origin VARCHAR, destination VARCHAR)
<</SYS>>
SELECT origin FROM Flight WHERE destination = "Honolulu"[/INST] Show origins of all flights with destination Honolulu.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_22583466_5 (s_host VARCHAR, race_caller VARCHAR)
<</SYS>>
SELECT s_host FROM table_22583466_5 WHERE race_caller = "Marshall Cassidy"[/INST] For the race called by Marshall Cassidy, who was the host?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_31 (class VARCHAR, peak VARCHAR)
<</SYS>>
SELECT class FROM table_name_31 WHERE peak = "fountains fell south top"[/INST] Which class has a peak named fountains fell south top?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_9 (transfer_fee VARCHAR, country VARCHAR, transfer_window VARCHAR, type VARCHAR)
<</SYS>>
SELECT transfer_fee FROM table_name_9 WHERE transfer_window = "summer" AND type = "transfer" AND country = "hun"[/INST] What is the transfer fee when summer is the transfer window, the type is transfer and the country is Hun?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_10 (floors INTEGER, name VARCHAR)
<</SYS>>
SELECT AVG(floors) FROM table_name_10 WHERE name = "citic square"[/INST] What is the number of floors for the Citic Square?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1104312_5 (original_name VARCHAR, population_at_2010_census VARCHAR)
<</SYS>>
SELECT original_name FROM table_1104312_5 WHERE population_at_2010_census = 210450[/INST] What are the original names of the districts where the population in the 2010 census was 210450?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_79 (goals_against INTEGER, wins VARCHAR, goals_for VARCHAR)
<</SYS>>
SELECT MAX(goals_against) FROM table_name_79 WHERE wins = 19 AND goals_for > 53[/INST] Which highest 'goals against' number had wins of 19 and a 'goals for' number that was bigger than 53?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_9 (apparatus VARCHAR, rank_final VARCHAR, competition_description VARCHAR)
<</SYS>>
SELECT apparatus FROM table_name_9 WHERE rank_final > 6 AND competition_description = "u.s. championships"[/INST] What is Apparatus, when Rank-Final is greater than 6, and when Competition Description is "U.S. Championships"?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_26 (date VARCHAR, opponent VARCHAR)
<</SYS>>
SELECT date FROM table_name_26 WHERE opponent = "indianapolis colts"[/INST] On what day did the team play the Indianapolis Colts?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_12434380_1 (mascot VARCHAR, founded VARCHAR, school_colors VARCHAR)
<</SYS>>
SELECT mascot FROM table_12434380_1 WHERE founded = 1923 AND school_colors = "Blue, Red & White"[/INST] What is the mascot for the school founded in 1923 with the school colors of blue, red & white?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_35 (attendance INTEGER, loss VARCHAR)
<</SYS>>
SELECT MAX(attendance) FROM table_name_35 WHERE loss = "darling (0–1)"[/INST] What is the largest Attendance with a Loss of darling (0–1)?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_24330912_1 (cuts_made INTEGER, top_10s VARCHAR)
<</SYS>>
SELECT MAX(cuts_made) FROM table_24330912_1 WHERE top_10s = 0[/INST] When 0 is the top 10's what is the highest amount of cuts made?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_92 (score VARCHAR, to_par VARCHAR, player VARCHAR)
<</SYS>>
SELECT score FROM table_name_92 WHERE to_par = "+5" AND player = "vijay singh"[/INST] What did vijay singh score with a +5 to par?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_86 (territory VARCHAR, channel VARCHAR)
<</SYS>>
SELECT territory FROM table_name_86 WHERE channel = 83[/INST] Where is channel 83 broadcasted?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_86 (performer_4 VARCHAR, performer_1 VARCHAR, episode VARCHAR)
<</SYS>>
SELECT performer_4 FROM table_name_86 WHERE performer_1 = "jim sweeney" AND episode = 3[/INST] Who is performer 4 on episode 3, where Jim Sweeney was performer 1?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_30 (regional_county_municipality VARCHAR, area__km_2__ VARCHAR, population VARCHAR)
<</SYS>>
SELECT regional_county_municipality FROM table_name_30 WHERE area__km_2__ > 108.46 AND population = 719[/INST] What municipality has 719 people and is larger than 108.46 km2?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_90 (games INTEGER, season VARCHAR, average VARCHAR)
<</SYS>>
SELECT MAX(games) FROM table_name_90 WHERE season > 2001 AND average < 10 OFFSET 838[/INST] What is the maximum number of games when the season is more recent than 2001 and the average is less than 10,838?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_24 (package_option VARCHAR, country VARCHAR, language VARCHAR)
<</SYS>>
SELECT package_option FROM table_name_24 WHERE country = "italy" AND language = "italian"[/INST] What is the package/option for Italy when the language is italian?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_29 (first_cap VARCHAR, goals VARCHAR, caps VARCHAR)
<</SYS>>
SELECT first_cap FROM table_name_29 WHERE goals < 33 AND caps = 39[/INST] When was the first cap associated with 39 caps and under 33 goals?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_76 (nation VARCHAR, total VARCHAR, silver VARCHAR, gold VARCHAR)
<</SYS>>
SELECT nation FROM table_name_76 WHERE silver > 4 AND gold > 3 AND total = 18[/INST] What Nation has more than 4 silver, more than 3 gold and 18 total medals?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_29 (mass VARCHAR, launch_date_time___gmt__ VARCHAR)
<</SYS>>
SELECT mass FROM table_name_29 WHERE launch_date_time___gmt__ = "25 november 1976, 03:59"[/INST] What is Mass, when Launch Date/Time ( GMT ) is 25 November 1976, 03:59?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_67 (crystal_structure VARCHAR, no_of_cu_o_planes_in_unit_cell VARCHAR, t_c__k_ VARCHAR)
<</SYS>>
SELECT crystal_structure FROM table_name_67 WHERE no_of_cu_o_planes_in_unit_cell = 3 AND t_c__k_ = 110[/INST] Which crystal structures has a Tc(K) of 110 and the number of Cu-O planes in the unit cell is 3?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_73 (gold_medals VARCHAR, ensemble VARCHAR, silver_medals VARCHAR)
<</SYS>>
SELECT COUNT(gold_medals) FROM table_name_73 WHERE ensemble = "bellbrook hs" AND silver_medals < 1[/INST] How many gold medals for bellbrook HS with less than 1 silver?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE undergoes (AssistingNurse VARCHAR); CREATE TABLE nurse (name VARCHAR, EmployeeID VARCHAR)
<</SYS>>
SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse = T2.EmployeeID[/INST] Find the names of nurses who are nursing an undergoing treatment.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_15 (position VARCHAR, team VARCHAR)
<</SYS>>
SELECT position FROM table_name_15 WHERE team = "kr"[/INST] What position did the kr team player play?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_39 (home__2nd_leg_ VARCHAR, aggregate VARCHAR)
<</SYS>>
SELECT home__2nd_leg_ FROM table_name_39 WHERE aggregate = "2-4"[/INST] Which team played at home for the second leg and has an aggregate score of 2-4?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_67 (record VARCHAR, date VARCHAR)
<</SYS>>
SELECT record FROM table_name_67 WHERE date = "february 27"[/INST] Name the record for february 27</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_74 (casualties VARCHAR, location VARCHAR)
<</SYS>>
SELECT casualties FROM table_name_74 WHERE location = "kabul area"[/INST] Name the casualities for kabul area</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_36 (round INTEGER, overall VARCHAR, pick VARCHAR)
<</SYS>>
SELECT MAX(round) FROM table_name_36 WHERE overall = 143 AND pick > 6[/INST] What is the highest round that has an overall of 143 and a pick greater than 6?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE images (image_name VARCHAR, image_url VARCHAR)
<</SYS>>
SELECT image_name, image_url FROM images ORDER BY image_name[/INST] List all the image name and URLs in the order of their names.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_89 (outcome VARCHAR, date VARCHAR)
<</SYS>>
SELECT outcome FROM table_name_89 WHERE date = "march 20, 1994"[/INST] What is the outcome on March 20, 1994?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_96 (competition VARCHAR, year VARCHAR, score VARCHAR)
<</SYS>>
SELECT competition FROM table_name_96 WHERE year < 1982 AND score = "2:3"[/INST] Which competition before 1982 had a score of 2:3?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE Accounts (account_id VARCHAR, customer_id VARCHAR, account_name VARCHAR)
<</SYS>>
SELECT account_id, customer_id, account_name FROM Accounts[/INST] Show ids, customer ids, names for all accounts.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_61 (year INTEGER, title VARCHAR)
<</SYS>>
SELECT AVG(year) FROM table_name_61 WHERE title = "faces"[/INST] What is the average year for Faces?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_76 (score VARCHAR, player VARCHAR)
<</SYS>>
SELECT score FROM table_name_76 WHERE player = "jeff maggert"[/INST] What is Score, when Player is "Jeff Maggert"?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_17360840_5 (game VARCHAR, record VARCHAR)
<</SYS>>
SELECT game FROM table_17360840_5 WHERE record = "6-9-7"[/INST] Which game had a record of 6-9-7?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE Person (gender VARCHAR, age INTEGER)
<</SYS>>
SELECT AVG(age), gender FROM Person GROUP BY gender[/INST] What is the average age for each gender?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_86 (score VARCHAR, date VARCHAR)
<</SYS>>
SELECT score FROM table_name_86 WHERE date = "november 15"[/INST] What is the score when november 15 is the date?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_23662356_3 (average VARCHAR, number_of_dances VARCHAR)
<</SYS>>
SELECT COUNT(average) FROM table_23662356_3 WHERE number_of_dances = 12[/INST] How many averages were listed for the couple who had 12 dances?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_75 (parts_per_example VARCHAR, value_of_quantity VARCHAR)
<</SYS>>
SELECT parts_per_example FROM table_name_75 WHERE value_of_quantity = "2×10 −6"[/INST] What is the Parts-per example of 2×10 −6?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_25459168_2 (pole_position VARCHAR, supporting VARCHAR)
<</SYS>>
SELECT pole_position FROM table_25459168_2 WHERE supporting = "USAC National Midget Series"[/INST] Who got the pole position if the supporting is USAC National Midget Series?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_27722408_2 (high_assists VARCHAR, date VARCHAR)
<</SYS>>
SELECT high_assists FROM table_27722408_2 WHERE date = "October 7"[/INST] Who had the most assists and how many did they have on October 7? </s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_21 (time VARCHAR, elimination VARCHAR)
<</SYS>>
SELECT time FROM table_name_21 WHERE elimination = "2"[/INST] What time is listed against Elimination number 2?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE Ref_Shipping_Agents (shipping_agent_code VARCHAR, shipping_agent_name VARCHAR)
<</SYS>>
SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name = "UPS"[/INST] What is the shipping agent code of shipping agent UPS?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_17779448_1 (attendance VARCHAR, opponent VARCHAR)
<</SYS>>
SELECT attendance FROM table_17779448_1 WHERE opponent = "Boston Patriots"[/INST] How many attended game(s) against the boston patriots?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_58 (d_43_√ VARCHAR, d_42_√ VARCHAR)
<</SYS>>
SELECT d_43_√ FROM table_name_58 WHERE d_42_√ = "d 42 √"[/INST] What is the value of D 43 √ when the value of D 42 √ is d 42 √?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_14 (draw INTEGER, match VARCHAR, lost VARCHAR, team VARCHAR)
<</SYS>>
SELECT AVG(draw) FROM table_name_14 WHERE lost < 4 AND team = "gwardia bydgoszcz" AND match > 5[/INST] What is the average draw that has a lost less than 4, gwardia bydgoszcz as the team, with a match greater than 5?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_2 (pick__number INTEGER, name VARCHAR, overall VARCHAR)
<</SYS>>
SELECT MAX(pick__number) FROM table_name_2 WHERE name = "adam podlesh" AND overall < 101[/INST] Which highest pick number's name was Adam Podlesh, when the overall was less than 101?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_27 (bulls VARCHAR, venue VARCHAR)
<</SYS>>
SELECT COUNT(bulls) FROM table_name_27 WHERE venue = "old trafford"[/INST] What was the total number for the Bulls when they were at Old Trafford?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_3 (total INTEGER, rank VARCHAR, bronze VARCHAR)
<</SYS>>
SELECT AVG(total) FROM table_name_3 WHERE rank > 1 AND bronze > 8[/INST] What is the average Total with a Rank greater than 1, and a Bronze larger than 8?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_25691838_6 (the_wørd VARCHAR, episode__number VARCHAR)
<</SYS>>
SELECT COUNT(the_wørd) FROM table_25691838_6 WHERE episode__number = 727[/INST] What was the number of "The Word" segments for episode number 727?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_77 (score VARCHAR, date VARCHAR)
<</SYS>>
SELECT score FROM table_name_77 WHERE date = "may 19"[/INST] What was the score on may 19?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_5 (races INTEGER, wins VARCHAR, podiums VARCHAR, series VARCHAR)
<</SYS>>
SELECT MAX(races) FROM table_name_5 WHERE podiums < 6 AND series = "formula renault 2.0 eurocup" AND wins > 0[/INST] What is the largest number of races when there are less than 6 podiums, the series is the formula renault 2.0 eurocup, and there are more than 0 wins?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_46 (ebit__us_ VARCHAR, year_to_april VARCHAR, earnings_per_share__¢_ VARCHAR)
<</SYS>>
SELECT COUNT(ebit__us_) AS $m_ FROM table_name_46 WHERE year_to_april = 2011 AND earnings_per_share__¢_ > 47[/INST] Name the total number of EBIT (US $m) in 2011 and a Earnings per share (¢) larger than 47?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_72 (frequency_mhz INTEGER, city_of_license VARCHAR)
<</SYS>>
SELECT AVG(frequency_mhz) FROM table_name_72 WHERE city_of_license = "farwell, texas"[/INST] What is the average Frequency MHz that is on farwell, texas?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_84 (variant__with_niqqud__ VARCHAR, phonetic_realisation VARCHAR)
<</SYS>>
SELECT variant__with_niqqud__ FROM table_name_84 WHERE phonetic_realisation = "[[[|u]]]"[/INST] When phonetic realisation is [[[|u]]], what is the variant with niqqud?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_22410780_1 (performance_liaison VARCHAR, dramaturge VARCHAR)
<</SYS>>
SELECT performance_liaison FROM table_22410780_1 WHERE dramaturge = "Chrisena Ricci"[/INST] Who were the performance liaisons for the dramaturge Chrisena Ricci?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_2899987_2 (region VARCHAR, owner VARCHAR)
<</SYS>>
SELECT region FROM table_2899987_2 WHERE owner = "Estado de Tabasco"[/INST] Which regions are owned by estado de tabasco?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1007688_1 (smallpox INTEGER, typhoid_fever VARCHAR)
<</SYS>>
SELECT MAX(smallpox) FROM table_1007688_1 WHERE typhoid_fever = 293[/INST] what is the number of smallpox when typhoid fever is 293</s>
|
<s>[INST] <<SYS>>
CREATE TABLE country (Country_name VARCHAR, Country_id VARCHAR); CREATE TABLE match_season (Country VARCHAR, Position VARCHAR)
<</SYS>>
SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Forward" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Defender"[/INST] What are the names of countries that have both players with position forward and players with position defender?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_103084_4 (year INTEGER, bbc_two_total_viewing VARCHAR)
<</SYS>>
SELECT MIN(year) FROM table_103084_4 WHERE bbc_two_total_viewing = "7,530,000"[/INST] What year was the BBC two total viewing 7,530,000?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_44 (voltage__kv_ VARCHAR, supply_point VARCHAR, country VARCHAR, power__mw_ VARCHAR)
<</SYS>>
SELECT COUNT(voltage__kv_) FROM table_name_44 WHERE country = "argentina" AND power__mw_ > 30 AND supply_point = "yacyretá"[/INST] How much Voltage (kV) has a Country of argentina, and a Power (MW) larger than 30, and a Supply point of yacyretá?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_19 (score VARCHAR, team VARCHAR)
<</SYS>>
SELECT score FROM table_name_19 WHERE team = "@ chicago"[/INST] For the game with team of @ Chicago, what was the final score?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_56 (population VARCHAR, official_name VARCHAR, area_km_2 VARCHAR)
<</SYS>>
SELECT COUNT(population) FROM table_name_56 WHERE official_name = "balmoral" AND area_km_2 > 43.51[/INST] When the communities name is Balmoral and the area is over 43.51 kilometers squared, what's the total population amount?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_85 (average VARCHAR, goals VARCHAR, goalkeeper VARCHAR)
<</SYS>>
SELECT COUNT(average) FROM table_name_85 WHERE goals < 41 AND goalkeeper = "claudio bravo"[/INST] What is the average goals less than 41 that goalkeeper Claudio Bravo had?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_43 (wins INTEGER, club VARCHAR, draws VARCHAR)
<</SYS>>
SELECT AVG(wins) FROM table_name_43 WHERE club = "terang" AND draws < 0[/INST] What is the average number of wins for the Terang Club, when there are less than 0 draws?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_97 (spoofed_title VARCHAR, artist VARCHAR, issue VARCHAR)
<</SYS>>
SELECT spoofed_title FROM table_name_97 WHERE artist = "mort drucker" AND issue = 88[/INST] Which Spoofed title had Mort Drucker as the artist in issue 88?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_62 (week_4 VARCHAR, week_2 VARCHAR)
<</SYS>>
SELECT week_4 FROM table_name_62 WHERE week_2 = "samantha speer"[/INST] What Week 4 has a Week 2 of samantha speer?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_99 (winning_score VARCHAR, tournament VARCHAR)
<</SYS>>
SELECT winning_score FROM table_name_99 WHERE tournament = "valero texas open"[/INST] What was the winning score of the Valero Texas Open?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_170958_2 (official_name VARCHAR, area_km_2 VARCHAR)
<</SYS>>
SELECT official_name FROM table_170958_2 WHERE area_km_2 = "276.84"[/INST] What is the official name of the land with an area of 276.84 km2?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_69 (laps INTEGER, grid VARCHAR)
<</SYS>>
SELECT AVG(laps) FROM table_name_69 WHERE grid = 8[/INST] What is the average number of laps for grid 8?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_17 (electricity_grid VARCHAR, commercial_operation VARCHAR)
<</SYS>>
SELECT electricity_grid FROM table_name_17 WHERE commercial_operation = "24.03.1973"[/INST] Which Electricity Grid started its Commercial Operation of 24.03.1973?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_69 (school VARCHAR, height VARCHAR)
<</SYS>>
SELECT school FROM table_name_69 WHERE height = "6-6"[/INST] What school did the player that is 6-6 go to?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_20967430_2 (prod_code VARCHAR, original_air_date VARCHAR)
<</SYS>>
SELECT prod_code FROM table_20967430_2 WHERE original_air_date = "November 08, 1985"[/INST] Name the production code for november 08, 1985</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_23916462_3 (attendance VARCHAR, date VARCHAR)
<</SYS>>
SELECT COUNT(attendance) FROM table_23916462_3 WHERE date = "August 26"[/INST] How many values for attendance on the date of August 26?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_29542147_2 (w INTEGER, l VARCHAR)
<</SYS>>
SELECT MAX(w) FROM table_29542147_2 WHERE l = 0[/INST] What is the highest W of the 0 L?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_80 (language VARCHAR, service VARCHAR, network VARCHAR, origin_of_programming VARCHAR, genre VARCHAR)
<</SYS>>
SELECT language FROM table_name_80 WHERE origin_of_programming = "india" AND genre = "general" AND network = "ptc punjabi" AND service = "bell fibe tv"[/INST] Which language has Programming from India, general genre, a network of ptc punjabi and bell fibe tv service?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_41 (playoffs_1 VARCHAR, season VARCHAR)
<</SYS>>
SELECT playoffs_1 FROM table_name_41 WHERE season = "2004-05"[/INST] What is the playoffs 1 result of season 2004-05?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_27871460_2 (channel_number INTEGER)
<</SYS>>
SELECT MAX(channel_number) FROM table_27871460_2[/INST] What is the highest channel number?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_11206916_2 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
<</SYS>>
SELECT manner_of_departure FROM table_11206916_2 WHERE date_of_appointment = "13 March 2008"[/INST] What manner of departure is listed with an appointment date of 13 march 2008</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.