instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is number 4's title? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (title VARCHAR, number VARCHAR) | SELECT title FROM table_name_36 WHERE number = 4 |
Write a SQL query that answers the following question: How many people were born in 1368? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (number VARCHAR, born VARCHAR) | SELECT COUNT(number) FROM table_name_52 WHERE born = "1368" |
Write a SQL query that answers the following question: Who was number 12's mother? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (mother VARCHAR, number VARCHAR) | SELECT mother FROM table_name_90 WHERE number = 12 |
Write a SQL query that answers the following question: What was the week number when they played on Dec. 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (week VARCHAR, date VARCHAR) | SELECT COUNT(week) FROM table_name_79 WHERE date = "dec. 19" |
Write a SQL query that answers the following question: What is the average number of students in East Lansing, MI? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (founded INTEGER, location VARCHAR) | SELECT AVG(founded) FROM table_name_70 WHERE location = "east lansing, mi" |
Write a SQL query that answers the following question: What is the lowest number of students at the community college? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (founded INTEGER, affiliation VARCHAR) | SELECT MIN(founded) FROM table_name_8 WHERE affiliation = "community college" |
Write a SQL query that answers the following question: What is Joanne Carner's average score in Canadian Women's Open games that she has won? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (score INTEGER, champion VARCHAR) | SELECT AVG(score) FROM table_name_70 WHERE champion = "joanne carner" |
Write a SQL query that answers the following question: What country does jocelyne bourassa play for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (country VARCHAR, champion VARCHAR) | SELECT country FROM table_name_73 WHERE champion = "jocelyne bourassa" |
Write a SQL query that answers the following question: Which Performance has a Test Standard of bs en779, and a Particulate size approaching 100% retention of >2µm, and a Class of f6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (performance VARCHAR, class VARCHAR, test_standard VARCHAR, particulate_size_approaching_100_percentage_retention VARCHAR) | SELECT performance FROM table_name_39 WHERE test_standard = "bs en779" AND particulate_size_approaching_100_percentage_retention = ">2µm" AND class = "f6" |
Write a SQL query that answers the following question: Which Performance has a Usage of hepa and a Class of h14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (performance VARCHAR, usage VARCHAR, class VARCHAR) | SELECT performance FROM table_name_38 WHERE usage = "hepa" AND class = "h14" |
Write a SQL query that answers the following question: Which Particulate size approaching 100% retention has a Usage of semi hepa and a Class of h12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (particulate_size_approaching_100_percentage_retention VARCHAR, usage VARCHAR, class VARCHAR) | SELECT particulate_size_approaching_100_percentage_retention FROM table_name_47 WHERE usage = "semi hepa" AND class = "h12" |
Write a SQL query that answers the following question: Which Test Standard has a Usage of secondary filters, and a Class of f5? Question 4 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (test_standard VARCHAR, usage VARCHAR, class VARCHAR) | SELECT test_standard FROM table_name_28 WHERE usage = "secondary filters" AND class = "f5" |
Write a SQL query that answers the following question: Which Score has a To par of –1, and a Player of mick soli? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT score FROM table_name_7 WHERE to_par = "–1" AND player = "mick soli" |
Write a SQL query that answers the following question: Which Score has a Place of t1, and a Player of hubert green? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (score INTEGER, place VARCHAR, player VARCHAR) | SELECT AVG(score) FROM table_name_35 WHERE place = "t1" AND player = "hubert green" |
Write a SQL query that answers the following question: Which Country has a Score of 69, and a Player of mick soli? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (country VARCHAR, score VARCHAR, player VARCHAR) | SELECT country FROM table_name_92 WHERE score = 69 AND player = "mick soli" |
Write a SQL query that answers the following question: Which Country has a Place of t1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (country VARCHAR, place VARCHAR) | SELECT country FROM table_name_38 WHERE place = "t1" |
Write a SQL query that answers the following question: Where is the moving from location with a transfer window of summer and the source kerkida.net? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (moving_from VARCHAR, transfer_window VARCHAR, source VARCHAR) | SELECT moving_from FROM table_name_88 WHERE transfer_window = "summer" AND source = "kerkida.net" |
Write a SQL query that answers the following question: Which name has the source apoelfc.com.cy and a type of transfer? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (name VARCHAR, source VARCHAR, type VARCHAR) | SELECT name FROM table_name_94 WHERE source = "apoelfc.com.cy" AND type = "transfer" |
Write a SQL query that answers the following question: What is the Fate of the San Pablo ship? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (fate VARCHAR, name VARCHAR) | SELECT fate FROM table_name_48 WHERE name = "san pablo" |
Write a SQL query that answers the following question: What is the date of attack of the Circe Shell Ship? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (date VARCHAR, name VARCHAR) | SELECT date FROM table_name_55 WHERE name = "circe shell" |
Write a SQL query that answers the following question: What fuel system was used in 1960-62? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (fuel_system VARCHAR, years VARCHAR) | SELECT fuel_system FROM table_name_95 WHERE years = "1960-62" |
Write a SQL query that answers the following question: How much power does the 1500 model have with a displacement of 1490cc? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (power VARCHAR, model VARCHAR, displacement VARCHAR) | SELECT power FROM table_name_22 WHERE model = "1500" AND displacement = "1490cc" |
Write a SQL query that answers the following question: Which years have a displacement of 1816cc? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (years VARCHAR, displacement VARCHAR) | SELECT years FROM table_name_44 WHERE displacement = "1816cc" |
Write a SQL query that answers the following question: How much power does the fuel injection system have with a displacement of 1991cc? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (power VARCHAR, fuel_system VARCHAR, displacement VARCHAR) | SELECT power FROM table_name_47 WHERE fuel_system = "fuel injection" AND displacement = "1991cc" |
Write a SQL query that answers the following question: Which fuel system has a displacement of 1490cc? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (fuel_system VARCHAR, displacement VARCHAR) | SELECT fuel_system FROM table_name_68 WHERE displacement = "1490cc" |
Write a SQL query that answers the following question: Which fuel system has a displacement of 1500cc for the Berlina model? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (fuel_system VARCHAR, displacement VARCHAR, model VARCHAR) | SELECT fuel_system FROM table_name_71 WHERE displacement = "1500cc" AND model = "berlina" |
Write a SQL query that answers the following question: What is the lowest Industry, when Year is greater than 2005, and when Agriculture is greater than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (industry INTEGER, year VARCHAR, agriculture VARCHAR) | SELECT MIN(industry) FROM table_name_96 WHERE year > 2005 AND agriculture > 11 |
Write a SQL query that answers the following question: What is the average Industry, when Agriculture is greater than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (industry INTEGER, agriculture INTEGER) | SELECT AVG(industry) FROM table_name_44 WHERE agriculture > 11 |
Write a SQL query that answers the following question: When the points scored was over 110.25%, what's the average amount lost? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (lost INTEGER, _percentage_pts INTEGER) | SELECT AVG(lost) FROM table_name_69 WHERE _percentage_pts > 110.25 |
Write a SQL query that answers the following question: If the points scored were 93.45%, what's the lowest amount of games lost? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (lost INTEGER, _percentage_pts VARCHAR) | SELECT MIN(lost) FROM table_name_27 WHERE _percentage_pts = 93.45 |
Write a SQL query that answers the following question: What is the rank of the film directed by Kevin Costner? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (rank VARCHAR, director VARCHAR) | SELECT COUNT(rank) FROM table_name_14 WHERE director = "kevin costner" |
Write a SQL query that answers the following question: What director grossed $200,512,643 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (director VARCHAR, gross VARCHAR) | SELECT director FROM table_name_96 WHERE gross = "$200,512,643" |
Write a SQL query that answers the following question: What is the average rank of the movie from Paramount Studios that grossed $200,512,643? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (rank INTEGER, studio VARCHAR, gross VARCHAR) | SELECT AVG(rank) FROM table_name_26 WHERE studio = "paramount" AND gross = "$200,512,643" |
Write a SQL query that answers the following question: Who directed Teenage Mutant Ninja Turtles? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (director VARCHAR, title VARCHAR) | SELECT director FROM table_name_81 WHERE title = "teenage mutant ninja turtles" |
Write a SQL query that answers the following question: What director ranked higher than 1 from Universal Studios and grossed $201,957,688? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (director VARCHAR, gross VARCHAR, rank VARCHAR, studio VARCHAR) | SELECT director FROM table_name_17 WHERE rank > 1 AND studio = "universal" AND gross = "$201,957,688" |
Write a SQL query that answers the following question: When the rider is Garry Mccoy and the manufacturer was Kawasaki, what was the time retired? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (time_retired VARCHAR, manufacturer VARCHAR, rider VARCHAR) | SELECT time_retired FROM table_name_94 WHERE manufacturer = "kawasaki" AND rider = "garry mccoy" |
Write a SQL query that answers the following question: What's the highest amount of laps Garry Mccoy drove? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (laps INTEGER, rider VARCHAR) | SELECT MAX(laps) FROM table_name_73 WHERE rider = "garry mccoy" |
Write a SQL query that answers the following question: If the manufacturer is Proton Kr and the grid was over 10, what was the time retired? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (time_retired VARCHAR, grid VARCHAR, manufacturer VARCHAR) | SELECT time_retired FROM table_name_79 WHERE grid > 10 AND manufacturer = "proton kr" |
Write a SQL query that answers the following question: The year 1974 has what listed as the Height? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (height VARCHAR, year VARCHAR) | SELECT height FROM table_name_38 WHERE year = 1974 |
Write a SQL query that answers the following question: The OMEGA transmitter Chabrier has what country listed? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (country VARCHAR, structure VARCHAR) | SELECT country FROM table_name_59 WHERE structure = "omega transmitter chabrier" |
Write a SQL query that answers the following question: Listed with a continent of Africa and before 2009 this structure is called what? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (structure VARCHAR, year VARCHAR, continent VARCHAR) | SELECT structure FROM table_name_83 WHERE year < 2009 AND continent = "africa" |
Write a SQL query that answers the following question: The year 1972 has what written in Height column? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (height VARCHAR, year VARCHAR) | SELECT height FROM table_name_40 WHERE year = 1972 |
Write a SQL query that answers the following question: What is the Continent that also has the United States listed as a country? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (continent VARCHAR, country VARCHAR) | SELECT continent FROM table_name_30 WHERE country = "united states" |
Write a SQL query that answers the following question: What is the highest number of ends won of 47 Ends Lost and a Shot % less than 73? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (ends_won INTEGER, ends_lost VARCHAR, shot__percentage VARCHAR) | SELECT MAX(ends_won) FROM table_name_4 WHERE ends_lost = 47 AND shot__percentage < 73 |
Write a SQL query that answers the following question: What Poll was on April 14 of 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (poll VARCHAR, april_14 VARCHAR) | SELECT poll FROM table_name_71 WHERE april_14 = "13" |
Write a SQL query that answers the following question: What is the rank for Mar 17 when the April 21 rank is 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (mar_17 VARCHAR, april_21 VARCHAR) | SELECT mar_17 FROM table_name_96 WHERE april_21 = "10" |
Write a SQL query that answers the following question: What is the Mar 24 rank when the May 26 is 13, and the May 12 is 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (mar_24 VARCHAR, may_26 VARCHAR, may_12 VARCHAR) | SELECT mar_24 FROM table_name_93 WHERE may_26 = "13" AND may_12 = "6" |
Write a SQL query that answers the following question: What is the April 28 rank when the Mar 24 is 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (april_28 VARCHAR, mar_24 VARCHAR) | SELECT april_28 FROM table_name_92 WHERE mar_24 = "17" |
Write a SQL query that answers the following question: What is the April 14 rank when the Mar 3rd is nr, and the April 21 is 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (april_14 VARCHAR, mar_3 VARCHAR, april_21 VARCHAR) | SELECT april_14 FROM table_name_78 WHERE mar_3 = "nr" AND april_21 = "13" |
Write a SQL query that answers the following question: What is the April 28th rank when the Final is 20, and Mar 17 is 22? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (april_28 VARCHAR, final VARCHAR, mar_17 VARCHAR) | SELECT april_28 FROM table_name_91 WHERE final = "20" AND mar_17 = "22" |
Write a SQL query that answers the following question: What is the total number of Podiums, when Position is "2nd", when Wins is less than 6, and when Poles is greater than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (podiums VARCHAR, poles VARCHAR, position VARCHAR, wins VARCHAR) | SELECT COUNT(podiums) FROM table_name_31 WHERE position = "2nd" AND wins < 6 AND poles > 0 |
Write a SQL query that answers the following question: What is the sum of Poles, when Season is greater than 2004, and when Podiums is less than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (poles INTEGER, season VARCHAR, podiums VARCHAR) | SELECT SUM(poles) FROM table_name_64 WHERE season < 2004 AND podiums < 1 |
Write a SQL query that answers the following question: What is the average Poles, when Wins is 0, when Position is "nc", and when Season is before 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (poles INTEGER, season VARCHAR, wins VARCHAR, position VARCHAR) | SELECT AVG(poles) FROM table_name_65 WHERE wins = 0 AND position = "nc" AND season < 2004 |
Write a SQL query that answers the following question: What is the sum of Poles, when Season is before 2005, when Position is "2nd", and when Wins is less than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (poles INTEGER, wins VARCHAR, season VARCHAR, position VARCHAR) | SELECT SUM(poles) FROM table_name_1 WHERE season < 2005 AND position = "2nd" AND wins < 6 |
Write a SQL query that answers the following question: What is the 2012 club of the cf pos. player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (pos VARCHAR) | SELECT 2012 AS _club FROM table_name_85 WHERE pos = "cf" |
Write a SQL query that answers the following question: What are the years in the ACC of an institution that was founded before 1885 and is located in College Park, Maryland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (years_in_the_acc VARCHAR, founded VARCHAR, location VARCHAR) | SELECT years_in_the_acc FROM table_name_24 WHERE founded < 1885 AND location = "college park, maryland" |
Write a SQL query that answers the following question: Who was the partner for the tournament in Lyon, France? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (partnering VARCHAR, tournament VARCHAR) | SELECT partnering FROM table_name_29 WHERE tournament = "lyon, france" |
Write a SQL query that answers the following question: Who were the opponents for the event in Milan, Italy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (opponent VARCHAR, tournament VARCHAR) | SELECT opponent FROM table_name_78 WHERE tournament = "milan, italy" |
Write a SQL query that answers the following question: What was the record on the date of december 1, 1968? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_55 WHERE date = "december 1, 1968" |
Write a SQL query that answers the following question: What was the record on the date of september 15, 1968? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_89 WHERE date = "september 15, 1968" |
Write a SQL query that answers the following question: What was the record on the date of november 10, 1968? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_27 WHERE date = "november 10, 1968" |
Write a SQL query that answers the following question: What was the first game played on February 28? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (game INTEGER, date VARCHAR) | SELECT MIN(game) FROM table_name_95 WHERE date = "february 28" |
Write a SQL query that answers the following question: What is the sum of Altrincham's Points 2 when they had more than 52 Goals For? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (points_2 INTEGER, goals_for VARCHAR, team VARCHAR) | SELECT SUM(points_2) FROM table_name_98 WHERE goals_for > 52 AND team = "altrincham" |
Write a SQL query that answers the following question: What date was the team @ Detroit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (date VARCHAR, team VARCHAR) | SELECT date FROM table_name_28 WHERE team = "@ detroit" |
Write a SQL query that answers the following question: What was the score of the game when Maurice Williams (7) had the high assists? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (score VARCHAR, high_assists VARCHAR) | SELECT score FROM table_name_8 WHERE high_assists = "maurice williams (7)" |
Write a SQL query that answers the following question: What was the record of the game when Lebron James (4) had the high assists? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (record VARCHAR, high_assists VARCHAR) | SELECT record FROM table_name_43 WHERE high_assists = "lebron james (4)" |
Write a SQL query that answers the following question: What is the total of the game that the team was @ new york? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (game VARCHAR, team VARCHAR) | SELECT COUNT(game) FROM table_name_58 WHERE team = "@ new york" |
Write a SQL query that answers the following question: Which round was Joe Taylor selected in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (round INTEGER, player VARCHAR) | SELECT SUM(round) FROM table_name_40 WHERE player = "joe taylor" |
Write a SQL query that answers the following question: Which player went to Wake Forest and was selected with a pick after 145? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (player VARCHAR, pick VARCHAR, college VARCHAR) | SELECT player FROM table_name_6 WHERE pick > 145 AND college = "wake forest" |
Write a SQL query that answers the following question: How many picks were from round 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (pick VARCHAR, round VARCHAR) | SELECT COUNT(pick) FROM table_name_84 WHERE round = 6 |
Write a SQL query that answers the following question: What is the largest round of a pick smaller than 92 from Toledo University? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (round INTEGER, college VARCHAR, pick VARCHAR) | SELECT MAX(round) FROM table_name_34 WHERE college = "toledo" AND pick < 92 |
Write a SQL query that answers the following question: Which nationality is Dick Walker? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_35 WHERE player = "dick walker" |
Write a SQL query that answers the following question: What college has a pick greater than 4 and an overall of 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (college VARCHAR, pick VARCHAR, overall VARCHAR) | SELECT college FROM table_name_9 WHERE pick > 4 AND overall = 21 |
Write a SQL query that answers the following question: What is the overall sum of round 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (overall INTEGER, round VARCHAR) | SELECT SUM(overall) FROM table_name_55 WHERE round = 3 |
Write a SQL query that answers the following question: What is the position of the player with a round less than 8 and an overall of 48? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (position VARCHAR, round VARCHAR, overall VARCHAR) | SELECT position FROM table_name_81 WHERE round < 8 AND overall = 48 |
Write a SQL query that answers the following question: What is the position of the player from the college of North Carolina with an overall less than 100? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (position VARCHAR, overall VARCHAR, college VARCHAR) | SELECT position FROM table_name_47 WHERE overall < 100 AND college = "north carolina" |
Write a SQL query that answers the following question: What is the sum of the pick in round 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (pick INTEGER, round VARCHAR) | SELECT SUM(pick) FROM table_name_10 WHERE round = 17 |
Write a SQL query that answers the following question: What was the 1st leg when team 2 was nov milenium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (team_2 VARCHAR) | SELECT 1 AS st_leg FROM table_name_7 WHERE team_2 = "nov milenium" |
Write a SQL query that answers the following question: What was the 1st leg for a team 1 of Teteks? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (team_1 VARCHAR) | SELECT 1 AS st_leg FROM table_name_25 WHERE team_1 = "teteks" |
Write a SQL query that answers the following question: What is the sum of Date of Official Foundation of Municipality, when Province is "Kermān", when 2006 us "167014", and when Rank is less than 46? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (date_of_official_foundation_of_municipality INTEGER, rank VARCHAR, province VARCHAR) | SELECT SUM(date_of_official_foundation_of_municipality) FROM table_name_65 WHERE province = "kermān" AND 2006 = 167014 AND rank < 46 |
Write a SQL query that answers the following question: What is the total number of Rank, when Date of Official Foundation of Municipality is after 1926, when Province is "Sistan and Baluchestan", and when 2006 is greater than 567449? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (rank VARCHAR, date_of_official_foundation_of_municipality VARCHAR, province VARCHAR) | SELECT COUNT(rank) FROM table_name_87 WHERE date_of_official_foundation_of_municipality > 1926 AND province = "sistan and baluchestan" AND 2006 > 567449 |
Write a SQL query that answers the following question: What is the sum of Rank, when Province is Gīlān, when Date of Official Foundation of Municipality is after 1922, and when 2006 is greater than 557366? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (rank INTEGER, province VARCHAR, date_of_official_foundation_of_municipality VARCHAR) | SELECT SUM(rank) FROM table_name_51 WHERE province = "gīlān" AND date_of_official_foundation_of_municipality > 1922 AND 2006 > 557366 |
Write a SQL query that answers the following question: What is the highest Rank, when Date of Official Foundation of Municipality is "1952", and when 2006 is less than 189120? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (rank INTEGER, date_of_official_foundation_of_municipality VARCHAR) | SELECT MAX(rank) FROM table_name_16 WHERE date_of_official_foundation_of_municipality = 1952 AND 2006 < 189120 |
Write a SQL query that answers the following question: What is Province, when 2006 is less than 153748, when Date of Official Foundation of Municipality is after 1958, and when City is "Pakdasht"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (province VARCHAR, city VARCHAR, date_of_official_foundation_of_municipality VARCHAR) | SELECT province FROM table_name_46 WHERE 2006 < 153748 AND date_of_official_foundation_of_municipality > 1958 AND city = "pakdasht" |
Write a SQL query that answers the following question: what is the place when the score is 68-70-68=206? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_3 WHERE score = 68 - 70 - 68 = 206 |
Write a SQL query that answers the following question: what is the country when the score is 71-65-69=205? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_47 WHERE score = 71 - 65 - 69 = 205 |
Write a SQL query that answers the following question: what is the country when the score is 72-68-67=207? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_79 WHERE score = 72 - 68 - 67 = 207 |
Write a SQL query that answers the following question: what is the country when the score is 68-72-67=207? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_75 WHERE score = 68 - 72 - 67 = 207 |
Write a SQL query that answers the following question: who is the player when the place is t5 and the score is 69-66-71=206? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (player VARCHAR, place VARCHAR, score VARCHAR) | SELECT player FROM table_name_51 WHERE place = "t5" AND score = 69 - 66 - 71 = 206 |
Write a SQL query that answers the following question: What was the highest amount of laps when the class was v8 and the entrant was diet-coke racing? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (laps INTEGER, class VARCHAR, entrant VARCHAR) | SELECT MAX(laps) FROM table_name_13 WHERE class = "v8" AND entrant = "diet-coke racing" |
Write a SQL query that answers the following question: What is the tie with a win of 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (ties VARCHAR, wins VARCHAR) | SELECT ties FROM table_name_38 WHERE wins = "0" |
Write a SQL query that answers the following question: What is the final position with ties of 0, and wins of 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (final_position VARCHAR, ties VARCHAR, wins VARCHAR) | SELECT final_position FROM table_name_87 WHERE ties = "0" AND wins = "5" |
Write a SQL query that answers the following question: What are the ties for division of bafl division two south? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (ties VARCHAR, division VARCHAR) | SELECT ties FROM table_name_8 WHERE division = "bafl division two south" |
Write a SQL query that answers the following question: What is the final position for the season 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (final_position VARCHAR, season VARCHAR) | SELECT final_position FROM table_name_76 WHERE season = "2008" |
Write a SQL query that answers the following question: What is the final position for the season 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (final_position VARCHAR, season VARCHAR) | SELECT final_position FROM table_name_70 WHERE season = "2012" |
Write a SQL query that answers the following question: What is the division with wins of 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (division VARCHAR, wins VARCHAR) | SELECT division FROM table_name_76 WHERE wins = "2" |
Write a SQL query that answers the following question: What is the Location of the Hietalahti Stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (location VARCHAR, stadium VARCHAR) | SELECT location FROM table_name_46 WHERE stadium = "hietalahti stadium" |
Write a SQL query that answers the following question: What is the Location of the Stadium where Job Dragtsma is Manager? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (location VARCHAR, manager VARCHAR) | SELECT location FROM table_name_5 WHERE manager = "job dragtsma" |
Write a SQL query that answers the following question: what is the react when the lane is 3 and heat is 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (react VARCHAR, lane VARCHAR, heat VARCHAR) | SELECT react FROM table_name_98 WHERE lane = 3 AND heat = 2 |
Write a SQL query that answers the following question: what is the highest lane number for johan wissman when the react is less than 0.242? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (lane INTEGER, name VARCHAR, react VARCHAR) | SELECT MAX(lane) FROM table_name_48 WHERE name = "johan wissman" AND react < 0.242 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.