instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What champions have 1 (2009) as the semi-finalists? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (champions VARCHAR, semi_finalists VARCHAR) | SELECT champions FROM table_name_26 WHERE semi_finalists = "1 (2009)" |
Write a SQL query that answers the following question: What fourth-place has 2 (1999, 2005) as the runner(s)-up? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (fourth_place VARCHAR, runners_up VARCHAR) | SELECT fourth_place FROM table_name_26 WHERE runners_up = "2 (1999, 2005)" |
Write a SQL query that answers the following question: What semi-finalists has 2 (1993, 2003) as the fourth-place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (semi_finalists VARCHAR, fourth_place VARCHAR) | SELECT semi_finalists FROM table_name_1 WHERE fourth_place = "2 (1993, 2003)" |
Write a SQL query that answers the following question: What runner(s)-up has 1 (2013) as the champions? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (runners_up VARCHAR, champions VARCHAR) | SELECT runners_up FROM table_name_75 WHERE champions = "1 (2013)" |
Write a SQL query that answers the following question: What was the day of vacancy for vitória de guimarães? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (date_of_vacancy VARCHAR, team VARCHAR) | SELECT date_of_vacancy FROM table_name_78 WHERE team = "vitória de guimarães" |
Write a SQL query that answers the following question: Who was the outgoing manager when the incoming manager was augusto inácio? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (outgoing_manage VARCHAR, incoming_manager VARCHAR) | SELECT outgoing_manage FROM table_name_53 WHERE incoming_manager = "augusto inácio" |
Write a SQL query that answers the following question: How many matches did Atlético Ciudad have with an average higher than 0.61? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (matches VARCHAR, team VARCHAR, average VARCHAR) | SELECT COUNT(matches) FROM table_name_71 WHERE team = "atlético ciudad" AND average > 0.61 |
Write a SQL query that answers the following question: Who is the goalkeeper with fewer than 24 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (goalkeeper VARCHAR, goals INTEGER) | SELECT goalkeeper FROM table_name_15 WHERE goals < 24 |
Write a SQL query that answers the following question: What was the highest amount of losses when there were 45 goals and the play was smaller than 38? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (losses INTEGER, goals_for VARCHAR, played VARCHAR) | SELECT MAX(losses) FROM table_name_52 WHERE goals_for = 45 AND played < 38 |
Write a SQL query that answers the following question: What were the lowest goals when there were mor than 15 wins and the goal difference was larger than 35? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (goals_for INTEGER, wins VARCHAR, goal_difference VARCHAR) | SELECT MIN(goals_for) FROM table_name_25 WHERE wins > 15 AND goal_difference > 35 |
Write a SQL query that answers the following question: What were the highest losses when the goal was smaller than 45 and the points was smaller than 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (losses INTEGER, goals_for VARCHAR, points VARCHAR) | SELECT MAX(losses) FROM table_name_89 WHERE goals_for < 45 AND points < 18 |
Write a SQL query that answers the following question: What were the highest goals against when the position was larger than 19 and the goals smaller than 36? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (goals_against INTEGER, position VARCHAR, goals_for VARCHAR) | SELECT MAX(goals_against) FROM table_name_32 WHERE position > 19 AND goals_for < 36 |
Write a SQL query that answers the following question: What is the to par for the player with fewer than 148 total points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (to_par INTEGER, total INTEGER) | SELECT SUM(to_par) FROM table_name_53 WHERE total < 148 |
Write a SQL query that answers the following question: What school year is vaucluse public school? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (years VARCHAR, school VARCHAR) | SELECT years FROM table_name_10 WHERE school = "vaucluse public school" |
Write a SQL query that answers the following question: What are the websites of schools that were founded in 1872? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (website VARCHAR, founded VARCHAR) | SELECT website FROM table_name_11 WHERE founded = 1872 |
Write a SQL query that answers the following question: On average, when were vineyard schools founded? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (founded INTEGER, suburb_town VARCHAR) | SELECT AVG(founded) FROM table_name_13 WHERE suburb_town = "vineyard" |
Write a SQL query that answers the following question: What was the surface later than 1979, for the Melbourne Indoor, Australia, and the score was 2–6, 6–2, 6–2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (surface VARCHAR, score VARCHAR, date VARCHAR, championship VARCHAR) | SELECT surface FROM table_name_75 WHERE date > 1979 AND championship = "melbourne indoor, australia" AND score = "2–6, 6–2, 6–2" |
Write a SQL query that answers the following question: What is the earliest date when the championship was Monterrey WCT, Mexico? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (date INTEGER, championship VARCHAR) | SELECT MIN(date) FROM table_name_76 WHERE championship = "monterrey wct, mexico" |
Write a SQL query that answers the following question: What is the score when the outcome was runner-up, earlier than 1975? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (score VARCHAR, outcome VARCHAR, date VARCHAR) | SELECT score FROM table_name_25 WHERE outcome = "runner-up" AND date < 1975 |
Write a SQL query that answers the following question: How many Losses have a Geelong FL of newtown & chilwell, and more than 11 wins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (losses VARCHAR, geelong_fl VARCHAR, wins VARCHAR) | SELECT COUNT(losses) FROM table_name_23 WHERE geelong_fl = "newtown & chilwell" AND wins > 11 |
Write a SQL query that answers the following question: When were the shares 39.1%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (date VARCHAR, share VARCHAR) | SELECT date FROM table_name_84 WHERE share = "39.1%" |
Write a SQL query that answers the following question: Which show aired on 19 april? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (show VARCHAR, date VARCHAR) | SELECT show FROM table_name_81 WHERE date = "19 april" |
Write a SQL query that answers the following question: What was the original title for the film used in nomination of street days? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (original_title VARCHAR, film_title_used_in_nomination VARCHAR) | SELECT original_title FROM table_name_91 WHERE film_title_used_in_nomination = "street days" |
Write a SQL query that answers the following question: What was the original title for the film used in nomination of keep smiling? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (original_title VARCHAR, film_title_used_in_nomination VARCHAR) | SELECT original_title FROM table_name_36 WHERE film_title_used_in_nomination = "keep smiling" |
Write a SQL query that answers the following question: How many tickets were sold and how many were available for the shows that grossed $348,674? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (ticket_sold___available VARCHAR, ticket_grossing VARCHAR) | SELECT ticket_sold___available FROM table_name_30 WHERE ticket_grossing = "$348,674" |
Write a SQL query that answers the following question: Which Production in 2009 had a Result of Nominated at the Helpmann awards Award Ceremony? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (production VARCHAR, award_ceremony VARCHAR, result VARCHAR, year VARCHAR) | SELECT production FROM table_name_67 WHERE result = "nominated" AND year = 2009 AND award_ceremony = "helpmann awards" |
Write a SQL query that answers the following question: Which Award Ceremony in 2009 has a Role of Glinda? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (award_ceremony VARCHAR, role VARCHAR, year VARCHAR) | SELECT award_ceremony FROM table_name_2 WHERE role = "glinda" AND year = 2009 |
Write a SQL query that answers the following question: Which Year saw the Production of Wicked at the Helpmann Awards Award ceremony? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (year VARCHAR, production VARCHAR, award_ceremony VARCHAR) | SELECT year FROM table_name_13 WHERE production = "wicked" AND award_ceremony = "helpmann awards" |
Write a SQL query that answers the following question: What was the Result in 2013? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (result VARCHAR, year VARCHAR) | SELECT result FROM table_name_48 WHERE year = 2013 |
Write a SQL query that answers the following question: Who was the rider riding the Kawasaki ZX-6r, that rode less than 22 laps, and the grid was greater than 19, and retirement was the time? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (rider VARCHAR, bike VARCHAR, time VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT rider FROM table_name_64 WHERE laps < 22 AND grid > 19 AND time = "retirement" AND bike = "kawasaki zx-6r" |
Write a SQL query that answers the following question: What is the maximum grid when the laps were greater than 22? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (grid INTEGER, laps INTEGER) | SELECT MAX(grid) FROM table_name_44 WHERE laps > 22 |
Write a SQL query that answers the following question: What is the minimum grid when there was more than 22 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (grid INTEGER, laps INTEGER) | SELECT MIN(grid) FROM table_name_83 WHERE laps > 22 |
Write a SQL query that answers the following question: How many total laps were ridden when the grid was 7 and the rider rode the Honda CBR600RR? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (laps INTEGER, bike VARCHAR, grid VARCHAR) | SELECT SUM(laps) FROM table_name_96 WHERE bike = "honda cbr600rr" AND grid = 7 |
Write a SQL query that answers the following question: Which sign has a fall of Venus? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (sign VARCHAR, fall VARCHAR) | SELECT sign FROM table_name_5 WHERE fall = "venus" |
Write a SQL query that answers the following question: Which exaltation has a fall of moon? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (exaltation VARCHAR, fall VARCHAR) | SELECT exaltation FROM table_name_21 WHERE fall = "moon" |
Write a SQL query that answers the following question: Which exaltation has a domicile of Saturn and a fall of Jupiter? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (exaltation VARCHAR, domicile VARCHAR, fall VARCHAR) | SELECT exaltation FROM table_name_98 WHERE domicile = "saturn" AND fall = "jupiter" |
Write a SQL query that answers the following question: Which exaltation has a domicile of Saturn and Capricorn as a sign? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (exaltation VARCHAR, domicile VARCHAR, sign VARCHAR) | SELECT exaltation FROM table_name_10 WHERE domicile = "saturn" AND sign = "capricorn" |
Write a SQL query that answers the following question: Which detriment has a domicile of mercury and Virgo as a sign? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (detriment VARCHAR, domicile VARCHAR, sign VARCHAR) | SELECT detriment FROM table_name_89 WHERE domicile = "mercury" AND sign = "virgo" |
Write a SQL query that answers the following question: Which exaltation has a detriment of Saturn and Cancer as a sign? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (exaltation VARCHAR, detriment VARCHAR, sign VARCHAR) | SELECT exaltation FROM table_name_75 WHERE detriment = "saturn" AND sign = "cancer" |
Write a SQL query that answers the following question: What was the draw when the points against was 234? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (drawn VARCHAR, points_against VARCHAR) | SELECT drawn FROM table_name_96 WHERE points_against = "234" |
Write a SQL query that answers the following question: What was the try bonus when the points for was 608? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (try_bonus VARCHAR, points_for VARCHAR) | SELECT try_bonus FROM table_name_56 WHERE points_for = "608" |
Write a SQL query that answers the following question: Which Team has a Previous team of san diego rockets, and a Position of f? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (team VARCHAR, previous_team VARCHAR, pos VARCHAR) | SELECT team FROM table_name_71 WHERE previous_team = "san diego rockets" AND pos = "f" |
Write a SQL query that answers the following question: Which Nationality has a Previous team of new york knicks, and more than 3 Years of NBA experience? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (nationality VARCHAR, previous_team VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR) | SELECT nationality FROM table_name_30 WHERE previous_team = "new york knicks" AND years_of_nba_experience_[a_] > 3 |
Write a SQL query that answers the following question: What is team 1 when team 2 is Manchester United? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (team_1 VARCHAR, team_2 VARCHAR) | SELECT team_1 FROM table_name_45 WHERE team_2 = "manchester united" |
Write a SQL query that answers the following question: What is the agg when team 1 is Milan? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (agg VARCHAR, team_1 VARCHAR) | SELECT agg FROM table_name_70 WHERE team_1 = "milan" |
Write a SQL query that answers the following question: Which team is ranked #10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (team VARCHAR, rank VARCHAR) | SELECT team FROM table_name_74 WHERE rank = 10 |
Write a SQL query that answers the following question: Which cyclist has UCI ProTour points of 40? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (cyclist VARCHAR, uci_protour_points VARCHAR) | SELECT cyclist FROM table_name_96 WHERE uci_protour_points = 40 |
Write a SQL query that answers the following question: What is the province with a contestant of tatiana vargas rosales? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (province VARCHAR, _community VARCHAR, contestant VARCHAR) | SELECT province, _community FROM table_name_43 WHERE contestant = "tatiana vargas rosales" |
Write a SQL query that answers the following question: Which province has the contestant elixandra tobias carasco? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (province VARCHAR, _community VARCHAR, contestant VARCHAR) | SELECT province, _community FROM table_name_81 WHERE contestant = "elixandra tobias carasco" |
Write a SQL query that answers the following question: What is 2011, when 2009 is "A"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (Id VARCHAR) | SELECT 2011 FROM table_name_59 WHERE 2009 = "a" |
Write a SQL query that answers the following question: What is 2009, when Tournament is "Year-End Ranking"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (tournament VARCHAR) | SELECT 2009 FROM table_name_77 WHERE tournament = "year-end ranking" |
Write a SQL query that answers the following question: What is 2011, when 2012 is "1R"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (Id VARCHAR) | SELECT 2011 FROM table_name_73 WHERE 2012 = "1r" |
Write a SQL query that answers the following question: What is 2012, when 2009 is "A"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (Id VARCHAR) | SELECT 2012 FROM table_name_44 WHERE 2009 = "a" |
Write a SQL query that answers the following question: What is 2011, when 2012 is "A", and when Tournament is "French Open"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (tournament VARCHAR) | SELECT 2011 FROM table_name_99 WHERE 2012 = "a" AND tournament = "french open" |
Write a SQL query that answers the following question: What is the largest Against with an Opposing Teams of wales? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (against INTEGER, opposing_teams VARCHAR) | SELECT MAX(against) FROM table_name_71 WHERE opposing_teams = "wales" |
Write a SQL query that answers the following question: What Status has a Date of 18/03/1989? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (status VARCHAR, date VARCHAR) | SELECT status FROM table_name_49 WHERE date = "18/03/1989" |
Write a SQL query that answers the following question: What Venue has a Status of five nations, and Against of 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (venue VARCHAR, status VARCHAR, against VARCHAR) | SELECT venue FROM table_name_89 WHERE status = "five nations" AND against = 0 |
Write a SQL query that answers the following question: What is the smallest Against with a Date of 18/02/1989? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (against INTEGER, date VARCHAR) | SELECT MIN(against) FROM table_name_55 WHERE date = "18/02/1989" |
Write a SQL query that answers the following question: What are the additional notes for Cotabato? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (additional_notes VARCHAR, location VARCHAR) | SELECT additional_notes FROM table_name_79 WHERE location = "cotabato" |
Write a SQL query that answers the following question: What country in Kunlong in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (country VARCHAR, location VARCHAR) | SELECT country FROM table_name_46 WHERE location = "kunlong" |
Write a SQL query that answers the following question: Who went on a rampage in Baghdad? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (perpetrator VARCHAR, location VARCHAR) | SELECT perpetrator FROM table_name_85 WHERE location = "baghdad" |
Write a SQL query that answers the following question: What's the rank that has a total of less than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (rank INTEGER, total INTEGER) | SELECT SUM(rank) FROM table_name_19 WHERE total < 1 |
Write a SQL query that answers the following question: What's the bronze medal count when the silver is less than 3 and the gold is 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (bronze INTEGER, gold VARCHAR, silver VARCHAR) | SELECT SUM(bronze) FROM table_name_63 WHERE gold = 1 AND silver < 3 |
Write a SQL query that answers the following question: What's the gold medal count ranked 2 with a total of more than 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (gold VARCHAR, rank VARCHAR, total VARCHAR) | SELECT COUNT(gold) FROM table_name_42 WHERE rank = 2 AND total > 21 |
Write a SQL query that answers the following question: What's the smallest total with a bronze count of 5 and a gold count less than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (total INTEGER, bronze VARCHAR, gold VARCHAR) | SELECT MIN(total) FROM table_name_89 WHERE bronze = 5 AND gold < 8 |
Write a SQL query that answers the following question: What is the party for the representative who was first elected before 2002 and the results were re-elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (party VARCHAR, results VARCHAR, first_elected VARCHAR) | SELECT party FROM table_name_7 WHERE results = "re-elected" AND first_elected < 2002 |
Write a SQL query that answers the following question: Incumbent John Sullivan has what as biggest first elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (first_elected INTEGER, incumbent VARCHAR) | SELECT MAX(first_elected) FROM table_name_71 WHERE incumbent = "john sullivan" |
Write a SQL query that answers the following question: What Location has Years Member of 1963–1968? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (location VARCHAR, years_member VARCHAR) | SELECT location FROM table_name_24 WHERE years_member = "1963–1968" |
Write a SQL query that answers the following question: What School has Colors of navy blue orange? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (school VARCHAR, colors VARCHAR) | SELECT school FROM table_name_17 WHERE colors = "navy blue orange" |
Write a SQL query that answers the following question: What Years Member has a School of cairo high school? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (years_member VARCHAR, school VARCHAR) | SELECT years_member FROM table_name_47 WHERE school = "cairo high school" |
Write a SQL query that answers the following question: What Colors has a School of sesser high school? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (colors VARCHAR, school VARCHAR) | SELECT colors FROM table_name_61 WHERE school = "sesser high school" |
Write a SQL query that answers the following question: What Colors has a School of zeigler high school? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (colors VARCHAR, school VARCHAR) | SELECT colors FROM table_name_17 WHERE school = "zeigler high school" |
Write a SQL query that answers the following question: What Nickname(s) has a Location of elkville, illinois? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (nickname_s_ VARCHAR, location VARCHAR) | SELECT nickname_s_ FROM table_name_65 WHERE location = "elkville, illinois" |
Write a SQL query that answers the following question: Which Season 1 has a Season 7 of david chilton? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (season_1 VARCHAR, season_7 VARCHAR) | SELECT season_1 FROM table_name_5 WHERE season_7 = "david chilton" |
Write a SQL query that answers the following question: Which Seat has a Season 6 of kevin o'leary? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (seat INTEGER, season_6 VARCHAR) | SELECT MAX(seat) FROM table_name_85 WHERE season_6 = "kevin o'leary" |
Write a SQL query that answers the following question: Which Season 7 has a Season 6 of jim treliving? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (season_7 VARCHAR, season_6 VARCHAR) | SELECT season_7 FROM table_name_98 WHERE season_6 = "jim treliving" |
Write a SQL query that answers the following question: Which Season 7 has a Seat larger than 1, and a Season 3 of w. brett wilson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (season_7 VARCHAR, seat VARCHAR, season_3 VARCHAR) | SELECT season_7 FROM table_name_89 WHERE seat > 1 AND season_3 = "w. brett wilson" |
Write a SQL query that answers the following question: Which Season 3 has a Season 7 of jim treliving? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (season_3 VARCHAR, season_7 VARCHAR) | SELECT season_3 FROM table_name_93 WHERE season_7 = "jim treliving" |
Write a SQL query that answers the following question: What is Weekly Winner, when Air Date is "July 4, 2008"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (weekly_winner VARCHAR, air_date VARCHAR) | SELECT weekly_winner FROM table_name_85 WHERE air_date = "july 4, 2008" |
Write a SQL query that answers the following question: What is Rating, when Air Date is "July 24, 2008*", and when Weekly Winner is "Sales Rep. Oscar Ledezma"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (rating VARCHAR, air_date VARCHAR, weekly_winner VARCHAR) | SELECT rating FROM table_name_7 WHERE air_date = "july 24, 2008*" AND weekly_winner = "sales rep. oscar ledezma" |
Write a SQL query that answers the following question: What is 18-49, when Weekly Winner is "Youth Counselor Justin Meece"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (weekly_winner VARCHAR) | SELECT 18 AS _49 FROM table_name_45 WHERE weekly_winner = "youth counselor justin meece" |
Write a SQL query that answers the following question: What is Viewers, when Air Date is "July 4, 2008"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (viewers VARCHAR, air_date VARCHAR) | SELECT viewers FROM table_name_64 WHERE air_date = "july 4, 2008" |
Write a SQL query that answers the following question: What is Air Date, when Rating is "N/A", and when Weekly Winner is "Wedding DJ Chris Dixon"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (air_date VARCHAR, rating VARCHAR, weekly_winner VARCHAR) | SELECT air_date FROM table_name_19 WHERE rating = "n/a" AND weekly_winner = "wedding dj chris dixon" |
Write a SQL query that answers the following question: What was the record for Dec 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_36 WHERE date = "dec 16" |
Write a SQL query that answers the following question: What is the 2010 with a qf in 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (Id VARCHAR) | SELECT 2010 FROM table_name_9 WHERE 2011 = "qf" |
Write a SQL query that answers the following question: What is the 2013 of the grand slam tournaments? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (tournament VARCHAR) | SELECT 2013 FROM table_name_71 WHERE tournament = "grand slam tournaments" |
Write a SQL query that answers the following question: What is the 2013 with a 2r in 2010 and a qf in 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (Id VARCHAR) | SELECT 2013 FROM table_name_49 WHERE 2010 = "2r" AND 2011 = "qf" |
Write a SQL query that answers the following question: What is the 2011 with 1r in 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (Id VARCHAR) | SELECT 2011 FROM table_name_32 WHERE 2010 = "1r" |
Write a SQL query that answers the following question: What is the 2012 with A in 2009 and 2r in 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (Id VARCHAR) | SELECT 2012 FROM table_name_96 WHERE 2009 = "a" AND 2010 = "2r" |
Write a SQL query that answers the following question: What is the poison/klesha word for moha avijja in pali? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (poison_klesha VARCHAR, pali VARCHAR) | SELECT poison_klesha FROM table_name_29 WHERE pali = "moha avijja" |
Write a SQL query that answers the following question: What is the poision/klesha word for the tibetan word gti mug ma rig pa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (poison_klesha VARCHAR, tibetan VARCHAR) | SELECT poison_klesha FROM table_name_14 WHERE tibetan = "gti mug ma rig pa" |
Write a SQL query that answers the following question: What is the pali word for pride in poison/klesha? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (pali VARCHAR, poison_klesha VARCHAR) | SELECT pali FROM table_name_87 WHERE poison_klesha = "pride" |
Write a SQL query that answers the following question: What is the pali word for phrag dog in tibetan? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (pali VARCHAR, tibetan VARCHAR) | SELECT pali FROM table_name_64 WHERE tibetan = "phrag dog" |
Write a SQL query that answers the following question: What is the pali word for rāga in sanskrit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (pali VARCHAR, sanskrit VARCHAR) | SELECT pali FROM table_name_77 WHERE sanskrit = "rāga" |
Write a SQL query that answers the following question: What is the attendance total when Southend Manor is the away team and there are less than 93 ties? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (attendance VARCHAR, away_team VARCHAR, tie_no VARCHAR) | SELECT COUNT(attendance) FROM table_name_12 WHERE away_team = "southend manor" AND tie_no < 93 |
Write a SQL query that answers the following question: What is the score when the attendance is less than 83 and Raunds Town is the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (score VARCHAR, attendance VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_91 WHERE attendance < 83 AND away_team = "raunds town" |
Write a SQL query that answers the following question: Who was the player that was picked at a number less than 205 from the Michigan State Spartans? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (player VARCHAR, pick__number VARCHAR, team_from VARCHAR) | SELECT player FROM table_name_46 WHERE pick__number < 205 AND team_from = "michigan state spartans" |
Write a SQL query that answers the following question: What is the average Density of 53 No. munic.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (density__per_km²_ INTEGER, no_munic VARCHAR) | SELECT AVG(density__per_km²_) FROM table_name_40 WHERE no_munic = 53 |
Write a SQL query that answers the following question: Name the Status of Venue of sydney sports ground , sydney? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (status VARCHAR, venue VARCHAR) | SELECT status FROM table_name_46 WHERE venue = "sydney sports ground , sydney" |
Write a SQL query that answers the following question: Which Status has a Opposing Teams of wales? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (status VARCHAR, opposing_teams VARCHAR) | SELECT status FROM table_name_16 WHERE opposing_teams = "wales" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.