instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What was the score on April 22? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_53 WHERE date = "april 22" |
Write a SQL query that answers the following question: What event had zhamash l 1–2 in the quarterfinal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (event VARCHAR, quarterfinal VARCHAR) | SELECT event FROM table_name_88 WHERE quarterfinal = "zhamash l 1–2" |
Write a SQL query that answers the following question: Hossein Ojaghi participated in what semifinal. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (semifinal VARCHAR, athlete VARCHAR) | SELECT semifinal FROM table_name_4 WHERE athlete = "hossein ojaghi" |
Write a SQL query that answers the following question: Alireza Rouzbahani did not advance to the quarterfinal in what event? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (event VARCHAR, quarterfinal VARCHAR, athlete VARCHAR) | SELECT event FROM table_name_29 WHERE quarterfinal = "did not advance" AND athlete = "alireza rouzbahani" |
Write a SQL query that answers the following question: How many games have more than 288 goals and less than 34 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (games VARCHAR, goals_against VARCHAR, lost VARCHAR) | SELECT COUNT(games) FROM table_name_38 WHERE goals_against > 288 AND lost < 34 |
Write a SQL query that answers the following question: What is the lowest tie with less than 100 points and 277 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (tied INTEGER, points VARCHAR, goals_for VARCHAR) | SELECT MIN(tied) FROM table_name_57 WHERE points < 100 AND goals_for = 277 |
Write a SQL query that answers the following question: What is the team with position G? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (team VARCHAR, position VARCHAR) | SELECT team FROM table_name_94 WHERE position = "g" |
Write a SQL query that answers the following question: What is the player from Illinois? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (player VARCHAR, college VARCHAR) | SELECT player FROM table_name_33 WHERE college = "illinois" |
Write a SQL query that answers the following question: What is the phone number of the station located at 53 Dayton Road? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (phone VARCHAR, address VARCHAR) | SELECT phone FROM table_name_46 WHERE address = "53 dayton road" |
Write a SQL query that answers the following question: What is the name of the engine company that is located at 89 Rope Ferry Road? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (engine_company VARCHAR, address VARCHAR) | SELECT engine_company FROM table_name_35 WHERE address = "89 rope ferry road" |
Write a SQL query that answers the following question: What was the Record of the game in which the Trail Blazers was the visiting team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (record VARCHAR, visitor VARCHAR) | SELECT record FROM table_name_24 WHERE visitor = "trail blazers" |
Write a SQL query that answers the following question: What was the date of the friendly match, ending in a result of 1-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (date VARCHAR, competition VARCHAR, result VARCHAR) | SELECT date FROM table_name_30 WHERE competition = "friendly match" AND result = "1-1" |
Write a SQL query that answers the following question: What was the result of the game held at the As-Salt venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (result VARCHAR, venue VARCHAR) | SELECT result FROM table_name_28 WHERE venue = "as-salt" |
Write a SQL query that answers the following question: What was the team's record on May 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_56 WHERE date = "may 17" |
Write a SQL query that answers the following question: Which zone had mădălina gojnea monica niculescu as the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (zone VARCHAR, opponents VARCHAR) | SELECT zone FROM table_name_30 WHERE opponents = "mădălina gojnea monica niculescu" |
Write a SQL query that answers the following question: Who was against the opponents, mădălina gojnea monica niculescu? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (against VARCHAR, opponents VARCHAR) | SELECT against FROM table_name_94 WHERE opponents = "mădălina gojnea monica niculescu" |
Write a SQL query that answers the following question: What was the surface on the game with margit rüütel anett schutting as the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (surface VARCHAR, opponents VARCHAR) | SELECT surface FROM table_name_7 WHERE opponents = "margit rüütel anett schutting" |
Write a SQL query that answers the following question: What is the zone of the game played against Estonia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (zone VARCHAR, against VARCHAR) | SELECT zone FROM table_name_64 WHERE against = "estonia" |
Write a SQL query that answers the following question: Who had the high rebounds on February 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (high_rebounds VARCHAR, date VARCHAR) | SELECT high_rebounds FROM table_name_36 WHERE date = "february 24" |
Write a SQL query that answers the following question: On February 10, what was the location attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (location_attendance VARCHAR, date VARCHAR) | SELECT location_attendance FROM table_name_49 WHERE date = "february 10" |
Write a SQL query that answers the following question: Tell me the player with econ of 4.23 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (player VARCHAR, econ VARCHAR) | SELECT player FROM table_name_40 WHERE econ = "4.23" |
Write a SQL query that answers the following question: Tell me the runs for b lee | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (runs VARCHAR, player VARCHAR) | SELECT runs FROM table_name_15 WHERE player = "b lee" |
Write a SQL query that answers the following question: Tell me the player with overs of 87.4 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (player VARCHAR, overs VARCHAR) | SELECT player FROM table_name_91 WHERE overs = "87.4" |
Write a SQL query that answers the following question: Tell me the runs for econ of 3.63 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (runs VARCHAR, econ VARCHAR) | SELECT runs FROM table_name_80 WHERE econ = "3.63" |
Write a SQL query that answers the following question: Tell me the wkts for econ of 4.23 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (wkts VARCHAR, econ VARCHAR) | SELECT wkts FROM table_name_13 WHERE econ = "4.23" |
Write a SQL query that answers the following question: Tell me the overs for mdns of 4 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (overs VARCHAR, mdns VARCHAR) | SELECT overs FROM table_name_66 WHERE mdns = "4" |
Write a SQL query that answers the following question: If collingwood is playing away, who played as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_43 WHERE away_team = "collingwood" |
Write a SQL query that answers the following question: What was the away teams score when they played at kardinia park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_7 WHERE venue = "kardinia park" |
Write a SQL query that answers the following question: What's the highest turnout when carlton was playing as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (crowd INTEGER, away_team VARCHAR) | SELECT MAX(crowd) FROM table_name_29 WHERE away_team = "carlton" |
Write a SQL query that answers the following question: What away team played when the crowd was over 27,463 people? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (away_team VARCHAR, crowd INTEGER) | SELECT away_team FROM table_name_69 WHERE crowd > 27 OFFSET 463 |
Write a SQL query that answers the following question: On waht date did Antoinette Jeanne Yvonne Boegner get married? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (marriage VARCHAR, spouse VARCHAR) | SELECT marriage FROM table_name_28 WHERE spouse = "antoinette jeanne yvonne boegner" |
Write a SQL query that answers the following question: What is the largest Crowd number for the Home team of North Melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (crowd INTEGER, home_team VARCHAR) | SELECT MAX(crowd) FROM table_name_3 WHERE home_team = "north melbourne" |
Write a SQL query that answers the following question: What home team did South Melbourne play as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_19 WHERE away_team = "south melbourne" |
Write a SQL query that answers the following question: What did the home team score against the away team Hawthorn? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_30 WHERE away_team = "hawthorn" |
Write a SQL query that answers the following question: In the Western Oval venue, what is the average crowd? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (crowd INTEGER, venue VARCHAR) | SELECT AVG(crowd) FROM table_name_38 WHERE venue = "western oval" |
Write a SQL query that answers the following question: When Richmond is the away team, what is the crowd size? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (crowd VARCHAR, away_team VARCHAR) | SELECT crowd FROM table_name_23 WHERE away_team = "richmond" |
Write a SQL query that answers the following question: Who is the person from round 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (name VARCHAR, round VARCHAR) | SELECT name FROM table_name_60 WHERE round = 8 |
Write a SQL query that answers the following question: What is the round for Arizona with a pick over 100? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (round INTEGER, school VARCHAR, pick VARCHAR) | SELECT AVG(round) FROM table_name_48 WHERE school = "arizona" AND pick > 100 |
Write a SQL query that answers the following question: What pick had a wide receiver named johnny holloway? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (pick VARCHAR, position VARCHAR, name VARCHAR) | SELECT pick FROM table_name_66 WHERE position = "wide receiver" AND name = "johnny holloway" |
Write a SQL query that answers the following question: Which score has a Home Team of saskatoon accelerators? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (score VARCHAR, home_team VARCHAR) | SELECT score FROM table_name_61 WHERE home_team = "saskatoon accelerators" |
Write a SQL query that answers the following question: Which Visiting Team has a Stadium of servus centre on march 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (visiting_team VARCHAR, stadium VARCHAR, date VARCHAR) | SELECT visiting_team FROM table_name_56 WHERE stadium = "servus centre" AND date = "march 7" |
Write a SQL query that answers the following question: Which Visiting Team has a Stadium of servus centre? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (visiting_team VARCHAR, stadium VARCHAR) | SELECT visiting_team FROM table_name_82 WHERE stadium = "servus centre" |
Write a SQL query that answers the following question: How many heavy attacks did the 450 Luftflotte 2 conduct? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (heavy_attacks VARCHAR, luftflotte_2_sorties VARCHAR) | SELECT COUNT(heavy_attacks) FROM table_name_29 WHERE luftflotte_2_sorties = 450 |
Write a SQL query that answers the following question: What is the time/retired for grid 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (time_retired VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_40 WHERE grid = 19 |
Write a SQL query that answers the following question: What is the grid total for bruce mclaren with over 73 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (grid INTEGER, laps VARCHAR, driver VARCHAR) | SELECT SUM(grid) FROM table_name_14 WHERE laps > 73 AND driver = "bruce mclaren" |
Write a SQL query that answers the following question: What film was released in 1971? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (film VARCHAR, year VARCHAR) | SELECT film FROM table_name_66 WHERE year = 1971 |
Write a SQL query that answers the following question: When was steve bartalo picked? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (pick INTEGER, player VARCHAR) | SELECT MAX(pick) FROM table_name_79 WHERE player = "steve bartalo" |
Write a SQL query that answers the following question: What player is a cornerback? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (player VARCHAR, position VARCHAR) | SELECT player FROM table_name_57 WHERE position = "cornerback" |
Write a SQL query that answers the following question: Windy hill is the home to what team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_85 WHERE venue = "windy hill" |
Write a SQL query that answers the following question: What is the name of the competition with a score of 1-5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (competition VARCHAR, score VARCHAR) | SELECT competition FROM table_name_49 WHERE score = "1-5" |
Write a SQL query that answers the following question: What is the name of the competition with opponents of Sv Werder Bremen and a score of 1-2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (competition VARCHAR, opponents VARCHAR, score VARCHAR) | SELECT competition FROM table_name_37 WHERE opponents = "sv werder bremen" AND score = "1-2" |
Write a SQL query that answers the following question: What regular season result had an average attendance less than 942? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (reg_season VARCHAR, avg_attendance INTEGER) | SELECT reg_season FROM table_name_16 WHERE avg_attendance < 942 |
Write a SQL query that answers the following question: Which league had a playoffs result of a lost semifinal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (league VARCHAR, playoffs VARCHAR) | SELECT league FROM table_name_31 WHERE playoffs = "lost semifinal" |
Write a SQL query that answers the following question: What regular season result had an average attendance bigger than 3,170? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (reg_season VARCHAR, avg_attendance INTEGER) | SELECT reg_season FROM table_name_67 WHERE avg_attendance > 3 OFFSET 170 |
Write a SQL query that answers the following question: what is the length (miles) when the east or north terminus is ne 2 in lincoln? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (length__miles_ VARCHAR, east_or_north_terminus VARCHAR) | SELECT COUNT(length__miles_) FROM table_name_95 WHERE east_or_north_terminus = "ne 2 in lincoln" |
Write a SQL query that answers the following question: what is the length (miles) when the name is l-56g? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (length__miles_ INTEGER, name VARCHAR) | SELECT MAX(length__miles_) FROM table_name_19 WHERE name = "l-56g" |
Write a SQL query that answers the following question: what is the name when the west or south terminus is ne 112 west of blue springs? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (name VARCHAR, west_or_south_terminus VARCHAR) | SELECT name FROM table_name_63 WHERE west_or_south_terminus = "ne 112 west of blue springs" |
Write a SQL query that answers the following question: What is the Time/Retired value for Driver Johnny Herbert with Constructor Benetton - Renault | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (time_retired VARCHAR, constructor VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_38 WHERE constructor = "benetton - renault" AND driver = "johnny herbert" |
Write a SQL query that answers the following question: What is the Time/Retired value for constructor Jordan - Peugeot with 66 laps and grid value 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR, constructor VARCHAR) | SELECT time_retired FROM table_name_50 WHERE laps = "66" AND constructor = "jordan - peugeot" AND grid = "5" |
Write a SQL query that answers the following question: What is the Time/Retired value of driver Pedro Diniz? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (time_retired VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_7 WHERE driver = "pedro diniz" |
Write a SQL query that answers the following question: Which driver has grid value of 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_45 WHERE grid = "18" |
Write a SQL query that answers the following question: What is the constructor with grid value 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (constructor VARCHAR, grid VARCHAR) | SELECT constructor FROM table_name_54 WHERE grid = "5" |
Write a SQL query that answers the following question: What is the grid value which has Time/Retired value of accident? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (grid VARCHAR, time_retired VARCHAR) | SELECT grid FROM table_name_57 WHERE time_retired = "accident" |
Write a SQL query that answers the following question: Who was the leading scorer that was a visitor of the Trail Blazers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (leading_scorer VARCHAR, visitor VARCHAR) | SELECT leading_scorer FROM table_name_35 WHERE visitor = "trail blazers" |
Write a SQL query that answers the following question: Who is the leading scorer when they were at home of the Clippers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (leading_scorer VARCHAR, home VARCHAR) | SELECT leading_scorer FROM table_name_51 WHERE home = "clippers" |
Write a SQL query that answers the following question: Who was the visitor on January 19, 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_38 WHERE date = "january 19, 2008" |
Write a SQL query that answers the following question: What was the score when there was a visitor of Magic and at home with the Clippers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (score VARCHAR, visitor VARCHAR, home VARCHAR) | SELECT score FROM table_name_54 WHERE visitor = "magic" AND home = "clippers" |
Write a SQL query that answers the following question: How many games for keith j. miller, who debuted after 1974 with less than 1 goal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (games INTEGER, debut_year VARCHAR, goals VARCHAR, player VARCHAR) | SELECT AVG(games) FROM table_name_28 WHERE goals < 1 AND player = "keith j. miller" AND debut_year > 1974 |
Write a SQL query that answers the following question: What is the highest crowd when carlton is the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (crowd INTEGER, away_team VARCHAR) | SELECT MAX(crowd) FROM table_name_62 WHERE away_team = "carlton" |
Write a SQL query that answers the following question: What is the highest crowd at mcg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (crowd INTEGER, venue VARCHAR) | SELECT MAX(crowd) FROM table_name_72 WHERE venue = "mcg" |
Write a SQL query that answers the following question: How many grids are associated with a Time/Retired of +1.837? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (grid VARCHAR, time_retired VARCHAR) | SELECT COUNT(grid) FROM table_name_87 WHERE time_retired = "+1.837" |
Write a SQL query that answers the following question: What is the hometown of the player that attends UCLA? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (hometown VARCHAR, college VARCHAR) | SELECT hometown FROM table_name_99 WHERE college = "ucla" |
Write a SQL query that answers the following question: What college is getting a player that attends Wichita Heights High School? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (college VARCHAR, school VARCHAR) | SELECT college FROM table_name_32 WHERE school = "wichita heights high school" |
Write a SQL query that answers the following question: What is the hometown of Cody Zeller? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (hometown VARCHAR, player VARCHAR) | SELECT hometown FROM table_name_83 WHERE player = "cody zeller" |
Write a SQL query that answers the following question: What player's hometown is Washington, IN? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (player VARCHAR, hometown VARCHAR) | SELECT player FROM table_name_83 WHERE hometown = "washington, in" |
Write a SQL query that answers the following question: What is the %2006 that has fewer seats than 23 in Seats 2001, more seats than 4 in 2006 Seats, and a % in 2001 of 25.4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (_percentage_2006 VARCHAR, _percentage_2001 VARCHAR, seats_2001 VARCHAR, seats_2006 VARCHAR) | SELECT _percentage_2006 FROM table_name_12 WHERE seats_2001 < 23 AND seats_2006 > 4 AND _percentage_2001 = 25.4 |
Write a SQL query that answers the following question: When the %2001 is more than 61.4, and the %2006 fewer than 54.1, how many Seats in 2001 were there? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (seats_2001 INTEGER, _percentage_2001 VARCHAR, _percentage_2006 VARCHAR) | SELECT SUM(seats_2001) FROM table_name_30 WHERE _percentage_2001 > 61.4 AND _percentage_2006 < 54.1 |
Write a SQL query that answers the following question: What is the highest number of Seats 2006 held by the Christian Democratic Union of Germany Party/Voter Community, with a %2006 higher than 24.6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR) | SELECT MAX(seats_2006) FROM table_name_79 WHERE parties_and_voter_communities = "christian democratic union of germany" AND _percentage_2006 > 24.6 |
Write a SQL query that answers the following question: What is the highest number of Seats 2006 held by the communities of Bürger Für Groß-Rohrheim Party/Voter Community, with a %2006 less than 21.3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR) | SELECT MAX(seats_2006) FROM table_name_5 WHERE parties_and_voter_communities = "bürger für groß-rohrheim" AND _percentage_2006 < 21.3 |
Write a SQL query that answers the following question: What is the %2006 when the %2001 was more than 62.5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (_percentage_2006 INTEGER, _percentage_2001 INTEGER) | SELECT AVG(_percentage_2006) FROM table_name_52 WHERE _percentage_2001 > 62.5 |
Write a SQL query that answers the following question: What is the sum of the losses by the Montreal Hockey Club, who have more than 15 Goals Against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (losses INTEGER, team VARCHAR, goals_against VARCHAR) | SELECT SUM(losses) FROM table_name_56 WHERE team = "montreal hockey club" AND goals_against > 15 |
Write a SQL query that answers the following question: What is the largest Goals For by a team that has more than 0 ties? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (goals_for INTEGER, ties INTEGER) | SELECT MAX(goals_for) FROM table_name_18 WHERE ties > 0 |
Write a SQL query that answers the following question: How many ties do teams with 25 Goals For and more than 5 wins have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (ties INTEGER, goals_for VARCHAR, wins VARCHAR) | SELECT SUM(ties) FROM table_name_40 WHERE goals_for = 25 AND wins > 5 |
Write a SQL query that answers the following question: What is the lowest Goals Against by a team with more than 5 wins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (goals_against INTEGER, wins INTEGER) | SELECT MIN(goals_against) FROM table_name_18 WHERE wins > 5 |
Write a SQL query that answers the following question: What is the total number of ties a team with less than 3 losses have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (ties VARCHAR, losses INTEGER) | SELECT COUNT(ties) FROM table_name_98 WHERE losses < 3 |
Write a SQL query that answers the following question: Tell me the race name where stirling moss won on 16 april | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (race_name VARCHAR, winning_driver VARCHAR, date VARCHAR) | SELECT race_name FROM table_name_61 WHERE winning_driver = "stirling moss" AND date = "16 april" |
Write a SQL query that answers the following question: Tell me the report for circuit of modena | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (report VARCHAR, circuit VARCHAR) | SELECT report FROM table_name_25 WHERE circuit = "modena" |
Write a SQL query that answers the following question: Tell me the race name for ferrari on 25 april | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (race_name VARCHAR, constructor VARCHAR, date VARCHAR) | SELECT race_name FROM table_name_17 WHERE constructor = "ferrari" AND date = "25 april" |
Write a SQL query that answers the following question: Name the constructor for vii kanonloppet | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (constructor VARCHAR, race_name VARCHAR) | SELECT constructor FROM table_name_22 WHERE race_name = "vii kanonloppet" |
Write a SQL query that answers the following question: Who is the opponent on May 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_55 WHERE date = "may 7" |
Write a SQL query that answers the following question: When the Home team was Carlton, what was the Away team score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_90 WHERE home_team = "carlton" |
Write a SQL query that answers the following question: Who was the constructor for a FW20 chassis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (constructor VARCHAR, chassis VARCHAR) | SELECT constructor FROM table_name_37 WHERE chassis = "fw20" |
Write a SQL query that answers the following question: What engine did David Coulthard have in his mp4-13 chassis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (engine_† VARCHAR, chassis VARCHAR, driver VARCHAR) | SELECT engine_† FROM table_name_86 WHERE chassis = "mp4-13" AND driver = "david coulthard" |
Write a SQL query that answers the following question: Which date has an Outcome of runner-up, and an Opponent in the final of gilles simon? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (date VARCHAR, outcome VARCHAR, opponent_in_the_final VARCHAR) | SELECT date FROM table_name_86 WHERE outcome = "runner-up" AND opponent_in_the_final = "gilles simon" |
Write a SQL query that answers the following question: Who was the opponent on the 28 july 2013 final? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (opponent_in_the_final VARCHAR, date VARCHAR) | SELECT opponent_in_the_final FROM table_name_33 WHERE date = "28 july 2013" |
Write a SQL query that answers the following question: Which date has a Score in the final of 4–6, 3–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (date VARCHAR, score_in_the_final VARCHAR) | SELECT date FROM table_name_11 WHERE score_in_the_final = "4–6, 3–6" |
Write a SQL query that answers the following question: What is the prefix for the formula of Rsor'? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (prefix VARCHAR, formula VARCHAR) | SELECT prefix FROM table_name_75 WHERE formula = "rsor'" |
Write a SQL query that answers the following question: Which group has the RNCS formula? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (group VARCHAR, formula VARCHAR) | SELECT group FROM table_name_66 WHERE formula = "rncs" |
Write a SQL query that answers the following question: Which formula has a thial as a chemical class? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (formula VARCHAR, chemical_class VARCHAR) | SELECT formula FROM table_name_13 WHERE chemical_class = "thial" |
Write a SQL query that answers the following question: Which suffix has the prefix of isothiocyanato- (-ncs)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (suffix VARCHAR, prefix VARCHAR) | SELECT suffix FROM table_name_17 WHERE prefix = "isothiocyanato- (-ncs)" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.