question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which position did David Nugent play with an overall small than 187?
CREATE TABLE table_name_79 (position VARCHAR, overall VARCHAR, player VARCHAR)
SELECT position FROM table_name_79 WHERE overall > 187 AND player = "david nugent"
Which driver had a grid of 18?
CREATE TABLE table_name_58 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_58 WHERE grid = "18"
Who was the wenning witcher when ezequiel astacio was the losing pitcher?
CREATE TABLE table_13710464_1 (winning_pitcher VARCHAR, losing_pitcher VARCHAR)
SELECT winning_pitcher FROM table_13710464_1 WHERE losing_pitcher = "Ezequiel Astacio"
How many people attended the game that lost 2-4 and the date was higher than 15?
CREATE TABLE table_name_60 (attendance VARCHAR, result VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_60 WHERE result = "lost 2-4" AND date > 15
Which Year has a Match of 63?
CREATE TABLE table_name_82 (year VARCHAR, match VARCHAR)
SELECT year FROM table_name_82 WHERE match = 63
What is the lowest episode number with an original airdate on 8 June 2008?
CREATE TABLE table_name_31 (episode INTEGER, original_airdate VARCHAR)
SELECT MIN(episode) FROM table_name_31 WHERE original_airdate = "8 june 2008"
When Mark O'meara was the senior player champion in a year greater than 1998, who was the tradition?
CREATE TABLE table_name_14 (the_tradition VARCHAR, year VARCHAR, senior_players_championship VARCHAR)
SELECT the_tradition FROM table_name_14 WHERE year > 1998 AND senior_players_championship = "mark o'meara"
Find the ids of the problems that are reported by the staff whose last name is Bosco.
CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_last_name VARCHAR)
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = "Bosco"
What day is essendon the home team?
CREATE TABLE table_name_69 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_69 WHERE home_team = "essendon"
what's the province where member is dingley brittin category:articles with hcards
CREATE TABLE table_1193568_1 (province VARCHAR, member VARCHAR)
SELECT province FROM table_1193568_1 WHERE member = "Dingley Brittin Category:Articles with hCards"
Which Franchise has a Percentage under 0.707, a Year larger than 1931, and the Finish was won 1998 World Series?
CREATE TABLE table_name_29 (franchise VARCHAR, finish VARCHAR, percentage VARCHAR, year VARCHAR)
SELECT franchise FROM table_name_29 WHERE percentage < 0.707 AND year > 1931 AND finish = "won 1998 world series"
What's the season number of the episode directed by Dan Attias?
CREATE TABLE table_13755296_1 (season__number INTEGER, directed_by VARCHAR)
SELECT MIN(season__number) FROM table_13755296_1 WHERE directed_by = "Dan Attias"
Which stadiums have an average attendance of 13840?
CREATE TABLE table_11208143_9 (stadium VARCHAR, average VARCHAR)
SELECT stadium FROM table_11208143_9 WHERE average = 13840
How many Games have Years at club of 1971–1974, and a Debut year larger than 1971?
CREATE TABLE table_name_94 (games INTEGER, years_at_club VARCHAR, debut_year VARCHAR)
SELECT SUM(games) FROM table_name_94 WHERE years_at_club = "1971–1974" AND debut_year > 1971
who is the grand finalist where scores is 8.9 (57) – 7.12 (54)
CREATE TABLE table_1139835_3 (grand_finalist VARCHAR, scores VARCHAR)
SELECT grand_finalist FROM table_1139835_3 WHERE scores = "8.9 (57) – 7.12 (54)"
What word would a Castilian speaker use for the Italian word auto(mobile)?
CREATE TABLE table_name_17 (castilian VARCHAR, italian VARCHAR)
SELECT castilian FROM table_name_17 WHERE italian = "auto(mobile)"
In which colleges is the NFL Team New York Giants and with the position defensive back?
CREATE TABLE table_2508633_11 (college VARCHAR, nfl_team VARCHAR, position VARCHAR)
SELECT college FROM table_2508633_11 WHERE nfl_team = "New York Giants" AND position = "Defensive back"
Which rounds had 32 clubs involved?
CREATE TABLE table_23449363_1 (round VARCHAR, clubs_involved VARCHAR)
SELECT round FROM table_23449363_1 WHERE clubs_involved = 32
what is the stadium for čakovec?
CREATE TABLE table_name_81 (stadium VARCHAR, team VARCHAR)
SELECT stadium FROM table_name_81 WHERE team = "čakovec"
What is the rank with more than 123 points, an audi r8 chassis, and a lmp900 class?
CREATE TABLE table_name_75 (rank VARCHAR, class VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT rank FROM table_name_75 WHERE points > 123 AND chassis = "audi r8" AND class = "lmp900"
Find the name of the instructors who taught C Programming course before.
CREATE TABLE teaches (id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)
SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming'
What is the name of the player with a score of 72-68-70=210?
CREATE TABLE table_name_30 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_30 WHERE score = 72 - 68 - 70 = 210
What is 1966's Qual rating?
CREATE TABLE table_name_55 (qual VARCHAR, year VARCHAR)
SELECT qual FROM table_name_55 WHERE year = "1966"
What place for roger pontare?
CREATE TABLE table_name_62 (place VARCHAR, artist VARCHAR)
SELECT place FROM table_name_62 WHERE artist = "roger pontare"
What is the fewest number of draws with more than 9 losts and more than 16 goals scored?
CREATE TABLE table_name_99 (draw INTEGER, lost VARCHAR, goals_scored VARCHAR)
SELECT MIN(draw) FROM table_name_99 WHERE lost > 9 AND goals_scored > 16
What type of planet has a semimajor axis of 0.07 AU?
CREATE TABLE table_name_51 (planet VARCHAR, semimajor_axis___au__ VARCHAR)
SELECT planet AS Type FROM table_name_51 WHERE semimajor_axis___au__ = 0.07
Show the station name with greatest number of trains.
CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR)
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
Which park had most attendances in 2008?
CREATE TABLE park (park_name VARCHAR, park_id VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR, attendance VARCHAR)
SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1
Name the class A with school year of 2004-05
CREATE TABLE table_name_59 (class_a VARCHAR, school_year VARCHAR)
SELECT class_a FROM table_name_59 WHERE school_year = "2004-05"
How many episodes aired on 22january2009
CREATE TABLE table_17641206_8 (episode VARCHAR, original_airdate VARCHAR)
SELECT COUNT(episode) FROM table_17641206_8 WHERE original_airdate = "22January2009"
Name the wrestlers for days held of 69
CREATE TABLE table_name_58 (wrestlers VARCHAR, days_held VARCHAR)
SELECT wrestlers FROM table_name_58 WHERE days_held = "69"
Name the population density where population % is 1.1% for slovakia
CREATE TABLE table_1606824_1 (pop_density_people_km_2 VARCHAR, population__percentage_of_eu VARCHAR, member_state VARCHAR)
SELECT pop_density_people_km_2 FROM table_1606824_1 WHERE population__percentage_of_eu = "1.1%" AND member_state = "Slovakia"
Who was the away team when bournemouth was the home team?
CREATE TABLE table_name_31 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_31 WHERE home_team = "bournemouth"
What is the total number of top-25 a tournament with less than 2 events has?
CREATE TABLE table_name_93 (top_25 VARCHAR, events INTEGER)
SELECT COUNT(top_25) FROM table_name_93 WHERE events < 2
what is the team with the position in table of 24th and the date of appointment 15 september 2008?
CREATE TABLE table_name_50 (team VARCHAR, position_in_table VARCHAR, date_of_appointment VARCHAR)
SELECT team FROM table_name_50 WHERE position_in_table = "24th" AND date_of_appointment = "15 september 2008"
What is the tournament when 2012 is q2?
CREATE TABLE table_name_64 (tournament VARCHAR)
SELECT tournament FROM table_name_64 WHERE 2012 = "q2"
What was the total Attendance in weeks previous of 5, playing the Seattle Seahawks?
CREATE TABLE table_name_47 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT COUNT(attendance) FROM table_name_47 WHERE week < 5 AND opponent = "seattle seahawks"
Where the number of exports are 6,099.06, what is the total trade?
CREATE TABLE table_26160007_1 (total_trade VARCHAR, exports VARCHAR)
SELECT total_trade FROM table_26160007_1 WHERE exports = "6,099.06"
What is the name of the partner that has a winner outcome and a hard surface?
CREATE TABLE table_28948937_3 (partner VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT partner FROM table_28948937_3 WHERE outcome = "Winner" AND surface = "Hard"
What is the name of each course and the corresponding number of student enrollment?
CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Course_Enrolment (course_id VARCHAR)
SELECT T1.course_name, COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name
Where does the Kuskokwim Mountains rank on the chart?
CREATE TABLE table_name_5 (rank INTEGER, mountain_range VARCHAR)
SELECT MAX(rank) FROM table_name_5 WHERE mountain_range = "kuskokwim mountains"
Name the total number for race caller for bob costas and charlsie cantey
CREATE TABLE table_22514845_2 (race_caller VARCHAR, trophy_presentation VARCHAR)
SELECT COUNT(race_caller) FROM table_22514845_2 WHERE trophy_presentation = "Bob Costas and Charlsie Cantey"
Return the lot details of lots that belong to investors with details "l"?
CREATE TABLE LOTS (lot_details VARCHAR, investor_id VARCHAR); CREATE TABLE INVESTORS (investor_id VARCHAR, Investor_details VARCHAR)
SELECT T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON T1.investor_id = T2.investor_id WHERE T1.Investor_details = "l"
Which manufacturer was used after 1969 with a finish position of 34?
CREATE TABLE table_name_14 (manufacturer VARCHAR, year VARCHAR, finish VARCHAR)
SELECT manufacturer FROM table_name_14 WHERE year > 1969 AND finish = 34
Which Game has a Team of at san antonio, and a Record of 3-3?
CREATE TABLE table_name_86 (game VARCHAR, team VARCHAR, record VARCHAR)
SELECT game FROM table_name_86 WHERE team = "at san antonio" AND record = "3-3"
How many times have Central Crossing won the OCC Championship?
CREATE TABLE table_name_96 (occ_championships INTEGER, school VARCHAR)
SELECT SUM(occ_championships) FROM table_name_96 WHERE school = "central crossing"
Who got the pole position if the supporting is USAC National Midget Series?
CREATE TABLE table_25459168_2 (pole_position VARCHAR, supporting VARCHAR)
SELECT pole_position FROM table_25459168_2 WHERE supporting = "USAC National Midget Series"
How many times is keauna mclaughlin / rockne brubaker ranked?
CREATE TABLE table_23938357_6 (rank VARCHAR, name VARCHAR)
SELECT COUNT(rank) FROM table_23938357_6 WHERE name = "Keauna McLaughlin / Rockne Brubaker"
What is Bev Risman's Cross Code Debut?
CREATE TABLE table_name_68 (cross_code_debut VARCHAR, player VARCHAR)
SELECT cross_code_debut FROM table_name_68 WHERE player = "bev risman"
what is the arabic capital name where the english capital name is beirut?
CREATE TABLE table_15694696_1 (arabic_capital_name VARCHAR, english_capital_name VARCHAR)
SELECT arabic_capital_name FROM table_15694696_1 WHERE english_capital_name = "Beirut"
What is the percentage of literate people where india is andaman and Nicobar Islands?
CREATE TABLE table_14598_9 (literate_persons___percentage_ VARCHAR, india_state_ut VARCHAR)
SELECT literate_persons___percentage_ FROM table_14598_9 WHERE india_state_ut = "Andaman and Nicobar Islands"
What was the regular season from year 2012?
CREATE TABLE table_15409403_1 (regular_season VARCHAR, year VARCHAR)
SELECT regular_season FROM table_15409403_1 WHERE year = 2012
What is the name of the player with the High rebounds when there was a Score of l 108–114 (ot)?
CREATE TABLE table_name_25 (high_rebounds VARCHAR, score VARCHAR)
SELECT high_rebounds FROM table_name_25 WHERE score = "l 108–114 (ot)"
What is the cross-code debut later than 1958 for Dick Thornett?
CREATE TABLE table_name_87 (cross_code_debut VARCHAR, year VARCHAR, player VARCHAR)
SELECT cross_code_debut FROM table_name_87 WHERE year > 1958 AND player = "dick thornett"
In which location did he win the Superbrawl 16 event?
CREATE TABLE table_name_57 (location VARCHAR, res VARCHAR, event VARCHAR)
SELECT location FROM table_name_57 WHERE res = "win" AND event = "superbrawl 16"
Score of 6–4, and a Opponent of @ marlins had what record?
CREATE TABLE table_name_96 (record VARCHAR, score VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_96 WHERE score = "6–4" AND opponent = "@ marlins"
What is the hd designation for arrival date of February 2070?
CREATE TABLE table_1820752_1 (hd_designation VARCHAR, arrival_date VARCHAR)
SELECT COUNT(hd_designation) FROM table_1820752_1 WHERE arrival_date = "February 2070"
What is the discipline for the summer Olympics in 2008?
CREATE TABLE table_name_68 (discipline VARCHAR, tournament VARCHAR, year VARCHAR)
SELECT discipline FROM table_name_68 WHERE tournament = "summer olympics" AND year = 2008
what type over school is Clemson?
CREATE TABLE table_28744929_1 (school_type VARCHAR, institution VARCHAR)
SELECT school_type FROM table_28744929_1 WHERE institution = "Clemson"
What is the surface of the score, 7–6 (7–3) , 6–3?
CREATE TABLE table_name_40 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_40 WHERE score = "7–6 (7–3) , 6–3"
What is the Score of the Scarborough Home game?
CREATE TABLE table_name_72 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_72 WHERE home_team = "scarborough"
Which Giant Slalom has a Slalom of 45?
CREATE TABLE table_name_26 (Giant VARCHAR, slalom VARCHAR)
SELECT Giant AS slalom FROM table_name_26 WHERE slalom = "45"
When toronto blue jays are the mlb team who are the fscl team?
CREATE TABLE table_18373863_2 (fcsl_team VARCHAR, mlb_team VARCHAR)
SELECT fcsl_team FROM table_18373863_2 WHERE mlb_team = "Toronto Blue Jays"
What is the fewest bronzes for ranks of 3 with totals under 2?
CREATE TABLE table_name_58 (bronze INTEGER, rank VARCHAR, total VARCHAR)
SELECT MIN(bronze) FROM table_name_58 WHERE rank = "3" AND total < 2
What home team plays at princes park?
CREATE TABLE table_name_81 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_81 WHERE venue = "princes park"
What is Fitzroy's Home team Crowd?
CREATE TABLE table_name_90 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(crowd) FROM table_name_90 WHERE home_team = "fitzroy"
What kind of decor has the least number of reservations?
CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (decor VARCHAR, RoomId VARCHAR)
SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T2.decor ORDER BY COUNT(T2.decor) LIMIT 1
What is the smallest number of events with 24 cuts and less than 11 in the top-25?
CREATE TABLE table_name_34 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR)
SELECT MIN(events) FROM table_name_34 WHERE cuts_made = 24 AND top_25 < 11
What is 2004, when 2010 is "Grand Slam Tournaments"?
CREATE TABLE table_name_81 (Id VARCHAR)
SELECT 2004 FROM table_name_81 WHERE 2010 = "grand slam tournaments"
What is the date with identifying number of No. 37817?
CREATE TABLE table_name_86 (date VARCHAR, number_ VARCHAR, _name VARCHAR)
SELECT date FROM table_name_86 WHERE number_ & _name = "no. 37817"
What race did the team Mi-Jack Conquest racing win with a pole position of andreas wirth?
CREATE TABLE table_name_16 (race_name VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
SELECT race_name FROM table_name_16 WHERE winning_team = "mi-jack conquest racing" AND pole_position = "andreas wirth"
What date is week 3?
CREATE TABLE table_name_77 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_77 WHERE week = 3
Which team received 4 in race 1?
CREATE TABLE table_name_68 (team VARCHAR, race_1 VARCHAR)
SELECT team FROM table_name_68 WHERE race_1 = "4"
What draft pick number was the player with the position DL?
CREATE TABLE table_25085059_3 (pick__number VARCHAR, position VARCHAR)
SELECT pick__number FROM table_25085059_3 WHERE position = "DL"
What state had the name of wu for the royal house of ji?
CREATE TABLE table_name_21 (state VARCHAR, royal_house VARCHAR, name VARCHAR)
SELECT state FROM table_name_21 WHERE royal_house = "ji" AND name = "wu"
Whose term started on 4 May 2006?
CREATE TABLE table_name_35 (minister VARCHAR, term_start VARCHAR)
SELECT minister FROM table_name_35 WHERE term_start = "4 may 2006"
How many points against have a lose of 13?
CREATE TABLE table_17510803_2 (points_against VARCHAR, lost VARCHAR)
SELECT points_against FROM table_17510803_2 WHERE lost = "13"
What is the total number of Std SAPs with 0-11 Opt SAPS?
CREATE TABLE table_name_55 (std_saps VARCHAR, opt_saps VARCHAR)
SELECT COUNT(std_saps) FROM table_name_55 WHERE opt_saps = "0-11"
What was the score for the away team when they played collingwood?
CREATE TABLE table_name_57 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_57 WHERE home_team = "collingwood"
Which team is number 14 and had a franchise in 1993-2000?
CREATE TABLE table_name_38 (team VARCHAR, number VARCHAR, years_with_franchise VARCHAR)
SELECT team FROM table_name_38 WHERE number = 14 AND years_with_franchise = "1993-2000"
How many Red Breasted Nuthatch coins created before 2007 were minted, on average?
CREATE TABLE table_name_42 (mintage INTEGER, animal VARCHAR, year VARCHAR)
SELECT AVG(mintage) FROM table_name_42 WHERE animal = "red breasted nuthatch" AND year < 2007
Name the score with opponent of milos raonic
CREATE TABLE table_name_82 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_82 WHERE opponent = "milos raonic"
List Aerosmith's albums.
CREATE TABLE artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, artist_id VARCHAR)
SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Aerosmith"
For the team that had 4:05.096, what was their day 2?
CREATE TABLE table_name_23 (day_2 VARCHAR, day_1 VARCHAR)
SELECT day_2 FROM table_name_23 WHERE day_1 = "4:05.096"
Who was the episode writer when the viewers reached 3.03 million in the US?
CREATE TABLE table_17861265_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT written_by FROM table_17861265_1 WHERE us_viewers__million_ = "3.03"
What's the release date of the processor with 2.8 ghz of frequency?
CREATE TABLE table_name_77 (release_date VARCHAR, frequency VARCHAR)
SELECT release_date FROM table_name_77 WHERE frequency = "2.8 ghz"
Which level has grandmaster flash as artist 1?
CREATE TABLE table_23649244_1 (level VARCHAR, artist_1 VARCHAR)
SELECT level FROM table_23649244_1 WHERE artist_1 = "Grandmaster Flash"
Tell me the payload that has an In service for 2011
CREATE TABLE table_name_99 (payload__kg_ VARCHAR, in_service VARCHAR)
SELECT payload__kg_ FROM table_name_99 WHERE in_service = "2011"
For what year is the type of record 'total attendance-regular season?
CREATE TABLE table_21436373_5 (date_year VARCHAR, type_of_record VARCHAR)
SELECT date_year FROM table_21436373_5 WHERE type_of_record = "Total attendance-Regular season"
Which class had a machine of RS125R, points over 113, and a rank of 4th?
CREATE TABLE table_name_30 (class VARCHAR, rank VARCHAR, machine VARCHAR, points VARCHAR)
SELECT class FROM table_name_30 WHERE machine = "rs125r" AND points > 113 AND rank = "4th"
What's the total of Games with a Lost that's larger than 2, and has Points that's smaller than 0?
CREATE TABLE table_name_75 (games INTEGER, lost VARCHAR, points VARCHAR)
SELECT SUM(games) FROM table_name_75 WHERE lost > 2 AND points < 0
Old Scotch had less than 9 losses and how much against?
CREATE TABLE table_name_70 (against INTEGER, losses VARCHAR, ntfa_div_2 VARCHAR)
SELECT SUM(against) FROM table_name_70 WHERE losses < 9 AND ntfa_div_2 = "old scotch"
Name the 2 car sets for 622
CREATE TABLE table_19255192_2 (total_vehicles VARCHAR)
SELECT 2 AS _car_sets FROM table_19255192_2 WHERE total_vehicles = 622
What was the score when the opponent was irena pavlovic and the surface was hard?
CREATE TABLE table_name_94 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_94 WHERE surface = "hard" AND opponent_in_the_final = "irena pavlovic"
What is the 2007 film in Hindi with a music director Shantanu moitra?
CREATE TABLE table_name_2 (film VARCHAR, music_director VARCHAR, year VARCHAR, language VARCHAR)
SELECT film FROM table_name_2 WHERE year = 2007 AND language = "hindi" AND music_director = "shantanu moitra"
Find the titles of all movies that have no ratings.
CREATE TABLE Rating (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)
SELECT title FROM Movie WHERE NOT mID IN (SELECT mID FROM Rating)
When galaxy angel aa is the title what was the series?
CREATE TABLE table_1714685_1 (series VARCHAR, title VARCHAR)
SELECT series FROM table_1714685_1 WHERE title = "Galaxy Angel AA"
How many wins does the club with 565 points for have?
CREATE TABLE table_1676073_13 (won VARCHAR, points_for VARCHAR)
SELECT won FROM table_1676073_13 WHERE points_for = "565"
Find the types and details for all premises and order by the premise type.
CREATE TABLE premises (premises_type VARCHAR, premise_details VARCHAR)
SELECT premises_type, premise_details FROM premises ORDER BY premises_type
What is the customer last name, id and phone number with most number of orders?
CREATE TABLE Orders (customer_id VARCHAR); CREATE TABLE Customers (customer_last_name VARCHAR, phone_number VARCHAR, customer_id VARCHAR)
SELECT T2.customer_last_name, T1.customer_id, T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1