question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What season has 36 pld, a bbl div, and 6th position?
CREATE TABLE table_name_87 (season VARCHAR, pos VARCHAR, pld VARCHAR, div VARCHAR)
SELECT season FROM table_name_87 WHERE pld = "36" AND div = "bbl" AND pos = "6th"
What was the founding university of the organization Tau Epsilon Phi 1?
CREATE TABLE table_2538117_5 (founding_university VARCHAR, organization VARCHAR)
SELECT founding_university FROM table_2538117_5 WHERE organization = "Tau Epsilon Phi 1"
which Player has a To par of –7, and a Country of spain?
CREATE TABLE table_name_67 (player VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT player FROM table_name_67 WHERE to_par = "–7" AND country = "spain"
What is the distance (in meters) when the shuttle time is 6.86 seconds?
CREATE TABLE table_1751142_2 (distance__m_ INTEGER, shuttle_time__seconds_ VARCHAR)
SELECT MIN(distance__m_) FROM table_1751142_2 WHERE shuttle_time__seconds_ = "6.86"
What is the name of the team with a rank smaller than 5 and a time of 1:37.58.38?
CREATE TABLE table_name_10 (team VARCHAR, rank VARCHAR, time VARCHAR)
SELECT team FROM table_name_10 WHERE rank < 5 AND time = "1:37.58.38"
What kind of Altadeña has del Pueblo of maroon/gray?
CREATE TABLE table_name_45 (altadeña VARCHAR, del_pueblo VARCHAR)
SELECT altadeña FROM table_name_45 WHERE del_pueblo = "maroon/gray"
what is the constellation when the Right ascension ( J2000 ) is 10h18m58.4s?
CREATE TABLE table_name_10 (constellation VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT constellation FROM table_name_10 WHERE right_ascension___j2000__ = "10h18m58.4s"
Who is the rider with less than 15 laps, more than 32 grids, and an accident time/retired?
CREATE TABLE table_name_44 (rider VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT rider FROM table_name_44 WHERE laps < 15 AND grid > 32 AND time_retired = "accident"
Which country did Johanna Klum presented the show?
CREATE TABLE table_24598274_20 (country VARCHAR, presenter_s_ VARCHAR)
SELECT country FROM table_24598274_20 WHERE presenter_s_ = "Johanna Klum"
what is the highest number of games played when there was 2 losses, percentage was 0.00% and more than 0 draws?
CREATE TABLE table_name_2 (played INTEGER, drawn VARCHAR, lost VARCHAR, percentage VARCHAR)
SELECT MAX(played) FROM table_name_2 WHERE lost = 2 AND percentage = "0.00%" AND drawn > 0
Who plays linebacker?
CREATE TABLE table_name_99 (player VARCHAR, position VARCHAR)
SELECT player FROM table_name_99 WHERE position = "linebacker"
what is the competition on 10 august 2011?
CREATE TABLE table_name_75 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_75 WHERE date = "10 august 2011"
What is the total number of James Bond 007: Everything or Nothing for each system?
CREATE TABLE table_10875694_11 (system VARCHAR, title VARCHAR)
SELECT COUNT(system) FROM table_10875694_11 WHERE title = "James Bond 007: Everything or Nothing"
Who was the away team at the game at Victoria Park?
CREATE TABLE table_name_65 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_65 WHERE venue = "victoria park"
Find the number of songs in all the studio albums.
CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR)
SELECT COUNT(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = "Studio"
How many points did Antwain Barbour score in the year he played 39 games?
CREATE TABLE table_name_12 (points INTEGER, name VARCHAR, games VARCHAR)
SELECT SUM(points) FROM table_name_12 WHERE name = "antwain barbour" AND games < 39
How many goals were scored when they had over 28 points and played over 18 games?
CREATE TABLE table_name_33 (goals_scored INTEGER, points VARCHAR, played VARCHAR)
SELECT MAX(goals_scored) FROM table_name_33 WHERE points > 28 AND played > 18
Who is the Winner, when the Surface is Carpet (i)?
CREATE TABLE table_name_80 (winner VARCHAR, surface VARCHAR)
SELECT winner FROM table_name_80 WHERE surface = "carpet (i)"
What is the date for the ship Afrika, with nationality Great Britain?
CREATE TABLE table_name_73 (date VARCHAR, nationality VARCHAR, ship VARCHAR)
SELECT date FROM table_name_73 WHERE nationality = "great britain" AND ship = "afrika"
What rank by average has 1 dance on season 9?
CREATE TABLE table_name_34 (rank_by_average VARCHAR, number_of_dances VARCHAR, season VARCHAR)
SELECT rank_by_average FROM table_name_34 WHERE number_of_dances = "1" AND season = "9"
Who is the player when the highest score is 84?
CREATE TABLE table_28846752_4 (player VARCHAR, highest_score VARCHAR)
SELECT player FROM table_28846752_4 WHERE highest_score = "84"
What's the Württemberg for Karlsruher FV happening after 1931?
CREATE TABLE table_name_51 (württemberg VARCHAR, baden VARCHAR, year VARCHAR)
SELECT württemberg FROM table_name_51 WHERE baden = "karlsruher fv" AND year > 1931
What is Agg., when Team 2 is Mukungwa?
CREATE TABLE table_name_42 (agg VARCHAR, team_2 VARCHAR)
SELECT agg FROM table_name_42 WHERE team_2 = "mukungwa"
Which model was made from 2001–2004, with a Torque of n·m (lb·ft) @ 3750, and an Engine code of n42b18 / n46b18?
CREATE TABLE table_name_72 (model VARCHAR, engine_code VARCHAR, years VARCHAR, torque VARCHAR)
SELECT model FROM table_name_72 WHERE years = "2001–2004" AND torque = "n·m (lb·ft) @ 3750" AND engine_code = "n42b18 / n46b18"
Which player from Oregon used the number 12?
CREATE TABLE table_name_16 (player VARCHAR, no_s_ VARCHAR, school_club_team_country VARCHAR)
SELECT player FROM table_name_16 WHERE no_s_ = "12" AND school_club_team_country = "oregon"
What is the First issue date of the title with a Last Issue of July 2010?
CREATE TABLE table_name_1 (first_issue VARCHAR, last_issue VARCHAR)
SELECT first_issue FROM table_name_1 WHERE last_issue = "july 2010"
When is the winner panathinaikos, the runner-up olympiacos and the venue nikos goumas stadium?
CREATE TABLE table_name_65 (year VARCHAR, venue VARCHAR, winner VARCHAR, runner_up VARCHAR)
SELECT year FROM table_name_65 WHERE winner = "panathinaikos" AND runner_up = "olympiacos" AND venue = "nikos goumas stadium"
What is the average 5432 value with a 11502 larger than 1163, a 15122 less than 15122, and a 3620 less than 624?
CREATE TABLE table_name_12 (Id VARCHAR)
SELECT AVG(5432) FROM table_name_12 WHERE 11502 > 1163 AND 15122 < 15122 AND 3620 < 624
Which skip has Oliver Dupont as a second?
CREATE TABLE table_name_63 (skip VARCHAR, second VARCHAR)
SELECT skip FROM table_name_63 WHERE second = "oliver dupont"
What place is David Graham in?
CREATE TABLE table_name_47 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_47 WHERE player = "david graham"
Show names of pilots that have more than one record.
CREATE TABLE pilot (Pilot_name VARCHAR, pilot_ID VARCHAR); CREATE TABLE pilot_record (pilot_ID VARCHAR)
SELECT T2.Pilot_name, COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID = T2.pilot_ID GROUP BY T2.Pilot_name HAVING COUNT(*) > 1
How many heats did Runners from Guinea-Bissau run, with rank higher than 33?
CREATE TABLE table_name_78 (heat INTEGER, nationality VARCHAR, rank VARCHAR)
SELECT SUM(heat) FROM table_name_78 WHERE nationality = "guinea-bissau" AND rank < 33
Tell me the capacity for city park stadium
CREATE TABLE table_name_15 (capacity VARCHAR, stadium VARCHAR)
SELECT capacity FROM table_name_15 WHERE stadium = "city park stadium"
Show the average age for male and female students.
CREATE TABLE Student (sex VARCHAR, age INTEGER)
SELECT AVG(age), sex FROM Student GROUP BY sex
Find the last names of teachers teaching in classroom 109.
CREATE TABLE teachers (lastname VARCHAR, classroom VARCHAR)
SELECT lastname FROM teachers WHERE classroom = 109
What was the finish for the golfer with a To par of +2?
CREATE TABLE table_name_91 (finish VARCHAR, to_par VARCHAR)
SELECT finish FROM table_name_91 WHERE to_par = "+2"
What is the Wednesday when day 3 is math?
CREATE TABLE table_name_24 (wednesday VARCHAR, day_3 VARCHAR)
SELECT wednesday FROM table_name_24 WHERE day_3 = "math"
What country was rank 1?
CREATE TABLE table_name_68 (country VARCHAR, rank VARCHAR)
SELECT country FROM table_name_68 WHERE rank = "1"
What is the serial format for white on blue with a serial issued of ss-00-00 to zz-99-99?
CREATE TABLE table_name_72 (serial_format VARCHAR, design VARCHAR, serials_issued VARCHAR)
SELECT serial_format FROM table_name_72 WHERE design = "white on blue" AND serials_issued = "ss-00-00 to zz-99-99"
What was the chassis when the entrant was Lavazza March, and the year was 1975?
CREATE TABLE table_name_38 (chassis VARCHAR, entrant VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_38 WHERE entrant = "lavazza march" AND year = 1975
What province has the largest city of Birjand?
CREATE TABLE table_name_73 (province VARCHAR, largest_city VARCHAR)
SELECT province FROM table_name_73 WHERE largest_city = "birjand"
Which film took place in 2000?
CREATE TABLE table_name_64 (film VARCHAR, year VARCHAR)
SELECT film FROM table_name_64 WHERE year = "2000"
Name the team for november 9
CREATE TABLE table_15872814_3 (team VARCHAR, date VARCHAR)
SELECT team FROM table_15872814_3 WHERE date = "November 9"
What is the Tournament, on the Week of May 5?
CREATE TABLE table_name_4 (tournament VARCHAR, week VARCHAR)
SELECT tournament FROM table_name_4 WHERE week = "may 5"
Return the dates of ceremony and the results of all music festivals
CREATE TABLE music_festival (Date_of_ceremony VARCHAR, RESULT VARCHAR)
SELECT Date_of_ceremony, RESULT FROM music_festival
who was the runner-up in the 1915 competition for 'Articles with HCards'?
CREATE TABLE table_name_25 (runner_up VARCHAR, year VARCHAR)
SELECT runner_up FROM table_name_25 WHERE year = 1915
What is the venue where the melbourne tigers play their home games?
CREATE TABLE table_name_26 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_26 WHERE home_team = "melbourne tigers"
What is the Event, when Year is 2002, and when Competition is European Indoor Championships?
CREATE TABLE table_name_6 (event VARCHAR, year VARCHAR, competition VARCHAR)
SELECT event FROM table_name_6 WHERE year = 2002 AND competition = "european indoor championships"
What team was the opponent for the game played on September 19, 1999?
CREATE TABLE table_name_92 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_92 WHERE date = "september 19, 1999"
Can you tell me the highest Gold that has the Bronze larger than 3, and the Total smaller than 24?
CREATE TABLE table_name_15 (gold INTEGER, bronze VARCHAR, total VARCHAR)
SELECT MAX(gold) FROM table_name_15 WHERE bronze > 3 AND total < 24
How many datas were recorded on January 15-16 if August 21-22 is 155?
CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, august_21_22 VARCHAR)
SELECT COUNT(january_15_16) FROM table_25216791_3 WHERE august_21_22 = "155"
List the titles of the books in ascending order of issues.
CREATE TABLE book (Title VARCHAR, Issues VARCHAR)
SELECT Title FROM book ORDER BY Issues
Which Result has an Attendance of bye?
CREATE TABLE table_name_99 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_99 WHERE attendance = "bye"
Name the most legs for steinlager 2
CREATE TABLE table_256862_1 (legs INTEGER, winning_yacht VARCHAR)
SELECT MAX(legs) FROM table_256862_1 WHERE winning_yacht = "Steinlager 2"
What are the Odds for the Horse called Ready's Echo?
CREATE TABLE table_name_72 (odds VARCHAR, horse VARCHAR)
SELECT odds FROM table_name_72 WHERE horse = "ready's echo"
Which player was previously on the New York Knicks?
CREATE TABLE table_name_24 (player VARCHAR, previous_team VARCHAR)
SELECT player FROM table_name_24 WHERE previous_team = "new york knicks"
Name the number of weeks for october 26
CREATE TABLE table_17924362_1 (week VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_17924362_1 WHERE date = "October 26"
Before 2012, which Group has the Result, nominated, the Film/Show, East West 101, and the Award, Best Lead Actor in A Television Drama?
CREATE TABLE table_name_31 (group VARCHAR, award VARCHAR, film_show VARCHAR, result VARCHAR, year VARCHAR)
SELECT group FROM table_name_31 WHERE result = "nominated" AND year < 2012 AND film_show = "east west 101" AND award = "best lead actor in a television drama"
How many total wins with the latest win at the 1999 Italian Grand Prix at a rank of 15?
CREATE TABLE table_name_12 (wins INTEGER, latest_win VARCHAR, rank VARCHAR)
SELECT SUM(wins) FROM table_name_12 WHERE latest_win = "1999 italian grand prix" AND rank > 15
What is the manner of departure when the incoming head coach is mohammad khakpour?
CREATE TABLE table_27383390_4 (manner_of_departure VARCHAR, incoming_head_coach VARCHAR)
SELECT manner_of_departure FROM table_27383390_4 WHERE incoming_head_coach = "Mohammad Khakpour"
Name the average zone for waddon railway station and has more than 2 platforms
CREATE TABLE table_name_54 (zone INTEGER, stations VARCHAR, platforms VARCHAR)
SELECT AVG(zone) FROM table_name_54 WHERE stations = "waddon railway station" AND platforms > 2
Who was the winner in 1973 with an amateur rider status?
CREATE TABLE table_name_74 (winner VARCHAR, rider_status VARCHAR, year VARCHAR)
SELECT winner FROM table_name_74 WHERE rider_status = "amateur" AND year = 1973
Which Report is Dated 9 March?
CREATE TABLE table_name_72 (report VARCHAR, date VARCHAR)
SELECT report FROM table_name_72 WHERE date = "9 march"
What is the smallest gold value that has a total over 15 and bronze values under 31?
CREATE TABLE table_name_51 (gold INTEGER, total VARCHAR, bronze VARCHAR)
SELECT MIN(gold) FROM table_name_51 WHERE total > 15 AND bronze < 31
What is the total rank for the lane before 2?
CREATE TABLE table_name_87 (rank INTEGER, lane INTEGER)
SELECT SUM(rank) FROM table_name_87 WHERE lane < 2
What is the highest gold for Cambodia when the total is less than 1?
CREATE TABLE table_name_94 (gold INTEGER, country VARCHAR, total VARCHAR)
SELECT MAX(gold) FROM table_name_94 WHERE country = "cambodia" AND total < 1
Where was the event on June 10?
CREATE TABLE table_name_12 (location VARCHAR, date VARCHAR)
SELECT location FROM table_name_12 WHERE date = "june 10"
What was the result on September 20?
CREATE TABLE table_name_99 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_99 WHERE date = "september 20"
What school does John Crotty play for?
CREATE TABLE table_name_35 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_35 WHERE player = "john crotty"
What is the average number of losses for teams with fewer than 0 wins?
CREATE TABLE table_name_23 (losses INTEGER, wins INTEGER)
SELECT AVG(losses) FROM table_name_23 WHERE wins < 0
What was team one name for the Team 2 of Toulouse Fc (d1)>?
CREATE TABLE table_name_34 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_34 WHERE team_2 = "toulouse fc (d1)"
Which opponent has a Loss of corcoran (4-4)?
CREATE TABLE table_name_28 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_28 WHERE loss = "corcoran (4-4)"
What is the point total for the season with 2 drop goals?
CREATE TABLE table_20505342_1 (total_points INTEGER, drop_goals VARCHAR)
SELECT MIN(total_points) FROM table_20505342_1 WHERE drop_goals = 2
What is the value of other religions associated with atheism at 1.86%?
CREATE TABLE table_name_80 (other VARCHAR, atheism VARCHAR)
SELECT other FROM table_name_80 WHERE atheism = "1.86%"
What episode number in the series originally aired on February 25, 2001?
CREATE TABLE table_1876825_3 (no_in_series VARCHAR, original_air_date VARCHAR)
SELECT no_in_series FROM table_1876825_3 WHERE original_air_date = "February 25, 2001"
Which Segment C has a Segment B of fish food?
CREATE TABLE table_name_54 (segment_c VARCHAR, segment_b VARCHAR)
SELECT segment_c FROM table_name_54 WHERE segment_b = "fish food"
who is the character when the artist is take and the year is before 2006?
CREATE TABLE table_name_75 (character VARCHAR, artist VARCHAR, year VARCHAR)
SELECT character FROM table_name_75 WHERE artist = "take" AND year < 2006
How many figures for birth/2013 when January-September is Oryol Oblast?
CREATE TABLE table_25703_1 (birth_2013 VARCHAR, january_september_2013 VARCHAR)
SELECT COUNT(birth_2013) FROM table_25703_1 WHERE january_september_2013 = "Oryol Oblast"
What Nationality had a Pick # of 117?
CREATE TABLE table_name_91 (nationality VARCHAR, pick__number VARCHAR)
SELECT nationality FROM table_name_91 WHERE pick__number = "117"
What's the United States team that played for the Grizzlies in 1995-1996?
CREATE TABLE table_name_51 (school_club_team VARCHAR, nationality VARCHAR, years_for_grizzlies VARCHAR)
SELECT school_club_team FROM table_name_51 WHERE nationality = "united states" AND years_for_grizzlies = "1995-1996"
What was the first year to have a Chassis of Jordan 193?
CREATE TABLE table_name_89 (year INTEGER, chassis VARCHAR)
SELECT MIN(year) FROM table_name_89 WHERE chassis = "jordan 193"
How many people saw the 3rd, Central regular season on average?
CREATE TABLE table_2380212_1 (avg_attendance INTEGER, regular_season VARCHAR)
SELECT MIN(avg_attendance) FROM table_2380212_1 WHERE regular_season = "3rd, Central"
What is the original air date of season 9?
CREATE TABLE table_18217753_1 (original_air_date VARCHAR, season__number VARCHAR)
SELECT original_air_date FROM table_18217753_1 WHERE season__number = 9
Name the location for yellow jackets
CREATE TABLE table_28253870_1 (location VARCHAR, team_nickname VARCHAR)
SELECT location FROM table_28253870_1 WHERE team_nickname = "Yellow Jackets"
Which NCAA Tournament Appearances have Conference Titles that are larger than 0, NCAA Titles of 0, and were coached by Lou Watson?
CREATE TABLE table_name_3 (ncaa_tourn_appearances VARCHAR, coach VARCHAR, conference_titles VARCHAR, ncaa_titles VARCHAR)
SELECT ncaa_tourn_appearances FROM table_name_3 WHERE conference_titles > "0" AND ncaa_titles = "0" AND coach = "lou watson"
Which party had a term start of 5 august 1999?
CREATE TABLE table_name_95 (party VARCHAR, term_start VARCHAR)
SELECT party FROM table_name_95 WHERE term_start = "5 august 1999"
Which country has the player Johnny Miller?
CREATE TABLE table_name_58 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_58 WHERE player = "johnny miller"
What was the 1989 result for the tournament with 1984 of a, 1985 of a, and 1990 of a?
CREATE TABLE table_name_56 (Id VARCHAR)
SELECT 1989 FROM table_name_56 WHERE 1984 = "a" AND 1985 = "a" AND 1990 = "a"
Which Year has a Position of 2nd, and Notes of -63kg, and a Venue of manchester?
CREATE TABLE table_name_4 (year VARCHAR, venue VARCHAR, position VARCHAR, notes VARCHAR)
SELECT year FROM table_name_4 WHERE position = "2nd" AND notes = "-63kg" AND venue = "manchester"
Who had points smaller than 22 and a drawn of 2?
CREATE TABLE table_name_4 (name VARCHAR, points VARCHAR, drawn VARCHAR)
SELECT name FROM table_name_4 WHERE points < 22 AND drawn = 2
what is the voltage when release date is june 2001 and frequency is 1.13ghz?
CREATE TABLE table_name_92 (voltage VARCHAR, release_date VARCHAR, frequency VARCHAR)
SELECT voltage FROM table_name_92 WHERE release_date = "june 2001" AND frequency = "1.13ghz"
What is the historical reference of the episode that aired on October 23, 2005?
CREATE TABLE table_name_38 (historical_references VARCHAR, podcast_date VARCHAR)
SELECT historical_references FROM table_name_38 WHERE podcast_date = "october 23, 2005"
How many strokes to par when the score is 1 up?
CREATE TABLE table_name_13 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_13 WHERE score = "1 up"
What is Partner, when Outcome is Winner, and when Date is 12 October 2003?
CREATE TABLE table_name_73 (partner VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT partner FROM table_name_73 WHERE outcome = "winner" AND date = "12 october 2003"
What is Date of Birth, when Height is "Head Coach: Adel Shamala"?
CREATE TABLE table_name_31 (date_of_birth VARCHAR, height VARCHAR)
SELECT date_of_birth FROM table_name_31 WHERE height = "head coach: adel shamala"
Name the eps for net profit being 39.2
CREATE TABLE table_18304259_1 (earnings_per_share__p_ VARCHAR, net_profit__£m_ VARCHAR)
SELECT earnings_per_share__p_ FROM table_18304259_1 WHERE net_profit__£m_ = "39.2"
What is the Part 3 when the Verb meaning is to gather?
CREATE TABLE table_name_60 (part_3 VARCHAR, verb_meaning VARCHAR)
SELECT part_3 FROM table_name_60 WHERE verb_meaning = "to gather"
Which Date has a Set 3 of 21–25?
CREATE TABLE table_name_55 (date VARCHAR, set_3 VARCHAR)
SELECT date FROM table_name_55 WHERE set_3 = "21–25"
What is Surface, when Edition is 2012, and when Outcome is Winner?
CREATE TABLE table_name_51 (surface VARCHAR, edition VARCHAR, outcome VARCHAR)
SELECT surface FROM table_name_51 WHERE edition = 2012 AND outcome = "winner"
What is the sum of Gold, when Silver is greater than 6, when Rank is 1, and when Bronze is less than 61?
CREATE TABLE table_name_57 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT SUM(gold) FROM table_name_57 WHERE silver > 6 AND rank = "1" AND bronze < 61