instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What was the latest week that the Tampa Bay Buccaneers were an opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (week INTEGER, opponent VARCHAR) | SELECT MAX(week) FROM table_name_29 WHERE opponent = "tampa bay buccaneers" |
Write a SQL query that answers the following question: Name the fewest tries for leicester tigers with points less than 207 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (tries INTEGER, club VARCHAR, points VARCHAR) | SELECT MIN(tries) FROM table_name_6 WHERE club = "leicester tigers" AND points < 207 |
Write a SQL query that answers the following question: Name the date of st albans city for result of drew 0-0 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (date VARCHAR, opponent VARCHAR, result VARCHAR) | SELECT date FROM table_name_73 WHERE opponent = "st albans city" AND result = "drew 0-0" |
Write a SQL query that answers the following question: Name the venue for 15 august 2006 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_89 WHERE date = "15 august 2006" |
Write a SQL query that answers the following question: Name the most attendance for tamworth with home venue | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (attendance INTEGER, opponent VARCHAR, venue VARCHAR) | SELECT MAX(attendance) FROM table_name_4 WHERE opponent = "tamworth" AND venue = "home" |
Write a SQL query that answers the following question: Name the least attendance for 10 october 2006 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (attendance INTEGER, date VARCHAR) | SELECT MIN(attendance) FROM table_name_82 WHERE date = "10 october 2006" |
Write a SQL query that answers the following question: I want the average bronze for total of 19 and silver of 8 with rank of 31 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (bronze INTEGER, rank VARCHAR, total VARCHAR, silver VARCHAR) | SELECT AVG(bronze) FROM table_name_12 WHERE total = 19 AND silver = 8 AND rank = "31" |
Write a SQL query that answers the following question: Tell me the average bronze for rank of 43 and total less than 11 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (bronze INTEGER, rank VARCHAR, total VARCHAR) | SELECT AVG(bronze) FROM table_name_41 WHERE rank = "43" AND total < 11 |
Write a SQL query that answers the following question: Say the frequency of 1290 khz | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (format VARCHAR, frequency VARCHAR) | SELECT format FROM table_name_31 WHERE frequency = "1290 khz" |
Write a SQL query that answers the following question: Tell me the timeslot of calls of wrko | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (timeslot VARCHAR, calls VARCHAR) | SELECT timeslot FROM table_name_21 WHERE calls = "wrko" |
Write a SQL query that answers the following question: Tell me the format for calls of wrko | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (format VARCHAR, calls VARCHAR) | SELECT format FROM table_name_56 WHERE calls = "wrko" |
Write a SQL query that answers the following question: Tell me the calls for frequency of 1290 khz | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (calls VARCHAR, frequency VARCHAR) | SELECT calls FROM table_name_88 WHERE frequency = "1290 khz" |
Write a SQL query that answers the following question: Tell me the branding for frequency of 680 khz | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (branding VARCHAR, frequency VARCHAR) | SELECT branding FROM table_name_88 WHERE frequency = "680 khz" |
Write a SQL query that answers the following question: Tell me the timeslot for calls of whyn | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (timeslot VARCHAR, calls VARCHAR) | SELECT timeslot FROM table_name_74 WHERE calls = "whyn" |
Write a SQL query that answers the following question: For how long did Bolivia have a lane greater than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (time VARCHAR, country VARCHAR, lane VARCHAR) | SELECT COUNT(time) FROM table_name_56 WHERE country = "bolivia" AND lane > 6 |
Write a SQL query that answers the following question: In heat rank 7, what is the sum of lanes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (lane INTEGER, heat_rank VARCHAR) | SELECT SUM(lane) FROM table_name_48 WHERE heat_rank = 7 |
Write a SQL query that answers the following question: Which country is ranked 56 overall and has a heat rank smaller than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (country VARCHAR, heat_rank VARCHAR, overall_rank VARCHAR) | SELECT country FROM table_name_72 WHERE heat_rank < 8 AND overall_rank = "56" |
Write a SQL query that answers the following question: What is the greatest lane with an overall rank of 79 and a time larger than 26.1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (lane INTEGER, overall_rank VARCHAR, time VARCHAR) | SELECT MAX(lane) FROM table_name_24 WHERE overall_rank = "79" AND time > 26.1 |
Write a SQL query that answers the following question: Tell me the highest week for metropolitan stadium for attendance more than 47,644 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (week INTEGER, venue VARCHAR, attendance VARCHAR) | SELECT MAX(week) FROM table_name_80 WHERE venue = "metropolitan stadium" AND attendance > 47 OFFSET 644 |
Write a SQL query that answers the following question: Name the sum of played for serik berdalin and drawn more than 4 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (played INTEGER, manager VARCHAR, drawn VARCHAR) | SELECT SUM(played) FROM table_name_25 WHERE manager = "serik berdalin" AND drawn > 4 |
Write a SQL query that answers the following question: Who had the highest total PR seats of 48 with a District seat larger than than 73? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (total_seats INTEGER, pr_seats VARCHAR, district_seats VARCHAR) | SELECT MAX(total_seats) FROM table_name_28 WHERE pr_seats = 48 AND district_seats > 73 |
Write a SQL query that answers the following question: In 1955 which party did Thomas Mitchell belong to? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (party VARCHAR, year VARCHAR, candidate VARCHAR) | SELECT party FROM table_name_97 WHERE year = "1955" AND candidate = "thomas mitchell" |
Write a SQL query that answers the following question: What are the number of days did the ulster unionist Party have the constituate fermanagh and south tyrone? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (days VARCHAR, party VARCHAR, constituency VARCHAR) | SELECT days FROM table_name_79 WHERE party = "ulster unionist" AND constituency = "fermanagh and south tyrone" |
Write a SQL query that answers the following question: What are the number of days in 1945 where the constituent was heywood and radcliffe? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (days VARCHAR, year VARCHAR, constituency VARCHAR) | SELECT days FROM table_name_18 WHERE year = "1945" AND constituency = "heywood and radcliffe" |
Write a SQL query that answers the following question: What year was Hazel Grove the constituent for the liberal party? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (year VARCHAR, party VARCHAR, constituency VARCHAR) | SELECT year FROM table_name_15 WHERE party = "liberal" AND constituency = "hazel grove" |
Write a SQL query that answers the following question: Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (laps INTEGER, rider VARCHAR, grid VARCHAR, bike VARCHAR) | SELECT AVG(laps) FROM table_name_74 WHERE grid > 12 AND bike = "ducati 999rs" AND rider = "dean ellison" |
Write a SQL query that answers the following question: Tell me the highest Laps for grid less than 22 and riderS of ruben xaus | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (laps INTEGER, grid VARCHAR, rider VARCHAR) | SELECT MAX(laps) FROM table_name_40 WHERE grid < 22 AND rider = "ruben xaus" |
Write a SQL query that answers the following question: Tell me the total number of grid for rider of james toseland | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (grid VARCHAR, rider VARCHAR) | SELECT COUNT(grid) FROM table_name_14 WHERE rider = "james toseland" |
Write a SQL query that answers the following question: Tell me the least Laps for grid larger than 2 with 35:26.734 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (laps INTEGER, time VARCHAR, grid VARCHAR) | SELECT MIN(laps) FROM table_name_45 WHERE time = "35:26.734" AND grid > 2 |
Write a SQL query that answers the following question: Tell me the date with week of 13 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_21 WHERE week = 13 |
Write a SQL query that answers the following question: Tell me the average week for attendance of 48,113 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (week INTEGER, attendance VARCHAR) | SELECT AVG(week) FROM table_name_74 WHERE attendance = "48,113" |
Write a SQL query that answers the following question: Which Album had a year less than 2005 with a Label by Ministry of Sound? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (album VARCHAR, year VARCHAR, label VARCHAR) | SELECT album FROM table_name_94 WHERE year < 2005 AND label = "ministry of sound" |
Write a SQL query that answers the following question: Which Album had a bigger year than 2005 and whose country was Australia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (album VARCHAR, year VARCHAR, country VARCHAR) | SELECT album FROM table_name_32 WHERE year > 2005 AND country = "australia" |
Write a SQL query that answers the following question: Which song had Central Station as a label and whose album was Various - Wild Nights 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (song VARCHAR, label VARCHAR, album VARCHAR) | SELECT song FROM table_name_33 WHERE label = "central station" AND album = "various - wild nights 4" |
Write a SQL query that answers the following question: Where did Zimbabwe play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (venue VARCHAR, opponent VARCHAR) | SELECT venue FROM table_name_63 WHERE opponent = "zimbabwe" |
Write a SQL query that answers the following question: What is the date when Canada played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_68 WHERE opponent = "canada" |
Write a SQL query that answers the following question: Tell me the lowest silver for rank of 9 and bronze less than 2 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (silver INTEGER, rank VARCHAR, bronze VARCHAR) | SELECT MIN(silver) FROM table_name_26 WHERE rank = 9 AND bronze < 2 |
Write a SQL query that answers the following question: Name the report for raymond sommer | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (report VARCHAR, winning_driver VARCHAR) | SELECT report FROM table_name_66 WHERE winning_driver = "raymond sommer" |
Write a SQL query that answers the following question: Name the winning driver for monaco grand prix | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (winning_driver VARCHAR, name VARCHAR) | SELECT winning_driver FROM table_name_41 WHERE name = "monaco grand prix" |
Write a SQL query that answers the following question: Name the circuit for marcel lehoux | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (circuit VARCHAR, winning_driver VARCHAR) | SELECT circuit FROM table_name_95 WHERE winning_driver = "marcel lehoux" |
Write a SQL query that answers the following question: Name the report for per-viktor widengren and alfa romeo | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (report VARCHAR, winning_driver VARCHAR, winning_constructor VARCHAR) | SELECT report FROM table_name_48 WHERE winning_driver = "per-viktor widengren" AND winning_constructor = "alfa romeo" |
Write a SQL query that answers the following question: Tell me the date for warsaw 1929 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (date VARCHAR, location VARCHAR, year VARCHAR) | SELECT date FROM table_name_50 WHERE location = "warsaw" AND year = 1929 |
Write a SQL query that answers the following question: Tell me the result for warsaw 1929 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (result VARCHAR, location VARCHAR, year VARCHAR) | SELECT result FROM table_name_8 WHERE location = "warsaw" AND year = 1929 |
Write a SQL query that answers the following question: Tell me the result for harrogate | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (result VARCHAR, location VARCHAR) | SELECT result FROM table_name_34 WHERE location = "harrogate" |
Write a SQL query that answers the following question: Tell me the overall rank for roland schoeman | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (overall_rank VARCHAR, swimmer VARCHAR) | SELECT overall_rank FROM table_name_50 WHERE swimmer = "roland schoeman" |
Write a SQL query that answers the following question: How many Silver medals did nation who is ranked greater than 1 and has 4 Gold medals have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (silver INTEGER, rank VARCHAR, gold VARCHAR) | SELECT SUM(silver) FROM table_name_45 WHERE rank > 1 AND gold = 4 |
Write a SQL query that answers the following question: Which nation has more than 6 Silver medals and fewer than 8 Gold medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (total INTEGER, silver VARCHAR, gold VARCHAR) | SELECT AVG(total) FROM table_name_59 WHERE silver > 6 AND gold < 8 |
Write a SQL query that answers the following question: What is the rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (rank INTEGER, total VARCHAR, gold VARCHAR) | SELECT AVG(rank) FROM table_name_51 WHERE total < 24 AND gold > 7 |
Write a SQL query that answers the following question: What is the rank of the nation that has more than 1 Bronze medals and fewer than 4 Gold medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (rank INTEGER, bronze VARCHAR, gold VARCHAR) | SELECT MIN(rank) FROM table_name_75 WHERE bronze > 1 AND gold < 4 |
Write a SQL query that answers the following question: How many silver medals does Belarus (blr) along with 4 gold and 4 bronze? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (silver INTEGER, bronze VARCHAR, gold VARCHAR, nation VARCHAR) | SELECT SUM(silver) FROM table_name_92 WHERE gold = 4 AND nation = "belarus (blr)" AND bronze > 4 |
Write a SQL query that answers the following question: What rank is Belarus (BLR), which earned 15 medals total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (rank INTEGER, nation VARCHAR, total VARCHAR) | SELECT MAX(rank) FROM table_name_44 WHERE nation = "belarus (blr)" AND total < 15 |
Write a SQL query that answers the following question: What was the name of the race on 24 September? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (name VARCHAR, date VARCHAR) | SELECT name FROM table_name_37 WHERE date = "24 september" |
Write a SQL query that answers the following question: What is the name of the race on 9 July? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (name VARCHAR, date VARCHAR) | SELECT name FROM table_name_72 WHERE date = "9 july" |
Write a SQL query that answers the following question: What was the race that was won by a Maserati being driven by Giuseppe Campari? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (circuit VARCHAR, winning_constructor VARCHAR, winning_drivers VARCHAR) | SELECT circuit FROM table_name_67 WHERE winning_constructor = "maserati" AND winning_drivers = "giuseppe campari" |
Write a SQL query that answers the following question: What date was the race won by Louis Chiron? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (date VARCHAR, winning_drivers VARCHAR) | SELECT date FROM table_name_81 WHERE winning_drivers = "louis chiron" |
Write a SQL query that answers the following question: What brand of vehicle won a race driven by Tazio Nuvolari? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (winning_constructor VARCHAR, winning_drivers VARCHAR) | SELECT winning_constructor FROM table_name_81 WHERE winning_drivers = "tazio nuvolari" |
Write a SQL query that answers the following question: What race was won by Tazio Nuvolari? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (name VARCHAR, winning_drivers VARCHAR) | SELECT name FROM table_name_63 WHERE winning_drivers = "tazio nuvolari" |
Write a SQL query that answers the following question: Tell me the result for week less than 4 and september 7, 1986 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (result VARCHAR, week VARCHAR, date VARCHAR) | SELECT result FROM table_name_46 WHERE week < 4 AND date = "september 7, 1986" |
Write a SQL query that answers the following question: Tell me the result for week of 3 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR) | SELECT result FROM table_name_33 WHERE week = 3 |
Write a SQL query that answers the following question: Tell me the lowest week for attedance less thaan 32,738 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (week INTEGER, attendance INTEGER) | SELECT MIN(week) FROM table_name_77 WHERE attendance < 32 OFFSET 738 |
Write a SQL query that answers the following question: Tell me the ship for lieutenant montagu verling | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (ship VARCHAR, captain VARCHAR) | SELECT ship FROM table_name_52 WHERE captain = "lieutenant montagu verling" |
Write a SQL query that answers the following question: Tell me the class for admiral and hms frobisher | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (class VARCHAR, rank VARCHAR, ship VARCHAR) | SELECT class FROM table_name_35 WHERE rank = "admiral" AND ship = "hms frobisher" |
Write a SQL query that answers the following question: Tell me the guns for third-rate ship of the line and rank of vice-admiral with year of 1802 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (guns VARCHAR, year VARCHAR, class VARCHAR, rank VARCHAR) | SELECT guns FROM table_name_63 WHERE class = "third-rate ship of the line" AND rank = "vice-admiral" AND year = "1802" |
Write a SQL query that answers the following question: Tell me the captain for 1774 and guns of 14 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (captain VARCHAR, year VARCHAR, guns VARCHAR) | SELECT captain FROM table_name_23 WHERE year = "1774" AND guns = "14" |
Write a SQL query that answers the following question: Tell me the captain for guns of 28 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (captain VARCHAR, guns VARCHAR) | SELECT captain FROM table_name_15 WHERE guns = "28" |
Write a SQL query that answers the following question: Tell me the status of eliminated of anton dela paz | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (status VARCHAR, eliminated VARCHAR) | SELECT status FROM table_name_15 WHERE eliminated = "anton dela paz" |
Write a SQL query that answers the following question: Tell me the finalists for week # less than 2 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (finalists VARCHAR, week__number INTEGER) | SELECT finalists FROM table_name_40 WHERE week__number < 2 |
Write a SQL query that answers the following question: Tell me the eliminated for week # larger than 4 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (eliminated VARCHAR, week__number INTEGER) | SELECT eliminated FROM table_name_83 WHERE week__number > 4 |
Write a SQL query that answers the following question: At the UFC 78, what is the average round when the time is 5:00? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (round INTEGER, time VARCHAR, event VARCHAR) | SELECT AVG(round) FROM table_name_32 WHERE time = "5:00" AND event = "ufc 78" |
Write a SQL query that answers the following question: When there was a draw, what was the time? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (time VARCHAR, res VARCHAR) | SELECT time FROM table_name_43 WHERE res = "draw" |
Write a SQL query that answers the following question: What is the sum of points in 2010 when the driver had more than 14 races and an F.L. of less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (points INTEGER, fl VARCHAR, year VARCHAR, races VARCHAR) | SELECT SUM(points) FROM table_name_8 WHERE year = 2010 AND races > 14 AND fl < 0 |
Write a SQL query that answers the following question: What was the outcome of the game that had a week number of less than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (result VARCHAR, week INTEGER) | SELECT result FROM table_name_67 WHERE week < 2 |
Write a SQL query that answers the following question: What heat and what lane is thi hue pham in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (heat_ VARCHAR, _lane VARCHAR, name VARCHAR) | SELECT heat_ & _lane FROM table_name_25 WHERE name = "thi hue pham" |
Write a SQL query that answers the following question: What Heat & Lane is the person who has a time of 1:01.12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (heat_ VARCHAR, _lane VARCHAR, time VARCHAR) | SELECT heat_ & _lane FROM table_name_72 WHERE time = "1:01.12" |
Write a SQL query that answers the following question: How many laps did Fernando Alonso do? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (laps VARCHAR, driver VARCHAR) | SELECT laps FROM table_name_3 WHERE driver = "fernando alonso" |
Write a SQL query that answers the following question: What was Jenson Button's constructor? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (constructor VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_13 WHERE driver = "jenson button" |
Write a SQL query that answers the following question: Tell me the package for EEPROM less than 128 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (package VARCHAR, eeprom INTEGER) | SELECT package FROM table_name_17 WHERE eeprom < 128 |
Write a SQL query that answers the following question: Tell me the chip with frequency larger than 10 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (chip VARCHAR, frequency_ VARCHAR, mhz VARCHAR) | SELECT chip FROM table_name_63 WHERE frequency_[mhz] > 10 |
Write a SQL query that answers the following question: I want the highest Grid for Toyota and jarno trulli | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (grid INTEGER, constructor VARCHAR, driver VARCHAR) | SELECT MAX(grid) FROM table_name_95 WHERE constructor = "toyota" AND driver = "jarno trulli" |
Write a SQL query that answers the following question: Tell me the average Laps for grid larger than 22 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (laps INTEGER, grid INTEGER) | SELECT AVG(laps) FROM table_name_39 WHERE grid > 22 |
Write a SQL query that answers the following question: Tell me the constructor for grid of 17 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (constructor VARCHAR, grid VARCHAR) | SELECT constructor FROM table_name_9 WHERE grid = 17 |
Write a SQL query that answers the following question: What years had a manager who lost more than 1 and drawn more than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (ukraine_career VARCHAR, lost VARCHAR, drawn VARCHAR) | SELECT ukraine_career FROM table_name_26 WHERE lost > 1 AND drawn > 11 |
Write a SQL query that answers the following question: what is the total win % of manager viktor prokopenko, when he lost fewer than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (win__percentage VARCHAR, manager VARCHAR, lost VARCHAR) | SELECT COUNT(win__percentage) FROM table_name_43 WHERE manager = "viktor prokopenko" AND lost < 2 |
Write a SQL query that answers the following question: When 4 clubs are involved, what is the average number of fixtures? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (fixtures INTEGER, clubs_involved VARCHAR) | SELECT AVG(fixtures) FROM table_name_3 WHERE clubs_involved = 4 |
Write a SQL query that answers the following question: In the sixth round, what is the sum of fixtures when there were more than 15 clubs involved? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (fixtures INTEGER, round VARCHAR, clubs_involved VARCHAR) | SELECT SUM(fixtures) FROM table_name_67 WHERE round = "sixth round" AND clubs_involved > 15 |
Write a SQL query that answers the following question: Tell me the league for year of 1915/16 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (league VARCHAR, year VARCHAR) | SELECT league FROM table_name_3 WHERE year = "1915/16" |
Write a SQL query that answers the following question: What is the make of the car that drove 54 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (constructor VARCHAR, laps VARCHAR) | SELECT constructor FROM table_name_26 WHERE laps = 54 |
Write a SQL query that answers the following question: Who has a 59 cap? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (name VARCHAR, caps VARCHAR) | SELECT name FROM table_name_9 WHERE caps = 59 |
Write a SQL query that answers the following question: Tell me the sum of frequency for ERP W less than 1 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (frequency_mhz INTEGER, erp_w INTEGER) | SELECT SUM(frequency_mhz) FROM table_name_43 WHERE erp_w < 1 |
Write a SQL query that answers the following question: Tell me the lowest ties played with a debut of 1936 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (ties_played INTEGER, debut VARCHAR) | SELECT MIN(ties_played) FROM table_name_15 WHERE debut = 1936 |
Write a SQL query that answers the following question: Where did the Paris Marathon occur? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (venue VARCHAR, competition VARCHAR) | SELECT venue FROM table_name_47 WHERE competition = "paris marathon" |
Write a SQL query that answers the following question: Tell me the capacity for city park stadium | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (capacity VARCHAR, stadium VARCHAR) | SELECT capacity FROM table_name_15 WHERE stadium = "city park stadium" |
Write a SQL query that answers the following question: Tell me the tournament for opponents of andrei pavel rogier wassen | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (tournament VARCHAR, opponents_in_the_final VARCHAR) | SELECT tournament FROM table_name_53 WHERE opponents_in_the_final = "andrei pavel rogier wassen" |
Write a SQL query that answers the following question: Tell me the tournament for score in the final of 1–6, 3–6 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (tournament VARCHAR, score_in_the_final VARCHAR) | SELECT tournament FROM table_name_20 WHERE score_in_the_final = "1–6, 3–6" |
Write a SQL query that answers the following question: Tell me the opponents for score in the final of 1–6, 2–6 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) | SELECT opponents_in_the_final FROM table_name_68 WHERE score_in_the_final = "1–6, 2–6" |
Write a SQL query that answers the following question: Tell me the surface for 16 april 2007 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_72 WHERE date = "16 april 2007" |
Write a SQL query that answers the following question: I want the average pages for ISBN of 978-0-9766580-5-4 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (pages INTEGER, isbn VARCHAR) | SELECT AVG(pages) FROM table_name_77 WHERE isbn = "978-0-9766580-5-4" |
Write a SQL query that answers the following question: Tell me the sum of year for 244 pages | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (year INTEGER, pages VARCHAR) | SELECT SUM(year) FROM table_name_84 WHERE pages = 244 |
Write a SQL query that answers the following question: Tell me the title for pages of 96 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (title VARCHAR, pages VARCHAR) | SELECT title FROM table_name_99 WHERE pages = 96 |
Write a SQL query that answers the following question: What was the date of birth of a republican member of the United States House of Representatives who held the term of 1863-1865? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (date_of_birth VARCHAR, party VARCHAR, house_term VARCHAR) | SELECT date_of_birth FROM table_name_80 WHERE party = "republican" AND house_term = "1863-1865" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.