instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: WHAT IS THE SNATCH WITH TOTAL KG SMALLER THAN 318, AND CLEAN JERK LARGER THAN 175? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (snatch INTEGER, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR) | SELECT MIN(snatch) FROM table_name_45 WHERE total__kg_ < 318 AND clean_ & _jerk > 175 |
Write a SQL query that answers the following question: What date has 2 for killed, and jaffa as the location? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (date VARCHAR, killed VARCHAR, location VARCHAR) | SELECT date FROM table_name_44 WHERE killed = "2" AND location = "jaffa" |
Write a SQL query that answers the following question: What is the injured that has skierlik as the location? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (injured VARCHAR, location VARCHAR) | SELECT injured FROM table_name_9 WHERE location = "skierlik" |
Write a SQL query that answers the following question: What is the 2nd leg that Team 1 is Union Berlin? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (team_1 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_46 WHERE team_1 = "union berlin" |
Write a SQL query that answers the following question: What is the Apps for the player with 150 Goals and a Ratio of 0.52? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (apps VARCHAR, ratio VARCHAR, goals VARCHAR) | SELECT apps FROM table_name_81 WHERE ratio = 0.52 AND goals = 150 |
Write a SQL query that answers the following question: Which team won at the symmons plains raceway? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (team VARCHAR, circuit VARCHAR) | SELECT team FROM table_name_42 WHERE circuit = "symmons plains raceway" |
Write a SQL query that answers the following question: Which team won at winton motor raceway? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (team VARCHAR, circuit VARCHAR) | SELECT team FROM table_name_5 WHERE circuit = "winton motor raceway" |
Write a SQL query that answers the following question: Which circuit was the atcc round 7 at? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (circuit VARCHAR, series VARCHAR) | SELECT circuit FROM table_name_71 WHERE series = "atcc round 7" |
Write a SQL query that answers the following question: Which circuit did winfield team nissan win for the tooheys 1000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (circuit VARCHAR, team VARCHAR, series VARCHAR) | SELECT circuit FROM table_name_68 WHERE team = "winfield team nissan" AND series = "tooheys 1000" |
Write a SQL query that answers the following question: What is the date for the tooheys 1000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (date VARCHAR, series VARCHAR) | SELECT date FROM table_name_44 WHERE series = "tooheys 1000" |
Write a SQL query that answers the following question: what series was in sydney, new south wales? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (series VARCHAR, city___state VARCHAR) | SELECT series FROM table_name_49 WHERE city___state = "sydney, new south wales" |
Write a SQL query that answers the following question: What was the rank for 1.26 Ø-Pts in game 1458? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (rank VARCHAR, ø_pts VARCHAR, games VARCHAR) | SELECT COUNT(rank) FROM table_name_86 WHERE ø_pts > 1.26 AND games = 1458 |
Write a SQL query that answers the following question: What is the Outcome of the match with Partner Marcella Mesker and a Score of 6–4, 4–6, 4–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (outcome VARCHAR, partner VARCHAR, score VARCHAR) | SELECT outcome FROM table_name_61 WHERE partner = "marcella mesker" AND score = "6–4, 4–6, 4–6" |
Write a SQL query that answers the following question: What is the Surface of the match with a Score of 2–6, 6–4, 7–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (surface VARCHAR, score VARCHAR) | SELECT surface FROM table_name_30 WHERE score = "2–6, 6–4, 7–6" |
Write a SQL query that answers the following question: What is the Surface of the match played on October 5, 1987? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_77 WHERE date = "october 5, 1987" |
Write a SQL query that answers the following question: What is the Date of the match with a Score of 0–6, 2–6 with Partner Marcella Mesker? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (date VARCHAR, partner VARCHAR, score VARCHAR) | SELECT date FROM table_name_57 WHERE partner = "marcella mesker" AND score = "0–6, 2–6" |
Write a SQL query that answers the following question: Who is the Opponents on May 3, 1982? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (opponents VARCHAR, date VARCHAR) | SELECT opponents FROM table_name_73 WHERE date = "may 3, 1982" |
Write a SQL query that answers the following question: What is the Score of the match on May 21, 1984 with Outcome of runner-up? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (score VARCHAR, outcome VARCHAR, date VARCHAR) | SELECT score FROM table_name_94 WHERE outcome = "runner-up" AND date = "may 21, 1984" |
Write a SQL query that answers the following question: What is the date of the 200m individual medley? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (date VARCHAR, event VARCHAR) | SELECT date FROM table_name_70 WHERE event = "200m individual medley" |
Write a SQL query that answers the following question: Which team was team 1 in the match where team 2 was olympique lyonnais (d2)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (team_1 VARCHAR, team_2 VARCHAR) | SELECT team_1 FROM table_name_20 WHERE team_2 = "olympique lyonnais (d2)" |
Write a SQL query that answers the following question: What was the score of the match where paris sg (d1) was team 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (score VARCHAR, team_1 VARCHAR) | SELECT score FROM table_name_63 WHERE team_1 = "paris sg (d1)" |
Write a SQL query that answers the following question: Which Week has a Result of w 23–22? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (week VARCHAR, result VARCHAR) | SELECT week FROM table_name_77 WHERE result = "w 23–22" |
Write a SQL query that answers the following question: When was there a bye result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (date VARCHAR, result VARCHAR) | SELECT date FROM table_name_32 WHERE result = "bye" |
Write a SQL query that answers the following question: When was the attendance 65,806? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_40 WHERE attendance = "65,806" |
Write a SQL query that answers the following question: Who was the opponent after week 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (opponent VARCHAR, week INTEGER) | SELECT opponent FROM table_name_43 WHERE week > 16 |
Write a SQL query that answers the following question: What is Commissioned, when Laid Down is "6 September 2003"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (commissioned VARCHAR, laid_down VARCHAR) | SELECT commissioned FROM table_name_78 WHERE laid_down = "6 september 2003" |
Write a SQL query that answers the following question: What is Launched, when Laid Down is "31 October 1981"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (launched VARCHAR, laid_down VARCHAR) | SELECT launched FROM table_name_63 WHERE laid_down = "31 october 1981" |
Write a SQL query that answers the following question: What is Ship, when Commissioned is "13 March 1982"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (ship VARCHAR, commissioned VARCHAR) | SELECT ship FROM table_name_54 WHERE commissioned = "13 march 1982" |
Write a SQL query that answers the following question: What is Launched, when Commissioned is "25 July 1998"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (launched VARCHAR, commissioned VARCHAR) | SELECT launched FROM table_name_50 WHERE commissioned = "25 july 1998" |
Write a SQL query that answers the following question: What is Laid Down, when Hull Number is "CVN-69"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (laid_down VARCHAR, hull_number VARCHAR) | SELECT laid_down FROM table_name_85 WHERE hull_number = "cvn-69" |
Write a SQL query that answers the following question: What is Laid Down, when Commissioned is "11 November 1989"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (laid_down VARCHAR, commissioned VARCHAR) | SELECT laid_down FROM table_name_90 WHERE commissioned = "11 november 1989" |
Write a SQL query that answers the following question: Can you tell me the Position that has the Entrant of j ampt? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (position VARCHAR, entrant VARCHAR) | SELECT position FROM table_name_67 WHERE entrant = "j ampt" |
Write a SQL query that answers the following question: Can you tell me the Entrant that has the Laps of 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (entrant VARCHAR, laps VARCHAR) | SELECT entrant FROM table_name_77 WHERE laps = 17 |
Write a SQL query that answers the following question: Can you tell me the Position that has the Driver of bib stillwell? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (position VARCHAR, driver VARCHAR) | SELECT position FROM table_name_41 WHERE driver = "bib stillwell" |
Write a SQL query that answers the following question: What are the results for a game with an attendance of 41,429? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_70 WHERE attendance = "41,429" |
Write a SQL query that answers the following question: Who were the opponents when there was an attendance of 48,165? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (opponent_number VARCHAR, attendance VARCHAR) | SELECT opponent_number FROM table_name_1 WHERE attendance = "48,165" |
Write a SQL query that answers the following question: What are the results for the game with 82,113 attending? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_41 WHERE attendance = "82,113" |
Write a SQL query that answers the following question: Who was the girl on week 4 after week 3's Mikaela James? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (week_4 VARCHAR, week_3 VARCHAR) | SELECT week_4 FROM table_name_12 WHERE week_3 = "mikaela james" |
Write a SQL query that answers the following question: Who was the girl on week 1 that was previous to week 3's Ava Hart? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (week_1 VARCHAR, week_3 VARCHAR) | SELECT week_1 FROM table_name_23 WHERE week_3 = "ava hart" |
Write a SQL query that answers the following question: Who was the girl on week 2 that was previous to week 4's Chelsie Loraine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (week_2 VARCHAR, week_4 VARCHAR) | SELECT week_2 FROM table_name_73 WHERE week_4 = "chelsie loraine" |
Write a SQL query that answers the following question: Who was the girl on week 5 that came after week 3's Mikaela James? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (week_5 VARCHAR, week_3 VARCHAR) | SELECT week_5 FROM table_name_72 WHERE week_3 = "mikaela james" |
Write a SQL query that answers the following question: Who was the girl on week 1 that preceded week 2's Kamila Sulewska? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (week_1 VARCHAR, week_2 VARCHAR) | SELECT week_1 FROM table_name_12 WHERE week_2 = "kamila sulewska" |
Write a SQL query that answers the following question: Who was the girl on week 5 that came after week 3's Shelly Louise? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (week_5 VARCHAR, week_3 VARCHAR) | SELECT week_5 FROM table_name_21 WHERE week_3 = "shelly louise" |
Write a SQL query that answers the following question: What is 1987-88, when Points is "136"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (points VARCHAR) | SELECT 1987 AS _88 FROM table_name_24 WHERE points = 136 |
Write a SQL query that answers the following question: Name the the highest Draw which has Points of 22 and Goals Conceded smaller than 26? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (draw INTEGER, points VARCHAR, goals_conceded VARCHAR) | SELECT MAX(draw) FROM table_name_13 WHERE points = "22" AND goals_conceded < 26 |
Write a SQL query that answers the following question: Name the highest Played of Goals Scored smaller than 18 and a Lost larger than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (played INTEGER, goals_scored VARCHAR, lost VARCHAR) | SELECT MAX(played) FROM table_name_23 WHERE goals_scored < 18 AND lost > 10 |
Write a SQL query that answers the following question: Name the average Played with a Points of 0*? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (played INTEGER, points VARCHAR) | SELECT AVG(played) FROM table_name_72 WHERE points = "0*" |
Write a SQL query that answers the following question: Count the Draw which has Lost of 0, and a Goals Scored larger than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (draw INTEGER, lost VARCHAR, goals_scored VARCHAR) | SELECT SUM(draw) FROM table_name_59 WHERE lost = 0 AND goals_scored > 0 |
Write a SQL query that answers the following question: Name the Goals Conceded which has a Draw of 0 and a Played larger than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (goals_conceded INTEGER, draw VARCHAR, played VARCHAR) | SELECT AVG(goals_conceded) FROM table_name_48 WHERE draw = 0 AND played > 0 |
Write a SQL query that answers the following question: What is the rank for the Mixed Team nation with a total of less than 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (rank VARCHAR, total VARCHAR, nation VARCHAR) | SELECT rank FROM table_name_74 WHERE total < 13 AND nation = "mixed team" |
Write a SQL query that answers the following question: What is the total number of bronze medals for teams with less than 0 silver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (bronze VARCHAR, silver INTEGER) | SELECT COUNT(bronze) FROM table_name_98 WHERE silver < 0 |
Write a SQL query that answers the following question: What is the average number of bronze medals when the team's silver are more than 1 but the total medals are less than 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (bronze INTEGER, silver VARCHAR, total VARCHAR) | SELECT AVG(bronze) FROM table_name_87 WHERE silver > 1 AND total < 9 |
Write a SQL query that answers the following question: How many military or civilians were wounded in the conflict that had an unknown number of civilian and total deaths? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (military_and_or_civilian_wounded VARCHAR, civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR) | SELECT military_and_or_civilian_wounded FROM table_name_39 WHERE civilian_deaths = "unknown" AND total_deaths__not_including_foreigners_ = "unknown" |
Write a SQL query that answers the following question: How many civilians died in the conflict that left 231 members of the military dead? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (civilian_deaths VARCHAR, military_deaths VARCHAR) | SELECT civilian_deaths FROM table_name_21 WHERE military_deaths = "231" |
Write a SQL query that answers the following question: How many civilians died in the conflict that left 178, excluding foreigners, dead? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR) | SELECT civilian_deaths FROM table_name_19 WHERE total_deaths__not_including_foreigners_ = "178" |
Write a SQL query that answers the following question: How many members of the military died in the conflict that had a total of 531 casualties? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (military_deaths VARCHAR, total_casualties VARCHAR) | SELECT military_deaths FROM table_name_38 WHERE total_casualties = "531" |
Write a SQL query that answers the following question: How many civilians died in the conflict that had a total of 1,130 casualties? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (civilian_deaths VARCHAR, total_casualties VARCHAR) | SELECT civilian_deaths FROM table_name_95 WHERE total_casualties = "1,130" |
Write a SQL query that answers the following question: Which team was the opponent on week 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_7 WHERE week = 15 |
Write a SQL query that answers the following question: What is the average Total, when Finish is "T47"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (total INTEGER, finish VARCHAR) | SELECT AVG(total) FROM table_name_44 WHERE finish = "t47" |
Write a SQL query that answers the following question: What is To par, when Total is less than 297, and when Finish is "1"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (to_par VARCHAR, total VARCHAR, finish VARCHAR) | SELECT to_par FROM table_name_37 WHERE total < 297 AND finish = "1" |
Write a SQL query that answers the following question: What is the Official ITV1 rating for auditions 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (official_itv1_rating VARCHAR, episode VARCHAR) | SELECT official_itv1_rating FROM table_name_96 WHERE episode = "auditions 4" |
Write a SQL query that answers the following question: What is the lowest official ITV1 rating with 45.4% share? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (official_itv1_rating INTEGER, share VARCHAR) | SELECT MIN(official_itv1_rating) FROM table_name_32 WHERE share = "45.4%" |
Write a SQL query that answers the following question: How many Goals against have Wins larger than 12, and a Club of ud las palmas, and a Position larger than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (goals_against VARCHAR, position VARCHAR, wins VARCHAR, club VARCHAR) | SELECT COUNT(goals_against) FROM table_name_48 WHERE wins > 12 AND club = "ud las palmas" AND position > 5 |
Write a SQL query that answers the following question: Which Goals against has Points smaller than 26, and Goals for smaller than 38, and a Position larger than 14, and a Goal Difference smaller than -32? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (goals_against INTEGER, goal_difference VARCHAR, position VARCHAR, points VARCHAR, goals_for VARCHAR) | SELECT MAX(goals_against) FROM table_name_65 WHERE points < 26 AND goals_for < 38 AND position > 14 AND goal_difference < -32 |
Write a SQL query that answers the following question: Which Goals against have a Club of cd castellón, and Points smaller than 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (goals_against INTEGER, club VARCHAR, points VARCHAR) | SELECT AVG(goals_against) FROM table_name_15 WHERE club = "cd castellón" AND points < 24 |
Write a SQL query that answers the following question: How much Played has Goals against smaller than 34, and Wins smaller than 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (played INTEGER, goals_against VARCHAR, wins VARCHAR) | SELECT SUM(played) FROM table_name_51 WHERE goals_against < 34 AND wins < 13 |
Write a SQL query that answers the following question: Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (played INTEGER, goals_against VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR) | SELECT AVG(played) FROM table_name_94 WHERE position < 4 AND wins > 16 AND points = 38 AND goals_against > 35 |
Write a SQL query that answers the following question: What is the To Par score for the player from France? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (to_par VARCHAR, country VARCHAR) | SELECT to_par FROM table_name_99 WHERE country = "france" |
Write a SQL query that answers the following question: What is the name of the player with an overall score of 70-69-69=208? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_41 WHERE score = 70 - 69 - 69 = 208 |
Write a SQL query that answers the following question: What is the To Par score for the player with an overall score of 71-68-69=208? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_38 WHERE score = 71 - 68 - 69 = 208 |
Write a SQL query that answers the following question: What location did Anke Huber win the championship? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (location VARCHAR, champion VARCHAR) | SELECT location FROM table_name_68 WHERE champion = "anke huber" |
Write a SQL query that answers the following question: Who won the runner-up in 1999? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (runner_up VARCHAR, year VARCHAR) | SELECT runner_up FROM table_name_26 WHERE year = 1999 |
Write a SQL query that answers the following question: What was the score when Flavia Pennetta won the championship? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (score VARCHAR, champion VARCHAR) | SELECT score FROM table_name_67 WHERE champion = "flavia pennetta" |
Write a SQL query that answers the following question: How many Matches have an S/Rate smaller than 133.72, and a Team of yorkshire carnegie? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (matches VARCHAR, s_rate VARCHAR, team VARCHAR) | SELECT COUNT(matches) FROM table_name_96 WHERE s_rate < 133.72 AND team = "yorkshire carnegie" |
Write a SQL query that answers the following question: Which Team has Balls smaller than 258, and Inns of 10, and Matches smaller than 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (team VARCHAR, matches VARCHAR, balls VARCHAR, inns VARCHAR) | SELECT team FROM table_name_27 WHERE balls < 258 AND inns = 10 AND matches < 12 |
Write a SQL query that answers the following question: How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (matches INTEGER, s_rate VARCHAR, balls VARCHAR, average VARCHAR) | SELECT SUM(matches) FROM table_name_87 WHERE balls < 224 AND average > 38.25 AND s_rate > 139.09 |
Write a SQL query that answers the following question: What was the fastest lap for Grand Prix dutch tt? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (fastest_lap VARCHAR, grand_prix VARCHAR) | SELECT fastest_lap FROM table_name_56 WHERE grand_prix = "dutch tt" |
Write a SQL query that answers the following question: Who won the race circuit of sachsenring? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (race_winner VARCHAR, circuit VARCHAR) | SELECT race_winner FROM table_name_47 WHERE circuit = "sachsenring" |
Write a SQL query that answers the following question: Who won with the fastest lap of daijiro hiura on March 29? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (race_winner VARCHAR, fastest_lap VARCHAR, date VARCHAR) | SELECT race_winner FROM table_name_97 WHERE fastest_lap = "daijiro hiura" AND date = "march 29" |
Write a SQL query that answers the following question: What year had a total of 2 and LA matches of 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (year VARCHAR, total VARCHAR, la_matches VARCHAR) | SELECT year FROM table_name_35 WHERE total = "2" AND la_matches = "0" |
Write a SQL query that answers the following question: What year was the total 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (year VARCHAR, total VARCHAR) | SELECT year FROM table_name_9 WHERE total = "9" |
Write a SQL query that answers the following question: Who is in week 4 if week 5 is [month ended] and week 2 is April Ireland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (week_4 VARCHAR, week_5 VARCHAR, week_2 VARCHAR) | SELECT week_4 FROM table_name_8 WHERE week_5 = "[month ended]" AND week_2 = "april ireland" |
Write a SQL query that answers the following question: Who is week 3 if week 2 is Nikki Fiction? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (week_3 VARCHAR, week_2 VARCHAR) | SELECT week_3 FROM table_name_64 WHERE week_2 = "nikki fiction" |
Write a SQL query that answers the following question: Who is week 1 if week 3 is Natasha Budhi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (week_1 VARCHAR, week_3 VARCHAR) | SELECT week_1 FROM table_name_3 WHERE week_3 = "natasha budhi" |
Write a SQL query that answers the following question: Who is week 5 if week 2 is Jenna Jordan? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (week_5 VARCHAR, week_2 VARCHAR) | SELECT week_5 FROM table_name_68 WHERE week_2 = "jenna jordan" |
Write a SQL query that answers the following question: Who is week 2 if week 3 is Sara Stokes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (week_2 VARCHAR, week_3 VARCHAR) | SELECT week_2 FROM table_name_65 WHERE week_3 = "sara stokes" |
Write a SQL query that answers the following question: Who is week 3 if week 1 is Amanda Batt? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (week_3 VARCHAR, week_1 VARCHAR) | SELECT week_3 FROM table_name_47 WHERE week_1 = "amanda batt" |
Write a SQL query that answers the following question: What average bronze has a total less than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (bronze INTEGER, total INTEGER) | SELECT AVG(bronze) FROM table_name_29 WHERE total < 1 |
Write a SQL query that answers the following question: What average gold has China (chn) as the nation with a bronze greater than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (gold INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT AVG(gold) FROM table_name_63 WHERE nation = "china (chn)" AND bronze > 1 |
Write a SQL query that answers the following question: Which is the highest gold that has a bronze greater than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (gold INTEGER, bronze INTEGER) | SELECT MAX(gold) FROM table_name_96 WHERE bronze > 4 |
Write a SQL query that answers the following question: What date has fewer than 32 against and the opposing team of Australia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (date VARCHAR, against VARCHAR, opposing_teams VARCHAR) | SELECT date FROM table_name_84 WHERE against < 32 AND opposing_teams = "australia" |
Write a SQL query that answers the following question: What is the average against for a test match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (against INTEGER, status VARCHAR) | SELECT AVG(against) FROM table_name_64 WHERE status = "test match" |
Write a SQL query that answers the following question: Which venue has more than 9 against and a status of second test? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (venue VARCHAR, against VARCHAR, status VARCHAR) | SELECT venue FROM table_name_90 WHERE against > 9 AND status = "second test" |
Write a SQL query that answers the following question: Which status has an against of 35? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (status VARCHAR, against VARCHAR) | SELECT status FROM table_name_52 WHERE against = 35 |
Write a SQL query that answers the following question: What was the music for the modern dance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (music VARCHAR, dance VARCHAR) | SELECT music FROM table_name_64 WHERE dance = "modern" |
Write a SQL query that answers the following question: What was the place for the tango dance when the points was jury of 24 (7,5,6,6)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (place VARCHAR, dance VARCHAR, points_jury VARCHAR) | SELECT place FROM table_name_29 WHERE dance = "tango" AND points_jury = "24 (7,5,6,6)" |
Write a SQL query that answers the following question: What is the Average Qualifying Goals for Jack Froggatt where the Final Goals is greater than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (qualifying_goals INTEGER, player VARCHAR, finals_goals VARCHAR) | SELECT AVG(qualifying_goals) FROM table_name_3 WHERE player = "jack froggatt" AND finals_goals > 0 |
Write a SQL query that answers the following question: Which Player has a Total Goals greater than 1 and Qualifying Goals smaller than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (player VARCHAR, total_goals VARCHAR, qualifying_goals VARCHAR) | SELECT player FROM table_name_90 WHERE total_goals > 1 AND qualifying_goals < 3 |
Write a SQL query that answers the following question: What is the total number of Total Goals scored by Stan Mortensen where the Qualifying Goals is greater than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (total_goals VARCHAR, player VARCHAR, qualifying_goals VARCHAR) | SELECT COUNT(total_goals) FROM table_name_1 WHERE player = "stan mortensen" AND qualifying_goals > 3 |
Write a SQL query that answers the following question: What is the Average Finals Goals if the Total Goals is less than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (finals_goals INTEGER, total_goals INTEGER) | SELECT AVG(finals_goals) FROM table_name_40 WHERE total_goals < 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.