instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What was the Home team when Farnborough Town was the Away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_90 WHERE away_team = "farnborough town" |
Write a SQL query that answers the following question: What was the Away Team of Blackpool's Home game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_9 WHERE home_team = "blackpool" |
Write a SQL query that answers the following question: Which Bronze has a Rank of 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (bronze VARCHAR, rank VARCHAR) | SELECT COUNT(bronze) FROM table_name_76 WHERE rank = "9" |
Write a SQL query that answers the following question: Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (bronze INTEGER, nation VARCHAR, gold VARCHAR, rank VARCHAR) | SELECT MAX(bronze) FROM table_name_78 WHERE gold < 1 AND rank = "17" AND nation = "china" |
Write a SQL query that answers the following question: Which Nation has a Bronze smaller than 1, and a Total larger than 1, and a Silver of 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (nation VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT nation FROM table_name_82 WHERE bronze < 1 AND total > 1 AND silver = 1 |
Write a SQL query that answers the following question: Which Total has a Rank of 17, and a Gold larger than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (total INTEGER, rank VARCHAR, gold VARCHAR) | SELECT AVG(total) FROM table_name_59 WHERE rank = "17" AND gold > 0 |
Write a SQL query that answers the following question: Which Gold has a Rank of 15, and a Total smaller than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (gold INTEGER, rank VARCHAR, total VARCHAR) | SELECT AVG(gold) FROM table_name_99 WHERE rank = "15" AND total < 2 |
Write a SQL query that answers the following question: What is the number of games for the season with 10 ties? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (games VARCHAR, tied VARCHAR) | SELECT games FROM table_name_86 WHERE tied = 10 |
Write a SQL query that answers the following question: What was the surface where the opponent was Nathalie Dechy Meilen Tu? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (surface VARCHAR, opponent_in_the_final VARCHAR) | SELECT surface FROM table_name_63 WHERE opponent_in_the_final = "nathalie dechy meilen tu" |
Write a SQL query that answers the following question: What is the Series leader with a Date that is may 31? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (series_leader VARCHAR, date VARCHAR) | SELECT series_leader FROM table_name_64 WHERE date = "may 31" |
Write a SQL query that answers the following question: What is the Series leader with a Date that is october 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (series_leader VARCHAR, date VARCHAR) | SELECT series_leader FROM table_name_93 WHERE date = "october 9" |
Write a SQL query that answers the following question: Which Tournament has a Date of january 10, 1994? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_10 WHERE date = "january 10, 1994" |
Write a SQL query that answers the following question: Which Opponents in the final have a Date of june 10, 1996? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (opponents_in_the_final VARCHAR, date VARCHAR) | SELECT opponents_in_the_final FROM table_name_51 WHERE date = "june 10, 1996" |
Write a SQL query that answers the following question: Who's the Opponents in the final with a Date of june 10, 1996? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (opponents_in_the_final VARCHAR, date VARCHAR) | SELECT opponents_in_the_final FROM table_name_40 WHERE date = "june 10, 1996" |
Write a SQL query that answers the following question: Which Tournament has Opponents in the final of maria lindström maria strandlund? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (tournament VARCHAR, opponents_in_the_final VARCHAR) | SELECT tournament FROM table_name_17 WHERE opponents_in_the_final = "maria lindström maria strandlund" |
Write a SQL query that answers the following question: What country came in third when there were 13 teams in 1996? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (third VARCHAR, teams VARCHAR, season VARCHAR) | SELECT third FROM table_name_25 WHERE teams = 13 AND season = 1996 |
Write a SQL query that answers the following question: What is the sum of season when the venue was donington park, and Brazil came in second? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (season INTEGER, venue VARCHAR, second VARCHAR) | SELECT SUM(season) FROM table_name_21 WHERE venue = "donington park" AND second = "brazil" |
Write a SQL query that answers the following question: What is the average Season when the venue was circuit de nevers magny-cours, and Drivers was more than 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (season INTEGER, venue VARCHAR, drivers VARCHAR) | SELECT AVG(season) FROM table_name_64 WHERE venue = "circuit de nevers magny-cours" AND drivers > 30 |
Write a SQL query that answers the following question: What is the total number of Losses when the percentage is 54.83, with more than 8 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (losses VARCHAR, percentage VARCHAR, points VARCHAR) | SELECT COUNT(losses) FROM table_name_91 WHERE percentage = 54.83 AND points > 8 |
Write a SQL query that answers the following question: What is the average Points For when there are Points Against more than 780, and Points smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (points_for INTEGER, points_against VARCHAR, points VARCHAR) | SELECT AVG(points_for) FROM table_name_72 WHERE points_against > 780 AND points < 0 |
Write a SQL query that answers the following question: What is the average Points when the Points Against is 594, and Losses is more than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (points INTEGER, points_against VARCHAR, losses VARCHAR) | SELECT AVG(points) FROM table_name_85 WHERE points_against = 594 AND losses > 3 |
Write a SQL query that answers the following question: What is the average Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points For larger than 826? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (percentage INTEGER, points_for VARCHAR, losses VARCHAR, wins VARCHAR, points_against VARCHAR) | SELECT AVG(percentage) FROM table_name_80 WHERE wins > 0 AND points_against > 481 AND losses = 8 AND points_for > 826 |
Write a SQL query that answers the following question: What is the lowest Wins when the Club is broadview hawks, and Points Against is more than 594? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (wins INTEGER, club VARCHAR, points_against VARCHAR) | SELECT MIN(wins) FROM table_name_46 WHERE club = "broadview hawks" AND points_against > 594 |
Write a SQL query that answers the following question: What Goalkeeper has MINS less than 2160 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (goalkeeper VARCHAR, mins INTEGER) | SELECT goalkeeper FROM table_name_32 WHERE mins < 2160 |
Write a SQL query that answers the following question: What is the highest SHTS of Kasey Keller | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (shts INTEGER, goalkeeper VARCHAR) | SELECT MAX(shts) FROM table_name_56 WHERE goalkeeper = "kasey keller" |
Write a SQL query that answers the following question: What is the most number of Bronze medals won among the countries that have won more than 1 medal, more than 1 gold medal, and have a rank bigger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (bronze INTEGER, gold VARCHAR, total VARCHAR, rank VARCHAR) | SELECT MAX(bronze) FROM table_name_49 WHERE total > 1 AND rank > 1 AND gold > 1 |
Write a SQL query that answers the following question: What is the total number of Losses that Melton had when they had fewer Draws than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (losses INTEGER, ballarat_fl VARCHAR, draws VARCHAR) | SELECT SUM(losses) FROM table_name_35 WHERE ballarat_fl = "melton" AND draws < 0 |
Write a SQL query that answers the following question: What is the lowest number of Against that Lake Wendouree had when they had more than 7 Losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (against INTEGER, ballarat_fl VARCHAR, losses VARCHAR) | SELECT MIN(against) FROM table_name_74 WHERE ballarat_fl = "lake wendouree" AND losses > 7 |
Write a SQL query that answers the following question: What was the total number of Byes for the team that had 1136 Against and fewer than 0 Draws? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (byes VARCHAR, against VARCHAR, draws VARCHAR) | SELECT COUNT(byes) FROM table_name_84 WHERE against = 1136 AND draws < 0 |
Write a SQL query that answers the following question: What was the greatest number of Losses for the team that had 1427 Against and more than 5 Wins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (losses INTEGER, against VARCHAR, wins VARCHAR) | SELECT MAX(losses) FROM table_name_52 WHERE against > 1427 AND wins > 5 |
Write a SQL query that answers the following question: What is the average number of Byes for the team that had 15 Losses, and less than 1 Win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (byes INTEGER, losses VARCHAR, wins VARCHAR) | SELECT AVG(byes) FROM table_name_13 WHERE losses = 15 AND wins < 1 |
Write a SQL query that answers the following question: Which nation's total is less than 19 when there's less than 1 bronze? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (nation VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT nation FROM table_name_54 WHERE total < 19 AND bronze < 1 |
Write a SQL query that answers the following question: How many totals does Chile have when the number of silvers is more than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (total VARCHAR, nation VARCHAR, silver VARCHAR) | SELECT COUNT(total) FROM table_name_73 WHERE nation = "chile" AND silver > 0 |
Write a SQL query that answers the following question: What was the record when TKO (punches and elbows) was the method? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (record VARCHAR, method VARCHAR) | SELECT record FROM table_name_22 WHERE method = "tko (punches and elbows)" |
Write a SQL query that answers the following question: What venue has don bradman (nsw) as the player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (venue VARCHAR, player VARCHAR) | SELECT venue FROM table_name_7 WHERE player = "don bradman (nsw)" |
Write a SQL query that answers the following question: What rank has Bill Ponsford (vic) as the player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (rank VARCHAR, player VARCHAR) | SELECT rank FROM table_name_82 WHERE player = "bill ponsford (vic)" |
Write a SQL query that answers the following question: What match has Clem Hill (sa) as the player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (match VARCHAR, player VARCHAR) | SELECT match FROM table_name_9 WHERE player = "clem hill (sa)" |
Write a SQL query that answers the following question: Who played on December 25, 1925? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_56 WHERE date = "december 25, 1925" |
Write a SQL query that answers the following question: What was the score for the South American Championship dated December 13, 1925? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (result VARCHAR, competition VARCHAR, date VARCHAR) | SELECT result FROM table_name_40 WHERE competition = "south american championship" AND date = "december 13, 1925" |
Write a SQL query that answers the following question: What is the average number of House of Representatives seats had an abbreviation of d66? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (house_of_rep_seats INTEGER, abbr VARCHAR) | SELECT AVG(house_of_rep_seats) FROM table_name_52 WHERE abbr = "d66" |
Write a SQL query that answers the following question: For the tournament played on Oct 17, 1982, what was the winning score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (winning_score VARCHAR, date VARCHAR) | SELECT winning_score FROM table_name_69 WHERE date = "oct 17, 1982" |
Write a SQL query that answers the following question: For the tournament played Nov 13, 1988, ending with a margin of victory of 5 strokes, who was the runner-up? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (runner_s__up VARCHAR, margin_of_victory VARCHAR, date VARCHAR) | SELECT runner_s__up FROM table_name_67 WHERE margin_of_victory = "5 strokes" AND date = "nov 13, 1988" |
Write a SQL query that answers the following question: What is 2008, when 2006 is "Grand Slam Tournaments"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (Id VARCHAR) | SELECT 2008 FROM table_name_18 WHERE 2006 = "grand slam tournaments" |
Write a SQL query that answers the following question: What is 2007, when 2003 is 1R? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (Id VARCHAR) | SELECT 2007 FROM table_name_54 WHERE 2003 = "1r" |
Write a SQL query that answers the following question: What is the Tournament, when 2012 is 3R? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (tournament VARCHAR) | SELECT tournament FROM table_name_66 WHERE 2012 = "3r" |
Write a SQL query that answers the following question: What is Tournament, when 2009 is "Grand Slam Tournaments"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (tournament VARCHAR) | SELECT tournament FROM table_name_41 WHERE 2009 = "grand slam tournaments" |
Write a SQL query that answers the following question: Which Free polite has a Genitive 3 of *ni-da? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (free VARCHAR, genitive_3 VARCHAR) | SELECT free AS polite FROM table_name_70 WHERE genitive_3 = "*ni-da" |
Write a SQL query that answers the following question: Which Free polite has a Genitive 1 of *=ku? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (free VARCHAR, ku VARCHAR, genitive_1 VARCHAR) | SELECT free AS polite FROM table_name_13 WHERE genitive_1 = * = ku |
Write a SQL query that answers the following question: Which Free polite has a Genitive 3 of *n(i)-ami? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (free VARCHAR, genitive_3 VARCHAR) | SELECT free AS polite FROM table_name_40 WHERE genitive_3 = "*n(i)-ami" |
Write a SQL query that answers the following question: Which Genitive 1 has a Genitive 3 of *n(i)-ia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (genitive_1 VARCHAR, genitive_3 VARCHAR) | SELECT genitive_1 FROM table_name_57 WHERE genitive_3 = "*n(i)-ia" |
Write a SQL query that answers the following question: What is the Proto-Oceanic verb for the verb to sew? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (proto_oceanic VARCHAR, verb VARCHAR) | SELECT proto_oceanic FROM table_name_43 WHERE verb = "to sew" |
Write a SQL query that answers the following question: What is the verb for the Proto-Austronesian word *diri? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (verb VARCHAR, proto_austronesian VARCHAR) | SELECT verb FROM table_name_86 WHERE proto_austronesian = "*diri" |
Write a SQL query that answers the following question: What is the Proto-Oceanic verb for to die, be dead? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (proto_oceanic VARCHAR, verb VARCHAR) | SELECT proto_oceanic FROM table_name_44 WHERE verb = "to die, be dead" |
Write a SQL query that answers the following question: What is the verb for the Proto-Polynesian word *mohe? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (verb VARCHAR, proto_polynesian VARCHAR) | SELECT verb FROM table_name_43 WHERE proto_polynesian = "*mohe" |
Write a SQL query that answers the following question: What is the Proto-Austronesian word for the Proto-Polynesian word *tui? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (proto_austronesian VARCHAR, proto_polynesian VARCHAR) | SELECT proto_austronesian FROM table_name_53 WHERE proto_polynesian = "*tui" |
Write a SQL query that answers the following question: What is the Proto-Malayo-Polynesian word for the Proto-Oceanic word of *saqit, *turi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (proto_malayo_polynesian VARCHAR, proto_oceanic VARCHAR) | SELECT proto_malayo_polynesian FROM table_name_71 WHERE proto_oceanic = "*saqit, *turi" |
Write a SQL query that answers the following question: What station has a genre of talk music and is in Malay English language? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (station VARCHAR, genre VARCHAR, language VARCHAR) | SELECT station FROM table_name_81 WHERE genre = "talk music" AND language = "malay english" |
Write a SQL query that answers the following question: Which genre is the fly fm station? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (genre VARCHAR, station VARCHAR) | SELECT genre FROM table_name_93 WHERE station = "fly fm" |
Write a SQL query that answers the following question: What frequency is the xfm station, which is part of the talk music genre? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (frequency VARCHAR, genre VARCHAR, station VARCHAR) | SELECT frequency FROM table_name_71 WHERE genre = "talk music" AND station = "xfm" |
Write a SQL query that answers the following question: What is the coverage area of muzik fm station, which has a music genre? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (coverage_area VARCHAR, genre VARCHAR, station VARCHAR) | SELECT coverage_area FROM table_name_65 WHERE genre = "music" AND station = "muzik fm" |
Write a SQL query that answers the following question: What is Co-Drivers, when Laps is greater than 196, and when Year is before 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (co_drivers VARCHAR, laps VARCHAR, year VARCHAR) | SELECT co_drivers FROM table_name_78 WHERE laps > 196 AND year < 2010 |
Write a SQL query that answers the following question: What is the Date when the week is more than 3 and the attendance shows bye? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (date VARCHAR, week VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_39 WHERE week > 3 AND attendance = "bye" |
Write a SQL query that answers the following question: What is the Result when the week is later than 9, and there are 65,858 people in attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_33 WHERE week > 9 AND attendance = "65,858" |
Write a SQL query that answers the following question: What is the 1938 that has N/A for 1948? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (Id VARCHAR) | SELECT 1938 FROM table_name_49 WHERE 1948 = "n/a" |
Write a SQL query that answers the following question: What 1953 has 2 for 1947, and dne as 1938? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (Id VARCHAR) | SELECT 1953 FROM table_name_52 WHERE 1947 = "2" AND 1938 = "dne" |
Write a SQL query that answers the following question: What 1935 has 4 as a 1953? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (Id VARCHAR) | SELECT 1935 FROM table_name_6 WHERE 1953 = "4" |
Write a SQL query that answers the following question: What 1953 has 2 as a 1949, and 3 as 1952? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (Id VARCHAR) | SELECT 1953 FROM table_name_48 WHERE 1949 = "2" AND 1952 = "3" |
Write a SQL query that answers the following question: What 1941 has N/A as 1945, N/A for 1948, and 9 for 1953? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (Id VARCHAR) | SELECT 1941 FROM table_name_7 WHERE 1945 = "n/a" AND 1948 = "n/a" AND 1953 = "9" |
Write a SQL query that answers the following question: What 1951 has dne for 1948? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (Id VARCHAR) | SELECT 1951 FROM table_name_26 WHERE 1948 = "dne" |
Write a SQL query that answers the following question: Which Cup Apps (sub) had 2 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (cup_apps__sub_ VARCHAR, cup_goals VARCHAR) | SELECT cup_apps__sub_ FROM table_name_59 WHERE cup_goals = "2" |
Write a SQL query that answers the following question: Which Total Apps (sub) has 6 goals total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (total_apps__sub_ VARCHAR, total_goals VARCHAR) | SELECT total_apps__sub_ FROM table_name_39 WHERE total_goals = "6" |
Write a SQL query that answers the following question: What airline has a IATA of BX? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (airline VARCHAR, iata VARCHAR) | SELECT airline FROM table_name_87 WHERE iata = "bx" |
Write a SQL query that answers the following question: What is the ICAO for Asiana Airlines? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (icao VARCHAR, airline VARCHAR) | SELECT icao FROM table_name_8 WHERE airline = "asiana airlines" |
Write a SQL query that answers the following question: What is the commenced operation where the ICAO is KAL? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (commenced_operations VARCHAR, icao VARCHAR) | SELECT commenced_operations FROM table_name_61 WHERE icao = "kal" |
Write a SQL query that answers the following question: What is the ICAO for Air Busan? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (icao VARCHAR, callsign VARCHAR) | SELECT icao FROM table_name_63 WHERE callsign = "air busan" |
Write a SQL query that answers the following question: What is the callsign where the ICAO is AAR? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (callsign VARCHAR, icao VARCHAR) | SELECT callsign FROM table_name_80 WHERE icao = "aar" |
Write a SQL query that answers the following question: What is the average Tries with less than 0 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (tries INTEGER, goals INTEGER) | SELECT AVG(tries) FROM table_name_7 WHERE goals < 0 |
Write a SQL query that answers the following question: What is the total number of Points with less than 1 tries, and more than 0 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (points VARCHAR, tries VARCHAR, goals VARCHAR) | SELECT COUNT(points) FROM table_name_60 WHERE tries < 1 AND goals > 0 |
Write a SQL query that answers the following question: Which club/province has more than 9 caps and Ben Franks as a player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (club_province VARCHAR, caps VARCHAR, player VARCHAR) | SELECT club_province FROM table_name_44 WHERE caps > 9 AND player = "ben franks" |
Write a SQL query that answers the following question: In which tournament was Ian Baker-Finch the runner-up? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (tournament VARCHAR, runner_s__up VARCHAR) | SELECT tournament FROM table_name_27 WHERE runner_s__up = "ian baker-finch" |
Write a SQL query that answers the following question: What tournament was played on Feb 3, 1991? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_5 WHERE date = "feb 3, 1991" |
Write a SQL query that answers the following question: In the Phoenix Open, what was the winning score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (winning_score VARCHAR, tournament VARCHAR) | SELECT winning_score FROM table_name_28 WHERE tournament = "phoenix open" |
Write a SQL query that answers the following question: In the tournament where Stuart Appleby was the runner-up, what was the margin of victory? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (margin_of_victory VARCHAR, runner_s__up VARCHAR) | SELECT margin_of_victory FROM table_name_41 WHERE runner_s__up = "stuart appleby" |
Write a SQL query that answers the following question: What is the lowest number played with more than 30 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (played INTEGER, points INTEGER) | SELECT MIN(played) FROM table_name_21 WHERE points > 30 |
Write a SQL query that answers the following question: What is the highest number lost with more than 29 points and an against less than 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (lost INTEGER, points VARCHAR, against VARCHAR) | SELECT MAX(lost) FROM table_name_58 WHERE points > 29 AND against < 19 |
Write a SQL query that answers the following question: What is the total number played with a difference of 22 and less than 34 against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (played VARCHAR, difference VARCHAR, against VARCHAR) | SELECT COUNT(played) FROM table_name_76 WHERE difference = "22" AND against < 34 |
Write a SQL query that answers the following question: What is the western title of the pinyin new chāojí mǎlìōu xiōngdì? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (western_title VARCHAR, pinyin VARCHAR) | SELECT western_title FROM table_name_92 WHERE pinyin = "new chāojí mǎlìōu xiōngdì" |
Write a SQL query that answers the following question: What is the genre of the Chinese title 摸摸瓦力欧制造, which has a single-player game mode? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (genre VARCHAR, game_modes VARCHAR, chinese_title VARCHAR) | SELECT genre FROM table_name_17 WHERE game_modes = "single-player" AND chinese_title = "摸摸瓦力欧制造" |
Write a SQL query that answers the following question: What is the pinyin for the Chinese title 直感一笔? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (pinyin VARCHAR, chinese_title VARCHAR) | SELECT pinyin FROM table_name_78 WHERE chinese_title = "直感一笔" |
Write a SQL query that answers the following question: What is the release date for the Chinese title 摸摸瓦力欧制造? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (released_date VARCHAR, chinese_title VARCHAR) | SELECT released_date FROM table_name_46 WHERE chinese_title = "摸摸瓦力欧制造" |
Write a SQL query that answers the following question: What is the western title for the puzzle genre? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (western_title VARCHAR, genre VARCHAR) | SELECT western_title FROM table_name_56 WHERE genre = "puzzle" |
Write a SQL query that answers the following question: What is the total number of laps for the time of +7.277 and the grid number of more than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (laps INTEGER, time VARCHAR, grid VARCHAR) | SELECT SUM(laps) FROM table_name_56 WHERE time = "+7.277" AND grid > 6 |
Write a SQL query that answers the following question: What is the smallest grid when the time is +8.051 and there were less than 23 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (grid INTEGER, time VARCHAR, laps VARCHAR) | SELECT MIN(grid) FROM table_name_43 WHERE time = "+8.051" AND laps < 23 |
Write a SQL query that answers the following question: What is the average number of goals for players ranked above 9 and playing more than 205 matches? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (goals INTEGER, matches VARCHAR, rank VARCHAR) | SELECT AVG(goals) FROM table_name_91 WHERE matches = 205 AND rank > 9 |
Write a SQL query that answers the following question: What is the average rank for players with under 205 matches and under 100 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (rank INTEGER, matches VARCHAR, goals VARCHAR) | SELECT AVG(rank) FROM table_name_92 WHERE matches < 205 AND goals < 100 |
Write a SQL query that answers the following question: What years played did the player with a rank under 10, more than 271 matches, and 152 goals have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (years VARCHAR, goals VARCHAR, rank VARCHAR, matches VARCHAR) | SELECT years FROM table_name_82 WHERE rank < 10 AND matches > 271 AND goals = 152 |
Write a SQL query that answers the following question: Who's the Republican ticket with a Communist ticket of elizabeth gurley flynn? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (republican_ticket VARCHAR, communist_ticket VARCHAR) | SELECT republican_ticket FROM table_name_32 WHERE communist_ticket = "elizabeth gurley flynn" |
Write a SQL query that answers the following question: Who's the Communist ticket with an American Labor ticket of joseph v. o'leary? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (communist_ticket VARCHAR, american_labor_ticket VARCHAR) | SELECT communist_ticket FROM table_name_49 WHERE american_labor_ticket = "joseph v. o'leary" |
Write a SQL query that answers the following question: Who's the Republican ticket with a Democratic ticket of flora d. johnson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (republican_ticket VARCHAR, democratic_ticket VARCHAR) | SELECT republican_ticket FROM table_name_62 WHERE democratic_ticket = "flora d. johnson" |
Write a SQL query that answers the following question: Who's the Republican ticket with a Communist ticket of (none), and a Socialist ticket of joseph g. glass? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (republican_ticket VARCHAR, communist_ticket VARCHAR, socialist_ticket VARCHAR) | SELECT republican_ticket FROM table_name_8 WHERE communist_ticket = "(none)" AND socialist_ticket = "joseph g. glass" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.