answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT outgoing_manager FROM table_name_57 WHERE date_of_appointment = "19 february"
I want the outgoing manager for 19 february
CREATE TABLE table_name_57 (outgoing_manager VARCHAR, date_of_appointment VARCHAR)
SELECT SUM(swimsuit) FROM table_name_82 WHERE evening_gown = 9.773 AND average > 9.674
What is the sum of swimsuit with an evening gown of 9.773 and average larger than 9.674?
CREATE TABLE table_name_82 (swimsuit INTEGER, evening_gown VARCHAR, average VARCHAR)
SELECT SUM(attendance) FROM table_name_40 WHERE date = "april 28"
What was the Attendance on April 28?
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR)
SELECT team_f FROM table_name_16 WHERE team_a = "aida gagaring"
Who is team f when Aida Gagaring is team A?
CREATE TABLE table_name_16 (team_f VARCHAR, team_a VARCHAR)
SELECT AVG(silver) FROM table_name_31 WHERE rank = "5" AND bronze < 0
What is the average number of silvers for teams ranked 5 with 0 bronze?
CREATE TABLE table_name_31 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT AVG(t3.age) 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 t1.clubname = "Bootup Baltimore"
What is the average age of the members of the club "Bootup Baltimore"?
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)
SELECT COUNT(points) FROM table_name_85 WHERE goals_conceded = 27 AND lost = 5 AND place > 2
How many points were in a game that had a lost of 5, greater than place 2, and 27 goals conceded?
CREATE TABLE table_name_85 (points VARCHAR, place VARCHAR, goals_conceded VARCHAR, lost VARCHAR)
SELECT winner FROM table_name_59 WHERE date = "28 december 2007"
Who was the winner on 28 December 2007?
CREATE TABLE table_name_59 (winner VARCHAR, date VARCHAR)
SELECT date FROM table_name_83 WHERE result = "draw" AND venue = "sydney cricket ground"
On what date was there a draw at Sydney Cricket Ground?
CREATE TABLE table_name_83 (date VARCHAR, result VARCHAR, venue VARCHAR)
SELECT school FROM table_name_28 WHERE player = "samardo samuels"
What school did samardo samuels go to?
CREATE TABLE table_name_28 (school VARCHAR, player VARCHAR)
SELECT AVG(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000
What is the average number of cities of markets with low film market estimate bigger than 10000?
CREATE TABLE market (Number_cities INTEGER, Market_ID VARCHAR); CREATE TABLE film_market_estimation (Market_ID VARCHAR, Low_Estimate INTEGER)
SELECT song_title FROM table_name_84 WHERE movie = "amma cheppindi"
What was the name of the song in Amma Cheppindi?
CREATE TABLE table_name_84 (song_title VARCHAR, movie VARCHAR)
SELECT date FROM table_name_14 WHERE year = 1986
what is the date in 1986?
CREATE TABLE table_name_14 (date VARCHAR, year VARCHAR)
SELECT date FROM table_11636213_7 WHERE result = "6–2, 4–6, 6–4"
What date was the result 6–2, 4–6, 6–4?
CREATE TABLE table_11636213_7 (date VARCHAR, result VARCHAR)
SELECT damage__usd_ FROM table_10602294_1 WHERE pressure = "1003hPa (29.62inHg)"
What was the damage (usd) from the cyclones that measured 1003hPa (29.62inHg) pressure?
CREATE TABLE table_10602294_1 (damage__usd_ VARCHAR, pressure VARCHAR)
SELECT departure FROM table_name_67 WHERE station_name = "kanpur central"
What is the Departure time at Kanpur Central Station?
CREATE TABLE table_name_67 (departure VARCHAR, station_name VARCHAR)
SELECT SUM(attendance) FROM table_name_62 WHERE date = "8 october 2008"
When the date is 8 october 2008 what is the sum of attendance?
CREATE TABLE table_name_62 (attendance INTEGER, date VARCHAR)
SELECT score FROM table_name_6 WHERE high_assists = "rodriguez (8)"
Which Score has High assists of rodriguez (8)?
CREATE TABLE table_name_6 (score VARCHAR, high_assists VARCHAR)
SELECT original_artist FROM table_15796072_1 WHERE order__number = "9"
Who was the original artist when the order number is 9?
CREATE TABLE table_15796072_1 (original_artist VARCHAR, order__number VARCHAR)
SELECT opponent FROM table_name_10 WHERE streak = "lost 1" AND date = "april 30"
Which Opponent has a Streak of lost 1, and a Date of april 30?
CREATE TABLE table_name_10 (opponent VARCHAR, streak VARCHAR, date VARCHAR)
SELECT athlete FROM table_name_44 WHERE country = "norway"
Which athlete is from Norway?
CREATE TABLE table_name_44 (athlete VARCHAR, country VARCHAR)
SELECT district FROM table_1341453_7 WHERE incumbent = "Bill Thomas"
What district is bill thomas from?
CREATE TABLE table_1341453_7 (district VARCHAR, incumbent VARCHAR)
SELECT place FROM table_name_36 WHERE country = "scotland"
What is the Place of the Player from Scotland?
CREATE TABLE table_name_36 (place VARCHAR, country VARCHAR)
SELECT COUNT(report) FROM table_1140078_2 WHERE race = "Italian Grand Prix"
What is the number of reports for the italian grand prix?
CREATE TABLE table_1140078_2 (report VARCHAR, race VARCHAR)
SELECT torque FROM table_1373768_1 WHERE trim = "XE (2009)"
what's the torque with trim being xe (2009)
CREATE TABLE table_1373768_1 (torque VARCHAR, trim VARCHAR)
SELECT utah FROM table_name_7 WHERE colorado = "bush" AND new_mexico = "bush"
What's the value for utah when colorado and new mexico are bush?
CREATE TABLE table_name_7 (utah VARCHAR, colorado VARCHAR, new_mexico VARCHAR)
SELECT SUM(attendance) FROM table_name_18 WHERE week < 10 AND result = "l 30-21"
What sum of Attendance has a Week smaller than 10, and a Result of l 30-21?
CREATE TABLE table_name_18 (attendance INTEGER, week VARCHAR, result VARCHAR)
SELECT MIN(grid) FROM table_name_15 WHERE rider = "sylvain guintoli" AND laps > 32
with more than 32 laps and sylvain guintoli as rider, what's the lowest grid ?
CREATE TABLE table_name_15 (grid INTEGER, rider VARCHAR, laps VARCHAR)
SELECT result FROM table_1342379_23 WHERE incumbent = "Bill G. Lowrey"
what's the result with incumbent being bill g. lowrey
CREATE TABLE table_1342379_23 (result VARCHAR, incumbent VARCHAR)
SELECT res FROM table_name_40 WHERE event = "ufc 122"
Which Res has an Event of UFC 122?
CREATE TABLE table_name_40 (res VARCHAR, event VARCHAR)
SELECT download FROM table_name_45 WHERE week = 44
What's the Download information for the song from Week 44?
CREATE TABLE table_name_45 (download VARCHAR, week VARCHAR)
SELECT volume AS :issue FROM table_name_97 WHERE weeks_on_top > 1 AND artist = "peter cetera"
What Volume:Issue that has Peter Cetera as the artist and was on top for longer than 1 week?
CREATE TABLE table_name_97 (volume VARCHAR, weeks_on_top VARCHAR, artist VARCHAR)
SELECT result FROM table_name_12 WHERE venue = "stuttgart, west germany" AND goal < 9
What was the result of the game in Stuttgart, West Germany and a goal number of less than 9?
CREATE TABLE table_name_12 (result VARCHAR, venue VARCHAR, goal VARCHAR)
SELECT title FROM course WHERE dept_name = 'Statistics' INTERSECT SELECT title FROM course WHERE dept_name = 'Psychology'
Find the title of course that is provided by both Statistics and Psychology departments.
CREATE TABLE course (title VARCHAR, dept_name VARCHAR)
SELECT group FROM table_2581397_2 WHERE venue = "Moonee Valley"
What group was sunline in when he was at moonee valley?
CREATE TABLE table_2581397_2 (group VARCHAR, venue VARCHAR)
SELECT best_actor FROM table_15301258_1 WHERE best_film = "Uncle Boonmee Who Can Recall His Past Lives"
Name the best actor for uncle boonmee who can recall his past lives
CREATE TABLE table_15301258_1 (best_actor VARCHAR, best_film VARCHAR)
SELECT parent_magazine FROM table_name_6 WHERE frequency = "bimonthly" AND magazine_type = "manga" AND title = "dengeki moeoh"
What was the parent magazine for the manga magazine, dengeki moeoh that was issued bimonthly?
CREATE TABLE table_name_6 (parent_magazine VARCHAR, title VARCHAR, frequency VARCHAR, magazine_type VARCHAR)
SELECT MAX(2012 AS _13) FROM table_25057928_1 WHERE institute = "University of Cambridge"
Name the most 2012/13 for university of cambridge
CREATE TABLE table_25057928_1 (institute VARCHAR)
SELECT investment_earnings FROM table_name_82 WHERE state_ & _federal = "8,549,565"
What were the investment earnings in the year that State and Federal taxes were $8,549,565?
CREATE TABLE table_name_82 (investment_earnings VARCHAR, state_ VARCHAR, _federal VARCHAR)
SELECT COUNT(year) FROM table_name_66 WHERE result = "nominated" AND series = "room 222"
What year gave a nominated result for the room 222 series?
CREATE TABLE table_name_66 (year VARCHAR, result VARCHAR, series VARCHAR)
SELECT COUNT(opponent) FROM table_23453931_5 WHERE date = "December 3"
Name the opponents for december 3
CREATE TABLE table_23453931_5 (opponent VARCHAR, date VARCHAR)
SELECT l3_cache FROM table_name_3 WHERE release_price___usd__ = "$440"
What is the L3 cache of the processor with a release price of $440?
CREATE TABLE table_name_3 (l3_cache VARCHAR, release_price___usd__ VARCHAR)
SELECT MIN(mister_international) FROM table_30007505_1
Name the least mister international
CREATE TABLE table_30007505_1 (mister_international INTEGER)
SELECT AVG(debut_year) FROM table_name_44 WHERE player = "bob hayton" AND games < 2
Which Debut year has a Player of bob hayton, and Games smaller than 2?
CREATE TABLE table_name_44 (debut_year INTEGER, player VARCHAR, games VARCHAR)
SELECT SUM(attendance) FROM table_name_69 WHERE opponent = "astros" AND date = "april 29"
What attendance has astros as the opponent, and april 29 as the date?
CREATE TABLE table_name_69 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
SELECT exposures FROM table_2583036_1 WHERE total_exposure_time = "105,000s"
how many exposures where there when the total exposure time is 105,000s?
CREATE TABLE table_2583036_1 (exposures VARCHAR, total_exposure_time VARCHAR)
SELECT opponent FROM table_name_2 WHERE date = "april 19"
Who did the team play on april 19?
CREATE TABLE table_name_2 (opponent VARCHAR, date VARCHAR)
SELECT Episode FROM TV_series ORDER BY rating
List the Episode of all TV series sorted by rating.
CREATE TABLE TV_series (Episode VARCHAR, rating VARCHAR)
SELECT SUM(year) FROM table_name_12 WHERE result = "5th"
Tell me the sum of year for 5th result
CREATE TABLE table_name_12 (year INTEGER, result VARCHAR)
SELECT second FROM table_name_2 WHERE lead = "ilian kirilov"
Who was the second when Ilian Kirilov was the lead?
CREATE TABLE table_name_2 (second VARCHAR, lead VARCHAR)
SELECT MAX(gold) FROM table_name_90 WHERE total > 16
What is the largest gold with a Total larger than 16?
CREATE TABLE table_name_90 (gold INTEGER, total INTEGER)
SELECT losing_bonus FROM table_14058433_3 WHERE points = "24"
What is the losing bonus when the points are 24?
CREATE TABLE table_14058433_3 (losing_bonus VARCHAR, points VARCHAR)
SELECT MIN(bodyweight) FROM table_name_36 WHERE clean_ & _jerk = "145.0" AND snatch < 122.5
What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5?
CREATE TABLE table_name_36 (bodyweight INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT reason FROM table_name_7 WHERE became_heir = "1103"
Which Reason is given when 1103 is the date for Became heir?
CREATE TABLE table_name_7 (reason VARCHAR, became_heir VARCHAR)
SELECT AVG(week) FROM table_name_31 WHERE opponent = "cleveland browns"
What week did Cleveland Browns played?
CREATE TABLE table_name_31 (week INTEGER, opponent VARCHAR)
SELECT issue_price FROM table_name_36 WHERE mintage = "31,997"
A mintage of 31,997 has what issue price?
CREATE TABLE table_name_36 (issue_price VARCHAR, mintage VARCHAR)
SELECT MAX(week) FROM table_name_14 WHERE date = "august 9, 1968" AND attendance < 64 OFFSET 020
What is the larges week for the date august 9, 1968 and less than 64,020 in attendance?
CREATE TABLE table_name_14 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT COUNT(party) FROM table_1341453_34 WHERE results = "Retired Democratic hold"
How many elections have resulted in retired democratic hold?
CREATE TABLE table_1341453_34 (party VARCHAR, results VARCHAR)
SELECT COUNT(*) FROM savings WHERE balance > (SELECT AVG(balance) FROM savings)
How many accounts have a savings balance above the average savings balance?
CREATE TABLE savings (balance INTEGER)
SELECT high_rebounds FROM table_17355716_10 WHERE date = "April 11"
what is the high rebounds stat on april 11
CREATE TABLE table_17355716_10 (high_rebounds VARCHAR, date VARCHAR)
SELECT leading_scorer FROM table_name_97 WHERE attendance = "14,096"
What is the leading scorer of the game with an attendance of 14,096?
CREATE TABLE table_name_97 (leading_scorer VARCHAR, attendance VARCHAR)
SELECT chapter FROM table_21821014_1 WHERE institution = "Illinois Wesleyan"
What is the chapter for Illinois Wesleyan?
CREATE TABLE table_21821014_1 (chapter VARCHAR, institution VARCHAR)
SELECT T1.first_name, T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = "Lockmanfurt"
List first name and last name of customers lived in city Lockmanfurt.
CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, customer_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR)
SELECT end___utc FROM table_245801_2 WHERE comments = "First woman EVA"
When first woman eva is the comment what is the end -utc?
CREATE TABLE table_245801_2 (end___utc VARCHAR, comments VARCHAR)
SELECT writer_s_ FROM table_25800134_4 WHERE season__number = 15
Who was the writer of episode 15?
CREATE TABLE table_25800134_4 (writer_s_ VARCHAR, season__number VARCHAR)
SELECT MIN(wins) FROM table_1507423_4
What is the maximumum number of wins?
CREATE TABLE table_1507423_4 (wins INTEGER)
SELECT AVG(overall) FROM table_name_66 WHERE name = "bob anderson" AND round < 9
Which Overall has a Name of bob anderson, and a Round smaller than 9?
CREATE TABLE table_name_66 (overall INTEGER, name VARCHAR, round VARCHAR)
SELECT COUNT(property) FROM table_186468_1 WHERE ka_band = "2"
When 2 is the ka-band how many properties are there?
CREATE TABLE table_186468_1 (property VARCHAR, ka_band VARCHAR)
SELECT home_team FROM table_name_34 WHERE away_team = "south melbourne"
In the match where south melbourne was the away team, who was the home team?
CREATE TABLE table_name_34 (home_team VARCHAR, away_team VARCHAR)
SELECT SUM(zone) FROM table_name_30 WHERE champion = "surozh sudak"
Which Zone has a Champion of surozh sudak?
CREATE TABLE table_name_30 (zone INTEGER, champion VARCHAR)
SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'bad'
What are the coupon amount of the coupons owned by both good and bad customers?
CREATE TABLE Discount_Coupons (coupon_amount VARCHAR, coupon_id VARCHAR); CREATE TABLE customers (coupon_id VARCHAR, good_or_bad_customer VARCHAR)
SELECT remarks FROM table_name_74 WHERE airline = "dutch antilles express"
What were the remarks for Dutch Antilles Express?
CREATE TABLE table_name_74 (remarks VARCHAR, airline VARCHAR)
SELECT icao FROM table_name_86 WHERE airport = "antalya airport"
What is the ICAO for Antalya Airport?
CREATE TABLE table_name_86 (icao VARCHAR, airport VARCHAR)
SELECT hometown FROM table_11677100_11 WHERE player = "Jay Bruce"
What is Jay Bruce's hometown?
CREATE TABLE table_11677100_11 (hometown VARCHAR, player VARCHAR)
SELECT citizenship FROM singer GROUP BY citizenship ORDER BY COUNT(*) DESC LIMIT 1
What is the most common singer citizenship ?
CREATE TABLE singer (citizenship VARCHAR)
SELECT record FROM table_27756572_10 WHERE team = "Philadelphia"
What was the record when the Clippers played Philadelphia?
CREATE TABLE table_27756572_10 (record VARCHAR, team VARCHAR)
SELECT AVG(silver) FROM table_name_49 WHERE total < 3 AND rank > 9
How many silver medals were won with a total medal of 3 and a rank above 9?
CREATE TABLE table_name_49 (silver INTEGER, total VARCHAR, rank VARCHAR)
SELECT MAX(r) FROM table WHERE total = 6
If the total is 6, what is the maximum R?
CREATE TABLE table (r INTEGER, total VARCHAR)
SELECT secondary_sponsor FROM table_187239_1 WHERE main_sponsor = "Olympikus"
When olympikus is the main sponsor who is the secondary sponsor?
CREATE TABLE table_187239_1 (secondary_sponsor VARCHAR, main_sponsor VARCHAR)
SELECT MAX(starts) FROM table_2725949_6 WHERE wins = 6
Name the most starts for 6 wins
CREATE TABLE table_2725949_6 (starts INTEGER, wins VARCHAR)
SELECT COUNT(losses) FROM table_name_51 WHERE south_west_dfl = "coleraine" AND against < 891
How many Losses have South West DFL of coleraine, and an Against smaller than 891?
CREATE TABLE table_name_51 (losses VARCHAR, south_west_dfl VARCHAR, against VARCHAR)
SELECT year FROM table_name_75 WHERE guernsey_record = "2-3-12"
What year was the Guernsey record of 2-3-12 set?
CREATE TABLE table_name_75 (year VARCHAR, guernsey_record VARCHAR)
SELECT COUNT(weeks_on_chart__uk_) FROM table_name_30 WHERE entered_chart__uk_ = "14 september 2002"
How many weeks did the single that entered the charts 14 september 2002 stay on the charts ?
CREATE TABLE table_name_30 (weeks_on_chart__uk_ VARCHAR, entered_chart__uk_ VARCHAR)
SELECT score FROM table_name_68 WHERE set_3 = "26–28"
What is the Score when the set 3 is 26–28?
CREATE TABLE table_name_68 (score VARCHAR, set_3 VARCHAR)
SELECT MIN(goals_against) FROM table_name_4 WHERE played > 38
Name the least goals against for played more than 38
CREATE TABLE table_name_4 (goals_against INTEGER, played INTEGER)
SELECT COUNT(average) FROM table_name_85 WHERE goals < 41 AND goalkeeper = "claudio bravo"
What is the average goals less than 41 that goalkeeper Claudio Bravo had?
CREATE TABLE table_name_85 (average VARCHAR, goals VARCHAR, goalkeeper VARCHAR)
SELECT pick FROM table_name_78 WHERE nationality = "united states" AND college_high_school_club = "north carolina" AND position = "sf"
What was the pick number for the person from the United States who as drafted to the SF position from North Carolina?
CREATE TABLE table_name_78 (pick VARCHAR, position VARCHAR, nationality VARCHAR, college_high_school_club VARCHAR)
SELECT position FROM table_name_78 WHERE current_club = "toronto raptors"
What is the Position of the Player from the Toronto Raptors?
CREATE TABLE table_name_78 (position VARCHAR, current_club VARCHAR)
SELECT week FROM table_14984078_1 WHERE date = "December 2, 1962"
What week of the season did the date December 2, 1962 fall on?
CREATE TABLE table_14984078_1 (week VARCHAR, date VARCHAR)
SELECT nationality FROM table_name_51 WHERE player = "rudolf vercik"
Tell me the nationality for rudolf vercik
CREATE TABLE table_name_51 (nationality VARCHAR, player VARCHAR)
SELECT score FROM table_name_75 WHERE team = "indiana"
WHAT IS THE SCORE WITH THE TEAM OF INDIANA?
CREATE TABLE table_name_75 (score VARCHAR, team VARCHAR)
SELECT 1985 FROM table_name_62 WHERE career_win_loss = "n/a" AND career_sr = "0 / 23"
What is the result in 1985 when the career win-loss is n/a, and 0 / 23 as the career SR?
CREATE TABLE table_name_62 (career_win_loss VARCHAR, career_sr VARCHAR)
SELECT Ref_Document_Status.document_status_description FROM Ref_Document_Status JOIN Documents ON Documents.document_status_code = Ref_Document_Status.document_status_code WHERE Documents.document_id = 1
What is the document status description of the document with id 1?
CREATE TABLE Documents (Id VARCHAR); CREATE TABLE Ref_Document_Status (Id VARCHAR)
SELECT AVG(crowd) FROM table_name_71 WHERE home_team = "north melbourne"
How many people attended the North Melbourne game?
CREATE TABLE table_name_71 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(total) FROM table_25831483_1
What is the highest total number?
CREATE TABLE table_25831483_1 (total INTEGER)
SELECT SUM(preliminary) FROM table_name_84 WHERE interview = 9.654 AND average < 9.733
What is the sum of Preliminary scores where the interview score is 9.654 and the average score is lower than 9.733?
CREATE TABLE table_name_84 (preliminary INTEGER, interview VARCHAR, average VARCHAR)
SELECT opponents_in_the_final FROM table_name_30 WHERE date = "february 19, 1996"
Who are the opponents in the February 19, 1996 final?
CREATE TABLE table_name_30 (opponents_in_the_final VARCHAR, date VARCHAR)
SELECT city___state FROM table_name_12 WHERE winner = "john bowe" AND circuit = "phillip island grand prix circuit"
In what City/State did John Bowe win at Phillip Island Grand Prix Circuit?
CREATE TABLE table_name_12 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR)
SELECT team_1 FROM table_name_87 WHERE team_2 = "usl dunkerque (d2)"
who is team 1 when team 2 is usl dunkerque (d2)?
CREATE TABLE table_name_87 (team_1 VARCHAR, team_2 VARCHAR)
SELECT method FROM table_name_37 WHERE round = 1 AND record = "4–2"
Which Method has a Round of 1, and a Record of 4–2?
CREATE TABLE table_name_37 (method VARCHAR, round VARCHAR, record VARCHAR)