text_output
stringlengths 114
770
|
|---|
<s>[INST] <<SYS>>
CREATE TABLE table_name_7 (league INTEGER, total VARCHAR)
<</SYS>>
SELECT SUM(league) AS Cup FROM table_name_7 WHERE total < 1 AND league < 0[/INST] What is the sum of the value "League Cup", when the Total is less than 1, and when the League is less than 0?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_23887174_1 (province__ashkharh_ VARCHAR, center VARCHAR)
<</SYS>>
SELECT COUNT(province__ashkharh_) FROM table_23887174_1 WHERE center = "Baghaberd"[/INST] How many different provinces is Baghaberd the center of?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_38 (dennis_kucinich VARCHAR, _percentage_of_all VARCHAR)
<</SYS>>
SELECT dennis_kucinich FROM table_name_38 WHERE _percentage_of_all = "53%"[/INST] What is Dennis Kucinich, when % of All is "53%"?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_18055005_1 (no_in_series VARCHAR, viewers__millions_ VARCHAR, written_by VARCHAR)
<</SYS>>
SELECT no_in_series FROM table_18055005_1 WHERE viewers__millions_ = "4.1" AND written_by = "Douglas Lieblein"[/INST] What's the series number of the episode originally viewed by 4.1 million people and written by Douglas Lieblein?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_27 (score VARCHAR, tie_no VARCHAR)
<</SYS>>
SELECT score FROM table_name_27 WHERE tie_no = "6"[/INST] What was the score for Tie no. 6?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_31 (high_assists VARCHAR, location_attendance VARCHAR)
<</SYS>>
SELECT high_assists FROM table_name_31 WHERE location_attendance = "uic pavilion 3,520"[/INST] What high assists have uic pavilion 3,520 as the location/attendance?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_48 (no_vote VARCHAR, state VARCHAR)
<</SYS>>
SELECT no_vote FROM table_name_48 WHERE state = "north dakota"[/INST] How many no votes did North Dakota have?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1566850_9 (centerfold_model VARCHAR, date VARCHAR)
<</SYS>>
SELECT COUNT(centerfold_model) FROM table_1566850_9 WHERE date = "9-98"[/INST] How many centerfolds were in the 9-98 issue?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_24 (laps VARCHAR, time_retired VARCHAR)
<</SYS>>
SELECT COUNT(laps) FROM table_name_24 WHERE time_retired = "+37.351"[/INST] How many laps were ridden in the race that had a Time/Retired of +37.351?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_73 (years VARCHAR, jersey_number_s_ VARCHAR)
<</SYS>>
SELECT years FROM table_name_73 WHERE jersey_number_s_ = 44[/INST] What is the Years of the player with Jersey Number(s) of 44?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_75 (final_ladder_position VARCHAR, finals_qualification VARCHAR, teams VARCHAR)
<</SYS>>
SELECT final_ladder_position FROM table_name_75 WHERE finals_qualification = "dnq" AND teams < 10[/INST] What's the ladder position when team is less than 10 and the Finals qualifications were DNQ?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_97 (high_rebounds VARCHAR, game VARCHAR)
<</SYS>>
SELECT high_rebounds FROM table_name_97 WHERE game = 76[/INST] Which High rebounds has a Game of 76?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_26282750_1 (film_festival VARCHAR, participants_recipients VARCHAR)
<</SYS>>
SELECT film_festival FROM table_26282750_1 WHERE participants_recipients = "Isao Tomita"[/INST] What Film Festival had participants/recipients of Isao Tomita?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_33 (tournament VARCHAR)
<</SYS>>
SELECT 2010 FROM table_name_33 WHERE 2008 = "1r" AND 2011 = "1r" AND tournament = "us open"[/INST] Name the 2010 for 2008 of 1r and tournament of us open</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_16 (home_team VARCHAR)
<</SYS>>
SELECT home_team AS score FROM table_name_16 WHERE home_team = "melbourne"[/INST] What was Melbourne's score as the home team?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_2781227_9 (position VARCHAR, college_junior_club_team VARCHAR)
<</SYS>>
SELECT position FROM table_2781227_9 WHERE college_junior_club_team = "Krylja Sovetov (Russia)"[/INST] What position does krylja sovetov (russia) play?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1015914_24 (who_two VARCHAR, you_two VARCHAR)
<</SYS>>
SELECT who_two FROM table_1015914_24 WHERE you_two = "ngipelngu"[/INST] What is who-two when you two is ngipelngu?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_56 (points INTEGER, games INTEGER)
<</SYS>>
SELECT MIN(points) FROM table_name_56 WHERE games > 5[/INST] What is the low point total when there are over 5 games?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_20090682_4 (pos INTEGER, driver VARCHAR)
<</SYS>>
SELECT MAX(pos) FROM table_20090682_4 WHERE driver = "Brendan Sole"[/INST] what is the lowest position of brendan sole</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_6 (league_division VARCHAR, club VARCHAR)
<</SYS>>
SELECT league_division FROM table_name_6 WHERE club = "sun source"[/INST] What league is Sun Source in?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_37 (height__m_ INTEGER, class VARCHAR, prom__m_ VARCHAR)
<</SYS>>
SELECT MIN(height__m_) FROM table_name_37 WHERE class = "hewitt" AND prom__m_ < 148[/INST] Tell me the lowest height for class of hewitt and prom less than 148</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_38 (season VARCHAR, away VARCHAR, league VARCHAR, home VARCHAR)
<</SYS>>
SELECT season FROM table_name_38 WHERE league = "regionalliga süd" AND home = "1-0" AND away = "2-3"[/INST] What season has a regionalliga süd league, a 1-0 home, and an away of 2-3?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_26 (crowd VARCHAR, away_team VARCHAR)
<</SYS>>
SELECT COUNT(crowd) FROM table_name_26 WHERE away_team = "carlton"[/INST] How large was the crowd when Carlton was the away team?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_73 (rank__week_ VARCHAR, viewers__millions_ VARCHAR, rank__night_ VARCHAR, rating VARCHAR)
<</SYS>>
SELECT rank__week_ FROM table_name_73 WHERE viewers__millions_ > 7.14 AND rank__night_ = "5" AND rating / SHARE(18 - 49) = 2.9 / 10[/INST] What is the weekly rank of the episode with more than 7.14mil viewers, a nightly rank of 5, and a rating/share of 2.9/10?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR); CREATE TABLE Flight (aid VARCHAR)
<</SYS>>
SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING COUNT(*) >= 2[/INST] Show names for all aircraft with at least two flights.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_25703_2 (birth_2012 INTEGER, january_december_2012 VARCHAR)
<</SYS>>
SELECT MIN(birth_2012) FROM table_25703_2 WHERE january_december_2012 = "Tver Oblast"[/INST] What were the total number of 2012 births for the January–December 2012 Tver Oblast region?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_62 (nationality VARCHAR, ship VARCHAR)
<</SYS>>
SELECT nationality FROM table_name_62 WHERE ship = "minteh"[/INST] Which nationality has a Ship of minteh?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_58 (starts INTEGER, money_list_rank VARCHAR, top_25 VARCHAR)
<</SYS>>
SELECT AVG(starts) FROM table_name_58 WHERE money_list_rank = "108" AND top_25 > 4[/INST] What is the average number of starts when the money list rank is 108 and the rank in the top 25 is greater than 4?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_28498999_3 (after VARCHAR, player VARCHAR)
<</SYS>>
SELECT after FROM table_28498999_3 WHERE player = "Kevin Streelman"[/INST] What is the after for the player kevin streelman?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_73 (closed INTEGER, city VARCHAR, capacity VARCHAR)
<</SYS>>
SELECT SUM(closed) FROM table_name_73 WHERE city = "pittsburgh" AND capacity > 59 OFFSET 000[/INST] Tell me the sum of closed for city of pittsburgh and capacity larger than 59,000</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_32 (country VARCHAR, stadium VARCHAR)
<</SYS>>
SELECT country FROM table_name_32 WHERE stadium = "timsah arena"[/INST] Timsah arena is in what country?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_82 (avg_g VARCHAR, gp_gs VARCHAR, effic VARCHAR)
<</SYS>>
SELECT COUNT(avg_g) FROM table_name_82 WHERE gp_gs = "13–13" AND effic < 114.23[/INST] Avg/G that has a GP-GS of 13–13, and a Effic smaller than 114.23 has what total of numbers?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_90 (tournament VARCHAR)
<</SYS>>
SELECT tournament FROM table_name_90 WHERE 2003 = "a"[/INST] What is Tournament, when 2003 is "A"?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_43 (gold_medals VARCHAR, total_medals INTEGER)
<</SYS>>
SELECT COUNT(gold_medals) FROM table_name_43 WHERE total_medals < 1[/INST] How many gold medals for the school with less than 1 total?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_29250534_1 (manager VARCHAR, club VARCHAR)
<</SYS>>
SELECT manager FROM table_29250534_1 WHERE club = "FC Inter"[/INST] Who is the manager for the fc inter club?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_69 (record VARCHAR, decision VARCHAR, date VARCHAR)
<</SYS>>
SELECT record FROM table_name_69 WHERE decision = "backstrom" AND date = "november 28"[/INST] What was the record for the game on November 28 when the decision was Backstrom?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_13015539_1 (points VARCHAR, lost VARCHAR)
<</SYS>>
SELECT COUNT(points) FROM table_13015539_1 WHERE lost = 8[/INST] What is the total points for the tean with 8 losses?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_75 (bleeding_time VARCHAR, condition VARCHAR)
<</SYS>>
SELECT bleeding_time FROM table_name_75 WHERE condition = "congenital afibrinogenemia"[/INST] Which Bleeding has a Condition of congenital afibrinogenemia?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_28286776_52 (cap_s_ VARCHAR, club_s_ VARCHAR)
<</SYS>>
SELECT COUNT(cap_s_) FROM table_28286776_52 WHERE club_s_ = "Norwich City, Coventry City"[/INST] How many caps figures are there for Norwich City, Coventry City?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE professor (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)
<</SYS>>
SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) LIMIT 1[/INST] What is the name of department where has the smallest number of professors?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_73 (silver INTEGER, gold VARCHAR, rank VARCHAR)
<</SYS>>
SELECT AVG(silver) FROM table_name_73 WHERE gold = 0 AND rank < 3[/INST] What is the average number of silver medals for countries with 0 gold and rank under 3?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_13 (ship_size VARCHAR)
<</SYS>>
SELECT 2004 FROM table_name_13 WHERE ship_size = "ship size"[/INST] What was the cargo value in 2004 for ship size?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_19 (role VARCHAR, first_us_national_tour VARCHAR)
<</SYS>>
SELECT role FROM table_name_19 WHERE first_us_national_tour = "roger bart"[/INST] Which Role has a First US National Tour of roger bart?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_1 (player VARCHAR, place VARCHAR)
<</SYS>>
SELECT player FROM table_name_1 WHERE place = "2"[/INST] What is the Place 2 Player?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_17480471_3 (gatchaman VARCHAR, eagle_riders VARCHAR)
<</SYS>>
SELECT gatchaman FROM table_17480471_3 WHERE eagle_riders = "Lukan"[/INST] Which gatchaman has eagle riders as lukan?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_18365784_3 (going_to VARCHAR, calling_at VARCHAR)
<</SYS>>
SELECT going_to FROM table_18365784_3 WHERE calling_at = "Boston, Sleaford, Nottingham Victoria"[/INST] What was the train destination when it has a calling at Boston, Sleaford, Nottingham Victoria?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_74 (frequency VARCHAR, branding VARCHAR)
<</SYS>>
SELECT frequency FROM table_name_74 WHERE branding = "94dot3 home radio palawan"[/INST] What is the frequency for the station with the branding of 94dot3 home radio Palawan?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE course (dept_name VARCHAR)
<</SYS>>
SELECT dept_name FROM course GROUP BY dept_name ORDER BY COUNT(*) DESC LIMIT 3[/INST] Find the names of the top 3 departments that provide the largest amount of courses?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_50 (points INTEGER, attendance VARCHAR)
<</SYS>>
SELECT MIN(points) FROM table_name_50 WHERE attendance = "1,500"[/INST] What is the lowest number of points scored when there were 1,500 in attendance?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_11964047_5 (record VARCHAR, streak VARCHAR, leading_scorer VARCHAR)
<</SYS>>
SELECT COUNT(record) FROM table_11964047_5 WHERE streak = "L2" AND leading_scorer = "Roy : 23"[/INST] what is the total number of record where streak is l2 and leading scorer is roy : 23</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_83 (silver INTEGER, nation VARCHAR, total VARCHAR)
<</SYS>>
SELECT MIN(silver) FROM table_name_83 WHERE nation = "italy" AND total < 5[/INST] What is the least amount of silver for Italy with a total less than 5?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_31 (home_team VARCHAR, venue VARCHAR)
<</SYS>>
SELECT home_team AS score FROM table_name_31 WHERE venue = "victoria park"[/INST] What is the home teams score at Victoria Park?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_21 (pos VARCHAR, first_round VARCHAR)
<</SYS>>
SELECT pos FROM table_name_21 WHERE first_round = "35.7"[/INST] What position does the player with a first round score of 35.7 play?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_31 (position VARCHAR, cfl_team VARCHAR)
<</SYS>>
SELECT position FROM table_name_31 WHERE cfl_team = "saskatchewan roughriders (via toronto)"[/INST] What position did the player from the saskatchewan roughriders (via toronto) play?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_40 (time VARCHAR, laps VARCHAR, rider VARCHAR)
<</SYS>>
SELECT time FROM table_name_40 WHERE laps < 28 AND rider = "nicky hayden"[/INST] Which Time has Laps smaller than 28, and a Rider of nicky hayden?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_25391981_20 (episode VARCHAR, rating VARCHAR)
<</SYS>>
SELECT episode FROM table_25391981_20 WHERE rating / SHARE(18 AS –49) = 2.8 / 8[/INST] For what episode was the rating/share for 18-49 at 2.8/8</s>
|
<s>[INST] <<SYS>>
CREATE TABLE artist (country VARCHAR)
<</SYS>>
SELECT DISTINCT country FROM artist[/INST] What are all distinct country for artists?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE Products (product_size VARCHAR)
<</SYS>>
SELECT DISTINCT product_size FROM Products[/INST] Show all product sizes.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_74 (package_option VARCHAR, television_service VARCHAR)
<</SYS>>
SELECT package_option FROM table_name_74 WHERE television_service = "sky inside"[/INST] What is Package/Option, when Television Service is Sky Inside?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_86 (position VARCHAR, home_town VARCHAR)
<</SYS>>
SELECT position FROM table_name_86 WHERE home_town = "temple hills, md"[/INST] What is the Position of the Player from Temple Hills, MD?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_51 (attendance INTEGER, home VARCHAR)
<</SYS>>
SELECT AVG(attendance) FROM table_name_51 WHERE home = "motagua"[/INST] What was the attendance of the match with motagua as the home team?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_81 (bronze VARCHAR, gold VARCHAR, total VARCHAR, rank VARCHAR)
<</SYS>>
SELECT COUNT(bronze) FROM table_name_81 WHERE total < "11" AND rank = "11" AND gold < 1[/INST] How many bronzes have a total less than 11, with 11 as the rank, and a gold less than 1?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_2 (yards INTEGER, game_time VARCHAR, date VARCHAR)
<</SYS>>
SELECT AVG(yards) FROM table_name_2 WHERE game_time = "2nd quarter (0:00)" AND date = "november 8, 1971"[/INST] Game time of 2nd quarter (0:00), and a Date of november 8, 1971 has how many average yards?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_52 (away_team VARCHAR)
<</SYS>>
SELECT away_team AS score FROM table_name_52 WHERE away_team = "north melbourne"[/INST] What was North Melbourne's score when they were the home team?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_10 (second VARCHAR, team VARCHAR, third VARCHAR)
<</SYS>>
SELECT second FROM table_name_10 WHERE team = "north america" AND third = "cathy overton-clapham"[/INST] Who is the second on the North America team for which Cathy Overton-Clapham the third?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_8 (label VARCHAR, format VARCHAR, date VARCHAR, region VARCHAR)
<</SYS>>
SELECT label FROM table_name_8 WHERE date = "june 6, 2005" AND region = "germany" AND format = "cd"[/INST] What is the Label of the CD released in Germany on June 6, 2005?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_34 (attendance INTEGER, venue VARCHAR, result VARCHAR)
<</SYS>>
SELECT AVG(attendance) FROM table_name_34 WHERE venue = "home" AND result = "w 3-0"[/INST] what was the attendance for a home venue and a w 3-0 result?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_70 (fips_code INTEGER, area VARCHAR, population__2010_ VARCHAR)
<</SYS>>
SELECT AVG(fips_code) FROM table_name_70 WHERE area = "114.76 sq mi (297.23 sq km)" AND population__2010_ < 166 OFFSET 327[/INST] What is the FIPS code for the municipality that has an area of 114.76 sq mi (297.23 sq km) and had a 2010 population of less than 166,327?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_99 (record VARCHAR, home VARCHAR, visitor VARCHAR)
<</SYS>>
SELECT record FROM table_name_99 WHERE home = "detroit" AND visitor = "mtl. maroons"[/INST] What record has detroit as the home and mtl. maroons as the visitor?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_13036251_1 (the_mole VARCHAR, airdate VARCHAR)
<</SYS>>
SELECT COUNT(the_mole) FROM table_13036251_1 WHERE airdate = "5 January 2012"[/INST] what's the the mole with airdate being 5 january 2012</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_33 (week VARCHAR, date VARCHAR)
<</SYS>>
SELECT week FROM table_name_33 WHERE date = "december 19, 2004"[/INST] What week has December 19, 2004 as the date?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_31 (lane INTEGER, rank VARCHAR, nationality VARCHAR)
<</SYS>>
SELECT MAX(lane) FROM table_name_31 WHERE rank > 2 AND nationality = "guyana"[/INST] What is the highest lane with a rank larger than 2 in Guyana?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_66 (constructor VARCHAR, grid VARCHAR)
<</SYS>>
SELECT constructor FROM table_name_66 WHERE grid = "20"[/INST] Who was the contstructor of the car having a grid of 20?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_33 (film_title_used_in_nomination VARCHAR, country VARCHAR)
<</SYS>>
SELECT film_title_used_in_nomination FROM table_name_33 WHERE country = "colombia"[/INST] What title did the film from Colombia use in its nomination?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_23286112_7 (score VARCHAR, date VARCHAR)
<</SYS>>
SELECT score FROM table_23286112_7 WHERE date = "December 7"[/INST] What is the score for the date of December 7?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR)
<</SYS>>
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" OR T1.name = "Jazz"[/INST] List the name of tracks belongs to genre Rock or genre Jazz.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_62 (nation VARCHAR, bronze VARCHAR, total VARCHAR, gold VARCHAR)
<</SYS>>
SELECT nation FROM table_name_62 WHERE total < 27 AND gold < 1 AND bronze > 1[/INST] What is the Nation when there is a total less than 27, gold is less than 1, and bronze is more than 1?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE editor (Age VARCHAR)
<</SYS>>
SELECT Age, COUNT(*) FROM editor GROUP BY Age[/INST] What are the different ages of editors? Show each age along with the number of editors of that age.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_38 (area_2006_km² INTEGER, area_1996_km² INTEGER)
<</SYS>>
SELECT MAX(area_2006_km²) FROM table_name_38 WHERE area_1996_km² < 17.31[/INST] Which area 2006 km² has an area 1996 km² smaller than 17.31?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_7 (draw INTEGER, played VARCHAR, lost VARCHAR)
<</SYS>>
SELECT MIN(draw) FROM table_name_7 WHERE played < 14 AND lost < 8[/INST] What is the least ties when they played less than 14 games, and a lost less than 8 of them?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1341690_43 (candidates VARCHAR, district VARCHAR)
<</SYS>>
SELECT candidates FROM table_1341690_43 WHERE district = "Texas 20"[/INST] Name the candidates for texas 20</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_23 (venue VARCHAR, year VARCHAR, notes VARCHAR)
<</SYS>>
SELECT venue FROM table_name_23 WHERE year > 2008 AND notes = "team"[/INST] What is the venue of the team race that was after 2008?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_20 (week INTEGER, date VARCHAR, attendance VARCHAR)
<</SYS>>
SELECT SUM(week) FROM table_name_20 WHERE date = "october 21, 1974" AND attendance < 50 OFFSET 623[/INST] What is the sum of the weeks that games occured on october 21, 1974 and less than 50,623 fans attended?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1341640_11 (first_elected INTEGER, district VARCHAR)
<</SYS>>
SELECT MIN(first_elected) FROM table_1341640_11 WHERE district = "Georgia 1"[/INST] What is the earliest first elected for district georgia 1?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_53 (two_mora_word VARCHAR, gloss VARCHAR, accented_mora VARCHAR)
<</SYS>>
SELECT two_mora_word FROM table_name_53 WHERE NOT accented_mora = "low tone" AND gloss = "/˩kusuꜜri/ [kɯ̀sɯ́ɽì]"[/INST] What is the two-mora word with a low tone accented mora and a gloss of /˩kusuꜜri/ [kɯ̀sɯ́ɽì]?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_2791668_1 (title VARCHAR, written_by VARCHAR)
<</SYS>>
SELECT title FROM table_2791668_1 WHERE written_by = "Philippe Browning"[/INST] what is the name of the episode whose writer is philippe browning?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_16 (color_commentator_s_ VARCHAR, year VARCHAR)
<</SYS>>
SELECT color_commentator_s_ FROM table_name_16 WHERE year = 2008[/INST] Who is the color commentator in 2008?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1131183_2 (number_of_jews__wjc_ VARCHAR, rank__arda_ VARCHAR)
<</SYS>>
SELECT COUNT(number_of_jews__wjc_) FROM table_1131183_2 WHERE rank__arda_ = 1[/INST] What is the number of jews where the rank is 1?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_88 (batting_style VARCHAR, player VARCHAR)
<</SYS>>
SELECT batting_style FROM table_name_88 WHERE player = "shahid afridi"[/INST] What batting style does player Shahid Afridi have?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_27956_3 (national_rank VARCHAR, percentage_change_yoy VARCHAR)
<</SYS>>
SELECT COUNT(national_rank) FROM table_27956_3 WHERE percentage_change_yoy = "13.1%"[/INST] Name the total number of rank for percentage change yoy 13.1%</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_30057479_1 (researched_at VARCHAR, geometry VARCHAR)
<</SYS>>
SELECT researched_at FROM table_30057479_1 WHERE geometry = "D: ~100nm, L: 1 μm"[/INST] Where was d: ~100nm, l: 1 μm geometry researched?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_28190363_1 (network VARCHAR, judges VARCHAR, presenter_s_ VARCHAR)
<</SYS>>
SELECT COUNT(network) FROM table_28190363_1 WHERE judges = "TBA" AND presenter_s_ = "Arbana Osmani"[/INST] How many networks are there whose version of the shows includes judges tba and the presenter is Arbana Osmani?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_40 (sack INTEGER, player VARCHAR, fumr VARCHAR)
<</SYS>>
SELECT SUM(sack) FROM table_name_40 WHERE player = "mike green" AND fumr < 0[/INST] what is the total sack for mike green when fumr is less than 0?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_53 (label VARCHAR, country VARCHAR, format VARCHAR)
<</SYS>>
SELECT label FROM table_name_53 WHERE country = "canada" AND format = "cd/digital download"[/INST] Which Label has a Country of canada, and a Format of cd/digital download?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_9 (crowd VARCHAR, ground VARCHAR, home_team VARCHAR)
<</SYS>>
SELECT crowd FROM table_name_9 WHERE ground = "colonial stadium" AND home_team = "hawthorn"[/INST] How much is the crowd attending at colonial stadium where Hawthorn plays?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_48 (model_number VARCHAR, socket VARCHAR)
<</SYS>>
SELECT model_number FROM table_name_48 WHERE socket = "standard voltage"[/INST] What model number uses standard voltage socket?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_76 (pick INTEGER, position VARCHAR)
<</SYS>>
SELECT MAX(pick) FROM table_name_76 WHERE position = "ss"[/INST] What's the highest pick for SS position?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_90 (silver VARCHAR, rank VARCHAR, bronze VARCHAR)
<</SYS>>
SELECT COUNT(silver) FROM table_name_90 WHERE rank = 3 AND bronze > 0[/INST] How many silver medals had a rank of 3 with bronze larger than 0?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_29 (conference VARCHAR, awards VARCHAR)
<</SYS>>
SELECT conference FROM table_name_29 WHERE awards = "vancouver grizzlies"[/INST] Where the Vancouver Grizzlies is the awards, what is the conference?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_97 (interview_subject VARCHAR)
<</SYS>>
SELECT 20 AS _questions FROM table_name_97 WHERE interview_subject = "camille paglia"[/INST] Who was the 20 Questions section aimed at when the Interview Subject was Camille Paglia?</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.