instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: At what venue did the Essendon team play as an away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_92 WHERE away_team = "essendon" |
Write a SQL query that answers the following question: Who was the home team for the game played at Junction Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_98 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What was the score of the home team when the away team was Geelong? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_59 WHERE away_team = "geelong" |
Write a SQL query that answers the following question: What was the away team when the home team was South Melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_77 WHERE home_team = "south melbourne" |
Write a SQL query that answers the following question: What was the name of the home team playing at the Junction Oval venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_10 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What is the total number of the established club of Lehigh Valley Storm? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (established VARCHAR, club VARCHAR) | SELECT COUNT(established) FROM table_name_86 WHERE club = "lehigh valley storm" |
Write a SQL query that answers the following question: What is the name of a league in the sport of baseball? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (league VARCHAR, sport VARCHAR) | SELECT league FROM table_name_96 WHERE sport = "baseball" |
Write a SQL query that answers the following question: What venue does the soccer team Pennsylvania Stoners play in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (venue VARCHAR, sport VARCHAR, club VARCHAR) | SELECT venue FROM table_name_55 WHERE sport = "soccer" AND club = "pennsylvania stoners" |
Write a SQL query that answers the following question: What game number was played on March 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (game__number INTEGER, date VARCHAR) | SELECT AVG(game__number) FROM table_name_67 WHERE date = "march 4" |
Write a SQL query that answers the following question: What is the record when the visitor is Buffalo? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (record VARCHAR, visitor VARCHAR) | SELECT record FROM table_name_69 WHERE visitor = "buffalo" |
Write a SQL query that answers the following question: Tell me the number of attendance that has a result of l 35-17 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (attendance VARCHAR, result VARCHAR) | SELECT COUNT(attendance) FROM table_name_4 WHERE result = "l 35-17" |
Write a SQL query that answers the following question: I want the attendance for week larger than 10 and result of l 22-21 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (attendance VARCHAR, week VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_60 WHERE week > 10 AND result = "l 22-21" |
Write a SQL query that answers the following question: Name for me the total number in attendance for week before 2 and result of t 24-24 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (attendance VARCHAR, result VARCHAR, week VARCHAR) | SELECT COUNT(attendance) FROM table_name_60 WHERE result = "t 24-24" AND week < 2 |
Write a SQL query that answers the following question: I want the greatest attendance when the opponent is the chicago bears | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (attendance INTEGER, opponent VARCHAR) | SELECT MAX(attendance) FROM table_name_64 WHERE opponent = "chicago bears" |
Write a SQL query that answers the following question: What is the average attendance for a game against Phoenix? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (attendance INTEGER, visitor VARCHAR) | SELECT AVG(attendance) FROM table_name_16 WHERE visitor = "phoenix" |
Write a SQL query that answers the following question: What was the home team in the February 22 game that Legace played in for the St. Louis Blues? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (home VARCHAR, date VARCHAR, decision VARCHAR, visitor VARCHAR) | SELECT home FROM table_name_78 WHERE decision = "legace" AND visitor = "st. louis" AND date = "february 22" |
Write a SQL query that answers the following question: Who was Carlton's home team opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_65 WHERE away_team = "carlton" |
Write a SQL query that answers the following question: Who was the away team at Lake Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_68 WHERE venue = "lake oval" |
Write a SQL query that answers the following question: Who was South Melbourne's away team opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_8 WHERE home_team = "south melbourne" |
Write a SQL query that answers the following question: What is the high grid with 27 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (grid INTEGER, laps VARCHAR) | SELECT MAX(grid) FROM table_name_89 WHERE laps = 27 |
Write a SQL query that answers the following question: What is the high grid that has a Time/Retired of +6 laps, and under 69 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT MAX(grid) FROM table_name_4 WHERE time_retired = "+6 laps" AND laps < 69 |
Write a SQL query that answers the following question: What's the total number of copies sold for the single that sold 206,030 in the first week? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (copies_sold VARCHAR, first_week_sales VARCHAR) | SELECT COUNT(copies_sold) FROM table_name_43 WHERE first_week_sales = 206 OFFSET 030 |
Write a SQL query that answers the following question: What was the latest release date for Ariola in Spain? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (release_date INTEGER, label VARCHAR, country VARCHAR) | SELECT MAX(release_date) FROM table_name_3 WHERE label = "ariola" AND country = "spain" |
Write a SQL query that answers the following question: What type of format was released after 1979? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (release_format VARCHAR, release_date INTEGER) | SELECT release_format FROM table_name_48 WHERE release_date > 1979 |
Write a SQL query that answers the following question: On what date did Epic label start its release? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (release_date INTEGER, label VARCHAR) | SELECT SUM(release_date) FROM table_name_3 WHERE label = "epic" |
Write a SQL query that answers the following question: Which game had less than 270 rebounds and a rank lower than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (games VARCHAR, rebounds VARCHAR, rank VARCHAR) | SELECT games FROM table_name_36 WHERE rebounds < 270 AND rank < 5 |
Write a SQL query that answers the following question: Which game did Curtis Borchardt play with more than 274 rebounds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (games INTEGER, name VARCHAR, rebounds VARCHAR) | SELECT SUM(games) FROM table_name_20 WHERE name = "curtis borchardt" AND rebounds > 274 |
Write a SQL query that answers the following question: In game 34 Curtis Borchardt played on which team with less than 275 rebounds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (team VARCHAR, name VARCHAR, rebounds VARCHAR, games VARCHAR) | SELECT team FROM table_name_70 WHERE rebounds < 275 AND games < 34 AND name = "curtis borchardt" |
Write a SQL query that answers the following question: How many rebounds occurred in a rank 4 game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (rebounds VARCHAR, rank VARCHAR) | SELECT rebounds FROM table_name_73 WHERE rank = 4 |
Write a SQL query that answers the following question: Which game did was Bud Eley a player in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (games VARCHAR, name VARCHAR) | SELECT games FROM table_name_88 WHERE name = "bud eley" |
Write a SQL query that answers the following question: Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (games INTEGER, team VARCHAR, rank VARCHAR, rebounds VARCHAR) | SELECT SUM(games) FROM table_name_80 WHERE rank < 4 AND rebounds < 275 AND team = "bruesa gbc" |
Write a SQL query that answers the following question: What is the grid for johnny herbert? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (grid VARCHAR, driver VARCHAR) | SELECT grid FROM table_name_6 WHERE driver = "johnny herbert" |
Write a SQL query that answers the following question: Tell me the average rank for dharma productions before 2013 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (rank INTEGER, studio_s_ VARCHAR, year VARCHAR) | SELECT AVG(rank) FROM table_name_43 WHERE studio_s_ = "dharma productions" AND year < 2013 |
Write a SQL query that answers the following question: Name the average year for 4 rank | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (year INTEGER, rank VARCHAR) | SELECT AVG(year) FROM table_name_33 WHERE rank = 4 |
Write a SQL query that answers the following question: Name the lowest rank for red chillies entertainment for 2013 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (rank INTEGER, year VARCHAR, studio_s_ VARCHAR) | SELECT MIN(rank) FROM table_name_99 WHERE year = 2013 AND studio_s_ = "red chillies entertainment" |
Write a SQL query that answers the following question: Which date did richmond play as away? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_27 WHERE away_team = "richmond" |
Write a SQL query that answers the following question: What is the rank for the player with 5 wins and under 32 events? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (rank INTEGER, wins VARCHAR, events VARCHAR) | SELECT SUM(rank) FROM table_name_52 WHERE wins = 5 AND events < 32 |
Write a SQL query that answers the following question: What is the issue price of a Year 2000 coin by artist John Mardon of the Included in Steam Buggy mintage. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (issue_price VARCHAR, mintage VARCHAR, artist VARCHAR, year VARCHAR) | SELECT issue_price FROM table_name_46 WHERE artist = "john mardon" AND year = 2000 AND mintage = "included in steam buggy" |
Write a SQL query that answers the following question: What is the theme of the Year 2002 which was created by Artist Dan Fell? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (theme VARCHAR, year VARCHAR, artist VARCHAR) | SELECT theme FROM table_name_86 WHERE year = 2002 AND artist = "dan fell" |
Write a SQL query that answers the following question: What artist had a mintage of 41,828 before year 2002? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (artist VARCHAR, year VARCHAR, mintage VARCHAR) | SELECT artist FROM table_name_81 WHERE year < 2002 AND mintage = "41,828" |
Write a SQL query that answers the following question: A mintage of 31,997 has what issue price? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (issue_price VARCHAR, mintage VARCHAR) | SELECT issue_price FROM table_name_36 WHERE mintage = "31,997" |
Write a SQL query that answers the following question: Tell me the control trailers for 52 motors | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (Control VARCHAR, motors VARCHAR) | SELECT Control AS trailers FROM table_name_71 WHERE motors = "52" |
Write a SQL query that answers the following question: I want the trailers for 1931 and builder of mccw | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (trailers VARCHAR, year VARCHAR, builder VARCHAR) | SELECT trailers FROM table_name_48 WHERE year = "1931" AND builder = "mccw" |
Write a SQL query that answers the following question: I want the control trailers for 1931 with builder of grcw | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (Control VARCHAR, year VARCHAR, builder VARCHAR) | SELECT Control AS trailers FROM table_name_45 WHERE year = "1931" AND builder = "grcw" |
Write a SQL query that answers the following question: I want the trailers for motors of 145 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (trailers VARCHAR, motors VARCHAR) | SELECT trailers FROM table_name_92 WHERE motors = "145" |
Write a SQL query that answers the following question: Tell me the sum of wins for top 5 less than 1 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (wins INTEGER, top_5 INTEGER) | SELECT SUM(wins) FROM table_name_77 WHERE top_5 < 1 |
Write a SQL query that answers the following question: I want the average events for top 10 less than 4 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (events INTEGER, top_10 INTEGER) | SELECT AVG(events) FROM table_name_17 WHERE top_10 < 4 |
Write a SQL query that answers the following question: Name the highest cuts made when top 5 is less than 3 and top ten is more than 4 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (cuts_made INTEGER, top_5 VARCHAR, top_10 VARCHAR) | SELECT MAX(cuts_made) FROM table_name_99 WHERE top_5 < 3 AND top_10 > 4 |
Write a SQL query that answers the following question: I want the most top 25 when events are more than 20 and top 10 is more than 21 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR) | SELECT MAX(top_25) FROM table_name_84 WHERE events > 20 AND top_10 > 21 |
Write a SQL query that answers the following question: What was the Attendance on April 28? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR) | SELECT SUM(attendance) FROM table_name_40 WHERE date = "april 28" |
Write a SQL query that answers the following question: What was escape to river cottage released? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (released VARCHAR, dvd_name VARCHAR) | SELECT released FROM table_name_64 WHERE dvd_name = "escape to river cottage" |
Write a SQL query that answers the following question: What DVD has a time of 2 hours 22 minutes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (dvd_name VARCHAR, duration VARCHAR) | SELECT dvd_name FROM table_name_61 WHERE duration = "2 hours 22 minutes" |
Write a SQL query that answers the following question: What was the date for the game in week 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_14 WHERE week = 7 |
Write a SQL query that answers the following question: On what date was the attendance of the crowd 78,431? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_54 WHERE attendance = "78,431" |
Write a SQL query that answers the following question: What was the date of the Capitals game when Columbus was the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (date VARCHAR, home VARCHAR) | SELECT date FROM table_name_28 WHERE home = "columbus" |
Write a SQL query that answers the following question: The 2002 African Cup of Nations was held on what date? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (date VARCHAR, competition VARCHAR) | SELECT date FROM table_name_20 WHERE competition = "2002 african cup of nations" |
Write a SQL query that answers the following question: Which competition took place at Stade Fernand Fournier, Arles? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (competition VARCHAR, venue VARCHAR) | SELECT competition FROM table_name_51 WHERE venue = "stade fernand fournier, arles" |
Write a SQL query that answers the following question: What was the attendance of the game where fitzroy was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (crowd VARCHAR, away_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_83 WHERE away_team = "fitzroy" |
Write a SQL query that answers the following question: Which artist created the silver dollar for the 400th anniversary of Quebec? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (artist VARCHAR, theme VARCHAR) | SELECT artist FROM table_name_80 WHERE theme = "400th anniversary of quebec" |
Write a SQL query that answers the following question: Which year did the Royal Canadian Mint Staff create a silver dollar? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (year VARCHAR, artist VARCHAR) | SELECT year FROM table_name_25 WHERE artist = "royal canadian mint staff" |
Write a SQL query that answers the following question: How many coins by Suzanne Duranceau were minted? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (mintage VARCHAR, artist VARCHAR) | SELECT mintage FROM table_name_93 WHERE artist = "suzanne duranceau" |
Write a SQL query that answers the following question: What was the method for the resolution of nc where the fight lasted less than 3 rounds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (method VARCHAR, round VARCHAR, res VARCHAR) | SELECT method FROM table_name_72 WHERE round < 3 AND res = "nc" |
Write a SQL query that answers the following question: Who was the opponent during the UFC 90 event with a fight that lasted less than 4 rounds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (opponent VARCHAR, round VARCHAR, event VARCHAR) | SELECT opponent FROM table_name_95 WHERE round < 4 AND event = "ufc 90" |
Write a SQL query that answers the following question: What was the method for the resolution of the fight at UFC 160? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (method VARCHAR, event VARCHAR) | SELECT method FROM table_name_33 WHERE event = "ufc 160" |
Write a SQL query that answers the following question: What is the league on 5 October 1997? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (league VARCHAR, date VARCHAR) | SELECT league FROM table_name_48 WHERE date = "5 october 1997" |
Write a SQL query that answers the following question: Which season was on 30 October 1977? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (season VARCHAR, date VARCHAR) | SELECT season FROM table_name_50 WHERE date = "30 october 1977" |
Write a SQL query that answers the following question: What season had the Roma-Napoli match on 12 September 1993? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (season VARCHAR, match VARCHAR, date VARCHAR) | SELECT season FROM table_name_1 WHERE match = "roma-napoli" AND date = "12 september 1993" |
Write a SQL query that answers the following question: What club/province for the player with over 18 caps and plays the fly-half? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (club_province VARCHAR, caps VARCHAR, position VARCHAR) | SELECT club_province FROM table_name_28 WHERE caps > 18 AND position = "fly-half" |
Write a SQL query that answers the following question: What driver has less than 18 laps and a grid number under 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (driver VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_14 WHERE laps < 18 AND grid < 16 |
Write a SQL query that answers the following question: Who constructed the car with laps more than 70 and a time/retired of +12.535? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (constructor VARCHAR, laps VARCHAR, time_retired VARCHAR) | SELECT constructor FROM table_name_5 WHERE laps > 70 AND time_retired = "+12.535" |
Write a SQL query that answers the following question: What was Alexander Wurz's highest laps when he has a grid less than 14 and a time/retired of +1 lap. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR) | SELECT MAX(laps) FROM table_name_52 WHERE time_retired = "+1 lap" AND driver = "alexander wurz" AND grid < 14 |
Write a SQL query that answers the following question: Who was Footscray's opponent on June 15th of 1968? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_54 WHERE away_team = "footscray" |
Write a SQL query that answers the following question: What was the most recent year that a team located in Highland Township and a member of the West Division joined the Kensington Lakes Activities Association? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (joined INTEGER, division VARCHAR, location VARCHAR) | SELECT MAX(joined) FROM table_name_43 WHERE division = "west" AND location = "highland township" |
Write a SQL query that answers the following question: What was the pole position for the belgian grand prix? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (pole_position VARCHAR, race VARCHAR) | SELECT pole_position FROM table_name_87 WHERE race = "belgian grand prix" |
Write a SQL query that answers the following question: Who won the australian grand prix? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (race VARCHAR) | SELECT race AS Winner FROM table_name_53 WHERE race = "australian grand prix" |
Write a SQL query that answers the following question: What was the pole position for jerez? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (pole_position VARCHAR, location VARCHAR) | SELECT pole_position FROM table_name_39 WHERE location = "jerez" |
Write a SQL query that answers the following question: What is the enzyme involved in the disorder of Ornithine Transcarbamylase deficiency? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (enzyme VARCHAR, disorder VARCHAR) | SELECT enzyme FROM table_name_66 WHERE disorder = "ornithine transcarbamylase deficiency" |
Write a SQL query that answers the following question: What lab measurements can help diagnosie ornithine transcarbamylase deficiency? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (measurements VARCHAR, disorder VARCHAR) | SELECT measurements FROM table_name_15 WHERE disorder = "ornithine transcarbamylase deficiency" |
Write a SQL query that answers the following question: What is the abbreviation of the enzyme involved in carbamoyl phosphate synthetase i deficiency? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (abb VARCHAR, disorder VARCHAR) | SELECT abb FROM table_name_30 WHERE disorder = "carbamoyl phosphate synthetase i deficiency" |
Write a SQL query that answers the following question: what is the venue when the home team is melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_67 WHERE home_team = "melbourne" |
Write a SQL query that answers the following question: what is the date when the home team is st kilda? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_26 WHERE home_team = "st kilda" |
Write a SQL query that answers the following question: what is the date when the venue is junction oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_47 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What is the home team score when played at mcg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_24 WHERE venue = "mcg" |
Write a SQL query that answers the following question: who is the away team when played at junction oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_41 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What is the top speed of the model 1.8 20v t? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (top_speed__km_h_ INTEGER, model VARCHAR) | SELECT SUM(top_speed__km_h_) FROM table_name_84 WHERE model = "1.8 20v t" |
Write a SQL query that answers the following question: What is the max torque of model 1.4 16v? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (max_torque__nm__at_rpm VARCHAR, model VARCHAR) | SELECT max_torque__nm__at_rpm FROM table_name_82 WHERE model = "1.4 16v" |
Write a SQL query that answers the following question: How many rounds did Ken Wharton go? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (rounds VARCHAR, driver VARCHAR) | SELECT rounds FROM table_name_64 WHERE driver = "ken wharton" |
Write a SQL query that answers the following question: What driver has a 166 c 500 chassis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (driver VARCHAR, chassis VARCHAR) | SELECT driver FROM table_name_56 WHERE chassis = "166 c 500" |
Write a SQL query that answers the following question: What is the Onehunga school with a decile 3 and smaller than 310 rolls? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (name VARCHAR, area VARCHAR, decile VARCHAR, roll VARCHAR) | SELECT name FROM table_name_17 WHERE decile = "3" AND roll < 310 AND area = "onehunga" |
Write a SQL query that answers the following question: What is the authority status of the school in Ellerslie with a decile of 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (authority VARCHAR, area VARCHAR, decile VARCHAR) | SELECT authority FROM table_name_38 WHERE area = "ellerslie" AND decile = "7" |
Write a SQL query that answers the following question: What is the biggest roll number of Sylvia Park School, which has a state authority? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (roll INTEGER, authority VARCHAR, name VARCHAR) | SELECT MAX(roll) FROM table_name_12 WHERE authority = "state" AND name = "sylvia park school" |
Write a SQL query that answers the following question: What is the name of the school with a decile of 1, a state authority, and located in Otahuhu? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (name VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR) | SELECT name FROM table_name_41 WHERE decile = "1" AND authority = "state" AND area = "otahuhu" |
Write a SQL query that answers the following question: What is the special notes value for years under 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (special_notes VARCHAR, year INTEGER) | SELECT special_notes FROM table_name_56 WHERE year < 2009 |
Write a SQL query that answers the following question: How many years have a theme of Toronto Maple Leafs and an Issue Price of 24.95? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (year VARCHAR, theme VARCHAR, issue_price VARCHAR) | SELECT COUNT(year) FROM table_name_39 WHERE theme = "toronto maple leafs" AND issue_price = 24.95 |
Write a SQL query that answers the following question: Who was the winner for the Winton Motor Raceway circuit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (winner VARCHAR, circuit VARCHAR) | SELECT winner FROM table_name_51 WHERE circuit = "winton motor raceway" |
Write a SQL query that answers the following question: What was the team that held the race title of Mallala? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (team VARCHAR, race_title VARCHAR) | SELECT team FROM table_name_47 WHERE race_title = "mallala" |
Write a SQL query that answers the following question: Name the driver for Laps less than 9 and a grid of 13 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (driver VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_60 WHERE laps < 9 AND grid = 13 |
Write a SQL query that answers the following question: Who was the winner in the competition in which the runner-up was Rosenborg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (winners VARCHAR, runners_up VARCHAR) | SELECT winners FROM table_name_16 WHERE runners_up = "rosenborg" |
Write a SQL query that answers the following question: What was the year of the competition in which Odd Grenland was the runner-up? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (years VARCHAR, runners_up VARCHAR) | SELECT years FROM table_name_57 WHERE runners_up = "odd grenland" |
Write a SQL query that answers the following question: Who was the winner in the competition in which Lyn took third place and Lillestrøm was the runner-up? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (winners VARCHAR, runners_up VARCHAR, third VARCHAR) | SELECT winners FROM table_name_44 WHERE runners_up = "lillestrøm" AND third = "lyn" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.