question
stringlengths
17
201
answer
stringlengths
21
400
context
stringlengths
32
286
How many cinema do we have?
SELECT COUNT(*) FROM cinema
CREATE TABLE cinema (Id VARCHAR)
What years was soc a client?
SELECT years_of_operation FROM table_name_88 WHERE client = "soc"
CREATE TABLE table_name_88 (years_of_operation VARCHAR, client VARCHAR)
How many points did the home team Essendon score?
SELECT home_team AS score FROM table_name_4 WHERE home_team = "essendon"
CREATE TABLE table_name_4 (home_team VARCHAR)
Who was the music director in 1994?
SELECT music_director FROM table_name_3 WHERE year = 1994
CREATE TABLE table_name_3 (music_director VARCHAR, year VARCHAR)
Which Goals For has a Lost of 12, and a Played larger than 34?
SELECT MAX(goals_for) FROM table_name_28 WHERE lost = 12 AND played > 34
CREATE TABLE table_name_28 (goals_for INTEGER, lost VARCHAR, played VARCHAR)
What is Run 1, when Run 4 is 1:56.59?
SELECT run_1 FROM table_name_62 WHERE run_4 = "1:56.59"
CREATE TABLE table_name_62 (run_1 VARCHAR, run_4 VARCHAR)
How many Points have a Score of 3–0?
SELECT COUNT(points) FROM table_name_80 WHERE score = "3–0"
CREATE TABLE table_name_80 (points VARCHAR, score VARCHAR)
Show names of teachers and the number of courses they teach.
SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name
CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR)
What is the college of the afl team of buffalo bills?
SELECT college FROM table_12165135_1 WHERE afl_team = "Buffalo Bills"
CREATE TABLE table_12165135_1 (college VARCHAR, afl_team VARCHAR)
Who had the highest assists during the game on February 22?
SELECT high_assists FROM table_name_28 WHERE date = "february 22"
CREATE TABLE table_name_28 (high_assists VARCHAR, date VARCHAR)
Who was the visiting team on December 17?
SELECT visitor FROM table_name_90 WHERE date = "december 17"
CREATE TABLE table_name_90 (visitor VARCHAR, date VARCHAR)
What is the highest pts after 1952 with connaught type a?
SELECT MAX(pts) FROM table_name_79 WHERE year > 1952 AND chassis = "connaught type a"
CREATE TABLE table_name_79 (pts INTEGER, year VARCHAR, chassis VARCHAR)
What position is the player selected that has a round value over 3?
SELECT position FROM table_name_81 WHERE round > 3
CREATE TABLE table_name_81 (position VARCHAR, round INTEGER)
What is the total number of goals scored against clubs that have played more than 42 times?
SELECT COUNT(goals_against) FROM table_name_68 WHERE played > 42
CREATE TABLE table_name_68 (goals_against VARCHAR, played INTEGER)
Can you tell me the highest Against that has the Losses larger than 9, and the Byes of 2, and the Draws larger than 0?
SELECT MAX(against) FROM table_name_56 WHERE losses > 9 AND byes = 2 AND draws > 0
CREATE TABLE table_name_56 (against INTEGER, draws VARCHAR, losses VARCHAR, byes VARCHAR)
What was the final score in the game against the Cincinnati Bengals?
SELECT final_score FROM table_name_78 WHERE visiting_team = "cincinnati bengals"
CREATE TABLE table_name_78 (final_score VARCHAR, visiting_team VARCHAR)
What is th US A.C. in 1985 with a US hot 100 of 57?
SELECT us_ac FROM table_name_16 WHERE year = 1985 AND us_hot_100 = "57"
CREATE TABLE table_name_16 (us_ac VARCHAR, year VARCHAR, us_hot_100 VARCHAR)
How many episode titles aired on September 25, 1967?
SELECT COUNT(title) FROM table_25800134_12 WHERE airdate = "September 25, 1967"
CREATE TABLE table_25800134_12 (title VARCHAR, airdate VARCHAR)
How many U.S Viewers, in millions, were for series # 26?
SELECT us_viewers__millions_ FROM table_12159115_3 WHERE series__number = 26
CREATE TABLE table_12159115_3 (us_viewers__millions_ VARCHAR, series__number VARCHAR)
How many car numbers were listed for Rusty Wallace?
SELECT COUNT(car__number) FROM table_1769428_2 WHERE winning_driver = "Rusty Wallace"
CREATE TABLE table_1769428_2 (car__number VARCHAR, winning_driver VARCHAR)
What number has 2008 as the season?
SELECT number FROM table_name_38 WHERE season = "2008"
CREATE TABLE table_name_38 (number VARCHAR, season VARCHAR)
What is the race that had a tyre of p and Juan Manuel Fangio as the winning driver?
SELECT race FROM table_name_99 WHERE tyre = "p" AND winning_driver = "juan manuel fangio"
CREATE TABLE table_name_99 (race VARCHAR, tyre VARCHAR, winning_driver VARCHAR)
What is the literacy rate for groups that grew 103.1% between 1991 and 2001?
SELECT literacy___percentage_ FROM table_10710364_2 WHERE growth__1991_2001_ = "103.1%"
CREATE TABLE table_10710364_2 (literacy___percentage_ VARCHAR, growth__1991_2001_ VARCHAR)
Which Pos has a Car # smaller than 18, and a Driver of mike skinner?
SELECT AVG(pos) FROM table_name_91 WHERE car__number < 18 AND driver = "mike skinner"
CREATE TABLE table_name_91 (pos INTEGER, car__number VARCHAR, driver VARCHAR)
What is Score, when To Par is "E"?
SELECT score FROM table_name_8 WHERE to_par = "e"
CREATE TABLE table_name_8 (score VARCHAR, to_par VARCHAR)
What is the venue of the match with a score of 33-22?
SELECT venue FROM table_name_45 WHERE score = "33-22"
CREATE TABLE table_name_45 (venue VARCHAR, score VARCHAR)
Find the saving balance of the account with the highest checking balance.
SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1
CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (custid VARCHAR)
What is the season finale for season 4?
SELECT season AS finale FROM table_10819266_8 WHERE season = 4
CREATE TABLE table_10819266_8 (season VARCHAR)
What is richmond's scores when they are the home team?
SELECT home_team AS score FROM table_name_53 WHERE home_team = "richmond"
CREATE TABLE table_name_53 (home_team VARCHAR)
What is the average Total that has a Gold of 0, when the rank is less than 16, the nation is Georgia and there is more than 2 for Bronze?
SELECT AVG(total) FROM table_name_70 WHERE gold = 0 AND rank < 16 AND nation = "georgia" AND bronze > 2
CREATE TABLE table_name_70 (total INTEGER, bronze VARCHAR, nation VARCHAR, gold VARCHAR, rank VARCHAR)
What is the total number of rounds that Center position Denis Arkhipov have?
SELECT COUNT(round) FROM table_name_33 WHERE position = "center" AND player = "denis arkhipov"
CREATE TABLE table_name_33 (round VARCHAR, position VARCHAR, player VARCHAR)
When was the earliest that New England Patriots played?
SELECT MIN(week) FROM table_name_80 WHERE opponent = "new england patriots"
CREATE TABLE table_name_80 (week INTEGER, opponent VARCHAR)
What is the number of region 4 for the series of the complete seventh series?
SELECT COUNT(region_4) FROM table_1337525_1 WHERE complete_series = "The Complete Seventh Series"
CREATE TABLE table_1337525_1 (region_4 VARCHAR, complete_series VARCHAR)
What place is David Graham in?
SELECT place FROM table_name_47 WHERE player = "david graham"
CREATE TABLE table_name_47 (place VARCHAR, player VARCHAR)
With an issue date(s) of 12 September, what is in the column for Weeks on Top?
SELECT weeks_on_top FROM table_name_96 WHERE issue_date_s_ = "12 september"
CREATE TABLE table_name_96 (weeks_on_top VARCHAR, issue_date_s_ VARCHAR)
what is the "normalized" transliteration for Roman i
SELECT "normalised" AS _transliteration FROM table_name_9 WHERE roman_equivalent = "i"
CREATE TABLE table_name_9 (roman_equivalent VARCHAR)
Which model number does bombardier manufacture?
SELECT model_no FROM table_name_28 WHERE manufacturer = "bombardier"
CREATE TABLE table_name_28 (model_no VARCHAR, manufacturer VARCHAR)
What is Rhiannon Leier's lane?
SELECT lane FROM table_name_22 WHERE name = "rhiannon leier"
CREATE TABLE table_name_22 (lane VARCHAR, name VARCHAR)
On what date were there 50,324 votes?
SELECT date FROM table_name_78 WHERE votes = "50,324"
CREATE TABLE table_name_78 (date VARCHAR, votes VARCHAR)
What is the name of this constellation with an area of 245.375 sq. deg.?
SELECT constellation FROM table_177766_1 WHERE area__sqdeg_ = "245.375"
CREATE TABLE table_177766_1 (constellation VARCHAR, area__sqdeg_ VARCHAR)
What is the number of losses for the team with 1 draw and 34 tries against?
SELECT lost FROM table_name_49 WHERE drawn = "1" AND tries_against = "34"
CREATE TABLE table_name_49 (lost VARCHAR, drawn VARCHAR, tries_against VARCHAR)
What is the total number of games with more than 18 loses, a Total League, and more than 317 draws?
SELECT COUNT(total_games) FROM table_name_26 WHERE loss > 18 AND league = "total" AND draw > 317
CREATE TABLE table_name_26 (total_games VARCHAR, draw VARCHAR, loss VARCHAR, league VARCHAR)
What is the number of the division for the 1st round?
SELECT COUNT(division) FROM table_1046071_1 WHERE open_cup = "1st Round"
CREATE TABLE table_1046071_1 (division VARCHAR, open_cup VARCHAR)
Which season did Tich Freeman play against opponent V Warwickshire?
SELECT season FROM table_name_62 WHERE player = "tich freeman" AND opponent = "v warwickshire"
CREATE TABLE table_name_62 (season VARCHAR, player VARCHAR, opponent VARCHAR)
Name the gene name for methylobacterium nodulans
SELECT gene_name FROM table_27155678_2 WHERE genus_species = "Methylobacterium nodulans"
CREATE TABLE table_27155678_2 (gene_name VARCHAR, genus_species VARCHAR)
What is the date of death of the Countess of Flanders who was born in 1309?
SELECT death FROM table_name_69 WHERE birth = "1309"
CREATE TABLE table_name_69 (death VARCHAR, birth VARCHAR)
In the Ohio 4 district, that is the first elected date that has a result of re-elected?
SELECT SUM(first_elected) FROM table_name_66 WHERE result = "re-elected" AND district = "ohio 4"
CREATE TABLE table_name_66 (first_elected INTEGER, result VARCHAR, district VARCHAR)
What record has @ ottawa senators as the opponent?
SELECT record FROM table_name_93 WHERE opponent = "@ ottawa senators"
CREATE TABLE table_name_93 (record VARCHAR, opponent VARCHAR)
Who was recruited from Calgary?
SELECT player FROM table_name_34 WHERE college = "calgary"
CREATE TABLE table_name_34 (player VARCHAR, college VARCHAR)
What was the highest number of bronze medals when there were a total of 4 medals, 1 silver medals, and less than 2 medals?
SELECT MAX(bronze) FROM table_name_99 WHERE total = 4 AND silver = 1 AND gold < 2
CREATE TABLE table_name_99 (bronze INTEGER, gold VARCHAR, total VARCHAR, silver VARCHAR)
What is the lowest pick of player paul stasiuk from a round greater than 12?
SELECT MIN(pick) FROM table_name_45 WHERE player = "paul stasiuk" AND round > 12
CREATE TABLE table_name_45 (pick INTEGER, player VARCHAR, round VARCHAR)
Which Score has a Visitor of buffalo sabres and a Record of 1-3?
SELECT score FROM table_name_48 WHERE visitor = "buffalo sabres" AND record = "1-3"
CREATE TABLE table_name_48 (score VARCHAR, visitor VARCHAR, record VARCHAR)
What was the altitude of the event on 1962-07-09?
SELECT altitude__km_ FROM table_148578_1 WHERE date = "1962-07-09"
CREATE TABLE table_148578_1 (altitude__km_ VARCHAR, date VARCHAR)
Who were the Brazil scorers who scored 3-3?
SELECT brazil_scorers FROM table_name_11 WHERE score = "3-3"
CREATE TABLE table_name_11 (brazil_scorers VARCHAR, score VARCHAR)
What was the total score for january 18?
SELECT COUNT(score) FROM table_22883210_7 WHERE date = "January 18"
CREATE TABLE table_22883210_7 (score VARCHAR, date VARCHAR)
What was the final score of a baseball game that happened before 2005?
SELECT final_score FROM table_name_41 WHERE sport = "baseball" AND year < 2005
CREATE TABLE table_name_41 (final_score VARCHAR, sport VARCHAR, year VARCHAR)
What college did Jamie Butt go to?
SELECT college_junior_club_team__league_ FROM table_name_78 WHERE player = "jamie butt"
CREATE TABLE table_name_78 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
How many different people did different scores of high assists during the December 11 game?
SELECT COUNT(high_assists) FROM table_23248869_6 WHERE date = "December 11"
CREATE TABLE table_23248869_6 (high_assists VARCHAR, date VARCHAR)
In which event did Moradi compete and finish in 2nd at the Asian Championships in Kobe, Japan held after 2005?
SELECT event FROM table_name_21 WHERE year > 2005 AND competition = "asian championships" AND position = "2nd" AND venue = "kobe, japan"
CREATE TABLE table_name_21 (event VARCHAR, venue VARCHAR, position VARCHAR, year VARCHAR, competition VARCHAR)
What was the score when Spennymoor United as the away team?
SELECT score FROM table_name_67 WHERE away_team = "spennymoor united"
CREATE TABLE table_name_67 (score VARCHAR, away_team VARCHAR)
What is the highest loss with points less than 7?
SELECT MAX(lost) FROM table_name_16 WHERE points < 7
CREATE TABLE table_name_16 (lost INTEGER, points INTEGER)
List all directors from episodes with viewership of 1.945 million.
SELECT directed_by FROM table_22835602_1 WHERE viewers__in_millions_ = "1.945"
CREATE TABLE table_22835602_1 (directed_by VARCHAR, viewers__in_millions_ VARCHAR)
What was the result for the 2012 ibjjf world jiu-jitsu championships event when the method was points (4 x 0)?
SELECT result FROM table_name_95 WHERE event = "2012 ibjjf world jiu-jitsu championships" AND method = "points (4 x 0)"
CREATE TABLE table_name_95 (result VARCHAR, event VARCHAR, method VARCHAR)
What is the Week 1 result of Colorado State?
SELECT week_1_sept_7 FROM table_name_15 WHERE preseason = "colorado state"
CREATE TABLE table_name_15 (week_1_sept_7 VARCHAR, preseason VARCHAR)
What were the high points for the game played at the MCI Center?
SELECT COUNT(high_points) FROM table_18904831_7 WHERE location = "MCI Center"
CREATE TABLE table_18904831_7 (high_points VARCHAR, location VARCHAR)
What was the result of the game that was attended by 80,886 people?
SELECT result FROM table_name_38 WHERE attendance = "80,886"
CREATE TABLE table_name_38 (result VARCHAR, attendance VARCHAR)
Which pick number attended McMaster College?
SELECT pick__number FROM table_name_89 WHERE college = "mcmaster"
CREATE TABLE table_name_89 (pick__number VARCHAR, college VARCHAR)
Which Score has a Away team of walthamstow avenue?
SELECT score FROM table_name_44 WHERE away_team = "walthamstow avenue"
CREATE TABLE table_name_44 (score VARCHAR, away_team VARCHAR)
What was the net seat gain in the race john a. elston (r) 88.4% luella twining (s) 11.6%?
SELECT result FROM table_1346118_5 WHERE candidates = "John A. Elston (R) 88.4% Luella Twining (S) 11.6%"
CREATE TABLE table_1346118_5 (result VARCHAR, candidates VARCHAR)
Which Points against has a Lost of 13, and Points for of 671?
SELECT points_against FROM table_name_9 WHERE lost = "13" AND points_for = "671"
CREATE TABLE table_name_9 (points_against VARCHAR, lost VARCHAR, points_for VARCHAR)
What is the total number of First elected that has a country represented in Baltimore county, a district of 06.0 6, and a committee of economic matters?
SELECT COUNT(first_elected) FROM table_name_80 WHERE counties_represented = "baltimore county" AND district = "06.0 6" AND committee = "economic matters"
CREATE TABLE table_name_80 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR)
Which section is in the 6th position?
SELECT section FROM table_name_8 WHERE position = "6th"
CREATE TABLE table_name_8 (section VARCHAR, position VARCHAR)
Which venue had an against smaller than 7?
SELECT venue FROM table_name_15 WHERE against < 7
CREATE TABLE table_name_15 (venue VARCHAR, against INTEGER)
Name the clas AAAA of school year 2000-01
SELECT class_aAAA FROM table_name_76 WHERE school_year = "2000-01"
CREATE TABLE table_name_76 (class_aAAA VARCHAR, school_year VARCHAR)
What is Time/Retired, when Team is "Team Vodafone", and when Grid is greater than 4?
SELECT time_retired FROM table_name_16 WHERE team = "team vodafone" AND grid > 4
CREATE TABLE table_name_16 (time_retired VARCHAR, team VARCHAR, grid VARCHAR)
When interjection is the subject who are the lyrics by?
SELECT lyrics_by FROM table_191105_2 WHERE subject = "interjection"
CREATE TABLE table_191105_2 (lyrics_by VARCHAR, subject VARCHAR)
What is the total number of Round that has a Time of 6:04?
SELECT SUM(round) FROM table_name_85 WHERE time = "6:04"
CREATE TABLE table_name_85 (round INTEGER, time VARCHAR)
What is the Launched which is on 3 may 2001?
SELECT launched FROM table_name_31 WHERE date_of_commission = "3 may 2001"
CREATE TABLE table_name_31 (launched VARCHAR, date_of_commission VARCHAR)
How many losses had more than 122 years and more than 1244 total games?
SELECT SUM(lost) FROM table_name_2 WHERE years > 122 AND total_games > 1244
CREATE TABLE table_name_2 (lost INTEGER, years VARCHAR, total_games VARCHAR)
Which Features have Yes listed under Datacenter?
SELECT features FROM table_name_18 WHERE datacenter = "yes"
CREATE TABLE table_name_18 (features VARCHAR, datacenter VARCHAR)
Year larger than 2008 includes which notes?
SELECT notes FROM table_name_35 WHERE year > 2008
CREATE TABLE table_name_35 (notes VARCHAR, year INTEGER)
If the opponents in the final is Hewitt McMillan and the partner is Fleming, what is the surface?
SELECT surface FROM table_22597626_2 WHERE partner = "Fleming" AND opponents_in_the_final = "Hewitt McMillan"
CREATE TABLE table_22597626_2 (surface VARCHAR, partner VARCHAR, opponents_in_the_final VARCHAR)
Which Bronze has a Silver smaller than 1, and a Total larger than 3?
SELECT AVG(bronze) FROM table_name_94 WHERE silver < 1 AND total > 3
CREATE TABLE table_name_94 (bronze INTEGER, silver VARCHAR, total VARCHAR)
Who is the entrant when the year is less than 1953?
SELECT entrant FROM table_name_97 WHERE year < 1953
CREATE TABLE table_name_97 (entrant VARCHAR, year INTEGER)
Who was the centerfold model when the issue's pictorial was kimberly bell , bunnies of the new playboy club?
SELECT centerfold_model FROM table_1566852_8 WHERE pictorials = "Kimberly Bell , Bunnies of the New Playboy Club"
CREATE TABLE table_1566852_8 (centerfold_model VARCHAR, pictorials VARCHAR)
Who was the opponent at the game when the record was 28–45?
SELECT opponent FROM table_name_66 WHERE record = "28–45"
CREATE TABLE table_name_66 (opponent VARCHAR, record VARCHAR)
Which Source has a Clinton of 39% and a Undecided of 7%?
SELECT source FROM table_name_94 WHERE clinton = "39%" AND undecided = "7%"
CREATE TABLE table_name_94 (source VARCHAR, clinton VARCHAR, undecided VARCHAR)
How many courses are there in total?
SELECT COUNT(*) FROM COURSE
CREATE TABLE COURSE (Id VARCHAR)
What is the birthdate of Robert Esche?
SELECT birthdate FROM table_name_39 WHERE name = "robert esche"
CREATE TABLE table_name_39 (birthdate VARCHAR, name VARCHAR)
What's the score of the 1st leg when Water Corporation was Team 1?
SELECT 1 AS st_leg FROM table_name_8 WHERE team_1 = "water corporation"
CREATE TABLE table_name_8 (team_1 VARCHAR)
who is the home team when the away team is bolton wanderers?
SELECT home_team FROM table_name_12 WHERE away_team = "bolton wanderers"
CREATE TABLE table_name_12 (home_team VARCHAR, away_team VARCHAR)
What french open tournament happened in 2010 and has a 2004 1r?
SELECT 2010 FROM table_name_58 WHERE 2004 = "1r" AND tournament = "french open"
CREATE TABLE table_name_58 (tournament VARCHAR)
What are the ids of the movies that are not reviewed by Brittany Harris.
SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = "Brittany Harris"
CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Rating (mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)
Which office has kieran o'doherty as the conservative ticket?
SELECT office FROM table_name_28 WHERE conservative_ticket = "kieran o'doherty"
CREATE TABLE table_name_28 (office VARCHAR, conservative_ticket VARCHAR)
What was the lowest pick number for the Boston Celtics?
SELECT MIN(pick) FROM table_name_5 WHERE team = "boston celtics"
CREATE TABLE table_name_5 (pick INTEGER, team VARCHAR)
Which team had goal averages of 1.34?
SELECT team FROM table_17366952_1 WHERE goal_average_1 = "1.34"
CREATE TABLE table_17366952_1 (team VARCHAR, goal_average_1 VARCHAR)
What engine with the years of 1975-84 has a model of 1600?
SELECT engine FROM table_name_29 WHERE model = "1600" AND years = "1975-84"
CREATE TABLE table_name_29 (engine VARCHAR, model VARCHAR, years VARCHAR)
Which Score has a Location of richfield coliseum?
SELECT score FROM table_name_96 WHERE location = "richfield coliseum"
CREATE TABLE table_name_96 (score VARCHAR, location VARCHAR)
What is the hometown of Devon Bookert who is 6-3 tall?
SELECT hometown FROM table_name_62 WHERE height = "6-3" AND name = "devon bookert"
CREATE TABLE table_name_62 (hometown VARCHAR, height VARCHAR, name VARCHAR)
Who directed the movie when John Wayne played the role of John Travers?
SELECT director FROM table_name_54 WHERE role = "john travers"
CREATE TABLE table_name_54 (director VARCHAR, role VARCHAR)