instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What County has a Median Family Income of $79,331? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (county VARCHAR, median_family_income VARCHAR) | SELECT county FROM table_name_3 WHERE median_family_income = "$79,331" |
Write a SQL query that answers the following question: The United States, with a total medal count of less than 171, and a bronze medal count less than 9, has how many gold medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR) | SELECT MAX(gold) FROM table_name_1 WHERE total < 171 AND nation = "united states" AND bronze < 9 |
Write a SQL query that answers the following question: How many total gold medals did Australia receive? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (gold VARCHAR, nation VARCHAR) | SELECT COUNT(gold) FROM table_name_80 WHERE nation = "australia" |
Write a SQL query that answers the following question: How many total bronze medals did Canada receive? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR) | SELECT MAX(bronze) FROM table_name_58 WHERE nation = "canada" |
Write a SQL query that answers the following question: How many total gold medals did India receive? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (gold VARCHAR, nation VARCHAR) | SELECT gold FROM table_name_10 WHERE nation = "india" |
Write a SQL query that answers the following question: Which 1997's accompanying 1991 was a when the tournament was the australian open? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (tournament VARCHAR) | SELECT 1997 FROM table_name_57 WHERE 1991 = "a" AND tournament = "australian open" |
Write a SQL query that answers the following question: Which 1997's 1992 was 1r when 1994 was a? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (Id VARCHAR) | SELECT 1997 FROM table_name_77 WHERE 1992 = "1r" AND 1994 = "a" |
Write a SQL query that answers the following question: Which 1995's tournament was the French Open? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (tournament VARCHAR) | SELECT 1995 FROM table_name_61 WHERE tournament = "french open" |
Write a SQL query that answers the following question: Which 1989's 1991 and 1994 stats were 1r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (Id VARCHAR) | SELECT 1989 FROM table_name_81 WHERE 1991 = "1r" AND 1994 = "1r" |
Write a SQL query that answers the following question: Which 1990s 1992 was 3r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (Id VARCHAR) | SELECT 1990 FROM table_name_78 WHERE 1992 = "3r" |
Write a SQL query that answers the following question: Which Linda McCartney has a Stuart of electric guitar? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (linda_mccartney VARCHAR, stuart VARCHAR) | SELECT linda_mccartney FROM table_name_80 WHERE stuart = "electric guitar" |
Write a SQL query that answers the following question: Which Whitten has a Stuart of bass, and a Paul McCartney of electric guitar? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (whitten VARCHAR, stuart VARCHAR, paul_mccartney VARCHAR) | SELECT whitten FROM table_name_12 WHERE stuart = "bass" AND paul_mccartney = "electric guitar" |
Write a SQL query that answers the following question: Which McIntosh has a Whitten of drums, and a Stuart of bass, and a Paul McCartney of electric guitar? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (mcintosh VARCHAR, paul_mccartney VARCHAR, whitten VARCHAR, stuart VARCHAR) | SELECT mcintosh FROM table_name_88 WHERE whitten = "drums" AND stuart = "bass" AND paul_mccartney = "electric guitar" |
Write a SQL query that answers the following question: Which Paul McCartney has a Linda McCartney of keyboards? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (paul_mccartney VARCHAR, linda_mccartney VARCHAR) | SELECT paul_mccartney FROM table_name_98 WHERE linda_mccartney = "keyboards" |
Write a SQL query that answers the following question: Which McIntosh has a Stuart of bass, and a Linda McCartney of keyboards or drum? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (mcintosh VARCHAR, stuart VARCHAR, linda_mccartney VARCHAR) | SELECT mcintosh FROM table_name_78 WHERE stuart = "bass" AND linda_mccartney = "keyboards or drum" |
Write a SQL query that answers the following question: Which Paul McCartney has a Linda McCartney of keyboards or drum? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (paul_mccartney VARCHAR, linda_mccartney VARCHAR) | SELECT paul_mccartney FROM table_name_15 WHERE linda_mccartney = "keyboards or drum" |
Write a SQL query that answers the following question: What is the largest Grid that has a Bike of honda cbr1000rr, and a Time of +20.848, and a Lap greater than 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (grid INTEGER, laps VARCHAR, bike VARCHAR, time VARCHAR) | SELECT MAX(grid) FROM table_name_70 WHERE bike = "honda cbr1000rr" AND time = "+20.848" AND laps > 24 |
Write a SQL query that answers the following question: The nation of denmark has what average total nad more than 0 gold? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (total INTEGER, nation VARCHAR, gold VARCHAR) | SELECT AVG(total) FROM table_name_70 WHERE nation = "denmark" AND gold > 0 |
Write a SQL query that answers the following question: Switzerland has how many gold and less than 0 silver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (gold INTEGER, nation VARCHAR, silver VARCHAR) | SELECT MAX(gold) FROM table_name_61 WHERE nation = "switzerland" AND silver < 0 |
Write a SQL query that answers the following question: How many years had a score of 734-5d? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (year VARCHAR, score VARCHAR) | SELECT COUNT(year) FROM table_name_9 WHERE score = "734-5d" |
Write a SQL query that answers the following question: Which venue had a city of Manchester before 2003? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (venue VARCHAR, city VARCHAR, year VARCHAR) | SELECT venue FROM table_name_82 WHERE city = "manchester" AND year < 2003 |
Write a SQL query that answers the following question: Which venue had a city of Manchester in 2003? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (venue VARCHAR, city VARCHAR, year VARCHAR) | SELECT venue FROM table_name_85 WHERE city = "manchester" AND year = 2003 |
Write a SQL query that answers the following question: Which venue had a score of 734-5d? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (venue VARCHAR, score VARCHAR) | SELECT venue FROM table_name_8 WHERE score = "734-5d" |
Write a SQL query that answers the following question: What is the average number of top-5s for the major with 5 top-10s and fewer than 12 cuts made? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (top_5 INTEGER, top_10 VARCHAR, cuts_made VARCHAR) | SELECT AVG(top_5) FROM table_name_3 WHERE top_10 = 5 AND cuts_made < 12 |
Write a SQL query that answers the following question: What is the average number of top-10s for the major with 2 top-25s and fewer than 10 cuts made? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (top_10 INTEGER, top_25 VARCHAR, cuts_made VARCHAR) | SELECT AVG(top_10) FROM table_name_31 WHERE top_25 = 2 AND cuts_made < 10 |
Write a SQL query that answers the following question: What is the total number of top-25s for the major that has 11 top-10s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (top_25 VARCHAR, top_10 VARCHAR) | SELECT COUNT(top_25) FROM table_name_95 WHERE top_10 = 11 |
Write a SQL query that answers the following question: How many total events have cuts made over 12, more than 2 top-5s, and more than 11 top-10s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR, top_5 VARCHAR) | SELECT SUM(events) FROM table_name_66 WHERE cuts_made > 12 AND top_5 > 2 AND top_10 > 11 |
Write a SQL query that answers the following question: How many total wins are associated with events with 1 top-10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (wins INTEGER, top_10 VARCHAR) | SELECT SUM(wins) FROM table_name_63 WHERE top_10 = 1 |
Write a SQL query that answers the following question: What is the average number of cuts made in events with fewer than 1 win and exactly 11 top-10s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR) | SELECT AVG(cuts_made) FROM table_name_93 WHERE top_10 = 11 AND wins < 1 |
Write a SQL query that answers the following question: What week did they have a bye? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (week VARCHAR, date VARCHAR) | SELECT week FROM table_name_52 WHERE date = "bye" |
Write a SQL query that answers the following question: What tournament in 2006 had a score of 0-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (tournament VARCHAR) | SELECT tournament FROM table_name_5 WHERE 2006 = "0-0" |
Write a SQL query that answers the following question: What was the highest number of extra points scored by Albert Herrnstein, when he scored more than 15 points total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (extra_points INTEGER, player VARCHAR, points VARCHAR) | SELECT MAX(extra_points) FROM table_name_38 WHERE player = "albert herrnstein" AND points > 15 |
Write a SQL query that answers the following question: How many touchdowns were scored by William Cole? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (touchdowns VARCHAR, player VARCHAR) | SELECT touchdowns FROM table_name_88 WHERE player = "william cole" |
Write a SQL query that answers the following question: For the game with 26,236 attendance, what was the record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (record VARCHAR, attendance VARCHAR) | SELECT record FROM table_name_81 WHERE attendance = "26,236" |
Write a SQL query that answers the following question: What's the record for the game with an attendance of 49,222? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (record VARCHAR, attendance VARCHAR) | SELECT record FROM table_name_28 WHERE attendance = "49,222" |
Write a SQL query that answers the following question: Who had the most rebounds and how many did he have during the game on June 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (high_rebounds VARCHAR, date VARCHAR) | SELECT high_rebounds FROM table_name_41 WHERE date = "june 11" |
Write a SQL query that answers the following question: Who was the leading scorer and how many did he score for the game on June 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (high_points VARCHAR, date VARCHAR) | SELECT high_points FROM table_name_54 WHERE date = "june 13" |
Write a SQL query that answers the following question: What College/Junior/Club Team has Pick 50 before Round 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (college_junior_club_team VARCHAR, round VARCHAR, pick VARCHAR) | SELECT college_junior_club_team FROM table_name_19 WHERE round < 8 AND pick = 50 |
Write a SQL query that answers the following question: What is the highest overall prior to 1996 with a slalom of 39? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (overall INTEGER, slalom VARCHAR, season VARCHAR) | SELECT MAX(overall) FROM table_name_33 WHERE slalom = "39" AND season < 1996 |
Write a SQL query that answers the following question: What is the lowest overall score prior to 1992 with a downhill score of 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (overall INTEGER, downhill VARCHAR, season VARCHAR) | SELECT MIN(overall) FROM table_name_57 WHERE downhill = "1" AND season < 1992 |
Write a SQL query that answers the following question: What was her Giant Slalom score when her Overall was greater than 3 and her Super G score was 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (Giant VARCHAR, overall VARCHAR, super_g VARCHAR) | SELECT Giant AS slalom FROM table_name_28 WHERE overall > 3 AND super_g = 12 |
Write a SQL query that answers the following question: What was her highest Super G score with a Slalom score of 58 and an Overall larger than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (super_g INTEGER, slalom VARCHAR, overall VARCHAR) | SELECT MAX(super_g) FROM table_name_43 WHERE slalom = "58" AND overall > 2 |
Write a SQL query that answers the following question: What location has the name of Sakakita BS? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (location__all_in_nagano__ VARCHAR, name VARCHAR) | SELECT location__all_in_nagano__ FROM table_name_7 WHERE name = "sakakita bs" |
Write a SQL query that answers the following question: Which location includes Sakakita BS? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (location__all_in_nagano__ VARCHAR, name VARCHAR) | SELECT location__all_in_nagano__ FROM table_name_18 WHERE name = "sakakita bs" |
Write a SQL query that answers the following question: What is the distance from origin in Azumino including Toyoshina IC? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (dist_from_origin VARCHAR, location__all_in_nagano__ VARCHAR, name VARCHAR) | SELECT dist_from_origin FROM table_name_57 WHERE location__all_in_nagano__ = "azumino" AND name = "toyoshina ic" |
Write a SQL query that answers the following question: Which district had first elected earlier than 2006 for representation of Broken Arrow, Tulsa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (district VARCHAR, first_elected VARCHAR, towns_represented VARCHAR) | SELECT district FROM table_name_7 WHERE first_elected < 2006 AND towns_represented = "broken arrow, tulsa" |
Write a SQL query that answers the following question: How many values of first elected are for district 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (first_elected VARCHAR, district VARCHAR) | SELECT COUNT(first_elected) FROM table_name_91 WHERE district = "16" |
Write a SQL query that answers the following question: Which towns are represented in district 31? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (towns_represented VARCHAR, district VARCHAR) | SELECT towns_represented FROM table_name_65 WHERE district = "31" |
Write a SQL query that answers the following question: How many deposits had a Non-Interest Income of 0.9500000000000001 and number of branch/offices less than 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (deposits VARCHAR, non_interest_income VARCHAR, no_of_branches_offices VARCHAR) | SELECT COUNT(deposits) FROM table_name_63 WHERE non_interest_income = 0.9500000000000001 AND no_of_branches_offices < 17 |
Write a SQL query that answers the following question: Which NPL net's bank was citibank? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (npl_net VARCHAR, bank VARCHAR) | SELECT npl_net FROM table_name_30 WHERE bank = "citibank" |
Write a SQL query that answers the following question: Which championship has a winning score of (77-76-74-73=300)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (championship VARCHAR, winning_score VARCHAR) | SELECT championship FROM table_name_88 WHERE winning_score = (77 - 76 - 74 - 73 = 300) |
Write a SQL query that answers the following question: Which championship has a margin of 8 strokes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (championship VARCHAR, margin VARCHAR) | SELECT championship FROM table_name_89 WHERE margin = "8 strokes" |
Write a SQL query that answers the following question: What is the 54 holes for The Open Championship (4)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (championship VARCHAR) | SELECT 54 AS _holes FROM table_name_7 WHERE championship = "the open championship (4)" |
Write a SQL query that answers the following question: Which Tournament has a 2007 of wta premier 5 tournaments? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (tournament VARCHAR) | SELECT tournament FROM table_name_28 WHERE 2007 = "wta premier 5 tournaments" |
Write a SQL query that answers the following question: Which Tournament was played in NH in 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (tournament VARCHAR) | SELECT tournament FROM table_name_38 WHERE 2011 = "nh" |
Write a SQL query that answers the following question: Which Tournament has a 2010 of 2r, and a 2011 of 1r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (tournament VARCHAR) | SELECT tournament FROM table_name_21 WHERE 2010 = "2r" AND 2011 = "1r" |
Write a SQL query that answers the following question: When was Color of green first issued? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (first_issued INTEGER, color VARCHAR) | SELECT MIN(first_issued) FROM table_name_51 WHERE color = "green" |
Write a SQL query that answers the following question: When was Color of green last issued? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (first_issued INTEGER, color VARCHAR) | SELECT MAX(first_issued) FROM table_name_26 WHERE color = "green" |
Write a SQL query that answers the following question: What reverse has a color of green? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (reverse VARCHAR, color VARCHAR) | SELECT reverse FROM table_name_33 WHERE color = "green" |
Write a SQL query that answers the following question: How much was a Reverse of guitar of agustín pío barrios before 1998? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (value VARCHAR, first_issued VARCHAR, reverse VARCHAR) | SELECT value FROM table_name_1 WHERE first_issued < 1998 AND reverse = "guitar of agustín pío barrios" |
Write a SQL query that answers the following question: What is BYU's lowest pick? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (pick__number INTEGER, college VARCHAR) | SELECT MIN(pick__number) FROM table_name_16 WHERE college = "byu" |
Write a SQL query that answers the following question: Which cornerback round has a pick number lower than 26 and an overall higher than 41? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (round INTEGER, overall VARCHAR, pick__number VARCHAR, position VARCHAR) | SELECT SUM(round) FROM table_name_36 WHERE pick__number < 26 AND position = "cornerback" AND overall > 41 |
Write a SQL query that answers the following question: What is the overall number for the College of Wyoming? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (overall VARCHAR, college VARCHAR) | SELECT COUNT(overall) FROM table_name_6 WHERE college = "wyoming" |
Write a SQL query that answers the following question: What is the total round for a wide receiver with an overall of more than 145? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (round VARCHAR, position VARCHAR, overall VARCHAR) | SELECT COUNT(round) FROM table_name_4 WHERE position = "wide receiver" AND overall > 145 |
Write a SQL query that answers the following question: What is College of Ohio State's pick number with an overall lower than 145? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (pick__number VARCHAR, overall VARCHAR, college VARCHAR) | SELECT pick__number FROM table_name_42 WHERE overall < 145 AND college = "ohio state" |
Write a SQL query that answers the following question: How many are enrolled at 49 Marion with the Warriors as their mascot? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (enrollment VARCHAR, _number___county VARCHAR, mascot VARCHAR) | SELECT COUNT(enrollment) FROM table_name_74 WHERE _number___county = "49 marion" AND mascot = "warriors" |
Write a SQL query that answers the following question: Where is Terre Haute North located? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (location VARCHAR, school VARCHAR) | SELECT location FROM table_name_35 WHERE school = "terre haute north" |
Write a SQL query that answers the following question: What's the enrollment at 41 Johnson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (enrollment INTEGER, _number___county VARCHAR) | SELECT AVG(enrollment) FROM table_name_24 WHERE _number___county = "41 johnson" |
Write a SQL query that answers the following question: What school has the greyhounds as mascots? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (school VARCHAR, mascot VARCHAR) | SELECT school FROM table_name_56 WHERE mascot = "greyhounds" |
Write a SQL query that answers the following question: for type diesel-mechanical and configuration b-b, what is the status? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (status VARCHAR, configuration VARCHAR, type VARCHAR) | SELECT status FROM table_name_4 WHERE configuration = "b-b" AND type = "diesel-mechanical" |
Write a SQL query that answers the following question: Where is the origin of the tth version? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (origin VARCHAR, versions VARCHAR) | SELECT origin FROM table_name_37 WHERE versions = "tth" |
Write a SQL query that answers the following question: What is the record of game 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (record VARCHAR, game VARCHAR) | SELECT record FROM table_name_4 WHERE game = 7 |
Write a SQL query that answers the following question: What is the lowest number of points of the game before game 2 before October 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (points INTEGER, october VARCHAR, game VARCHAR) | SELECT MIN(points) FROM table_name_18 WHERE october < 10 AND game < 2 |
Write a SQL query that answers the following question: what team played on july 9 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_72 WHERE date = "july 9" |
Write a SQL query that answers the following question: What is the party of re-elected, incumbent Charles H. Grosvenor, who was first elected before 1894? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (party VARCHAR, incumbent VARCHAR, result VARCHAR, first_elected VARCHAR) | SELECT party FROM table_name_3 WHERE result = "re-elected" AND first_elected < 1894 AND incumbent = "charles h. grosvenor" |
Write a SQL query that answers the following question: Who was the incumbent from the Ohio 13 district? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_name_50 WHERE district = "ohio 13" |
Write a SQL query that answers the following question: What is the party of the representative first elected in 1894 from the Ohio 16 district? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (party VARCHAR, first_elected VARCHAR, district VARCHAR) | SELECT party FROM table_name_22 WHERE first_elected = 1894 AND district = "ohio 16" |
Write a SQL query that answers the following question: What score has Leicestershire as the opponent after 1906? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (score VARCHAR, opposition VARCHAR, year VARCHAR) | SELECT score FROM table_name_58 WHERE opposition = "leicestershire" AND year > 1906 |
Write a SQL query that answers the following question: Where in Buxton has 3 runs? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (venue VARCHAR, score VARCHAR, city VARCHAR) | SELECT venue FROM table_name_50 WHERE score = "3 runs" AND city = "buxton" |
Write a SQL query that answers the following question: What city was in 1889? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (city VARCHAR, year VARCHAR) | SELECT city FROM table_name_97 WHERE year = 1889 |
Write a SQL query that answers the following question: What is the score in Leicester? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (score VARCHAR, city VARCHAR) | SELECT score FROM table_name_42 WHERE city = "leicester" |
Write a SQL query that answers the following question: How many years has 1 run? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (year VARCHAR, score VARCHAR) | SELECT COUNT(year) FROM table_name_53 WHERE score = "1 run" |
Write a SQL query that answers the following question: What year was in Aigburth? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (year INTEGER, venue VARCHAR) | SELECT MAX(year) FROM table_name_26 WHERE venue = "aigburth" |
Write a SQL query that answers the following question: Which season has q145 as its format? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (season__number INTEGER, format__number VARCHAR) | SELECT MIN(season__number) FROM table_name_63 WHERE format__number = "q145" |
Write a SQL query that answers the following question: What is the average episode number with q146 format? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (episode__number INTEGER, format__number VARCHAR) | SELECT AVG(episode__number) FROM table_name_26 WHERE format__number = "q146" |
Write a SQL query that answers the following question: Who is the opponent of Game 1 with a 3-2-0 record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (opponent VARCHAR, game VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_21 WHERE game > 1 AND record = "3-2-0" |
Write a SQL query that answers the following question: What is game 9's record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (record VARCHAR, game VARCHAR) | SELECT record FROM table_name_36 WHERE game = 9 |
Write a SQL query that answers the following question: Who is the opponent of the team with a 1-1-0 record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_53 WHERE record = "1-1-0" |
Write a SQL query that answers the following question: What is the 3rd Liga from 2010-11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (date VARCHAR) | SELECT 3 AS rd_liga_3rd FROM table_name_41 WHERE date = "2010-11" |
Write a SQL query that answers the following question: What is the 3rd Liga from Game 1 of 0-1 between the years 2008-09? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (game_1 VARCHAR, date VARCHAR) | SELECT 3 AS rd_liga_3rd FROM table_name_36 WHERE game_1 = "0-1" AND date = "2008-09" |
Write a SQL query that answers the following question: Which Score in the final has an Outcome of winner, and a Surface of hard (i)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (score_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR) | SELECT score_in_the_final FROM table_name_12 WHERE outcome = "winner" AND surface = "hard (i)" |
Write a SQL query that answers the following question: Which Surface has a Partner of jim thomas, and a Date of 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (surface VARCHAR, partner VARCHAR, date VARCHAR) | SELECT surface FROM table_name_45 WHERE partner = "jim thomas" AND date = 2007 |
Write a SQL query that answers the following question: What was the Attendance in the game with a Result of won 5-2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (attendance VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_58 WHERE result = "won 5-2" |
Write a SQL query that answers the following question: What was the home Competition with Attendance of 1,268? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (competition VARCHAR, venue VARCHAR, attendance VARCHAR) | SELECT competition FROM table_name_39 WHERE venue = "home" AND attendance = "1,268" |
Write a SQL query that answers the following question: What school or club team did the player chosen for the Sacramento Monarchs play for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (school_club_team VARCHAR, wnba_team VARCHAR) | SELECT school_club_team FROM table_name_94 WHERE wnba_team = "sacramento monarchs" |
Write a SQL query that answers the following question: What player was chosen for the Chicago Sky? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (player VARCHAR, wnba_team VARCHAR) | SELECT player FROM table_name_57 WHERE wnba_team = "chicago sky" |
Write a SQL query that answers the following question: Which player was picked for the Chicago Sky? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (player VARCHAR, wnba_team VARCHAR) | SELECT player FROM table_name_47 WHERE wnba_team = "chicago sky" |
Write a SQL query that answers the following question: What is the position of the player with a height of 205 and shirt no 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (position VARCHAR, height VARCHAR, shirt_no VARCHAR) | SELECT position FROM table_name_14 WHERE height = 205 AND shirt_no = 8 |
Write a SQL query that answers the following question: What is the name of the player who is a height of 182? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (player VARCHAR, height VARCHAR) | SELECT player FROM table_name_84 WHERE height = 182 |
Write a SQL query that answers the following question: What is the sum of Gold with Participants that are 4 and a Silver that is smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (gold INTEGER, participants VARCHAR, silver VARCHAR) | SELECT SUM(gold) FROM table_name_81 WHERE participants = 4 AND silver < 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.