instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the lowest value for Sydney, when WEEKLY RANK is less than 8, and when Brisbane is greater than 252,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (sydney INTEGER, weekly_rank VARCHAR, brisbane VARCHAR) | SELECT MIN(sydney) FROM table_name_16 WHERE weekly_rank < 8 AND brisbane > 252 OFFSET 000 |
Write a SQL query that answers the following question: What is the sum of the values for Melbourne, when Episode Number Production Number is 19 2-06, and when Sydney is less than 389,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (melbourne INTEGER, episode_number_production_number VARCHAR, sydney VARCHAR) | SELECT SUM(melbourne) FROM table_name_93 WHERE episode_number_production_number = "19 2-06" AND sydney < 389 OFFSET 000 |
Write a SQL query that answers the following question: How many rounds had a time of 5:00 at UFC 155? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (round VARCHAR, time VARCHAR, event VARCHAR) | SELECT COUNT(round) FROM table_name_25 WHERE time = "5:00" AND event = "ufc 155" |
Write a SQL query that answers the following question: Which event had a time of 2:34? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (event VARCHAR, time VARCHAR) | SELECT event FROM table_name_86 WHERE time = "2:34" |
Write a SQL query that answers the following question: Who was the opponent in the bout that led to a win in a time of 1:21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (opponent VARCHAR, res VARCHAR, time VARCHAR) | SELECT opponent FROM table_name_47 WHERE res = "win" AND time = "1:21" |
Write a SQL query that answers the following question: What is the method of resolution for the fight against akihiro gono? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (method VARCHAR, opponent VARCHAR) | SELECT method FROM table_name_31 WHERE opponent = "akihiro gono" |
Write a SQL query that answers the following question: What is the average number of rounds that Lance Gibson fought when his record was 1-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (round INTEGER, record VARCHAR) | SELECT AVG(round) FROM table_name_52 WHERE record = "1-1" |
Write a SQL query that answers the following question: What is the Country of the Player with a Score of 69-71-66=206? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_99 WHERE score = 69 - 71 - 66 = 206 |
Write a SQL query that answers the following question: What is the Place of the Player from Scotland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (place VARCHAR, country VARCHAR) | SELECT place FROM table_name_36 WHERE country = "scotland" |
Write a SQL query that answers the following question: What is Steve Lowery's Place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_78 WHERE player = "steve lowery" |
Write a SQL query that answers the following question: What was 1961's qual? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (qual VARCHAR, year VARCHAR) | SELECT qual FROM table_name_98 WHERE year = "1961" |
Write a SQL query that answers the following question: What was 13's finish? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (finish VARCHAR, start VARCHAR) | SELECT finish FROM table_name_10 WHERE start = "13" |
Write a SQL query that answers the following question: How many laps were in 1969? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (laps VARCHAR, year VARCHAR) | SELECT laps FROM table_name_95 WHERE year = "1969" |
Write a SQL query that answers the following question: Which Rank has a Qual of 145.144? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (rank VARCHAR, qual VARCHAR) | SELECT rank FROM table_name_68 WHERE qual = "145.144" |
Write a SQL query that answers the following question: What is the sources for Bandung? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (sources_of_pop___area VARCHAR, city VARCHAR) | SELECT sources_of_pop___area FROM table_name_37 WHERE city = "bandung" |
Write a SQL query that answers the following question: What race happened at Iowa Speedway? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (race VARCHAR, track VARCHAR) | SELECT race FROM table_name_91 WHERE track = "iowa speedway" |
Write a SQL query that answers the following question: Who won the Food World 250? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (winner VARCHAR, race VARCHAR) | SELECT winner FROM table_name_14 WHERE race = "food world 250" |
Write a SQL query that answers the following question: What race happened at pocono on 08-02-2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (race VARCHAR, track VARCHAR, date VARCHAR) | SELECT race FROM table_name_24 WHERE track = "pocono" AND date = "08-02-2008" |
Write a SQL query that answers the following question: What race happened on 04-25-2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (race VARCHAR, date VARCHAR) | SELECT race FROM table_name_1 WHERE date = "04-25-2008" |
Write a SQL query that answers the following question: Where was the race on 09-13-2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (track VARCHAR, date VARCHAR) | SELECT track FROM table_name_34 WHERE date = "09-13-2008" |
Write a SQL query that answers the following question: Which game number was played after March 11 and ended with a record of 26-30-10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (game INTEGER, record VARCHAR, march VARCHAR) | SELECT MIN(game) FROM table_name_17 WHERE record = "26-30-10" AND march > 11 |
Write a SQL query that answers the following question: How many games total were played against @ Boston Bruins this season? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (game INTEGER, opponent VARCHAR) | SELECT SUM(game) FROM table_name_77 WHERE opponent = "@ boston bruins" |
Write a SQL query that answers the following question: When was the earliest game date in March where the match ended with a record of 25-29-10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (march INTEGER, record VARCHAR) | SELECT MIN(march) FROM table_name_32 WHERE record = "25-29-10" |
Write a SQL query that answers the following question: How many points when John Vopni won a season before 1977? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (points VARCHAR, season VARCHAR, winner VARCHAR) | SELECT points FROM table_name_58 WHERE season < 1977 AND winner = "john vopni" |
Write a SQL query that answers the following question: How many points when Bill Benson was the winner? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (points VARCHAR, winner VARCHAR) | SELECT points FROM table_name_95 WHERE winner = "bill benson" |
Write a SQL query that answers the following question: Which team did Tyson Chandler (7) have high rebounds for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (team VARCHAR, high_rebounds VARCHAR) | SELECT team FROM table_name_10 WHERE high_rebounds = "tyson chandler (7)" |
Write a SQL query that answers the following question: How many high assists were on November 27? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (high_assists VARCHAR, date VARCHAR) | SELECT high_assists FROM table_name_10 WHERE date = "november 27" |
Write a SQL query that answers the following question: What was the winning score in 1980? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (winning_score VARCHAR, year VARCHAR) | SELECT winning_score FROM table_name_51 WHERE year = 1980 |
Write a SQL query that answers the following question: What was the winning score in 1985 for Championship of u.s. women's open? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (winning_score VARCHAR, year VARCHAR, championship VARCHAR) | SELECT winning_score FROM table_name_8 WHERE year < 1985 AND championship = "u.s. women's open" |
Write a SQL query that answers the following question: When was the runner-up Jane Geddes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (year VARCHAR, runner_up VARCHAR) | SELECT year FROM table_name_35 WHERE runner_up = "jane geddes" |
Write a SQL query that answers the following question: Which championship after 1985 had a winning score of –8 (68-72-69-71=280)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (championship VARCHAR, year VARCHAR, winning_score VARCHAR) | SELECT championship FROM table_name_17 WHERE year > 1985 AND winning_score = –8(68 - 72 - 69 - 71 = 280) |
Write a SQL query that answers the following question: What was the method of resolution for the fight against jake brown? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (method VARCHAR, opponent VARCHAR) | SELECT method FROM table_name_77 WHERE opponent = "jake brown" |
Write a SQL query that answers the following question: On what team did John Bowe round winner at Winton Motor Raceway belong to? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (team VARCHAR, round_winner VARCHAR, circuit VARCHAR) | SELECT team FROM table_name_44 WHERE round_winner = "john bowe" AND circuit = "winton motor raceway" |
Write a SQL query that answers the following question: What was the team features at Oran Park Raceway? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (team VARCHAR, circuit VARCHAR) | SELECT team FROM table_name_41 WHERE circuit = "oran park raceway" |
Write a SQL query that answers the following question: Where is the Eastern Creek Raceway located? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (location___state VARCHAR, circuit VARCHAR) | SELECT location___state FROM table_name_19 WHERE circuit = "eastern creek raceway" |
Write a SQL query that answers the following question: Which state was Dai from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (state VARCHAR, name VARCHAR) | SELECT state FROM table_name_9 WHERE name = "dai" |
Write a SQL query that answers the following question: What was Mu's title? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (title VARCHAR, name VARCHAR) | SELECT title FROM table_name_6 WHERE name = "mu" |
Write a SQL query that answers the following question: what is the highest attendance for week 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (attendance INTEGER, week VARCHAR) | SELECT MAX(attendance) FROM table_name_34 WHERE week = 3 |
Write a SQL query that answers the following question: what is the result for the week higher than 7 on november 4, 1979? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (result VARCHAR, week VARCHAR, date VARCHAR) | SELECT result FROM table_name_16 WHERE week > 7 AND date = "november 4, 1979" |
Write a SQL query that answers the following question: what is the lowest week when the date is september 16, 1979 and the attendance less than 54,212? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (week INTEGER, date VARCHAR, attendance VARCHAR) | SELECT MIN(week) FROM table_name_2 WHERE date = "september 16, 1979" AND attendance < 54 OFFSET 212 |
Write a SQL query that answers the following question: Which competition has stuart potts as the man of the match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (competition VARCHAR, man_of_the_match VARCHAR) | SELECT competition FROM table_name_98 WHERE man_of_the_match = "stuart potts" |
Write a SQL query that answers the following question: Which venue had a lost 5-4 result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (venue VARCHAR, result VARCHAR) | SELECT venue FROM table_name_15 WHERE result = "lost 5-4" |
Write a SQL query that answers the following question: What is the venue of the match with the wightlink raiders as the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (venue VARCHAR, opponent VARCHAR) | SELECT venue FROM table_name_9 WHERE opponent = "wightlink raiders" |
Write a SQL query that answers the following question: What is the result of the league/cup competition with the swindon wildcats as the opponent and neil liddiard as the man of the match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (result VARCHAR, man_of_the_match VARCHAR, competition VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_45 WHERE competition = "league/cup" AND opponent = "swindon wildcats" AND man_of_the_match = "neil liddiard" |
Write a SQL query that answers the following question: What is the attendance of the match on the 2nd with the slough jets as the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (attendance VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_35 WHERE opponent = "slough jets" AND date = "2nd" |
Write a SQL query that answers the following question: What was the score when the total was 75–53? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (score VARCHAR, total VARCHAR) | SELECT score FROM table_name_89 WHERE total = "75–53" |
Write a SQL query that answers the following question: What was the total when the set 3 was 25–14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (total VARCHAR, set_3 VARCHAR) | SELECT total FROM table_name_80 WHERE set_3 = "25–14" |
Write a SQL query that answers the following question: What date was the set 1 25–23, and a Set 3 of 25–14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (date VARCHAR, set_1 VARCHAR, set_3 VARCHAR) | SELECT date FROM table_name_12 WHERE set_1 = "25–23" AND set_3 = "25–14" |
Write a SQL query that answers the following question: What date was the Set 3 of 12–25? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (date VARCHAR, set_3 VARCHAR) | SELECT date FROM table_name_79 WHERE set_3 = "12–25" |
Write a SQL query that answers the following question: What is the Set 3 when the total was 53–75? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (set_3 VARCHAR, total VARCHAR) | SELECT set_3 FROM table_name_26 WHERE total = "53–75" |
Write a SQL query that answers the following question: What is the average win with a top 5 greater than 2 and a top 10 less than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (wins INTEGER, top_5 VARCHAR, top_10 VARCHAR) | SELECT AVG(wins) FROM table_name_99 WHERE top_5 > 2 AND top_10 < 5 |
Write a SQL query that answers the following question: How many poles have 4 Starts of 4 and position of 46th? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (poles VARCHAR, starts VARCHAR, position VARCHAR) | SELECT COUNT(poles) FROM table_name_20 WHERE starts = 4 AND position = "46th" |
Write a SQL query that answers the following question: Sum of m. night shyamalan ranks? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (rank INTEGER, director_s_ VARCHAR) | SELECT SUM(rank) FROM table_name_41 WHERE director_s_ = "m. night shyamalan" |
Write a SQL query that answers the following question: Director for Star Wars Episode II: attack of the clones? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (director_s_ VARCHAR, title VARCHAR) | SELECT director_s_ FROM table_name_92 WHERE title = "star wars episode ii: attack of the clones" |
Write a SQL query that answers the following question: What was the tie no when Oxford city was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (tie_no VARCHAR, away_team VARCHAR) | SELECT tie_no FROM table_name_39 WHERE away_team = "oxford city" |
Write a SQL query that answers the following question: What was the tie no when Wrexham was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (tie_no VARCHAR, away_team VARCHAR) | SELECT tie_no FROM table_name_97 WHERE away_team = "wrexham" |
Write a SQL query that answers the following question: What was the score when Spennymoor United as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_67 WHERE away_team = "spennymoor united" |
Write a SQL query that answers the following question: What date was Grimsby Town the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_34 WHERE away_team = "grimsby town" |
Write a SQL query that answers the following question: Who was eliminated on Banana Night? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (name VARCHAR, eliminated VARCHAR) | SELECT name FROM table_name_33 WHERE eliminated = "banana night" |
Write a SQL query that answers the following question: Who was the special guest when the category was vocal groups and the name was Romantic? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (special_guest VARCHAR, category VARCHAR, name VARCHAR) | SELECT special_guest FROM table_name_28 WHERE category = "vocal groups" AND name = "romantic" |
Write a SQL query that answers the following question: On what date was elimination on final night? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (date VARCHAR, eliminated VARCHAR) | SELECT date FROM table_name_43 WHERE eliminated = "final night" |
Write a SQL query that answers the following question: What is the total number of games for the opponent in Washington? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (game VARCHAR, opponent VARCHAR) | SELECT COUNT(game) FROM table_name_89 WHERE opponent = "washington" |
Write a SQL query that answers the following question: How many stories have a height less than 138 meters with a completion date in 1971? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (stories VARCHAR, height__m_ VARCHAR, year_of_completion VARCHAR) | SELECT stories FROM table_name_53 WHERE height__m_ < 138 AND year_of_completion = 1971 |
Write a SQL query that answers the following question: What is the largest number of stories in Recife completed later than 2007 with a height less than 135 meters? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (stories INTEGER, height__m_ VARCHAR, location VARCHAR, year_of_completion VARCHAR) | SELECT MAX(stories) FROM table_name_38 WHERE location = "recife" AND year_of_completion > 2007 AND height__m_ < 135 |
Write a SQL query that answers the following question: Which Sanskrit has an English of mindfulness of breathing? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (sanskrit VARCHAR, english VARCHAR) | SELECT sanskrit FROM table_name_26 WHERE english = "mindfulness of breathing" |
Write a SQL query that answers the following question: Which Sanskrit has a Chinese of —, and an English of cultivation of settling? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (sanskrit VARCHAR, chinese VARCHAR, english VARCHAR) | SELECT sanskrit FROM table_name_74 WHERE chinese = "—" AND english = "cultivation of settling" |
Write a SQL query that answers the following question: Which Pali has an English of mindfulness of breathing? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (pali VARCHAR, english VARCHAR) | SELECT pali FROM table_name_54 WHERE english = "mindfulness of breathing" |
Write a SQL query that answers the following question: Which Pali has an English of meditative concentration? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (pali VARCHAR, english VARCHAR) | SELECT pali FROM table_name_74 WHERE english = "meditative concentration" |
Write a SQL query that answers the following question: Which Chinese has a Pali of atappa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (chinese VARCHAR, pali VARCHAR) | SELECT chinese FROM table_name_59 WHERE pali = "atappa" |
Write a SQL query that answers the following question: Which English has a Sanskrit of samādhi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (english VARCHAR, sanskrit VARCHAR) | SELECT english FROM table_name_42 WHERE sanskrit = "samādhi" |
Write a SQL query that answers the following question: Who is the player in guard position from Stephen F. Austin in a round less than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (player VARCHAR, school_club_team VARCHAR, round VARCHAR, position VARCHAR) | SELECT player FROM table_name_60 WHERE round < 8 AND position = "guard" AND school_club_team = "stephen f. austin" |
Write a SQL query that answers the following question: Which position has a pick less than 41 from Ohio State? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR) | SELECT position FROM table_name_31 WHERE pick < 41 AND school_club_team = "ohio state" |
Write a SQL query that answers the following question: What shows for 2006 when 2002 is Grand Slam Tournaments? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (Id VARCHAR) | SELECT 2006 FROM table_name_52 WHERE 2002 = "grand slam tournaments" |
Write a SQL query that answers the following question: What shows for 2002 when 2006 is Grand Slam Tournaments? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (Id VARCHAR) | SELECT 2002 FROM table_name_65 WHERE 2006 = "grand slam tournaments" |
Write a SQL query that answers the following question: What shows for 2005 when 2002 shows 0–1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (Id VARCHAR) | SELECT 2005 FROM table_name_16 WHERE 2002 = "0–1" |
Write a SQL query that answers the following question: What shows for 2006 when 2002 is 0–1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (Id VARCHAR) | SELECT 2006 FROM table_name_96 WHERE 2002 = "0–1" |
Write a SQL query that answers the following question: What shows for 2002 when the 2004 is A, and the 2005 is 1r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (Id VARCHAR) | SELECT 2002 FROM table_name_40 WHERE 2004 = "a" AND 2005 = "1r" |
Write a SQL query that answers the following question: What shows for 2004 when 2005 is A, 2006 is A, tournament is US Open? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (tournament VARCHAR) | SELECT 2004 FROM table_name_60 WHERE 2005 = "a" AND 2006 = "a" AND tournament = "us open" |
Write a SQL query that answers the following question: Who was the opponent on December 2, 1962? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_8 WHERE date = "december 2, 1962" |
Write a SQL query that answers the following question: What is the Population of the Town with a Census Ranking of 1,379 of 5,008 and an Area km 2 smaller than 8.35? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (population INTEGER, area_km_2 VARCHAR, status VARCHAR, census_ranking VARCHAR) | SELECT MAX(population) FROM table_name_70 WHERE status = "town" AND census_ranking = "1,379 of 5,008" AND area_km_2 < 8.35 |
Write a SQL query that answers the following question: What is the Official Name of the Community with an Area km 2 of 16.13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (official_name VARCHAR, area_km_2 VARCHAR) | SELECT official_name FROM table_name_50 WHERE area_km_2 = 16.13 |
Write a SQL query that answers the following question: What is Country, when To Par is "–2", and when Player is "Tsuneyuki Nakajima"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (country VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT country FROM table_name_48 WHERE to_par = "–2" AND player = "tsuneyuki nakajima" |
Write a SQL query that answers the following question: What is Country, when Score is "72-65=137"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_40 WHERE score = 72 - 65 = 137 |
Write a SQL query that answers the following question: What is Country, when Place is "T3", and when Player is "Jim Thorpe"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (country VARCHAR, place VARCHAR, player VARCHAR) | SELECT country FROM table_name_44 WHERE place = "t3" AND player = "jim thorpe" |
Write a SQL query that answers the following question: Who was the team for game 34? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (team VARCHAR, game VARCHAR) | SELECT team FROM table_name_79 WHERE game = 34 |
Write a SQL query that answers the following question: How many goals for had a drawn more than 12 for the Goole Town team, as well as more than 60 goals against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR, team VARCHAR) | SELECT SUM(goals_for) FROM table_name_45 WHERE drawn > 12 AND team = "goole town" AND goals_against > 60 |
Write a SQL query that answers the following question: What are the average goals for with a drawn higher than 7 and goals against less than 86, as well as more than 11 losses and more than 42 games played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (goals_for INTEGER, played VARCHAR, lost VARCHAR, drawn VARCHAR, goals_against VARCHAR) | SELECT AVG(goals_for) FROM table_name_19 WHERE drawn > 7 AND goals_against < 86 AND lost > 11 AND played > 42 |
Write a SQL query that answers the following question: What is the highest lost with a drawn more than 11, a position lower than 17 and more than 61 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (lost INTEGER, goals_for VARCHAR, drawn VARCHAR, position VARCHAR) | SELECT MAX(lost) FROM table_name_75 WHERE drawn > 11 AND position < 17 AND goals_for > 61 |
Write a SQL query that answers the following question: Who held the title of Ruler? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (name VARCHAR, title VARCHAR) | SELECT name FROM table_name_31 WHERE title = "ruler" |
Write a SQL query that answers the following question: What type of state did the ruler have a title? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (type VARCHAR, title VARCHAR) | SELECT type FROM table_name_54 WHERE title = "ruler" |
Write a SQL query that answers the following question: In what state did Jing have the title of Marquis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (state VARCHAR, title VARCHAR, name VARCHAR) | SELECT state FROM table_name_2 WHERE title = "marquis" AND name = "jing" |
Write a SQL query that answers the following question: What was Gongbo's title? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (title VARCHAR, name VARCHAR) | SELECT title FROM table_name_37 WHERE name = "gongbo" |
Write a SQL query that answers the following question: What is the name of Yi's state? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (state VARCHAR, name VARCHAR) | SELECT state FROM table_name_49 WHERE name = "yi" |
Write a SQL query that answers the following question: What is the Devices per channel where the Name is sata revision 3.0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (devices_per_channel VARCHAR, name VARCHAR) | SELECT devices_per_channel FROM table_name_19 WHERE name = "sata revision 3.0" |
Write a SQL query that answers the following question: What is the Raw bandwidth (Mbit/s) for the SAS 300? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (raw_bandwidth__mbit_s_ VARCHAR, name VARCHAR) | SELECT raw_bandwidth__mbit_s_ FROM table_name_8 WHERE name = "sas 300" |
Write a SQL query that answers the following question: Name the Away team score which has an Away team of st kilda, and a Crowd of 8157? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (away_team VARCHAR, crowd VARCHAR) | SELECT away_team AS score FROM table_name_3 WHERE away_team = "st kilda" AND crowd = 8157 |
Write a SQL query that answers the following question: Name the Away team which have a Ground of colonial stadium on friday, 2 march? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (away_team VARCHAR, ground VARCHAR, date VARCHAR) | SELECT away_team FROM table_name_83 WHERE ground = "colonial stadium" AND date = "friday, 2 march" |
Write a SQL query that answers the following question: Which team has 71 Points and F/Laps of 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (team VARCHAR, points VARCHAR, f_laps VARCHAR) | SELECT team FROM table_name_85 WHERE points = "71" AND f_laps = "4" |
Write a SQL query that answers the following question: What Poles do Team jva have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (poles VARCHAR, team VARCHAR) | SELECT poles FROM table_name_2 WHERE team = "team jva" |
Write a SQL query that answers the following question: If the Season is later than 2008 and Races is 11, what ate the Points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (points VARCHAR, races VARCHAR, season VARCHAR) | SELECT points FROM table_name_64 WHERE races = "11" AND season > 2008 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.