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