answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(points) FROM table_name_91 WHERE drawn < 2 AND name = "esc holzkirchen" AND played < 14
Which Points is the highest one that has a Drawn smaller than 2, and a Name of esc holzkirchen, and Played smaller than 14?
CREATE TABLE table_name_91 (points INTEGER, played VARCHAR, drawn VARCHAR, name VARCHAR)
SELECT COUNT(premiere) FROM table_11926114_1 WHERE english_title = "Survivor's Law II"
How many premier episodes were there with the title survivor's law ii?
CREATE TABLE table_11926114_1 (premiere VARCHAR, english_title VARCHAR)
SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3
Find the names and number of works of the three artists who have produced the most songs.
CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR)
SELECT COUNT(to_par) FROM table_name_49 WHERE score = 76 - 71 - 78 - 67 = 292
What was the to par score in the match that had a score of 76-71-78-67=292?
CREATE TABLE table_name_49 (to_par VARCHAR, score VARCHAR)
SELECT high_assists FROM table_name_94 WHERE game = 1
What was the number of high assists for game 1?
CREATE TABLE table_name_94 (high_assists VARCHAR, game VARCHAR)
SELECT COUNT(section) FROM table_29697744_1 WHERE season = "2008"
how many sections are for the season of 2008
CREATE TABLE table_29697744_1 (section VARCHAR, season VARCHAR)
SELECT SUM(losses) FROM table_name_35 WHERE ballarat_fl = "melton" AND draws < 0
What is the total number of Losses that Melton had when they had fewer Draws than 0?
CREATE TABLE table_name_35 (losses INTEGER, ballarat_fl VARCHAR, draws VARCHAR)
SELECT COUNT(dates__mdy_) FROM table_16331025_2 WHERE position = 9 AND sellout___percentage_ = "81%"
Who many dates are in position 9 and the sellout is 81%?
CREATE TABLE table_16331025_2 (dates__mdy_ VARCHAR, position VARCHAR, sellout___percentage_ VARCHAR)
SELECT SUM(scored) FROM table_name_75 WHERE losses < 0
How much Scored has Losses smaller than 0?
CREATE TABLE table_name_75 (scored INTEGER, losses INTEGER)
SELECT MAX(cuts_made) FROM table_name_26 WHERE top_25 < 3
Which Cuts made has a Top-25 smaller than 3?
CREATE TABLE table_name_26 (cuts_made INTEGER, top_25 INTEGER)
SELECT MIN(sex_ratio__rural_) FROM table_10710364_2
What is the lowest sex ratio in rural areas?
CREATE TABLE table_10710364_2 (sex_ratio__rural_ INTEGER)
SELECT AVG(wins) FROM table_name_91 WHERE rank > 5
What's the mean number of wins with a rank that's more than 5?
CREATE TABLE table_name_91 (wins INTEGER, rank INTEGER)
SELECT date FROM table_name_48 WHERE score = "2–2" AND away_team = "aylesbury united"
Which Date has a Score of 2–2, and an Away team of aylesbury united?
CREATE TABLE table_name_48 (date VARCHAR, score VARCHAR, away_team VARCHAR)
SELECT type FROM table_name_25 WHERE cc_license = "by-nc-sa 2.5"
What different types are there with a CC License of by-nc-sa 2.5?
CREATE TABLE table_name_25 (type VARCHAR, cc_license VARCHAR)
SELECT record FROM table_name_69 WHERE leading_scorer = "lebron james (16)"
What's the record of the game where Lebron James (16) was the leading scorer?
CREATE TABLE table_name_69 (record VARCHAR, leading_scorer VARCHAR)
SELECT date FROM table_name_48 WHERE novick = "26%"
Which Date has a Novick of 26%?
CREATE TABLE table_name_48 (date VARCHAR, novick VARCHAR)
SELECT MIN(total) FROM table_name_72 WHERE data_processing_and_exploitation = "00 0,228" AND management_and_support > 1 OFFSET 7
What is the lowest total data processing and exploitation of 00 0,228, and a management and support larger than 1,7?
CREATE TABLE table_name_72 (total INTEGER, data_processing_and_exploitation VARCHAR, management_and_support VARCHAR)
SELECT position FROM table_name_61 WHERE country = "canada" AND pick = "8"
What position was picked for Canada on Pick 8?
CREATE TABLE table_name_61 (position VARCHAR, country VARCHAR, pick VARCHAR)
SELECT number FROM table_16654785_2 WHERE kilometer = 233
How many have a kilometers of 233?
CREATE TABLE table_16654785_2 (number VARCHAR, kilometer VARCHAR)
SELECT COUNT(winners) AS Prize FROM table_2715355_1 WHERE entrants = 696
How many prizes were available in the competition where 696 people entered?
CREATE TABLE table_2715355_1 (winners VARCHAR, entrants VARCHAR)
SELECT MAX(year_introduced) FROM table_name_26 WHERE memory__gb_ = "0.125–2"
Which Year Introduced has a Memory (GB) of 0.125–2?
CREATE TABLE table_name_26 (year_introduced INTEGER, memory__gb_ VARCHAR)
SELECT race_4 FROM table_name_76 WHERE race_1 = "dsq"
What's the value for race 4 when race 1 is dsq?
CREATE TABLE table_name_76 (race_4 VARCHAR, race_1 VARCHAR)
SELECT T1.country, T1.name, COUNT(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country, T1.name
For each country and airline name, how many routes are there?
CREATE TABLE airlines (country VARCHAR, name VARCHAR, alid VARCHAR); CREATE TABLE routes (alid VARCHAR)
SELECT college FROM table_28059992_6 WHERE cfl_team = "Calgary"
What college did the player who was drafted by Calgary go to?
CREATE TABLE table_28059992_6 (college VARCHAR, cfl_team VARCHAR)
SELECT record FROM table_name_68 WHERE game = 50
What was the Record on Game 50?
CREATE TABLE table_name_68 (record VARCHAR, game VARCHAR)
SELECT date_of_successors_formal_installation FROM table_2417330_3 WHERE state__class_ = "Missouri (3)"
List all dates of succession in the state class Missouri (3).
CREATE TABLE table_2417330_3 (date_of_successors_formal_installation VARCHAR, state__class_ VARCHAR)
SELECT team FROM table_name_77 WHERE date_of_vacancy = "9 december 2008"
What team replaced their manager on 9 December 2008?
CREATE TABLE table_name_77 (team VARCHAR, date_of_vacancy VARCHAR)
SELECT game_site FROM table_name_1 WHERE date = "october 18, 1992"
Name the game site for october 18, 1992
CREATE TABLE table_name_1 (game_site VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_64 WHERE date = "november 4, 1973"
What was November 4, 1973 attendance?
CREATE TABLE table_name_64 (attendance VARCHAR, date VARCHAR)
SELECT winner FROM table_name_43 WHERE year < 1956 AND date = "october 21"
Who was the winning team before 1956 on October 21?
CREATE TABLE table_name_43 (winner VARCHAR, year VARCHAR, date VARCHAR)
SELECT campus FROM table_name_79 WHERE year_opened = "1977"
What campus was opened in 1977?
CREATE TABLE table_name_79 (campus VARCHAR, year_opened VARCHAR)
SELECT school FROM table_name_35 WHERE enrollment > 441 AND mascot = "chargers"
What's the school that has an enrollment more than 441 with chargers as their mascot?
CREATE TABLE table_name_35 (school VARCHAR, enrollment VARCHAR, mascot VARCHAR)
SELECT period FROM table_name_13 WHERE built = "354"
In what time period were 354 built?
CREATE TABLE table_name_13 (period VARCHAR, built VARCHAR)
SELECT start FROM table_name_55 WHERE qual = "207.590"
Which Start has a Qual of 207.590?
CREATE TABLE table_name_55 (start VARCHAR, qual VARCHAR)
SELECT MAX(opened) FROM table_name_76 WHERE themed_area = "aerial park" AND manufacturer = "zamperla"
Which Opened is the highest one that has a Themed Area of aerial park, and a Manufacturer of zamperla?
CREATE TABLE table_name_76 (opened INTEGER, themed_area VARCHAR, manufacturer VARCHAR)
SELECT home_team FROM table_name_48 WHERE date = "april 13, 2008" AND away_team = "itabuna"
What is the name of the home team on April 13, 2008 when Itabuna was the away team?
CREATE TABLE table_name_48 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT total FROM table_name_72 WHERE rank_points = "olympic gold medalist"
That's the total for rank points of olympic gold medalist?
CREATE TABLE table_name_72 (total VARCHAR, rank_points VARCHAR)
SELECT candidates FROM table_2668420_12 WHERE first_elected = 1791
Who was the candidate in 1791?
CREATE TABLE table_2668420_12 (candidates VARCHAR, first_elected VARCHAR)
SELECT pts FROM table_name_6 WHERE year = "2004" AND event = "ro"
What is the pts for 2004, and the ro event?
CREATE TABLE table_name_6 (pts VARCHAR, year VARCHAR, event VARCHAR)
SELECT tries_for FROM table_name_35 WHERE tries_against = "38"
Name the tries with tries against of 38
CREATE TABLE table_name_35 (tries_for VARCHAR, tries_against VARCHAR)
SELECT umpires FROM table_13514348_7 WHERE simpson_medal = "Paul Medhurst (C)"
Who were the umpires when Paul Medhurst (C) won the Simpson Medal?
CREATE TABLE table_13514348_7 (umpires VARCHAR, simpson_medal VARCHAR)
SELECT 1995 FROM table_name_74 WHERE 1996 = "grand slams"
What shows for 1995 when 1996 shows grand slams?
CREATE TABLE table_name_74 (Id VARCHAR)
SELECT interview_subject FROM table_1566850_8 WHERE date = "1-97"
Who was the interview subject on the date 1-97?
CREATE TABLE table_1566850_8 (interview_subject VARCHAR, date VARCHAR)
SELECT group_c FROM table_name_53 WHERE group_b = "illinois"
What is the group C region with Illinois as group B?
CREATE TABLE table_name_53 (group_c VARCHAR, group_b VARCHAR)
SELECT points_for FROM table_name_59 WHERE club = "castres"
How many points did the Castres have?
CREATE TABLE table_name_59 (points_for VARCHAR, club VARCHAR)
SELECT MIN(game) FROM table_name_99 WHERE nuggets_points = 89
Which Game has a Nugget points of 89?
CREATE TABLE table_name_99 (game INTEGER, nuggets_points VARCHAR)
SELECT language FROM table_name_50 WHERE television_service = "cartello promozionale sky hd"
What is the language of the television service cartello promozionale sky hd?
CREATE TABLE table_name_50 (language VARCHAR, television_service VARCHAR)
SELECT status FROM table_name_40 WHERE name = "cathayopterus"
What is the status of the pterosaur named Cathayopterus?
CREATE TABLE table_name_40 (status VARCHAR, name VARCHAR)
SELECT city FROM table_name_26 WHERE year_joined > 1963 AND conference_joined = "independents"
What city joined the Independents conference after 1963?
CREATE TABLE table_name_26 (city VARCHAR, year_joined VARCHAR, conference_joined VARCHAR)
SELECT name FROM table_20668268_1 WHERE owner = "David Johnson"
What was the name of the entrant with an owner named David Johnson?
CREATE TABLE table_20668268_1 (name VARCHAR, owner VARCHAR)
SELECT COUNT(total_medals) FROM table_name_42 WHERE ensemble = "james logan high school" AND silver_medals < 1
What was the total number of medals received by James Logan High School when it received less than 1 silver medal?
CREATE TABLE table_name_42 (total_medals VARCHAR, ensemble VARCHAR, silver_medals VARCHAR)
SELECT date FROM table_11621915_1 WHERE tournament = "Ford Senior Players Championship"
what's the date with tournament value of ford senior players championship
CREATE TABLE table_11621915_1 (date VARCHAR, tournament VARCHAR)
SELECT displacement FROM table_name_16 WHERE torque = "n·m (lb·ft) @ 3000 rpm"
What was the displacement having a torque of n·m (lb·ft) @ 3000 rpm?
CREATE TABLE table_name_16 (displacement VARCHAR, torque VARCHAR)
SELECT player FROM table_25085059_1 WHERE pick__number = 1
What player was the number 1 draft pick?
CREATE TABLE table_25085059_1 (player VARCHAR, pick__number VARCHAR)
SELECT MAX(year) FROM table_name_4 WHERE credit = "piano"
What is the most recent year for an album listed with a piano credited?
CREATE TABLE table_name_4 (year INTEGER, credit VARCHAR)
SELECT runs FROM table_name_15 WHERE player = "b lee"
Tell me the runs for b lee
CREATE TABLE table_name_15 (runs VARCHAR, player VARCHAR)
SELECT clublocation FROM club WHERE clubname = "Hopkins Student Enterprises"
Where is the club "Hopkins Student Enterprises" located?
CREATE TABLE club (clublocation VARCHAR, clubname VARCHAR)
SELECT superlative FROM table_name_23 WHERE record_set = "12 nominations"
What Superlative had a record set of 12 nominations?
CREATE TABLE table_name_23 (superlative VARCHAR, record_set VARCHAR)
SELECT nominated_work FROM table_name_67 WHERE category = "best performance by a leading actress in a play" AND year < 2007
Which nominated work is in the category of best performance by a leading actress in a play earlier than 2007?
CREATE TABLE table_name_67 (nominated_work VARCHAR, category VARCHAR, year VARCHAR)
SELECT state FROM table_16268026_3 WHERE semifinal_average = "8.538 (8)"
What state has a semifinal average of 8.538 (8) ?
CREATE TABLE table_16268026_3 (state VARCHAR, semifinal_average VARCHAR)
SELECT sanskrit_word FROM table_180802_3 WHERE transcription = "wan athit"
What is the sanskrit word if the transcription is wan athit?
CREATE TABLE table_180802_3 (sanskrit_word VARCHAR, transcription VARCHAR)
SELECT language FROM table_name_87 WHERE translator = "ritah meltser and amatsyah porat"
What is the language for translators ritah meltser and amatsyah porat?
CREATE TABLE table_name_87 (language VARCHAR, translator VARCHAR)
SELECT arranger FROM table_name_19 WHERE composer = "imad shams eldeen" AND length = "4:03"
Which arranger worked with composer Imad Shams Eldeen at 4:03?
CREATE TABLE table_name_19 (arranger VARCHAR, composer VARCHAR, length VARCHAR)
SELECT total_points FROM table_14948647_1 WHERE oberstdorf__rk_ = "252.6 (11)"
How many points in total were scored by the player whose Oberstdork score and rank were 252.6 (11)?
CREATE TABLE table_14948647_1 (total_points VARCHAR, oberstdorf__rk_ VARCHAR)
SELECT location___state FROM table_name_59 WHERE circuit = "phillip island grand prix circuit"
What location and state has a circuit of Phillip Island Grand Prix Circuit?
CREATE TABLE table_name_59 (location___state VARCHAR, circuit VARCHAR)
SELECT place_of_birth FROM table_name_51 WHERE elevator = "alexander iii" AND elector = "ruggiero di san severino"
What's the Place of birth listed that has an Elevator of ALexander III, and an Elector of Ruggiero Di San Severino?
CREATE TABLE table_name_51 (place_of_birth VARCHAR, elevator VARCHAR, elector VARCHAR)
SELECT COUNT(number_built) FROM table_name_45 WHERE chassis_code = "w108.057"
What's the total number built with a chassis code of w108.057?
CREATE TABLE table_name_45 (number_built VARCHAR, chassis_code VARCHAR)
SELECT location FROM table_14884844_2 WHERE record = "1:37.071s"
In what location was the fastest time 1:37.071s?
CREATE TABLE table_14884844_2 (location VARCHAR, record VARCHAR)
SELECT original_south_korean_performer FROM table_22460085_1 WHERE original_manchester_performer = "Adebayo Bolaji"
Who was the origianal south korean performer when Adebayo Bolaji performed in Manchester?
CREATE TABLE table_22460085_1 (original_south_korean_performer VARCHAR, original_manchester_performer VARCHAR)
SELECT winning_driver FROM table_name_18 WHERE winning_constructor = "mercer"
What kind of Winning driver has a Winning constructor of mercer?
CREATE TABLE table_name_18 (winning_driver VARCHAR, winning_constructor VARCHAR)
SELECT COUNT(round2) FROM table_16815824_1 WHERE team = "team Toshiba"
What is the score for round 2 for team Toshiba?
CREATE TABLE table_16815824_1 (round2 VARCHAR, team VARCHAR)
SELECT to_par FROM table_name_5 WHERE player = "tiger woods"
What is Tiger Woods' to par?
CREATE TABLE table_name_5 (to_par VARCHAR, player VARCHAR)
SELECT tries_for FROM table_12807904_3 WHERE drawn = "3"
HOW MANY GAMES WERE TIED AT 3?
CREATE TABLE table_12807904_3 (tries_for VARCHAR, drawn VARCHAR)
SELECT MIN(before) FROM table_24108789_4
What is the earliest number in before?
CREATE TABLE table_24108789_4 (before INTEGER)
SELECT COUNT(*) 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.fname = "Tracy" AND t3.lname = "Kim"
Find the number of clubs where "Tracy Kim" is a member.
CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR)
SELECT COUNT(attendance) FROM table_name_2 WHERE opponent = "middlesbrough" AND result = "3-1"
What is the number of attendance values for ties having an opponent of Middlesbrough and result of 3-1?
CREATE TABLE table_name_2 (attendance VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT record FROM table_23916539_3 WHERE location = "Clarke Stadium"
What is the record if the location is Clarke Stadium?
CREATE TABLE table_23916539_3 (record VARCHAR, location VARCHAR)
SELECT accolade FROM table_name_76 WHERE year < 2002 AND publication = "rolling stone" AND rank = 48
What is Accolade, when Year is less than 2002, when Publication is "Rolling Stone", and when Rank is "48"?
CREATE TABLE table_name_76 (accolade VARCHAR, rank VARCHAR, year VARCHAR, publication VARCHAR)
SELECT points FROM table_name_90 WHERE year = 2005
How many points did the 2005 1st place team receive?
CREATE TABLE table_name_90 (points VARCHAR, year VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_78 WHERE player = "jamie butt"
What college did Jamie Butt go to?
CREATE TABLE table_name_78 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT MIN(races) FROM table_name_14 WHERE tc = "3rd" AND dc = "7th"
Which Races has a T.C. of 3rd, and a D.C. of 7th?
CREATE TABLE table_name_14 (races INTEGER, tc VARCHAR, dc VARCHAR)
SELECT AVG(draws) FROM table_name_63 WHERE wins < 9 AND club = "warrnambool"
Club warrnambool has less than 9 wins and what average of draws?
CREATE TABLE table_name_63 (draws INTEGER, wins VARCHAR, club VARCHAR)
SELECT home_team FROM table_name_71 WHERE crowd > 13 OFFSET 557
Who was the home team when the crowd was larger than 13,557?
CREATE TABLE table_name_71 (home_team VARCHAR, crowd INTEGER)
SELECT nickname FROM table_name_64 WHERE gender = "boy" AND weight_at_birth = "810g (26.0 oz.)"
What is the nickname of the boy who weighed 810g (26.0 oz.) at birth?
CREATE TABLE table_name_64 (nickname VARCHAR, gender VARCHAR, weight_at_birth VARCHAR)
SELECT MIN(blocks) FROM table_19722233_5
what is the lowest number of blocks
CREATE TABLE table_19722233_5 (blocks INTEGER)
SELECT COUNT(title) FROM table_27115960_1 WHERE us_viewers__million_ = "7.56"
Title is the total number where u.s. viewers (million) is 7.56.
CREATE TABLE table_27115960_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT centerfold_model FROM table_name_56 WHERE cover_model = "julie lynn cialini"
Who was the Centerfold Model when the Cover Model was Julie Lynn Cialini?
CREATE TABLE table_name_56 (centerfold_model VARCHAR, cover_model VARCHAR)
SELECT COUNT(result) FROM table_1342149_6 WHERE district = "California 29"
How many results does the California 29 voting district have?
CREATE TABLE table_1342149_6 (result VARCHAR, district VARCHAR)
SELECT municipality FROM table_157826_1 WHERE population = 24421
Which municipality has a population of 24421?
CREATE TABLE table_157826_1 (municipality VARCHAR, population VARCHAR)
SELECT nationality FROM table_1965650_4 WHERE college_junior_club_team = "Edmonton Oil Kings (WCHL)"
What's the nationality of the player coming from Edmonton Oil Kings (WCHL)?
CREATE TABLE table_1965650_4 (nationality VARCHAR, college_junior_club_team VARCHAR)
SELECT studio_analysts FROM table_14902507_2 WHERE year = "2008-09"
Who are the studio analysts for the year 2008-09?
CREATE TABLE table_14902507_2 (studio_analysts VARCHAR, year VARCHAR)
SELECT home_team FROM table_name_22 WHERE venue = "vfl park"
Who was the home team at VFL Park?
CREATE TABLE table_name_22 (home_team VARCHAR, venue VARCHAR)
SELECT position FROM table_16494599_1 WHERE years_for_grizzlies = "1995-1996"
What position is the player who was on the Grizzlies from 1995-1996?
CREATE TABLE table_16494599_1 (position VARCHAR, years_for_grizzlies VARCHAR)
SELECT AVG(elevation), country FROM airports GROUP BY country
Find the average elevation of all airports for each country.
CREATE TABLE airports (country VARCHAR, elevation INTEGER)
SELECT home FROM table_name_79 WHERE leading_scorer = "dajuan wagner (25)" AND score = "89–82"
Which Home has a Leading scorer of dajuan wagner (25) and a Score of 89–82? Question 3
CREATE TABLE table_name_79 (home VARCHAR, leading_scorer VARCHAR, score VARCHAR)
SELECT team FROM table_29398373_2 WHERE head_coach = "Javier Clemente"
Name the team for javier clemente
CREATE TABLE table_29398373_2 (team VARCHAR, head_coach VARCHAR)
SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000
Show the names of editors that are on the committee of journals with sales bigger than 3000.
CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Journal_ID VARCHAR, Sales INTEGER)
SELECT COUNT(research_funding__) AS £, 000 AS _ FROM table_142950_1 WHERE gained_university_status = 1900
How many members gained university status in 1900?
CREATE TABLE table_142950_1 (research_funding__ VARCHAR, gained_university_status VARCHAR)
SELECT date FROM table_name_42 WHERE works_number < 1673 AND number < 3
Name the date with works number less than 1673 and number less than 3
CREATE TABLE table_name_42 (date VARCHAR, works_number VARCHAR, number VARCHAR)
SELECT county FROM table_name_33 WHERE name = "canyon padre bridge"
In what county is the Canyon Padre Bridge?
CREATE TABLE table_name_33 (county VARCHAR, name VARCHAR)