answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT SUM(interview) FROM table_name_64 WHERE evening_gown < 8.82 AND state = "kentucky" AND average > 8.85
CREATE TABLE table_name_64 (interview INTEGER, average VARCHAR, evening_gown VARCHAR, state VARCHAR)
What is the total number of interviews where the evening gown number is less than 8.82, the state is Kentucky, and the average is more than 8.85?
SELECT SUM(average) FROM table_name_96 WHERE swimsuit = 8.42 AND evening_gown < 8.71
CREATE TABLE table_name_96 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR)
How many averages had a swimsuit number of 8.42 and an evening gown number that was less than 8.71?
SELECT state FROM table_name_70 WHERE average < 8.67 AND swimsuit = 8.27 AND evening_gown = 8.78 AND interview = 8.52
CREATE TABLE table_name_70 (state VARCHAR, interview VARCHAR, evening_gown VARCHAR, average VARCHAR, swimsuit VARCHAR)
Which state had an average of less than 8.67, a swimsuit score of 8.27, an evening gown score of 8.78, and an interview number of 8.52?
SELECT record FROM table_name_82 WHERE visitor = "nashville"
CREATE TABLE table_name_82 (record VARCHAR, visitor VARCHAR)
What is the record when the visitor was Nashville?
SELECT date FROM table_name_83 WHERE venue = "pietermaritzburg"
CREATE TABLE table_name_83 (date VARCHAR, venue VARCHAR)
When was a competition held at Pietermaritzburg?
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_19 WHERE venue = "pietermaritzburg"
CREATE TABLE table_name_19 (bowling_figures_wickets_runs__overs_ VARCHAR, venue VARCHAR)
What were the bowling figures for the competition at Pietermaritzburg?
SELECT versus FROM table_name_82 WHERE bowling_figures_wickets_runs__overs_ = "5-33 (10)"
CREATE TABLE table_name_82 (versus VARCHAR, bowling_figures_wickets_runs__overs_ VARCHAR)
Who was the opponent during the competition in which the bowling figures were 5-33 (10)?
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_42 WHERE bowler = "gd mcgrath"
CREATE TABLE table_name_42 (bowling_figures_wickets_runs__overs_ VARCHAR, bowler VARCHAR)
What were GD Mcgrath's bowling figures?
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_43 WHERE venue = "port elizabeth" AND versus = "australia"
CREATE TABLE table_name_43 (bowling_figures_wickets_runs__overs_ VARCHAR, venue VARCHAR, versus VARCHAR)
During the competition at Port Elizabeth, where the opponent was Australia, what were the bowling figures?
SELECT MIN(floors) FROM table_name_33 WHERE rank > 1 AND building = "the trillium (residential)"
CREATE TABLE table_name_33 (floors INTEGER, rank VARCHAR, building VARCHAR)
What is the lowest amount of floors after rank 1 in the Trillium (residential) building?
SELECT MIN(floors) FROM table_name_4 WHERE completed < 1970 AND rank > 14
CREATE TABLE table_name_4 (floors INTEGER, completed VARCHAR, rank VARCHAR)
What is the lowest amount of floors in the building completed before 1970 ranked more than 14?
SELECT MAX(floors) FROM table_name_11 WHERE height = "70m (233ft)" AND building = "tupper building (educational)"
CREATE TABLE table_name_11 (floors INTEGER, height VARCHAR, building VARCHAR)
What is the largest amount of floors in the 70m (233ft) Tupper building (educational)?
SELECT manufacturer FROM table_name_52 WHERE laps = 23 AND time_retired = "+45.195"
CREATE TABLE table_name_52 (manufacturer VARCHAR, laps VARCHAR, time_retired VARCHAR)
Which manufacturer has 23 laps and a time of +45.195?
SELECT SUM(laps) FROM table_name_8 WHERE rider = "sylvain guintoli"
CREATE TABLE table_name_8 (laps INTEGER, rider VARCHAR)
What is the sum of Sylvain Guintoli's laps?
SELECT runs FROM table_name_75 WHERE strike_rate = "101.42"
CREATE TABLE table_name_75 (runs VARCHAR, strike_rate VARCHAR)
How many runs were scored when the strike rate was 101.42?
SELECT 2001 FROM table_name_4 WHERE product = "grain"
CREATE TABLE table_name_4 (product VARCHAR)
What was the amount of grain in 2001?
SELECT 2004 FROM table_name_51 WHERE product = "oil terminal"
CREATE TABLE table_name_51 (product VARCHAR)
What is the amount of oil terminal in 2004?
SELECT 2003 FROM table_name_34 WHERE 2001 = "514,000 tonnes"
CREATE TABLE table_name_34 (Id VARCHAR)
What is the 2003 statistic for the product that had 514,000 tonnes in 2001?
SELECT 2002 FROM table_name_7 WHERE 2001 = "452,000 tonnes"
CREATE TABLE table_name_7 (Id VARCHAR)
What is the 2002 statistic for the product that had 452,000 tonnes in 2001?
SELECT 2001 FROM table_name_91 WHERE 2002 = "2,360,000 tonnes"
CREATE TABLE table_name_91 (Id VARCHAR)
What is the 2001 statistic for the product that had 2,360,000 tonnes in 2002?
SELECT 2003 FROM table_name_94 WHERE product = "general cargo"
CREATE TABLE table_name_94 (product VARCHAR)
What is the 2003 statistic for general cargo?
SELECT home_team AS score FROM table_name_30 WHERE venue = "mcg"
CREATE TABLE table_name_30 (home_team VARCHAR, venue VARCHAR)
What did the home team score at MCG?
SELECT away_team AS score FROM table_name_44 WHERE home_team = "south melbourne"
CREATE TABLE table_name_44 (away_team VARCHAR, home_team VARCHAR)
What did the away team score when playing South Melbourne?
SELECT date FROM table_name_89 WHERE away_team = "north melbourne"
CREATE TABLE table_name_89 (date VARCHAR, away_team VARCHAR)
When did the game with North Melbourne as the away team take place?
SELECT date FROM table_name_57 WHERE away_team = "south melbourne"
CREATE TABLE table_name_57 (date VARCHAR, away_team VARCHAR)
If the Away team was south melbourne what Date did they play?
SELECT away_team AS score FROM table_name_67 WHERE home_team = "essendon"
CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR)
When the Home team of essendon is playing what is the Away team score?
SELECT date_of_vacancy FROM table_name_22 WHERE manner_of_departure = "resigned" AND outgoing_manager = "gordon wylde"
CREATE TABLE table_name_22 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR)
I wan the date of vacancy for departure of resigned and outgoing manager of gordon wylde
SELECT replaced_by FROM table_name_73 WHERE date_of_appointment = "12 october 2007"
CREATE TABLE table_name_73 (replaced_by VARCHAR, date_of_appointment VARCHAR)
I want the replaced for date of appointment being 12 october 2007
SELECT team FROM table_name_52 WHERE date_of_vacancy = "28 february"
CREATE TABLE table_name_52 (team VARCHAR, date_of_vacancy VARCHAR)
I want the team for date of vacancy being 28 february
SELECT manner_of_departure FROM table_name_87 WHERE date_of_appointment = "12 october 2007"
CREATE TABLE table_name_87 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
I want the manner of departure for date of appointment being 12 october 2007
SELECT date FROM table_name_67 WHERE circuit = "syracuse"
CREATE TABLE table_name_67 (date VARCHAR, circuit VARCHAR)
Which date was the syracuse circuit?
SELECT date FROM table_name_7 WHERE race_name = "x gran premio di napoli"
CREATE TABLE table_name_7 (date VARCHAR, race_name VARCHAR)
Which date was the x gran premio di napoli?
SELECT report FROM table_name_25 WHERE date = "22 september"
CREATE TABLE table_name_25 (report VARCHAR, date VARCHAR)
What report happened on 22 september?
SELECT report FROM table_name_33 WHERE winning_driver = "peter collins" AND circuit = "syracuse"
CREATE TABLE table_name_33 (report VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
Which report has a Winning driver of peter collins, and a Circuit of syracuse?
SELECT appointed_by FROM table_name_73 WHERE judge = "edward e. cushman"
CREATE TABLE table_name_73 (appointed_by VARCHAR, judge VARCHAR)
Who appointed Judge Edward E. Cushman?
SELECT Chief AS judge FROM table_name_37 WHERE judge = "jack edward tanner"
CREATE TABLE table_name_37 (Chief VARCHAR, judge VARCHAR)
Who was Judge Jack Edward Tanner's chief judge?
SELECT date_of_birth__age_ FROM table_name_41 WHERE caps = 11 AND position = "prop"
CREATE TABLE table_name_41 (date_of_birth__age_ VARCHAR, caps VARCHAR, position VARCHAR)
What is the date of birth of the player that has 11 caps and plays the prop position?
SELECT club_province FROM table_name_49 WHERE caps = 12
CREATE TABLE table_name_49 (club_province VARCHAR, caps VARCHAR)
What club or province is the player with 12 caps from?
SELECT position FROM table_name_47 WHERE club_province = "newcastle" AND caps < 24 AND player = "toby flood"
CREATE TABLE table_name_47 (position VARCHAR, player VARCHAR, club_province VARCHAR, caps VARCHAR)
What position does Toby Flood, who is from Newcastle and has fewer than 24 caps, play?
SELECT winningteam FROM table_name_76 WHERE losingteam = "newcastle breakers"
CREATE TABLE table_name_76 (winningteam VARCHAR, losingteam VARCHAR)
Which team beat the Newcastle Breakers?
SELECT losingteam FROM table_name_82 WHERE cup_finaldate = "20 august 1989"
CREATE TABLE table_name_82 (losingteam VARCHAR, cup_finaldate VARCHAR)
What team lost on 20 August 1989?
SELECT cup_finaldate FROM table_name_44 WHERE winningteam = "brisbane lions (1)"
CREATE TABLE table_name_44 (cup_finaldate VARCHAR, winningteam VARCHAR)
On what date did the Brisbane Lions (1) win?
SELECT winningteam FROM table_name_20 WHERE cup_final_attendance = "8,132"
CREATE TABLE table_name_20 (winningteam VARCHAR, cup_final_attendance VARCHAR)
What was the winning team with the 8,132 final attendance?
SELECT attendance FROM table_name_48 WHERE date = "august 2"
CREATE TABLE table_name_48 (attendance VARCHAR, date VARCHAR)
What was the attendance on August 2?
SELECT date FROM table_name_62 WHERE attendance = "31,220"
CREATE TABLE table_name_62 (date VARCHAR, attendance VARCHAR)
What is the date where the attendance was 31,220?
SELECT record FROM table_name_8 WHERE date = "august 4"
CREATE TABLE table_name_8 (record VARCHAR, date VARCHAR)
What was the team's record on August 4?
SELECT date FROM table_name_84 WHERE attendance = "48,041"
CREATE TABLE table_name_84 (date VARCHAR, attendance VARCHAR)
What was the date when the attendance was 48,041?
SELECT opponents_in_the_final FROM table_name_44 WHERE partnering = "ricardo hocevar"
CREATE TABLE table_name_44 (opponents_in_the_final VARCHAR, partnering VARCHAR)
Who are the finals opponents for the match with partner Ricardo Hocevar?
SELECT opponents_in_the_final FROM table_name_4 WHERE date = "june 23, 2003"
CREATE TABLE table_name_4 (opponents_in_the_final VARCHAR, date VARCHAR)
Who were the opponents of the final on June 23, 2003?
SELECT home_team FROM table_name_37 WHERE venue = "glenferrie oval"
CREATE TABLE table_name_37 (home_team VARCHAR, venue VARCHAR)
Who was the home side at glenferrie oval?
SELECT written_by FROM table_name_2 WHERE episode__number = "38 (16)"
CREATE TABLE table_name_2 (written_by VARCHAR, episode__number VARCHAR)
Who is the author of Episode 38 (16)?
SELECT original_airdate FROM table_name_65 WHERE episode__number = "29 (7)"
CREATE TABLE table_name_65 (original_airdate VARCHAR, episode__number VARCHAR)
When did Episode 29 (7) originally air?
SELECT episode__number FROM table_name_23 WHERE original_airdate = "april 5, 1998"
CREATE TABLE table_name_23 (episode__number VARCHAR, original_airdate VARCHAR)
What is the episode # of the episode that aired on April 5, 1998?
SELECT written_by FROM table_name_42 WHERE original_airdate = "march 1, 1998"
CREATE TABLE table_name_42 (written_by VARCHAR, original_airdate VARCHAR)
Who wrote the episode that originally aired on March 1, 1998?
SELECT tournament FROM table_name_35 WHERE 2000 = "3r"
CREATE TABLE table_name_35 (tournament VARCHAR)
what tournament has 2000 of 3r?
SELECT 2001 FROM table_name_42 WHERE 1991 = "4r"
CREATE TABLE table_name_42 (Id VARCHAR)
what 2001 has 1991 of 4r?
SELECT 1989 FROM table_name_22 WHERE 2002 = "4r" AND 2005 = "4r"
CREATE TABLE table_name_22 (Id VARCHAR)
what 1989 has 2002 of 4r and 2005 of 4r?
SELECT away_team AS score FROM table_name_34 WHERE crowd > 28 OFFSET 536
CREATE TABLE table_name_34 (away_team VARCHAR, crowd INTEGER)
What team played in front of 28,536 at an away stadium?
SELECT home_team AS score FROM table_name_25 WHERE home_team = "fitzroy"
CREATE TABLE table_name_25 (home_team VARCHAR)
What was Fitzroy score at their home stadium?
SELECT away_team AS score FROM table_name_43 WHERE home_team = "st kilda"
CREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR)
Who faced off against St Kilda at their home?
SELECT MIN(top_25) FROM table_name_42 WHERE events > 15
CREATE TABLE table_name_42 (top_25 INTEGER, events INTEGER)
What is the low number of top 25s in an event with over 15 appearances?
SELECT AVG(rank) FROM table_name_8 WHERE day_of_week = "wednesday" AND year < 2012 AND studio_s_ = "reliance entertainment"
CREATE TABLE table_name_8 (rank INTEGER, studio_s_ VARCHAR, day_of_week VARCHAR, year VARCHAR)
What is the average rank of the Reliance Entertainment movie with an opening day on Wednesday before 2012?
SELECT SUM(opening_day_net_gross) FROM table_name_90 WHERE studio_s_ = "reliance entertainment" AND year < 2011
CREATE TABLE table_name_90 (opening_day_net_gross INTEGER, studio_s_ VARCHAR, year VARCHAR)
What is the opening day net gross a Reliance Entertainment movie before 2011 had?
SELECT studio_s_ FROM table_name_89 WHERE movie = "ra.one"
CREATE TABLE table_name_89 (studio_s_ VARCHAR, movie VARCHAR)
What is the studio of ra.one?
SELECT COUNT(year) FROM table_name_78 WHERE day_of_week = "friday" AND rank = 10
CREATE TABLE table_name_78 (year VARCHAR, day_of_week VARCHAR, rank VARCHAR)
What is the year of the movie with an opening day on Friday with a rank 10?
SELECT MIN(sack) FROM table_name_1 WHERE solo = 24 AND tackles > 25.5 AND yards > 0
CREATE TABLE table_name_1 (sack INTEGER, yards VARCHAR, solo VARCHAR, tackles VARCHAR)
What is the lowest Sack with a Solo of 24, with Tackles larger than 25.5, with Yards larger than 0?
SELECT COUNT(solo) FROM table_name_33 WHERE player = "sean mcinerney" AND yards > 0
CREATE TABLE table_name_33 (solo VARCHAR, player VARCHAR, yards VARCHAR)
What is the total number of Solo with a Player with sean mcinerney, and Yards larger than 0?
SELECT SUM(total_capacity__mwe_) FROM table_name_86 WHERE power_plant = "ramakkalmedu"
CREATE TABLE table_name_86 (total_capacity__mwe_ INTEGER, power_plant VARCHAR)
At the power plant located in ramakkalmedu, what is the sum of the total capacity (MWe)?
SELECT producer FROM table_name_79 WHERE power_plant = "chennai mohan"
CREATE TABLE table_name_79 (producer VARCHAR, power_plant VARCHAR)
What company is the producer in the chennai mohan power plant?
SELECT producer FROM table_name_99 WHERE location = "poolavadi"
CREATE TABLE table_name_99 (producer VARCHAR, location VARCHAR)
What company is the producer at the poolavadi location
SELECT producer FROM table_name_64 WHERE location = "kethanur"
CREATE TABLE table_name_64 (producer VARCHAR, location VARCHAR)
What company is known as the producer at the kethanur location?
SELECT feathered__fxx_ FROM table_name_37 WHERE duration = "11 min, 34 sec"
CREATE TABLE table_name_37 (feathered__fxx_ VARCHAR, duration VARCHAR)
When the duration was 11 min, 34 sec, what was the feathered (Fxx)?
SELECT city FROM table_name_6 WHERE date = "5th" AND name = "guelferbytanus b"
CREATE TABLE table_name_6 (city VARCHAR, date VARCHAR, name VARCHAR)
I want to know the city for guelferbytanus b and the 5th
SELECT country FROM table_name_51 WHERE date = "9th" AND sign = "g e"
CREATE TABLE table_name_51 (country VARCHAR, date VARCHAR, sign VARCHAR)
Name the country for the 9th and sign of g e
SELECT content FROM table_name_54 WHERE sign = "g e"
CREATE TABLE table_name_54 (content VARCHAR, sign VARCHAR)
Name the content for sign of g e
SELECT city FROM table_name_22 WHERE name = "athous lavrensis"
CREATE TABLE table_name_22 (city VARCHAR, name VARCHAR)
Name the city for athous lavrensis
SELECT race_name FROM table_name_22 WHERE dist__miles_ = "4" AND runner_up = "not known"
CREATE TABLE table_name_22 (race_name VARCHAR, dist__miles_ VARCHAR, runner_up VARCHAR)
Which race had a distance of 4 miles where the runner-up was not known?
SELECT date FROM table_name_91 WHERE home = "jazz" AND visitor = "bulls"
CREATE TABLE table_name_91 (date VARCHAR, home VARCHAR, visitor VARCHAR)
What date did the Jazz play the Bulls at home?
SELECT leading_scorer FROM table_name_30 WHERE date = "february 26"
CREATE TABLE table_name_30 (leading_scorer VARCHAR, date VARCHAR)
On February 26, who was the leading scorer?
SELECT record FROM table_name_83 WHERE leading_scorer = "carlos boozer (23)"
CREATE TABLE table_name_83 (record VARCHAR, leading_scorer VARCHAR)
What's the record of Carlos Boozer (23) as the leading scorer?
SELECT date FROM table_name_50 WHERE leading_scorer = "carlos boozer (23)"
CREATE TABLE table_name_50 (date VARCHAR, leading_scorer VARCHAR)
What date was Carlos Boozer (23) the leading scorer?
SELECT leading_scorer FROM table_name_96 WHERE date = "february 9"
CREATE TABLE table_name_96 (leading_scorer VARCHAR, date VARCHAR)
Who was the leading scorer on February 9?
SELECT date FROM table_name_94 WHERE leading_scorer = "deron williams (29)" AND visitor = "hornets"
CREATE TABLE table_name_94 (date VARCHAR, leading_scorer VARCHAR, visitor VARCHAR)
While the Hornets were visiting, what date was Deron Williams (29) the leading scorer?
SELECT ships_in_class FROM table_name_52 WHERE class = "kuha class"
CREATE TABLE table_name_52 (ships_in_class VARCHAR, class VARCHAR)
Tell me the ships in classs for kuha class
SELECT COUNT(grid) FROM table_name_20 WHERE constructor = "talbot-lago - talbot" AND laps < 83 AND driver = "johnny claes"
CREATE TABLE table_name_20 (grid VARCHAR, driver VARCHAR, constructor VARCHAR, laps VARCHAR)
How many grids have a Constructor of talbot-lago - talbot, a Laps under 83, and a driver of johnny claes?
SELECT MAX(crowd) FROM table_name_86 WHERE away_team = "geelong"
CREATE TABLE table_name_86 (crowd INTEGER, away_team VARCHAR)
When the away team is Geelong, what is the highest crowd count?
SELECT SUM(crowd) FROM table_name_23 WHERE venue = "princes park"
CREATE TABLE table_name_23 (crowd INTEGER, venue VARCHAR)
What is the total crowd count for the venue Princes Park?
SELECT home_port FROM table_name_62 WHERE pennant = "m40"
CREATE TABLE table_name_62 (home_port VARCHAR, pennant VARCHAR)
What is the home port of m40?
SELECT navy FROM table_name_84 WHERE home_port = "portsmouth" AND commissioned > 1983 AND name = "middleton"
CREATE TABLE table_name_84 (navy VARCHAR, name VARCHAR, home_port VARCHAR, commissioned VARCHAR)
What is the navy for middleton with a home port of portsmouth after 1983?
SELECT date_of_death FROM table_name_4 WHERE name = "charles iii"
CREATE TABLE table_name_4 (date_of_death VARCHAR, name VARCHAR)
When did Charles III die?
SELECT fastest_lap FROM table_name_76 WHERE winning_driver = "giuseppe farina"
CREATE TABLE table_name_76 (fastest_lap VARCHAR, winning_driver VARCHAR)
What is the fastest lap of the race where Giuseppe Farina was the winning driver?
SELECT report FROM table_name_92 WHERE constructor = "ferrari" AND circuit = "monza"
CREATE TABLE table_name_92 (report VARCHAR, constructor VARCHAR, circuit VARCHAR)
What is the report status of the race with Ferrari as the constructor and a monza circuit?
SELECT constructor FROM table_name_26 WHERE fastest_lap = "juan manuel fangio" AND winning_driver = "giuseppe farina"
CREATE TABLE table_name_26 (constructor VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)
What is the constructor of the race with Juan Manuel Fangio as the fastest lap and Giuseppe Farina as the winning driver?
SELECT winning_driver FROM table_name_21 WHERE fastest_lap = "giuseppe farina" AND race = "british grand prix"
CREATE TABLE table_name_21 (winning_driver VARCHAR, fastest_lap VARCHAR, race VARCHAR)
Who was the winning driver of the British Grand Prix where Giuseppe Farina had the fastest lap?
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 race that had a tyre of p and Juan Manuel Fangio as the winning driver?
SELECT SUM(quantity) FROM table_name_76 WHERE type = "2-4-2t"
CREATE TABLE table_name_76 (quantity INTEGER, type VARCHAR)
What is the Quantity of Type 2-4-2t?
SELECT SUM(quantity) FROM table_name_71 WHERE date = "1900"
CREATE TABLE table_name_71 (quantity INTEGER, date VARCHAR)
What was the Quantity on Date 1900?
SELECT COUNT(quantity) FROM table_name_59 WHERE type = "2-4-2t"
CREATE TABLE table_name_59 (quantity VARCHAR, type VARCHAR)
What is the Quantity of type 2-4-2t?
SELECT MIN(grid) FROM table_name_70 WHERE time_retired = "engine" AND qual < 138.75
CREATE TABLE table_name_70 (grid INTEGER, time_retired VARCHAR, qual VARCHAR)
What is the smallest grid with a Time/Retired of engine, and a qual of less than 138.75?
SELECT laps FROM table_name_40 WHERE rank > 13 AND time_retired = "accident" AND qual < 136.98
CREATE TABLE table_name_40 (laps VARCHAR, qual VARCHAR, rank VARCHAR, time_retired VARCHAR)
What laps have a rank larger than 13 and the Time/Retired is accident, and a Qual smaller than 136.98?