instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the Time of the Player with a Rank of 1 or 2 and Notes of FA? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (time VARCHAR, notes VARCHAR, rank VARCHAR) | SELECT time FROM table_name_75 WHERE notes = "fa" AND rank < 2 |
Write a SQL query that answers the following question: Who are the Rowers from Poland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (rowers VARCHAR, country VARCHAR) | SELECT rowers FROM table_name_66 WHERE country = "poland" |
Write a SQL query that answers the following question: Who are the Rowers with a Time of 5:56.38? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (rowers VARCHAR, time VARCHAR) | SELECT rowers FROM table_name_14 WHERE time = "5:56.38" |
Write a SQL query that answers the following question: What's the title of the film with the release date of 1954-12-18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (title VARCHAR, release_date VARCHAR) | SELECT title FROM table_name_95 WHERE release_date = "1954-12-18" |
Write a SQL query that answers the following question: What is the production number for Bell Hoppy in the MM Series? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (production_number VARCHAR, series VARCHAR, title VARCHAR) | SELECT COUNT(production_number) FROM table_name_21 WHERE series = "mm" AND title = "bell hoppy" |
Write a SQL query that answers the following question: How much Scored has Losses smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (scored INTEGER, losses INTEGER) | SELECT SUM(scored) FROM table_name_75 WHERE losses < 0 |
Write a SQL query that answers the following question: Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (wins INTEGER, played VARCHAR, losses VARCHAR, position VARCHAR) | SELECT MIN(wins) FROM table_name_98 WHERE losses < 6 AND position = 4 AND played > 9 |
Write a SQL query that answers the following question: How much Conceded has Wins smaller than 3, and Points larger than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (conceded VARCHAR, wins VARCHAR, points VARCHAR) | SELECT COUNT(conceded) FROM table_name_77 WHERE wins < 3 AND points > 11 |
Write a SQL query that answers the following question: Which Draws has Points smaller than 15, and a Conceded larger than 10, and a Position larger than 8, and Wins of 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (draws INTEGER, wins VARCHAR, position VARCHAR, points VARCHAR, conceded VARCHAR) | SELECT MIN(draws) FROM table_name_91 WHERE points < 15 AND conceded > 10 AND position > 8 AND wins = 1 |
Write a SQL query that answers the following question: How many losses have 11 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (losses VARCHAR, points VARCHAR) | SELECT COUNT(losses) FROM table_name_62 WHERE points = 11 |
Write a SQL query that answers the following question: What is the song title sung by Sonu Nigam with lyricists of Dev Kohli/Biddu, and number over 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (song_title VARCHAR, number VARCHAR, singer_s_ VARCHAR, lyricist VARCHAR) | SELECT song_title FROM table_name_3 WHERE singer_s_ = "sonu nigam" AND lyricist = "dev kohli/biddu" AND number > 8 |
Write a SQL query that answers the following question: Who was the singer for the song numbered 3, with lyricist Dev Kohli? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (singer_s_ VARCHAR, lyricist VARCHAR, number VARCHAR) | SELECT singer_s_ FROM table_name_97 WHERE lyricist = "dev kohli" AND number = 3 |
Write a SQL query that answers the following question: What is the average number for the song "O Sudha"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (number INTEGER, song_title VARCHAR) | SELECT AVG(number) FROM table_name_75 WHERE song_title = "o sudha" |
Write a SQL query that answers the following question: What is the average length for the song "Ma Ke Jaisi"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (length VARCHAR, song_title VARCHAR) | SELECT length FROM table_name_53 WHERE song_title = "ma ke jaisi" |
Write a SQL query that answers the following question: Who had fa cup goals of 0, league cup goals less than 2, and total goals of 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (name VARCHAR, total_goals VARCHAR, fa_cup_goals VARCHAR, league_cup_goals VARCHAR) | SELECT name FROM table_name_83 WHERE fa_cup_goals = 0 AND league_cup_goals < 2 AND total_goals = 2 |
Write a SQL query that answers the following question: what is the fa cup goals when total apps is 10 (4)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (fa_cup_goals INTEGER, total_apps VARCHAR) | SELECT SUM(fa_cup_goals) FROM table_name_12 WHERE total_apps = "10 (4)" |
Write a SQL query that answers the following question: how many times is the fa cup apps more than 0, the position mf and the league goals 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (total_goals VARCHAR, league_goals VARCHAR, fa_cup_apps VARCHAR, position VARCHAR) | SELECT COUNT(total_goals) FROM table_name_52 WHERE fa_cup_apps > 0 AND position = "mf" AND league_goals = 4 |
Write a SQL query that answers the following question: What is the total number of electorates in 2009 with a constituency of 193? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (number_of_electorates__2009_ VARCHAR, constituency_number VARCHAR) | SELECT COUNT(number_of_electorates__2009_) FROM table_name_83 WHERE constituency_number = "193" |
Write a SQL query that answers the following question: What is the reserved for the constituency of 192? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) | SELECT reserved_for___sc___st__none_ FROM table_name_34 WHERE constituency_number = "192" |
Write a SQL query that answers the following question: Which Artist has a Percentage of 11.32%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (artist VARCHAR, percentage VARCHAR) | SELECT artist FROM table_name_79 WHERE percentage = "11.32%" |
Write a SQL query that answers the following question: What is the week for November 28, 1982? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (week INTEGER, date VARCHAR) | SELECT MIN(week) FROM table_name_14 WHERE date = "november 28, 1982" |
Write a SQL query that answers the following question: What is the attendance number when the result is l 41-37? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (attendance VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_32 WHERE result = "l 41-37" |
Write a SQL query that answers the following question: What is the attendance in a week earlier than 4, and result is w 31-20? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (attendance INTEGER, week VARCHAR, result VARCHAR) | SELECT AVG(attendance) FROM table_name_5 WHERE week < 4 AND result = "w 31-20" |
Write a SQL query that answers the following question: What is the opponent in a week larger than 1, with a result of l 21-20? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (opponent VARCHAR, week VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_31 WHERE week > 1 AND result = "l 21-20" |
Write a SQL query that answers the following question: What sport was played by the team founded in 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (sport VARCHAR, founded VARCHAR) | SELECT sport FROM table_name_3 WHERE founded = 2010 |
Write a SQL query that answers the following question: What club team was founded before 2011 and plays at the champion window field? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (club VARCHAR, founded VARCHAR, venue VARCHAR) | SELECT club FROM table_name_27 WHERE founded < 2011 AND venue = "champion window field" |
Write a SQL query that answers the following question: How many different dates are there for founded teams for the venue of champion window field? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (founded VARCHAR, venue VARCHAR) | SELECT COUNT(founded) FROM table_name_77 WHERE venue = "champion window field" |
Write a SQL query that answers the following question: What club team plays at the champion window field? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (club VARCHAR, venue VARCHAR) | SELECT club FROM table_name_40 WHERE venue = "champion window field" |
Write a SQL query that answers the following question: Which Inflation Index (2000=100) has a Per Capita Income (as % of USA) of 10.65, and a Year smaller than 1990? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (inflation_index__2000 INTEGER, per_capita_income__as__percentage_of_usa_ VARCHAR, year VARCHAR) | SELECT MAX(inflation_index__2000) = 100 AS _ FROM table_name_67 WHERE per_capita_income__as__percentage_of_usa_ = 10.65 AND year < 1990 |
Write a SQL query that answers the following question: What release date has 6998 as the production num.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (release_date VARCHAR, production_num VARCHAR) | SELECT release_date FROM table_name_77 WHERE production_num = "6998" |
Write a SQL query that answers the following question: What director has lt as the series, with 6982 as the production num.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (director VARCHAR, series VARCHAR, production_num VARCHAR) | SELECT director FROM table_name_40 WHERE series = "lt" AND production_num = "6982" |
Write a SQL query that answers the following question: What series has 1935-07-13 as the release date? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (series VARCHAR, release_date VARCHAR) | SELECT series FROM table_name_12 WHERE release_date = "1935-07-13" |
Write a SQL query that answers the following question: What title has lt as the series, ben hardaway as the director, with 6612 as the production num.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (title VARCHAR, production_num VARCHAR, series VARCHAR, director VARCHAR) | SELECT title FROM table_name_66 WHERE series = "lt" AND director = "ben hardaway" AND production_num = "6612" |
Write a SQL query that answers the following question: What is the song title from 1963 on the Pacific Jazz label, and a Label-Nr of st-81? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (title VARCHAR, label VARCHAR, year VARCHAR, Nr VARCHAR, st VARCHAR) | SELECT title FROM table_name_26 WHERE label = "pacific jazz" AND year = 1963 AND label - Nr = st - 81 |
Write a SQL query that answers the following question: What is the earliest year with a label-Nr of st-43? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (year INTEGER, label VARCHAR, Nr VARCHAR, st VARCHAR) | SELECT MIN(year) FROM table_name_37 WHERE label - Nr = st - 43 |
Write a SQL query that answers the following question: What is the song title on the Pacific Jazz label, and a Label-Nr of st-20124? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (title VARCHAR, label VARCHAR, Nr VARCHAR, st VARCHAR) | SELECT title FROM table_name_3 WHERE label = "pacific jazz" AND label - Nr = st - 20124 |
Write a SQL query that answers the following question: What is the type earlier than 1968, and a Title of stretchin' out? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (type VARCHAR, year VARCHAR, title VARCHAR) | SELECT type FROM table_name_42 WHERE year < 1968 AND title = "stretchin' out" |
Write a SQL query that answers the following question: what is the team that is pick 31? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (team VARCHAR, pick VARCHAR) | SELECT team FROM table_name_19 WHERE pick = 31 |
Write a SQL query that answers the following question: what is the position when the pick is higher than 32 and the team is atlanta braves? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (position VARCHAR, pick VARCHAR, team VARCHAR) | SELECT position FROM table_name_8 WHERE pick > 32 AND team = "atlanta braves" |
Write a SQL query that answers the following question: what is the position when the pick is higher than 33 and the school is tottenville hs (staten island, ny)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (position VARCHAR, pick VARCHAR, school VARCHAR) | SELECT position FROM table_name_16 WHERE pick > 33 AND school = "tottenville hs (staten island, ny)" |
Write a SQL query that answers the following question: What is the Attendance of the game in Week 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (attendance INTEGER, week VARCHAR) | SELECT MAX(attendance) FROM table_name_99 WHERE week = 12 |
Write a SQL query that answers the following question: What is the Opponent on December 3, 1979? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_25 WHERE date = "december 3, 1979" |
Write a SQL query that answers the following question: What is the Result of the game against Philadelphia Eagles? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_62 WHERE opponent = "philadelphia eagles" |
Write a SQL query that answers the following question: What is the score March 27? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_55 WHERE date = "march 27" |
Write a SQL query that answers the following question: What is the score for the game larger than 4 in series 3-2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (score VARCHAR, game VARCHAR, series VARCHAR) | SELECT score FROM table_name_77 WHERE game > 4 AND series = "3-2" |
Write a SQL query that answers the following question: What is the game number for series 4-2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (game VARCHAR, series VARCHAR) | SELECT COUNT(game) FROM table_name_56 WHERE series = "4-2" |
Write a SQL query that answers the following question: What date has a game smaller than 4, and a score of 116-114? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (date VARCHAR, game VARCHAR, score VARCHAR) | SELECT date FROM table_name_73 WHERE game < 4 AND score = "116-114" |
Write a SQL query that answers the following question: What is the game number on April 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (game VARCHAR, date VARCHAR) | SELECT COUNT(game) FROM table_name_43 WHERE date = "april 7" |
Write a SQL query that answers the following question: Which Opposing Team has an Against smaller than 19, and a Date of 20/05/1979? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (opposing_team VARCHAR, against VARCHAR, date VARCHAR) | SELECT opposing_team FROM table_name_34 WHERE against < 19 AND date = "20/05/1979" |
Write a SQL query that answers the following question: What was the production number of the episode titel of pre-hysterical hare? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (production_number VARCHAR, title VARCHAR) | SELECT COUNT(production_number) FROM table_name_76 WHERE title = "pre-hysterical hare" |
Write a SQL query that answers the following question: What director had a production number of 1490? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (director VARCHAR, production_number VARCHAR) | SELECT director FROM table_name_27 WHERE production_number = 1490 |
Write a SQL query that answers the following question: Which title was directed by chuck jones and released on 1958-04-12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (title VARCHAR, director VARCHAR, release_date VARCHAR) | SELECT title FROM table_name_56 WHERE director = "chuck jones" AND release_date = "1958-04-12" |
Write a SQL query that answers the following question: Which Name has a Time larger than 53.06, and a Lane smaller than 8, and a Rank larger than 2, and a Nationality of japan? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (name VARCHAR, nationality VARCHAR, rank VARCHAR, time VARCHAR, lane VARCHAR) | SELECT name FROM table_name_96 WHERE time > 53.06 AND lane < 8 AND rank > 2 AND nationality = "japan" |
Write a SQL query that answers the following question: How many lanes have a Time of 53.61, and a Rank larger than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (lane INTEGER, time VARCHAR, rank VARCHAR) | SELECT SUM(lane) FROM table_name_32 WHERE time = 53.61 AND rank > 3 |
Write a SQL query that answers the following question: What is the finish position in the year prior to 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (finish_position VARCHAR, year INTEGER) | SELECT finish_position FROM table_name_64 WHERE year < 2009 |
Write a SQL query that answers the following question: Which #/ County has a Location of ossian? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (_number___county VARCHAR, location VARCHAR) | SELECT _number___county FROM table_name_88 WHERE location = "ossian" |
Write a SQL query that answers the following question: How much Enrollment has an IHSAA Class of aaaaa, and a Mascot of spartans? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (enrollment VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR) | SELECT COUNT(enrollment) FROM table_name_79 WHERE ihsaa_class = "aaaaa" AND mascot = "spartans" |
Write a SQL query that answers the following question: How much Enrollment has a School of fort wayne homestead? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (enrollment INTEGER, school VARCHAR) | SELECT SUM(enrollment) FROM table_name_5 WHERE school = "fort wayne homestead" |
Write a SQL query that answers the following question: Which IHSAA Class has a Location of columbia city? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (ihsaa_class VARCHAR, location VARCHAR) | SELECT ihsaa_class FROM table_name_49 WHERE location = "columbia city" |
Write a SQL query that answers the following question: Who was the opponent at the game with a score of 111-106? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_78 WHERE score = "111-106" |
Write a SQL query that answers the following question: What was the location of the game with a score of 113-106? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (location_attendance VARCHAR, score VARCHAR) | SELECT location_attendance FROM table_name_13 WHERE score = "113-106" |
Write a SQL query that answers the following question: What is the highest pick number for a pick drafted by the denver broncos? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (pick INTEGER, team VARCHAR) | SELECT MAX(pick) FROM table_name_52 WHERE team = "denver broncos" |
Write a SQL query that answers the following question: What opponent has l 27-7 as the result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_83 WHERE result = "l 27-7" |
Write a SQL query that answers the following question: How many weeks has 54,187 as the attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (week VARCHAR, attendance VARCHAR) | SELECT COUNT(week) FROM table_name_87 WHERE attendance = 54 OFFSET 187 |
Write a SQL query that answers the following question: What tournament had Alberta Brianti as an opponent with a score of 6-4 2-6 6-2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (tournament VARCHAR, opponent VARCHAR, score VARCHAR) | SELECT tournament FROM table_name_96 WHERE opponent = "alberta brianti" AND score = "6-4 2-6 6-2" |
Write a SQL query that answers the following question: When was the score 3-6 4-6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_3 WHERE score = "3-6 4-6" |
Write a SQL query that answers the following question: What is the Rank of the Swimmer with a Time of 2:25.65 in a Lane larger than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (rank INTEGER, time VARCHAR, lane VARCHAR) | SELECT AVG(rank) FROM table_name_36 WHERE time = "2:25.65" AND lane > 3 |
Write a SQL query that answers the following question: What is the Rank of Qi Hui? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (rank VARCHAR, name VARCHAR) | SELECT COUNT(rank) FROM table_name_52 WHERE name = "qi hui" |
Write a SQL query that answers the following question: How many Forfeits have Wins smaller than 8, and Losses larger than 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (forfeits VARCHAR, wins VARCHAR, losses VARCHAR) | SELECT COUNT(forfeits) FROM table_name_84 WHERE wins < 8 AND losses > 16 |
Write a SQL query that answers the following question: How many Losses have a Millewa of nangiloc? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (losses VARCHAR, millewa VARCHAR) | SELECT COUNT(losses) FROM table_name_13 WHERE millewa = "nangiloc" |
Write a SQL query that answers the following question: How many Losses have Draws larger than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (losses INTEGER, draws INTEGER) | SELECT MAX(losses) FROM table_name_58 WHERE draws > 0 |
Write a SQL query that answers the following question: What is the average rank of Elise Matthysen in lanes under 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (rank INTEGER, name VARCHAR, lane VARCHAR) | SELECT AVG(rank) FROM table_name_46 WHERE name = "elise matthysen" AND lane < 8 |
Write a SQL query that answers the following question: What is the time of Yuliya Yefimova? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (time VARCHAR, name VARCHAR) | SELECT time FROM table_name_53 WHERE name = "yuliya yefimova" |
Write a SQL query that answers the following question: Who was from Great Britain in lanes under number 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (name VARCHAR, lane VARCHAR, nationality VARCHAR) | SELECT name FROM table_name_1 WHERE lane < 3 AND nationality = "great britain" |
Write a SQL query that answers the following question: What wheel arrangement was made in 1910? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (wheel_arrangement VARCHAR, year_made VARCHAR) | SELECT wheel_arrangement FROM table_name_1 WHERE year_made = "1910" |
Write a SQL query that answers the following question: What year were the retired serial numbers 27317–27336? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (year_s__retired VARCHAR, serial_numbers VARCHAR) | SELECT year_s__retired FROM table_name_32 WHERE serial_numbers = "27317–27336" |
Write a SQL query that answers the following question: Which Surface has a score of 7-5, 5-7, 6-3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (surface VARCHAR, score VARCHAR) | SELECT surface FROM table_name_16 WHERE score = "7-5, 5-7, 6-3" |
Write a SQL query that answers the following question: Which tournament has a Score of 6-4, 6-4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (tournament VARCHAR, score VARCHAR) | SELECT tournament FROM table_name_30 WHERE score = "6-4, 6-4" |
Write a SQL query that answers the following question: What was the Surface on during 10 November 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_41 WHERE date = "10 november 2006" |
Write a SQL query that answers the following question: What was the Score on 25 May 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_79 WHERE date = "25 may 2007" |
Write a SQL query that answers the following question: What was the score on 10 November 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_79 WHERE date = "10 november 2006" |
Write a SQL query that answers the following question: Which Partnering has a Score of 6-3, 4-6, 6-4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (partnering VARCHAR, score VARCHAR) | SELECT partnering FROM table_name_92 WHERE score = "6-3, 4-6, 6-4" |
Write a SQL query that answers the following question: What is the rank for the man from China with notes of QS? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (rank INTEGER, notes VARCHAR, country VARCHAR) | SELECT MAX(rank) FROM table_name_38 WHERE notes = "qs" AND country = "china" |
Write a SQL query that answers the following question: What is the rank for the competitor from Bulgaria? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (rank INTEGER, country VARCHAR) | SELECT MIN(rank) FROM table_name_16 WHERE country = "bulgaria" |
Write a SQL query that answers the following question: Which athlete is ranked below 5 and is from China? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (athletes VARCHAR, rank VARCHAR, country VARCHAR) | SELECT athletes FROM table_name_62 WHERE rank < 5 AND country = "china" |
Write a SQL query that answers the following question: Which game was a Platformer? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (game VARCHAR, genre VARCHAR) | SELECT game FROM table_name_90 WHERE genre = "platformer" |
Write a SQL query that answers the following question: Who was the developer of XCom: Enemy Unknown? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (developer_s_ VARCHAR, game VARCHAR) | SELECT developer_s_ FROM table_name_98 WHERE game = "xcom: enemy unknown" |
Write a SQL query that answers the following question: Which platform was Red Dead Redemption for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (platform_s_ VARCHAR, game VARCHAR) | SELECT platform_s_ FROM table_name_50 WHERE game = "red dead redemption" |
Write a SQL query that answers the following question: What is the highest total for players with under 2 Egyptian Premier League goals and 0 Egypt Cup goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (total INTEGER, egyptian_premier_league VARCHAR, egypt_cup VARCHAR) | SELECT MAX(total) FROM table_name_49 WHERE egyptian_premier_league < 2 AND egypt_cup < 0 |
Write a SQL query that answers the following question: What is the aveage Egypt Cup value for players with 0 CAF Champions League goals, 6 Egyptian Premier League goals, and totals under 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (egypt_cup INTEGER, total VARCHAR, caf_champions_league VARCHAR, egyptian_premier_league VARCHAR) | SELECT AVG(egypt_cup) FROM table_name_93 WHERE caf_champions_league = 0 AND egyptian_premier_league = 6 AND total < 6 |
Write a SQL query that answers the following question: how many times is gold more than 0 and the rank less than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (silver VARCHAR, gold VARCHAR, rank VARCHAR) | SELECT COUNT(silver) FROM table_name_64 WHERE gold > 0 AND rank < 2 |
Write a SQL query that answers the following question: what is the highest total when the nation is france and silver is more than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (total INTEGER, nation VARCHAR, silver VARCHAR) | SELECT MAX(total) FROM table_name_71 WHERE nation = "france" AND silver > 1 |
Write a SQL query that answers the following question: what is the least silver for germany when gold is more than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (silver INTEGER, nation VARCHAR, gold VARCHAR) | SELECT MIN(silver) FROM table_name_94 WHERE nation = "germany" AND gold > 4 |
Write a SQL query that answers the following question: How many times is the total less than 15, rank less than 5, bronze is 4 and gold smaller than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (silver VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR, rank VARCHAR) | SELECT COUNT(silver) FROM table_name_23 WHERE total < 15 AND rank < 5 AND bronze = 4 AND gold < 3 |
Write a SQL query that answers the following question: What venue did the game on september 5, 1998 take place at? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_71 WHERE date = "september 5, 1998" |
Write a SQL query that answers the following question: What venue did the 2000 tiger cup take place at on November 10, 2000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (venue VARCHAR, competition VARCHAR, date VARCHAR) | SELECT venue FROM table_name_29 WHERE competition = "2000 tiger cup" AND date = "november 10, 2000" |
Write a SQL query that answers the following question: What date had a game with a score of 5-4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_63 WHERE score = "5-4" |
Write a SQL query that answers the following question: What is the total of Barangay with an area larger than 865.13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (s_barangay INTEGER, area___has__ INTEGER) | SELECT SUM(s_barangay) FROM table_name_72 WHERE area___has__ > 865.13 |
Write a SQL query that answers the following question: What is the lowest population density for the district of Santa Cruz and a Barangay larger than 82? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (pop_density__per_km2_ INTEGER, district VARCHAR, s_barangay VARCHAR) | SELECT MIN(pop_density__per_km2_) FROM table_name_12 WHERE district = "santa cruz" AND s_barangay > 82 |
Write a SQL query that answers the following question: What is the average number of golds for teams in rank 17 with more than 4 silver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (gold INTEGER, rank VARCHAR, silver VARCHAR) | SELECT AVG(gold) FROM table_name_13 WHERE rank = "17" AND silver > 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.