text_output
stringlengths 114
770
|
|---|
<s>[INST] <<SYS>>
CREATE TABLE table_name_25 (cuts_made INTEGER, tournament VARCHAR, wins VARCHAR)
<</SYS>>
SELECT AVG(cuts_made) FROM table_name_25 WHERE tournament = "totals" AND wins < 11[/INST] Which Cuts made has a Tournament of totals, and Wins smaller than 11?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_19753079_8 (first_elected VARCHAR, district VARCHAR)
<</SYS>>
SELECT first_elected FROM table_19753079_8 WHERE district = "California 7"[/INST] How many were first elected in California 7?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_39 (game INTEGER, team VARCHAR)
<</SYS>>
SELECT SUM(game) FROM table_name_39 WHERE team = "new york"[/INST] What is the total for New York's game?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_1 (drawn VARCHAR, points_for VARCHAR)
<</SYS>>
SELECT drawn FROM table_name_1 WHERE points_for = "447"[/INST] How many matches were drawn by a team with 447 points?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_52 (opponent VARCHAR, date VARCHAR)
<</SYS>>
SELECT opponent FROM table_name_52 WHERE date = "april 11"[/INST] Who did the Blue Jays play against on April 11?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_66 (wins VARCHAR, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR)
<</SYS>>
SELECT COUNT(wins) FROM table_name_66 WHERE goals_against < 30 AND goals_for > 25 AND draws > 5[/INST] How many Wins have Goals against smaller than 30, and Goals for larger than 25, and Draws larger than 5?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_77 (game VARCHAR, road_team VARCHAR, result VARCHAR)
<</SYS>>
SELECT game FROM table_name_77 WHERE road_team = "syracuse" AND result = "109-82"[/INST] What is Game, when Road Team is "Syracuse", and when Result is "109-82"?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_12243817_1 (year VARCHAR, country VARCHAR)
<</SYS>>
SELECT year FROM table_12243817_1 WHERE country = "Japan"[/INST] What year is Japan the country?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_76 (venue VARCHAR, away_team VARCHAR)
<</SYS>>
SELECT venue FROM table_name_76 WHERE away_team = "hawthorn"[/INST] Which venue has a Away team of hawthorn?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_7 (total VARCHAR, finish VARCHAR)
<</SYS>>
SELECT COUNT(total) FROM table_name_7 WHERE finish = "t45"[/INST] Name the total number of total with finish of t45</s>
|
<s>[INST] <<SYS>>
CREATE TABLE driver (home_city VARCHAR)
<</SYS>>
SELECT DISTINCT home_city FROM driver[/INST] Show all different home cities.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_12 (partner VARCHAR, year VARCHAR, outcome VARCHAR)
<</SYS>>
SELECT partner FROM table_name_12 WHERE year > 2012 AND outcome = "winner"[/INST] Who was the partner of the winner after 2012?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_29 (ensemble_name VARCHAR, area VARCHAR)
<</SYS>>
SELECT ensemble_name FROM table_name_29 WHERE area = "oxfordshire"[/INST] What is Oxfordshire Area's Ensemble Name?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_54 (competition VARCHAR, result VARCHAR, date VARCHAR)
<</SYS>>
SELECT competition FROM table_name_54 WHERE result = "win" AND date = "august 15, 2012"[/INST] Which competition did he win on August 15, 2012?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_43 (country VARCHAR, rank VARCHAR)
<</SYS>>
SELECT country FROM table_name_43 WHERE rank = "4"[/INST] What country was rank 4?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_29273115_1 (written_by VARCHAR, production_code VARCHAR)
<</SYS>>
SELECT written_by FROM table_29273115_1 WHERE production_code = "IP02009"[/INST] Who are the writers of the episode with production code IP02009?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_25 (date_of_appointment VARCHAR, name VARCHAR)
<</SYS>>
SELECT date_of_appointment FROM table_name_25 WHERE name = "hon. vicente q. roxas"[/INST] What is Hon. Vicente Q. Roxas appointment date?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_99 (country VARCHAR, player VARCHAR)
<</SYS>>
SELECT country FROM table_name_99 WHERE player = "tom watson"[/INST] What is Country, when Player is "Tom Watson"?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_18220102_1 (number_of_screening VARCHAR, opening_film VARCHAR)
<</SYS>>
SELECT COUNT(number_of_screening) FROM table_18220102_1 WHERE opening_film = "The Journey of Vaan Nguyen"[/INST] How many number of screenings have an opening film of the journey of vaan nguyen?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_2454550_1 (track VARCHAR, race_name VARCHAR)
<</SYS>>
SELECT track FROM table_2454550_1 WHERE race_name = "Argent Mortgage Indy 300"[/INST] On what track is the Argent mortgage Indy 300 held? </s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_95 (year INTEGER, playoffs VARCHAR, open_cup VARCHAR)
<</SYS>>
SELECT MAX(year) FROM table_name_95 WHERE playoffs = "did not qualify" AND open_cup = "2nd round"[/INST] When is the latest year that Real Colorado Foxes did not qualify for the playoffs but make it to Open Cup 2nd Round?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1342218_17 (candidates VARCHAR, district VARCHAR)
<</SYS>>
SELECT candidates FROM table_1342218_17 WHERE district = "Kentucky 4"[/INST] Who were the candidates in the Kentucky 4 voting district?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pPos VARCHAR, pID VARCHAR)
<</SYS>>
SELECT MAX(T1.HS), pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos[/INST] What is the maximum training hours for the students whose training hours is greater than 1000 in different positions?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_77 (date VARCHAR, country VARCHAR, format VARCHAR, label VARCHAR)
<</SYS>>
SELECT date FROM table_name_77 WHERE format = "cd" AND label = "columbia/legacy" AND country = "uk"[/INST] What date had a CD format, under Columbia/Legacy from the UK?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_23685890_2 (major_town VARCHAR, local_government_area VARCHAR)
<</SYS>>
SELECT major_town FROM table_23685890_2 WHERE local_government_area = "Outback Areas Community Development Trust"[/INST] Which major town is located within the Outback Areas Community Development Trust?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_79 (score VARCHAR, place VARCHAR, player VARCHAR)
<</SYS>>
SELECT score FROM table_name_79 WHERE place = "t9" AND player = "jerry barber"[/INST] How much did Jerry Barber score to come in at T9?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE wedding (church_id VARCHAR); CREATE TABLE church (name VARCHAR, church_id VARCHAR)
<</SYS>>
SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id GROUP BY T1.church_id HAVING COUNT(*) >= 2[/INST] Show all church names that have hosted least two weddings.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1353096_1 (city_of_license__market VARCHAR, channel_tv___dt__ VARCHAR)
<</SYS>>
SELECT city_of_license__market FROM table_1353096_1 WHERE channel_tv___dt__ = "25 (31)"[/INST] What city has channel tv (dt) 25 (31)?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_33 (selection INTEGER, player VARCHAR, round VARCHAR)
<</SYS>>
SELECT MIN(selection) FROM table_name_33 WHERE player = "jamaar taylor" AND round > 6[/INST] Which Selection has a Player of jamaar taylor, and a Round larger than 6?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_25730123_2 (touchdowns VARCHAR, extra_points INTEGER)
<</SYS>>
SELECT touchdowns FROM table_25730123_2 WHERE extra_points > 1.0[/INST] How many touchdowns were the when there was more than 1.0 extra point?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_43 (school VARCHAR, mascot VARCHAR, size VARCHAR, county VARCHAR)
<</SYS>>
SELECT school FROM table_name_43 WHERE size < 674 AND county = "19 dubois" AND mascot = "rangers"[/INST] What school has a size less than 674, has a county of 19 dubois, and has the rangers as their mascot?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_24193494_3 (division VARCHAR, powertrain__engine_transmission_ VARCHAR)
<</SYS>>
SELECT division FROM table_24193494_3 WHERE powertrain__engine_transmission_ = "Detroit Diesel Series 50EGR Allison WB-400R"[/INST] Name the division for detroit diesel series 50egr allison wb-400r</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_90 (grid INTEGER, driver VARCHAR, laps VARCHAR)
<</SYS>>
SELECT MIN(grid) FROM table_name_90 WHERE driver = "thierry boutsen" AND laps < 44[/INST] Which grid is lower for thierry boutsen which laps less than 44?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_40 (density__per_km²_ INTEGER, no_munic VARCHAR)
<</SYS>>
SELECT AVG(density__per_km²_) FROM table_name_40 WHERE no_munic = 53[/INST] What is the average Density of 53 No. munic.?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_20018310_1 (irrigation_district VARCHAR, users___number_ VARCHAR)
<</SYS>>
SELECT irrigation_district FROM table_20018310_1 WHERE users___number_ = 4733[/INST] Which irrigation district has 4733 users?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_22815265_1 (record VARCHAR, opponent VARCHAR)
<</SYS>>
SELECT COUNT(record) FROM table_22815265_1 WHERE opponent = "Utah"[/INST] How many records show Utah as the opponent?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_36 (crowd INTEGER, venue VARCHAR)
<</SYS>>
SELECT AVG(crowd) FROM table_name_36 WHERE venue = "junction oval"[/INST] What was the average crowd attendance for the Junction Oval venue?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_24628683_2 (method_of_elimination VARCHAR, time VARCHAR)
<</SYS>>
SELECT method_of_elimination FROM table_24628683_2 WHERE time = "24:02"[/INST] What was the method of elimination in the chamber with a time of 24:02? </s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_99 (country VARCHAR, place VARCHAR, score VARCHAR)
<</SYS>>
SELECT country FROM table_name_99 WHERE place = "t3" AND score = 71 - 76 - 71 = 218[/INST] What is the Country with the T3 Place Player with a Score of 71-76-71=218?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_91 (round VARCHAR, opponent VARCHAR)
<</SYS>>
SELECT round FROM table_name_91 WHERE opponent = "brandon bledsoe"[/INST] In the fight against Brandon Bledsoe, how many rounds did the fight last?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_45 (place VARCHAR, to_par VARCHAR, score VARCHAR)
<</SYS>>
SELECT place FROM table_name_45 WHERE to_par = "+3" AND score = 73 - 70 - 73 = 216[/INST] What is the Place of the Player with a To par of +3 and Score of 73-70-73=216?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_16 (to_par VARCHAR, place VARCHAR, country VARCHAR)
<</SYS>>
SELECT to_par FROM table_name_16 WHERE place = "t4" AND country = "south africa"[/INST] What was the to par when South Africa was in T4 place?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_44 (d_43 VARCHAR, d_41 VARCHAR)
<</SYS>>
SELECT d_43 FROM table_name_44 WHERE d_41 = "r 21"[/INST] What is the D43 associated with a D41 of r 21?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_13663434_1 (jp__210_ VARCHAR, title_and_source VARCHAR)
<</SYS>>
SELECT jp__210_ FROM table_13663434_1 WHERE title_and_source = "Fun! Fun! Minigolf"[/INST] what's the jp -210- with title and source being fun! fun! minigolf</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_80 (year INTEGER, attendance INTEGER)
<</SYS>>
SELECT AVG(year) FROM table_name_80 WHERE attendance < 28 OFFSET 505[/INST] How many years have less than 28,505 attendance?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_85 (place VARCHAR, team VARCHAR, played VARCHAR)
<</SYS>>
SELECT COUNT(place) FROM table_name_85 WHERE team = "tauro" AND played < 18[/INST] how many times is the team tauro and played less than 18?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_57 (rank INTEGER, bronze VARCHAR, silver VARCHAR)
<</SYS>>
SELECT AVG(rank) FROM table_name_57 WHERE bronze < 1 AND silver > 1[/INST] What rank was the country with no bronze but at least 1 silver medals?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_19524523_1 (champ_car_world_series__2004_2007_ INTEGER, usac__1956_1995_ VARCHAR)
<</SYS>>
SELECT MAX(champ_car_world_series__2004_2007_) FROM table_19524523_1 WHERE usac__1956_1995_ = 2[/INST] What is the most Champ Car wins for any driver with a USAC record of 2?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_92 (losses INTEGER, wins INTEGER)
<</SYS>>
SELECT MIN(losses) FROM table_name_92 WHERE wins < 0[/INST] Which Losses is the lowest one that has Wins smaller than 0?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_78 (winner VARCHAR, trofeo_fast_team VARCHAR, general_classification VARCHAR)
<</SYS>>
SELECT winner FROM table_name_78 WHERE trofeo_fast_team = "metauro mobili-pinarello" AND general_classification = "giuseppe saronni"[/INST] Which Winner has a Trofeo Fast Team of metauro mobili-pinarello, and a General classification of giuseppe saronni?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_23180638_1 (oricon_albums_chart VARCHAR, debut_sales__copies_ VARCHAR)
<</SYS>>
SELECT oricon_albums_chart FROM table_23180638_1 WHERE debut_sales__copies_ = 101976[/INST] Which charts had debut sales of 101976?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_77 (college VARCHAR, name VARCHAR)
<</SYS>>
SELECT college FROM table_name_77 WHERE name = "pat thomas"[/INST] What college is Pat Thomas from?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE Student (StuID VARCHAR, city_code VARCHAR)
<</SYS>>
SELECT StuID FROM Student WHERE city_code = "CHI"[/INST] Show ids for all students who live in CHI.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_63 (Id VARCHAR)
<</SYS>>
SELECT 1997 FROM table_name_63 WHERE 1996 = "1r" AND 1990 = "2r" AND 1991 = "f"[/INST] What is 1997, when 1996 is "1R", when 1990 is "2R", and when 1991 is "F"?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_10392906_2 (opponent VARCHAR, date VARCHAR)
<</SYS>>
SELECT COUNT(opponent) FROM table_10392906_2 WHERE date = "Saturday, June 9"[/INST] How many opponents were played on Saturday, June 9?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE Products_for_hire (daily_hire_cost VARCHAR, product_name VARCHAR)
<</SYS>>
SELECT daily_hire_cost FROM Products_for_hire WHERE product_name LIKE '%Book%'[/INST] What are the daily hire costs for the products with substring 'Book' in its name?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_2 (date VARCHAR, home_away_game VARCHAR, week VARCHAR)
<</SYS>>
SELECT date FROM table_name_2 WHERE home_away_game = "away" AND week = 8[/INST] What is the date of the away game in week 8?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_8 (game_4 VARCHAR, position VARCHAR, game_1 VARCHAR)
<</SYS>>
SELECT game_4 FROM table_name_8 WHERE position = "wing" AND game_1 = "michael o'connor"[/INST] For which Game 4 did Michael O'Connor play wing position?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_63 (engine VARCHAR, team VARCHAR)
<</SYS>>
SELECT engine FROM table_name_63 WHERE team = "tasman motorsports"[/INST] What engine does the Tasman Motorsports team have?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_14 (uyghur_latin___uly__ VARCHAR, population__2010_census_ VARCHAR)
<</SYS>>
SELECT uyghur_latin___uly__ FROM table_name_14 WHERE population__2010_census_ = "69,361"[/INST] What is the Uyghur Latin with a population of 69,361?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_13 (points INTEGER, rank VARCHAR)
<</SYS>>
SELECT SUM(points) FROM table_name_13 WHERE rank = 12[/INST] what is the points for rank 12?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_8 (position VARCHAR, agg VARCHAR)
<</SYS>>
SELECT position FROM table_name_8 WHERE agg = "2-6"[/INST] What position has a 2-6 agg.?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_24 (location VARCHAR, opponent VARCHAR)
<</SYS>>
SELECT location FROM table_name_24 WHERE opponent = "arras paul arras"[/INST] Where was the location for Arras Paul Arras?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_96 (release_date VARCHAR, sspec_number VARCHAR)
<</SYS>>
SELECT release_date FROM table_name_96 WHERE sspec_number = "sl5xl, sl657, sl6by, sl6jp"[/INST] What is the Release Date when sSpec Number is sl5xl, sl657, sl6by, sl6jp?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_27 (to_par VARCHAR, player VARCHAR)
<</SYS>>
SELECT to_par FROM table_name_27 WHERE player = "bob tway"[/INST] What is Bob Tway's To par?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_66 (game VARCHAR, year VARCHAR)
<</SYS>>
SELECT game FROM table_name_66 WHERE year = 2001[/INST] What game was in 2001?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_17 (points INTEGER, winnings VARCHAR, laps VARCHAR, make VARCHAR, car__number VARCHAR)
<</SYS>>
SELECT MIN(points) FROM table_name_17 WHERE make = "chevrolet" AND car__number < 24 AND laps = 312 AND winnings = "$122,325"[/INST] Which is the lowest point value that had not only a Chevrolet car, but also a car number smaller than 24, total laps of 312, and a winning purse of $122,325?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_70 (opposition VARCHAR, social_democrats__a_ VARCHAR)
<</SYS>>
SELECT opposition FROM table_name_70 WHERE social_democrats__a_ = "31.1%"[/INST] What opposition do 31.1% of Social Democrats have?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_98 (set_2 VARCHAR, date VARCHAR)
<</SYS>>
SELECT set_2 FROM table_name_98 WHERE date = "jun 29"[/INST] What is the Set 2 with a Date that is jun 29?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_22 (gloss VARCHAR, virtue VARCHAR)
<</SYS>>
SELECT gloss FROM table_name_22 WHERE virtue = "diligence"[/INST] What is the Diligence Virtues Gloss?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_81 (total INTEGER, year_s__won VARCHAR, to_par VARCHAR)
<</SYS>>
SELECT SUM(total) FROM table_name_81 WHERE year_s__won = "1966 , 1970 , 1978" AND to_par < 4[/INST] What is the sum of Total, when Year(s) Won is "1966 , 1970 , 1978", and when To par is less than 4?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_32 (opponent VARCHAR, date VARCHAR)
<</SYS>>
SELECT opponent FROM table_name_32 WHERE date = "may 12"[/INST] Who was the opponent that played on may 12?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE customers (payment_method VARCHAR)
<</SYS>>
SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1[/INST] Which payment method is used by most customers?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_10120207_8 (tv_season VARCHAR, season VARCHAR)
<</SYS>>
SELECT tv_season FROM table_10120207_8 WHERE season = 12[/INST] What is the year of the season that was 12?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_24765815_2 (rank VARCHAR, competition VARCHAR)
<</SYS>>
SELECT rank FROM table_24765815_2 WHERE competition = "UEFA Euro 2012 qualifying Group A"[/INST] What is the ranking of the UEFA Euro 2012 qualifying Group A competition?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_11 (time VARCHAR, round VARCHAR, opponent VARCHAR)
<</SYS>>
SELECT time FROM table_name_11 WHERE round < 3 AND opponent = "bao quach"[/INST] Which Time has a Round smaller than 3, and an Opponent of bao quach?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_78 (date VARCHAR, venue VARCHAR)
<</SYS>>
SELECT date FROM table_name_78 WHERE venue = "kardinia park"[/INST] When was there a game at Kardinia Park?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_16 (ngc_number INTEGER, constellation VARCHAR)
<</SYS>>
SELECT SUM(ngc_number) FROM table_name_16 WHERE constellation = "vela"[/INST] What is the sum of NGC numbers for Constellation vela?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_26176081_29 (brup INTEGER, long VARCHAR)
<</SYS>>
SELECT MIN(brup) FROM table_26176081_29 WHERE long = 94[/INST] What is the lowest brup when long is 94?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_9 (province VARCHAR, ubigeo VARCHAR, districts VARCHAR, region VARCHAR)
<</SYS>>
SELECT province FROM table_name_9 WHERE districts < 11 AND region = "tumbes" AND ubigeo = 2401[/INST] What province in Tumbes has less than 11 districts and a UBIGEO of 2401?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_68 (venue VARCHAR, club VARCHAR)
<</SYS>>
SELECT venue FROM table_name_68 WHERE club = "dixie derby girls"[/INST] Which venue hosted the Dixie Derby Girls?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_20 (team VARCHAR, player VARCHAR)
<</SYS>>
SELECT team FROM table_name_20 WHERE player = "joe deane"[/INST] What team does Joe Deane play for?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_43 (rank INTEGER, silver INTEGER)
<</SYS>>
SELECT MAX(rank) FROM table_name_43 WHERE silver < 0[/INST] What is the highest rank of a nation with fewer than 0 silver medals?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_15635768_1 (date_of_issue VARCHAR, face_value VARCHAR)
<</SYS>>
SELECT date_of_issue FROM table_15635768_1 WHERE face_value = "42¢"[/INST] When the face value is 42¢, what was the issue's date?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_19 (opponents_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)
<</SYS>>
SELECT opponents_in_the_final FROM table_name_19 WHERE surface = "hard" AND date = "january 5, 2003"[/INST] Who was the opponents in the final on January 5, 2003, on a hard surface?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_36 (matches INTEGER, bonus_pts VARCHAR, total_points VARCHAR)
<</SYS>>
SELECT MIN(matches) FROM table_name_36 WHERE bonus_pts = 19 AND total_points > 421[/INST] What is the smallest number of matches with Bonus Pts of 19 and Total Points greater than 421?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_32 (game INTEGER, date VARCHAR)
<</SYS>>
SELECT AVG(game) FROM table_name_32 WHERE date = "december 17"[/INST] What is the average game that has December 17 as the date?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_14 (game VARCHAR, record VARCHAR)
<</SYS>>
SELECT game FROM table_name_14 WHERE record = "27-12"[/INST] What game has 27-12 record?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_49 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR)
<</SYS>>
SELECT home_team FROM table_name_49 WHERE date = "6 december 1986" AND tie_no = "4"[/INST] What is Home Team, when Date is "6 December 1986", and when Tie No is "4"?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_46 (place VARCHAR, to_par VARCHAR, score VARCHAR)
<</SYS>>
SELECT place FROM table_name_46 WHERE to_par = "+3" AND score = 74 - 73 = 147[/INST] What is the Place when the To par was +3 and Score was 74-73=147?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_23286223_8 (high_points VARCHAR, record VARCHAR)
<</SYS>>
SELECT COUNT(high_points) FROM table_23286223_8 WHERE record = "39-22"[/INST] How many players did the most high points in the game with 39-22 record?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_55 (directed_by VARCHAR, written_by VARCHAR)
<</SYS>>
SELECT directed_by FROM table_name_55 WHERE written_by = "robin schwartz & robert tarlow"[/INST] What is the name of the director of the episode written by robin schwartz & robert tarlow?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_66 (score VARCHAR, home VARCHAR, date VARCHAR)
<</SYS>>
SELECT score FROM table_name_66 WHERE home = "toronto maple leafs" AND date = "november 12"[/INST] Which score was for Toronto Maple Leafs at home on November 12?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_37 (opponent_number VARCHAR, date VARCHAR)
<</SYS>>
SELECT opponent_number FROM table_name_37 WHERE date = "october 7"[/INST] WHAT OPPONENT WAS ON OCTOBER 7?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_7 (type VARCHAR, moving_to VARCHAR)
<</SYS>>
SELECT type FROM table_name_7 WHERE moving_to = "valenciennes"[/INST] What type is shown with a moving to of valenciennes?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_34 (gold INTEGER, bronze VARCHAR, total VARCHAR)
<</SYS>>
SELECT SUM(gold) FROM table_name_34 WHERE bronze > 0 AND total < 2[/INST] What is the sum of gold values that have bronze values over 0 and totals under 2?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_92 (team VARCHAR, recopa_1994 VARCHAR, conmebol_1994 VARCHAR)
<</SYS>>
SELECT team FROM table_name_92 WHERE recopa_1994 = "n/a" AND conmebol_1994 = "1st round"[/INST] Which Team has a Recopa 1994 of n/a and a CONMEBOL 1994 of 1st round?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_7 (result VARCHAR, score VARCHAR, goal VARCHAR)
<</SYS>>
SELECT result FROM table_name_7 WHERE score = "1–0" AND goal = 16[/INST] Which Result has a Score of 1–0, and a Goal of 16?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_2461720_1 (theatre_name VARCHAR, language_of_films VARCHAR)
<</SYS>>
SELECT theatre_name FROM table_2461720_1 WHERE language_of_films = "French"[/INST] Name the theatre name for french</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_12161822_5 (report VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)
<</SYS>>
SELECT report FROM table_12161822_5 WHERE fastest_lap = "Felipe Massa" AND winning_driver = "Jenson Button"[/INST] what's the report with fastest lap being felipe massa and winning driver being jenson button</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.