text_output
stringlengths 114
770
|
|---|
<s>[INST] <<SYS>>
CREATE TABLE table_name_97 (player VARCHAR, college VARCHAR)
<</SYS>>
SELECT player FROM table_name_97 WHERE college = "san sebastian"[/INST] What player has a college named san sebastian?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_74 (opponent VARCHAR, result VARCHAR)
<</SYS>>
SELECT opponent FROM table_name_74 WHERE result = "3–6, 6–2, 4–6"[/INST] What opponent has a result of 3–6, 6–2, 4–6?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_56 (year VARCHAR, champion VARCHAR, runner_up VARCHAR)
<</SYS>>
SELECT COUNT(year) FROM table_name_56 WHERE champion = "ilie năstase" AND runner_up = "peter fleming"[/INST] When Ilie Năstase beat runner-up Peter Fleming what year was it?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_92 (date INTEGER, label VARCHAR, format VARCHAR)
<</SYS>>
SELECT MIN(date) FROM table_name_92 WHERE label = "great expectations" AND format = "lp"[/INST] What is the earliest date with Great Expectations label with LP format?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_36 (date VARCHAR, tie_no VARCHAR)
<</SYS>>
SELECT date FROM table_name_36 WHERE tie_no = "19"[/INST] On what Date is Tie no 19?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_25 (competition VARCHAR, date VARCHAR)
<</SYS>>
SELECT competition FROM table_name_25 WHERE date = "may 5, 2001"[/INST] What competition has may 5, 2001 as the date?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_53 (first_leg VARCHAR, round VARCHAR)
<</SYS>>
SELECT first_leg FROM table_name_53 WHERE round = "semi-final"[/INST] Who has the first leg that has a round in the semi-final?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_26591434_1 (ratings__kanto_ VARCHAR, episode VARCHAR)
<</SYS>>
SELECT ratings__kanto_ FROM table_26591434_1 WHERE episode = 11[/INST] What was the ratings for episode 11?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_28164986_4 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
<</SYS>>
SELECT COUNT(date_of_vacancy) FROM table_28164986_4 WHERE outgoing_manager = "Tunde Abdulrahman"[/INST] how many times did tunde abdulrahman leave the team?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_91 (score VARCHAR, loss VARCHAR)
<</SYS>>
SELECT score FROM table_name_91 WHERE loss = "buehrle (7-2)"[/INST] Which Score has a Loss of buehrle (7-2)?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_23429629_4 (act VARCHAR, place_came VARCHAR)
<</SYS>>
SELECT act FROM table_23429629_4 WHERE place_came = "1st Place (Won the Series)"[/INST] During the 1st Place (Won the Series), who was the act?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_26 (season VARCHAR, player VARCHAR)
<</SYS>>
SELECT COUNT(season) FROM table_name_26 WHERE player = "rohan ricketts"[/INST] Which seaosn had a player of rohan ricketts?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_98 (name VARCHAR, qual_1 VARCHAR)
<</SYS>>
SELECT name FROM table_name_98 WHERE qual_1 = "1:01.461"[/INST] Who had a qual 1 of 1:01.461?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_22 (sport VARCHAR, event VARCHAR)
<</SYS>>
SELECT sport FROM table_name_22 WHERE event = "94kg men's weightlifting"[/INST] Which sport has 94kg men's weightlifting as one of its events?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE train (ObjectNumber VARCHAR, Railway_ID VARCHAR); CREATE TABLE railway (ObjectNumber VARCHAR, Railway_ID VARCHAR)
<</SYS>>
SELECT ObjectNumber FROM railway WHERE NOT Railway_ID IN (SELECT Railway_ID FROM train)[/INST] List the object number of railways that do not have any trains.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_69 (location VARCHAR, mascot VARCHAR)
<</SYS>>
SELECT location FROM table_name_69 WHERE mascot = "lakers"[/INST] Can you tell me the Location that has the Mascot of lakers?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_43 (name VARCHAR, position VARCHAR, round VARCHAR)
<</SYS>>
SELECT name FROM table_name_43 WHERE position = "ot" AND round = 27[/INST] Which player had a position of OT during round 27?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_49 (r1st VARCHAR, ryds VARCHAR)
<</SYS>>
SELECT r1st FROM table_name_49 WHERE ryds = "36"[/INST] Who is the R1st that has 36 RYds?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_77 (report VARCHAR, name VARCHAR)
<</SYS>>
SELECT report FROM table_name_77 WHERE name = "tourist trophy"[/INST] Name the Report of tourist trophy?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_63 (prog_cons VARCHAR, dates VARCHAR, polling_firm VARCHAR, liberal VARCHAR)
<</SYS>>
SELECT prog_cons FROM table_name_63 WHERE polling_firm = "corporate research associates" AND liberal = "31%" AND dates = "february 2009"[/INST] According to the February 2009 poll by the Corporate Research Associates that reported 31% Liberal., what percentage aligned with the Prog. Cons. party?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1342149_13 (incumbent VARCHAR, first_elected VARCHAR)
<</SYS>>
SELECT incumbent FROM table_1342149_13 WHERE first_elected = 1932[/INST] What is the incumbent for 1932?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_12 (position INTEGER, name VARCHAR, drawn VARCHAR)
<</SYS>>
SELECT MIN(position) FROM table_name_12 WHERE name = "esv türkheim" AND drawn > 0[/INST] what is the lowest position when the name is esv türkheim, and Drawn more than 0?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_7 (binomial VARCHAR, binary VARCHAR, fibonacci VARCHAR)
<</SYS>>
SELECT binomial FROM table_name_7 WHERE binary = "θ(log n)" AND fibonacci = "θ(1)"[/INST] Binary of θ(log n), and a Fibonacci of θ(1) has what binomial?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_34 (laps INTEGER, team VARCHAR, grid VARCHAR)
<</SYS>>
SELECT MAX(laps) FROM table_name_34 WHERE team = "walker racing" AND grid > 15[/INST] What was the highest lap count for Walker Racing with a grid larger than 15?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_27744844_7 (high_assists VARCHAR, game VARCHAR)
<</SYS>>
SELECT high_assists FROM table_27744844_7 WHERE game = 35[/INST] Who had the most assists and how many did they have in game 35?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_69 (avg_g VARCHAR, name VARCHAR, loss VARCHAR)
<</SYS>>
SELECT COUNT(avg_g) FROM table_name_69 WHERE name = "cameron dantley" AND loss < 35[/INST] What's cameron dantley's total avg/g for loss less than 35?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_28601467_1 (winner VARCHAR, result VARCHAR, runner_up VARCHAR)
<</SYS>>
SELECT winner FROM table_28601467_1 WHERE result = "Scotland won on points table" AND runner_up = "[[|]] 4 points"[/INST] What are all the winning records when the result is Scotland won on points table and the Runner-Up result is [[|]] 4 points?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_71 (location VARCHAR, floors VARCHAR, building VARCHAR)
<</SYS>>
SELECT location FROM table_name_71 WHERE floors < 27 AND building = "150 elgin"[/INST] Which Location has Floors smaller than 27, and a Building of 150 elgin?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_14977252_2 (professional_jury VARCHAR, points VARCHAR)
<</SYS>>
SELECT professional_jury FROM table_14977252_2 WHERE points = 10[/INST] Name the jury of 10 points</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_2453243_5 (written_by VARCHAR, no_in_series VARCHAR)
<</SYS>>
SELECT written_by FROM table_2453243_5 WHERE no_in_series = "48"[/INST] Who write episode number 48 in the series?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_31 (first_publisher VARCHAR, year INTEGER)
<</SYS>>
SELECT first_publisher FROM table_name_31 WHERE year < 1999[/INST] What is the First Publisher prior to 1999?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_46 (wins INTEGER, goal_difference VARCHAR, played VARCHAR)
<</SYS>>
SELECT MAX(wins) FROM table_name_46 WHERE goal_difference = 11 AND played > 30[/INST] What is the most wins for a position with more than 30 played and a goal difference of 11?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_25604014_5 (directed_by VARCHAR, production_code VARCHAR)
<</SYS>>
SELECT directed_by FROM table_25604014_5 WHERE production_code = "7D03"[/INST] Who direcred the episode with production code 7d03?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_27 (name VARCHAR, decile VARCHAR, roll VARCHAR)
<</SYS>>
SELECT name FROM table_name_27 WHERE decile = 8 AND roll = 705[/INST] Which school has a decile of 8 and a roll of 705?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_24 (state VARCHAR, member VARCHAR)
<</SYS>>
SELECT state FROM table_name_24 WHERE member = "frederick bamford"[/INST] Which state is frederick bamford a member of?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_54 (predecessor VARCHAR, date VARCHAR, district VARCHAR, congress VARCHAR)
<</SYS>>
SELECT predecessor FROM table_name_54 WHERE district < 11 AND congress = "68th" AND date = "may 1, 1923"[/INST] What predecessor has a district less than 11, 68th as the Congress, and may 1, 1923 as the date?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_22815568_13 (county VARCHAR, market_income_per_capita VARCHAR)
<</SYS>>
SELECT county FROM table_22815568_13 WHERE market_income_per_capita = "$25,006"[/INST] what is the county where the market income per capita is $25,006?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_79 (date VARCHAR, record VARCHAR)
<</SYS>>
SELECT date FROM table_name_79 WHERE record = "21-25"[/INST] On what date was the record 21-25?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE student (stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR)
<</SYS>>
SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = "F" GROUP BY t1.clubname ORDER BY COUNT(*) DESC LIMIT 1[/INST] Find the name of the club that has the most female students.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_77 (capacity INTEGER, margin VARCHAR)
<</SYS>>
SELECT MIN(capacity) FROM table_name_77 WHERE margin = "03:30"[/INST] What's the lowest capacity when the margin is 03:30?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_74 (result VARCHAR, opponent VARCHAR)
<</SYS>>
SELECT result FROM table_name_74 WHERE opponent = "dundee"[/INST] What was the result when Dundee was the opponent?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_28367242_1 (area__km²_ VARCHAR, corporate_name VARCHAR)
<</SYS>>
SELECT area__km²_ FROM table_28367242_1 WHERE corporate_name = "Powell River, The Corporation of the City of"[/INST] What is the area of the corporation named the powell river, the corporation of the city of?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_85 (high_points VARCHAR, location_attendance VARCHAR)
<</SYS>>
SELECT high_points FROM table_name_85 WHERE location_attendance = "time warner cable arena 12,096"[/INST] At Time Warner Cable Arena 12,096, what was the high points?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_29778616_1 (intro_date VARCHAR, price VARCHAR)
<</SYS>>
SELECT COUNT(intro_date) FROM table_29778616_1 WHERE price = "686€"[/INST] How many intro dates have the price of 686€?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1140088_6 (constructor VARCHAR, race_name VARCHAR)
<</SYS>>
SELECT constructor FROM table_1140088_6 WHERE race_name = "I Italian Republic Grand Prix"[/INST] Who constructed the I Italian Republic Grand Prix?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_31 (position VARCHAR, pick INTEGER)
<</SYS>>
SELECT position FROM table_name_31 WHERE pick > 28[/INST] Which position has a pick greater than 28?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE city (name VARCHAR, Population INTEGER)
<</SYS>>
SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000[/INST] What are the cities whose population is between 160000 and 900000?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_74 (tries_for VARCHAR, tries_against VARCHAR)
<</SYS>>
SELECT tries_for FROM table_name_74 WHERE tries_against = "30"[/INST] What is the number of tries for that has 30 tries against?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_54 (trainer VARCHAR, time VARCHAR, jockey VARCHAR)
<</SYS>>
SELECT trainer FROM table_name_54 WHERE time = "1:44.80" AND jockey = "william jenkins"[/INST] What Trainer had Jockey William Jenkins in a race with Time of 1:44.80?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_45 (athlete VARCHAR, wind VARCHAR)
<</SYS>>
SELECT athlete FROM table_name_45 WHERE wind = "1.8"[/INST] Who was the athlete with a wind of 1.8?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_88 (games VARCHAR, name VARCHAR)
<</SYS>>
SELECT games FROM table_name_88 WHERE name = "bud eley"[/INST] Which game did was Bud Eley a player in?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_76 (school VARCHAR, hometown VARCHAR)
<</SYS>>
SELECT school FROM table_name_76 WHERE hometown = "riverside, ca"[/INST] Which school is in Riverside, CA?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_11044765_1 (location VARCHAR, mascot VARCHAR)
<</SYS>>
SELECT location FROM table_11044765_1 WHERE mascot = "Miners"[/INST] What city and state are the miners located in?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_22597626_17 (partner VARCHAR, opponents_in_the_final VARCHAR)
<</SYS>>
SELECT COUNT(partner) FROM table_22597626_17 WHERE opponents_in_the_final = "Forget Leconte"[/INST] What was the partner count when the opponents in the final was forget leconte?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_24018112_1 (cores_threads VARCHAR, max_memory_speed VARCHAR, frequency VARCHAR)
<</SYS>>
SELECT cores_threads FROM table_24018112_1 WHERE max_memory_speed = "DDR3-1333" AND frequency = "2.66-2.8GHz"[/INST] List the number of cores for ddr3-1333 with frequencies between 2.66-2.8ghz.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_56 (inns VARCHAR, matches VARCHAR)
<</SYS>>
SELECT COUNT(inns) FROM table_name_56 WHERE matches = 127[/INST] Matches of 127 has how many total number of inns?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_74 (home VARCHAR, leading_scorer VARCHAR)
<</SYS>>
SELECT home FROM table_name_74 WHERE leading_scorer = "manu ginóbili (34)"[/INST] Who was the home team of the game with manu ginóbili (34) as the leading scorer?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_40 (location VARCHAR, method VARCHAR)
<</SYS>>
SELECT location FROM table_name_40 WHERE method = "decision"[/INST] Which Location has a Method of decision?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE has_pet (stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)
<</SYS>>
SELECT COUNT(*), T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid[/INST] Find the number of pets for each student who has any pet and student id.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_11677100_16 (position VARCHAR, hometown VARCHAR)
<</SYS>>
SELECT position FROM table_11677100_16 WHERE hometown = "Las Vegas, NV"[/INST] What positions were drafted from Las Vegas, NV?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_20799587_1 (mccain_percentage VARCHAR, county VARCHAR)
<</SYS>>
SELECT mccain_percentage FROM table_20799587_1 WHERE county = "Hinds"[/INST] What percentage of the votes did McCain get in Hinds?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_8 (commissioned VARCHAR, laid_down VARCHAR)
<</SYS>>
SELECT commissioned FROM table_name_8 WHERE laid_down = "17 dec 1951"[/INST] what is the commissioned date with laid down of 17 dec 1951?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_52 (finish VARCHAR, country VARCHAR)
<</SYS>>
SELECT finish FROM table_name_52 WHERE country = "australia"[/INST] What is the finish of Australia?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_24919137_2 (date VARCHAR, ladder_position VARCHAR, opposition VARCHAR)
<</SYS>>
SELECT date FROM table_24919137_2 WHERE ladder_position = "8th" AND opposition = "Hawthorn"[/INST] On what date was the game played when the Western Bulldogs were in 8th ladder position and hawthorn was the opposing team?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_23958944_5 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)
<</SYS>>
SELECT title FROM table_23958944_5 WHERE directed_by = "Bryan Spicer" AND written_by = "Terence Paul Winter"[/INST] What episode is directed by Bryan Spicer and written by Terence Paul Winter?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_62 (enrollment INTEGER, founded VARCHAR, location VARCHAR, affiliation VARCHAR)
<</SYS>>
SELECT SUM(enrollment) FROM table_name_62 WHERE location = "buffalo, new york" AND affiliation = "public" AND founded > 1846[/INST] What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_37 (laps VARCHAR, time VARCHAR)
<</SYS>>
SELECT COUNT(laps) FROM table_name_37 WHERE time = "+2.987"[/INST] How many laps had a time of +2.987?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1218784_1 (season VARCHAR, rank VARCHAR)
<</SYS>>
SELECT COUNT(season) FROM table_1218784_1 WHERE rank = 16[/INST] How many seasons had a rank of 16?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_92 (round VARCHAR, position VARCHAR, pick__number VARCHAR)
<</SYS>>
SELECT round FROM table_name_92 WHERE position = "defensive back" AND pick__number = "101"[/INST] What round pick was pick number 101 who plays defensive back?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_2 (circuit VARCHAR)
<</SYS>>
SELECT 125 AS cc_winner FROM table_name_2 WHERE circuit = "estoril"[/INST] Name the 125cc winner with circuit of estoril</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_84 (date VARCHAR, game VARCHAR)
<</SYS>>
SELECT date FROM table_name_84 WHERE game = 1[/INST] What date has 1 for the game?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_50 (attendance VARCHAR, visitor VARCHAR)
<</SYS>>
SELECT COUNT(attendance) FROM table_name_50 WHERE visitor = "bulls"[/INST] Name the total number in attendance for when the bulls visited</s>
|
<s>[INST] <<SYS>>
CREATE TABLE CMI_Cross_References (master_customer_id VARCHAR, source_system_code VARCHAR); CREATE TABLE Customer_Master_Index (cmi_details VARCHAR, master_customer_id VARCHAR)
<</SYS>>
SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T2.source_system_code = 'Tax'[/INST] what are the details of the cmi masters that have the cross reference code 'Tax'?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_27708484_3 (matches_played VARCHAR, average_goals_scored_per_match VARCHAR)
<</SYS>>
SELECT COUNT(matches_played) FROM table_27708484_3 WHERE average_goals_scored_per_match = "1.25"[/INST] how many matches were played that average goals scored 1.25?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_15 (position VARCHAR, round VARCHAR)
<</SYS>>
SELECT position FROM table_name_15 WHERE round = 14[/INST] What position has 14 rounds?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_2409041_2 (original_air_date VARCHAR, no_in_series VARCHAR)
<</SYS>>
SELECT original_air_date FROM table_2409041_2 WHERE no_in_series = 21[/INST] When 21 is the number in series what is the air date?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_28 (leading_scorer VARCHAR, date VARCHAR)
<</SYS>>
SELECT leading_scorer FROM table_name_28 WHERE date = "february 25"[/INST] Who was the leading scorer on the game played on February 25?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_17288825_9 (date VARCHAR, team VARCHAR)
<</SYS>>
SELECT date FROM table_17288825_9 WHERE team = "Memphis"[/INST] On what date did the Rockets play Memphis?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_27721131_2 (game INTEGER, high_rebounds VARCHAR)
<</SYS>>
SELECT MAX(game) FROM table_27721131_2 WHERE high_rebounds = "JaVale McGee (5)"[/INST] What's the maximum game in the javale mcgee (5) high rebounds?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_89 (games_played INTEGER, goals_scored VARCHAR)
<</SYS>>
SELECT SUM(games_played) FROM table_name_89 WHERE goals_scored = "2"[/INST] How many games had 2 goals scored?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_56 (home VARCHAR, date VARCHAR)
<</SYS>>
SELECT home FROM table_name_56 WHERE date = "january 6"[/INST] Who played the home team during the game on January 6?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_76 (rank VARCHAR, height_feet___m VARCHAR)
<</SYS>>
SELECT rank FROM table_name_76 WHERE height_feet___m = "427 / 130"[/INST] What is the rank associated with a Height feet / m of 427 / 130?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_92 (place VARCHAR, date VARCHAR)
<</SYS>>
SELECT place FROM table_name_92 WHERE date = "22 august 2004"[/INST] What is the Place that has a Date of 22 august 2004?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_50 (original_name VARCHAR, location VARCHAR)
<</SYS>>
SELECT original_name FROM table_name_50 WHERE location = "orillia, on"[/INST] What was the original name of the restaurant located in Orillia, ON?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_2668264_22 (first_elected VARCHAR, incumbent VARCHAR)
<</SYS>>
SELECT first_elected FROM table_2668264_22 WHERE incumbent = "Andrew R. Govan"[/INST] What was the first elected year that featured incumbent andrew r. govan?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_1506950_9 (masters VARCHAR, pga_ch VARCHAR)
<</SYS>>
SELECT masters FROM table_1506950_9 WHERE pga_ch = "R16"[/INST] What is the result at the Masters for the player who finished R16 at the PGA Ch.?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_12 (points VARCHAR, laps VARCHAR)
<</SYS>>
SELECT points FROM table_name_12 WHERE laps = 165[/INST] What is the number of points associated with 165 laps?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_30 (crowd INTEGER, venue VARCHAR)
<</SYS>>
SELECT SUM(crowd) FROM table_name_30 WHERE venue = "junction oval"[/INST] How big was the crowd size, at the Junction Oval venue?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_22 (actor VARCHAR, year VARCHAR)
<</SYS>>
SELECT actor FROM table_name_22 WHERE year = "1978"[/INST] What actor won in 1978?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_33 (crowd INTEGER, away_team VARCHAR)
<</SYS>>
SELECT MAX(crowd) FROM table_name_33 WHERE away_team = "geelong"[/INST] What is the highest crowd population when the away team is Geelong?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_10240125_1 (total_goals INTEGER)
<</SYS>>
SELECT MAX(total_goals) FROM table_10240125_1[/INST] What is the highest value of Total Goals?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)
<</SYS>>
SELECT T1.fname, T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')[/INST] Find the first and last name of students who are living in the dorms that have amenity TV Lounge.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_26 (timeslot VARCHAR, air_date VARCHAR)
<</SYS>>
SELECT timeslot FROM table_name_26 WHERE air_date = "april 28, 2009"[/INST] What is the timeslot for the episode that aired April 28, 2009?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_15002177_1 (mixed_doubles VARCHAR, womens_singles VARCHAR)
<</SYS>>
SELECT COUNT(mixed_doubles) FROM table_15002177_1 WHERE womens_singles = "Olga Koseli"[/INST] How many mixed doubles were there in the year that Olga Koseli won the women's singles?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (position VARCHAR, clubid VARCHAR)
<</SYS>>
SELECT COUNT(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = "Bootup Baltimore"[/INST] How many different roles are there in the club "Bootup Baltimore"?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_65 (touchdowns VARCHAR, yds_att VARCHAR, net_yds VARCHAR, long VARCHAR)
<</SYS>>
SELECT COUNT(touchdowns) FROM table_name_65 WHERE net_yds < 4495 AND long < 80 AND yds_att < 5.5[/INST] How many touchdowns did the player with less than 4495 yards, long of less than 80, and yds/att less than 5.5 have?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR)
<</SYS>>
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY COUNT(*) DESC LIMIT 1[/INST] Show the station name with greatest number of trains.</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_43 (score VARCHAR, player VARCHAR)
<</SYS>>
SELECT score FROM table_name_43 WHERE player = "ernie els"[/INST] What is Ernie Els' Score?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE branch (name VARCHAR, membership_amount VARCHAR)
<</SYS>>
SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3[/INST] What are names for top three branches with most number of membership?</s>
|
<s>[INST] <<SYS>>
CREATE TABLE table_name_12 (year INTEGER, movie VARCHAR)
<</SYS>>
SELECT AVG(year) FROM table_name_12 WHERE movie = "thuppakki"[/INST] What was the average year that Thuppakki movies came out?</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.