instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: When was there a result of w 65-20 after week 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (date VARCHAR, week VARCHAR, result VARCHAR) | SELECT date FROM table_name_43 WHERE week > 6 AND result = "w 65-20" |
Write a SQL query that answers the following question: What is Celta's Agg.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (agg VARCHAR, team_1 VARCHAR) | SELECT agg FROM table_name_81 WHERE team_1 = "celta" |
Write a SQL query that answers the following question: What is the 2nd leg for Barcelona Team 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (team_2 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_49 WHERE team_2 = "barcelona" |
Write a SQL query that answers the following question: What is team 2 if Team 1 is Numancia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (team_2 VARCHAR, team_1 VARCHAR) | SELECT team_2 FROM table_name_61 WHERE team_1 = "numancia" |
Write a SQL query that answers the following question: What is the sum of the Performance/Return on Capital (Score) when the Score (Iran) is less than 3, and the Score (Global) is 266? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (performance_return_on_capital__score_ VARCHAR, score__iran_ VARCHAR, score__global_ VARCHAR) | SELECT COUNT(performance_return_on_capital__score_) FROM table_name_11 WHERE score__iran_ < 3 AND score__global_ = 266 |
Write a SQL query that answers the following question: What Total Assets (% Change) that has Performance/Return on Capital (%) greater than 25.63, and a Performance/Return on Capital (Score) greater than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (total_assets___percentage_change_ VARCHAR, performance_return_on_capital___percentage_ VARCHAR, performance_return_on_capital__score_ VARCHAR) | SELECT total_assets___percentage_change_ FROM table_name_86 WHERE performance_return_on_capital___percentage_ > 25.63 AND performance_return_on_capital__score_ > 7 |
Write a SQL query that answers the following question: What is the NFL club of the cornerback player with a pick greater than 63? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (nfl_club VARCHAR, pick VARCHAR, position VARCHAR) | SELECT nfl_club FROM table_name_34 WHERE pick > 63 AND position = "cornerback" |
Write a SQL query that answers the following question: What is the total round of the tight end position player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (round VARCHAR, position VARCHAR) | SELECT COUNT(round) FROM table_name_66 WHERE position = "tight end" |
Write a SQL query that answers the following question: What is the pick of the NFL club buffalo bills? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (pick VARCHAR, nfl_club VARCHAR) | SELECT pick FROM table_name_95 WHERE nfl_club = "buffalo bills" |
Write a SQL query that answers the following question: On What Date is the Competition Semifinal that has a result of 2-1 aet? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (date VARCHAR, competition VARCHAR, result VARCHAR) | SELECT date FROM table_name_63 WHERE competition = "semifinal" AND result = "2-1 aet" |
Write a SQL query that answers the following question: Which Location has a Competition of Group Stage, a Lineup of Start and a Date of 2000-09-17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (location VARCHAR, date VARCHAR, competition VARCHAR, lineup VARCHAR) | SELECT location FROM table_name_67 WHERE competition = "group stage" AND lineup = "start" AND date = "2000-09-17" |
Write a SQL query that answers the following question: Which Match has a Competition of Group Stage on 2000-09-17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (match VARCHAR, competition VARCHAR, date VARCHAR) | SELECT match FROM table_name_66 WHERE competition = "group stage" AND date = "2000-09-17" |
Write a SQL query that answers the following question: Which Match played in a Location of San Francisco has a Competition of Semifinal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (match VARCHAR, competition VARCHAR, location VARCHAR) | SELECT match FROM table_name_19 WHERE competition = "semifinal" AND location = "san francisco" |
Write a SQL query that answers the following question: What Location has a Date of 1995-06-15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (location VARCHAR, date VARCHAR) | SELECT location FROM table_name_3 WHERE date = "1995-06-15" |
Write a SQL query that answers the following question: What is the most points 1 when the goals against are fewer than 97, lost less than 22, 9 draws and goal difference of +28? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (points_1 INTEGER, goal_difference VARCHAR, drawn VARCHAR, goals_against VARCHAR, lost VARCHAR) | SELECT MAX(points_1) FROM table_name_57 WHERE goals_against < 97 AND lost < 22 AND drawn = 9 AND goal_difference = "+28" |
Write a SQL query that answers the following question: What is the most points 1 when the goal difference is +28 and lost is larger than 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (points_1 INTEGER, goal_difference VARCHAR, lost VARCHAR) | SELECT MAX(points_1) FROM table_name_39 WHERE goal_difference = "+28" AND lost > 12 |
Write a SQL query that answers the following question: What is the maximum lost with points 1 more than 58 and 66 goals against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (lost INTEGER, points_1 VARCHAR, goals_against VARCHAR) | SELECT MAX(lost) FROM table_name_9 WHERE points_1 > 58 AND goals_against = 66 |
Write a SQL query that answers the following question: What is the most goals for when there are fewer than 4 draws? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (goals_for INTEGER, drawn INTEGER) | SELECT MAX(goals_for) FROM table_name_1 WHERE drawn < 4 |
Write a SQL query that answers the following question: What was the result on October 20, 2002? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_87 WHERE date = "october 20, 2002" |
Write a SQL query that answers the following question: What is the nationality of the person with number 27? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (nationality VARCHAR, jersey_number_s_ VARCHAR) | SELECT nationality FROM table_name_96 WHERE jersey_number_s_ = "27" |
Write a SQL query that answers the following question: What is the nationality of the SG position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (nationality VARCHAR, position VARCHAR) | SELECT nationality FROM table_name_48 WHERE position = "sg" |
Write a SQL query that answers the following question: What is the rank of the film directed by danny devito? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (rank VARCHAR, director VARCHAR) | SELECT rank FROM table_name_32 WHERE director = "danny devito" |
Write a SQL query that answers the following question: What is the sum of the ranks for the film, eddie murphy raw? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (rank INTEGER, title VARCHAR) | SELECT SUM(rank) FROM table_name_19 WHERE title = "eddie murphy raw" |
Write a SQL query that answers the following question: Who directed Predator that was filmed with Fox Studio? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (director VARCHAR, studio VARCHAR, title VARCHAR) | SELECT director FROM table_name_29 WHERE studio = "fox" AND title = "predator" |
Write a SQL query that answers the following question: What is the total number of ranks that had vestron as the studio? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (rank VARCHAR, studio VARCHAR) | SELECT COUNT(rank) FROM table_name_48 WHERE studio = "vestron" |
Write a SQL query that answers the following question: Which class had Stanley Dickens as a driver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (class VARCHAR, driver VARCHAR) | SELECT class FROM table_name_11 WHERE driver = "stanley dickens" |
Write a SQL query that answers the following question: What was the highest amount of laps for class c1 and driver Derek Bell? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (laps INTEGER, class VARCHAR, driver VARCHAR) | SELECT MAX(laps) FROM table_name_73 WHERE class = "c1" AND driver = "derek bell" |
Write a SQL query that answers the following question: Where was the player born when the appearances were greater than 40 and made 17 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (nationality VARCHAR, apps VARCHAR, goals VARCHAR) | SELECT nationality FROM table_name_39 WHERE apps > 40 AND goals = 17 |
Write a SQL query that answers the following question: When did the mf from England play for Gillingham that made 0 goals and less than 37 appearances? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (gillingham_career VARCHAR, position VARCHAR, nationality VARCHAR, goals VARCHAR, apps VARCHAR) | SELECT gillingham_career FROM table_name_79 WHERE goals = 0 AND apps < 37 AND nationality = "england" AND position = "mf" |
Write a SQL query that answers the following question: Who is the player with a t8 place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (player VARCHAR, place VARCHAR) | SELECT player FROM table_name_67 WHERE place = "t8" |
Write a SQL query that answers the following question: What is the country of player dale douglass, who has a t8 place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (country VARCHAR, place VARCHAR, player VARCHAR) | SELECT country FROM table_name_75 WHERE place = "t8" AND player = "dale douglass" |
Write a SQL query that answers the following question: What is the average score of player lee trevino, who has a t8 place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (score INTEGER, place VARCHAR, player VARCHAR) | SELECT AVG(score) FROM table_name_39 WHERE place = "t8" AND player = "lee trevino" |
Write a SQL query that answers the following question: What is the to par of player johnny miller, who has a t8 place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (to_par VARCHAR, place VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_18 WHERE place = "t8" AND player = "johnny miller" |
Write a SQL query that answers the following question: What is the country of player chi-chi rodríguez, who has an e to par? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (country VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT country FROM table_name_2 WHERE to_par = "e" AND player = "chi-chi rodríguez" |
Write a SQL query that answers the following question: WHAT IS THE LEAGUE WITH PLAYER JOE COLBORNE? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (college_junior_club_team__league_ VARCHAR, player VARCHAR) | SELECT college_junior_club_team__league_ FROM table_name_78 WHERE player = "joe colborne" |
Write a SQL query that answers the following question: WHAT IS THE ROUND NUMBER OF NICHOLAS TREMBLAY? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (round VARCHAR, player VARCHAR) | SELECT COUNT(round) FROM table_name_59 WHERE player = "nicholas tremblay" |
Write a SQL query that answers the following question: WHAT IS THE POSITION OF FRANCE? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (position VARCHAR, nationality VARCHAR) | SELECT position FROM table_name_73 WHERE nationality = "france" |
Write a SQL query that answers the following question: WHAT IS THE ROUND FOR JAMIE ARNIEL? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (round VARCHAR, player VARCHAR) | SELECT COUNT(round) FROM table_name_23 WHERE player = "jamie arniel" |
Write a SQL query that answers the following question: What was the score on May 12, 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_8 WHERE date = "may 12, 2008" |
Write a SQL query that answers the following question: Who was the opponent on September 26, 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_28 WHERE date = "september 26, 2009" |
Write a SQL query that answers the following question: What was the average lead maragin for the dates administered of october 6, 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (lead_maragin INTEGER, dates_administered VARCHAR) | SELECT AVG(lead_maragin) FROM table_name_16 WHERE dates_administered = "october 6, 2008" |
Write a SQL query that answers the following question: What was the poll source for october 6, 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (poll_source VARCHAR, dates_administered VARCHAR) | SELECT poll_source FROM table_name_91 WHERE dates_administered = "october 6, 2008" |
Write a SQL query that answers the following question: Who has a place of T7 and is from the United States? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (player VARCHAR, place VARCHAR, country VARCHAR) | SELECT player FROM table_name_90 WHERE place = "t7" AND country = "united states" |
Write a SQL query that answers the following question: What is the Rank of the Film with a Worldwide Gross of $914,691,118? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (rank VARCHAR, worldwide_gross VARCHAR) | SELECT rank FROM table_name_42 WHERE worldwide_gross = "$914,691,118" |
Write a SQL query that answers the following question: What is the Director of the Film The Fugitive? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (director VARCHAR, title VARCHAR) | SELECT director FROM table_name_90 WHERE title = "the fugitive" |
Write a SQL query that answers the following question: What was the highest points on October 12, when the attendance where is over 10,701? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (points INTEGER, date VARCHAR, attendance VARCHAR) | SELECT MAX(points) FROM table_name_20 WHERE date = "october 12" AND attendance > 10 OFFSET 701 |
Write a SQL query that answers the following question: When was Montreal a visitor? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (date VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_34 WHERE visitor = "montreal" |
Write a SQL query that answers the following question: What Title's Transliteration is Fal'shivaya Nota? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (title VARCHAR, transliteration VARCHAR) | SELECT title FROM table_name_38 WHERE transliteration = "fal'shivaya nota" |
Write a SQL query that answers the following question: What Title has a Transliteration of u lyudey-to v domu? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (title VARCHAR, transliteration VARCHAR) | SELECT title FROM table_name_40 WHERE transliteration = "u lyudey-to v domu" |
Write a SQL query that answers the following question: What is average frequency MHZ when is in portales, new mexico? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (frequency_mhz INTEGER, city_of_license VARCHAR) | SELECT AVG(frequency_mhz) FROM table_name_13 WHERE city_of_license = "portales, new mexico" |
Write a SQL query that answers the following question: What is FCC info when ERP W is larger than 92 and call sign has k264ba? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (fcc_info VARCHAR, erp_w VARCHAR, call_sign VARCHAR) | SELECT fcc_info FROM table_name_51 WHERE erp_w > 92 AND call_sign = "k264ba" |
Write a SQL query that answers the following question: Which call sign has ERP Wlarger than 250, and Frequency MHZ smaller than 99.3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR) | SELECT call_sign FROM table_name_3 WHERE erp_w > 250 AND frequency_mhz < 99.3 |
Write a SQL query that answers the following question: Where was the game played when the score was 1-4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (venue VARCHAR, score VARCHAR) | SELECT venue FROM table_name_72 WHERE score = "1-4" |
Write a SQL query that answers the following question: Who was the game played against on 2004-02-28 at Skytteholms IP? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (opponents VARCHAR, venue VARCHAR, date VARCHAR) | SELECT opponents FROM table_name_84 WHERE venue = "skytteholms ip" AND date = "2004-02-28" |
Write a SQL query that answers the following question: When the game was played at Domnarvsvallen who were the opponents? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (opponents VARCHAR, venue VARCHAR) | SELECT opponents FROM table_name_12 WHERE venue = "domnarvsvallen" |
Write a SQL query that answers the following question: Who were the opposing team when playing in the Portugal venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (opponents VARCHAR, venue VARCHAR) | SELECT opponents FROM table_name_49 WHERE venue = "portugal" |
Write a SQL query that answers the following question: Where was the game played on 2004-06-23? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_43 WHERE date = "2004-06-23" |
Write a SQL query that answers the following question: What is the to par for Tom Weiskopf? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (to_par INTEGER, player VARCHAR) | SELECT AVG(to_par) FROM table_name_6 WHERE player = "tom weiskopf" |
Write a SQL query that answers the following question: What title did George Fury win when on the Oran Park Raceway? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR) | SELECT race_title FROM table_name_6 WHERE winner = "george fury" AND circuit = "oran park raceway" |
Write a SQL query that answers the following question: Who was the winner on the Amaroo Park circuit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (winner VARCHAR, circuit VARCHAR) | SELECT winner FROM table_name_38 WHERE circuit = "amaroo park" |
Write a SQL query that answers the following question: What are the fewest points for goals fewer than 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (points INTEGER, goals_for INTEGER) | SELECT MIN(points) FROM table_name_74 WHERE goals_for < 13 |
Write a SQL query that answers the following question: How many goals when more than 10 games played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (goals_for INTEGER, played INTEGER) | SELECT AVG(goals_for) FROM table_name_79 WHERE played > 10 |
Write a SQL query that answers the following question: How many losses when goals against are more than 17, goal difference is more than 2 and points are more than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (losses INTEGER, points VARCHAR, goals_against VARCHAR, goal_difference VARCHAR) | SELECT AVG(losses) FROM table_name_21 WHERE goals_against > 17 AND goal_difference < 2 AND points > 5 |
Write a SQL query that answers the following question: How many draws when there are fewer than 6 wins and the goal difference is less than -15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (draws VARCHAR, wins VARCHAR, goal_difference VARCHAR) | SELECT COUNT(draws) FROM table_name_28 WHERE wins < 6 AND goal_difference < -15 |
Write a SQL query that answers the following question: How much Draw has a Rank of 3rd, and a Performer of noelle, and Points larger than 79? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (draw VARCHAR, points VARCHAR, rank VARCHAR, performer VARCHAR) | SELECT COUNT(draw) FROM table_name_92 WHERE rank = "3rd" AND performer = "noelle" AND points > 79 |
Write a SQL query that answers the following question: Which Draw has a Performer of jenny newman, and Points smaller than 77? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (draw INTEGER, performer VARCHAR, points VARCHAR) | SELECT AVG(draw) FROM table_name_67 WHERE performer = "jenny newman" AND points < 77 |
Write a SQL query that answers the following question: Which Points have a Draw of 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (points INTEGER, draw VARCHAR) | SELECT AVG(points) FROM table_name_46 WHERE draw = 2 |
Write a SQL query that answers the following question: Which stage number did son bou arrive at? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (stage VARCHAR, arrival VARCHAR) | SELECT COUNT(stage) FROM table_name_22 WHERE arrival = "son bou" |
Write a SQL query that answers the following question: How long does the one that stars with son bou of middle difficulty, and on a stage number larger than 13 last? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (duration VARCHAR, start VARCHAR, stage VARCHAR, difficulty VARCHAR) | SELECT duration FROM table_name_34 WHERE stage > 13 AND difficulty = "middle" AND start = "son bou" |
Write a SQL query that answers the following question: What is the lowest stage number that starts with els alocs and has a middle difficulty? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (stage INTEGER, difficulty VARCHAR, start VARCHAR) | SELECT MIN(stage) FROM table_name_60 WHERE difficulty = "middle" AND start = "els alocs" |
Write a SQL query that answers the following question: What is the price of the internet provider that has an upstream rate of 256 kbit and a downstream rate of 512 kbit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (price VARCHAR, upstream VARCHAR, downstream VARCHAR) | SELECT price FROM table_name_24 WHERE upstream = "256 kbit" AND downstream = "512 kbit" |
Write a SQL query that answers the following question: For the provider that costs 266 sar, what is the Bandwidth Included? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (bandwidth_included VARCHAR, price VARCHAR) | SELECT bandwidth_included FROM table_name_66 WHERE price = "266 sar" |
Write a SQL query that answers the following question: What is the name of the plan that has a downstream rate of 4,096 kbit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (internet_plan VARCHAR, downstream VARCHAR) | SELECT internet_plan FROM table_name_21 WHERE downstream = "4,096 kbit" |
Write a SQL query that answers the following question: Which record has a score of l 121–127? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (record VARCHAR, score VARCHAR) | SELECT record FROM table_name_93 WHERE score = "l 121–127" |
Write a SQL query that answers the following question: What high points did San Francisco have in a game later than 69? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (high_points VARCHAR, game VARCHAR, team VARCHAR) | SELECT high_points FROM table_name_39 WHERE game > 69 AND team = "san francisco" |
Write a SQL query that answers the following question: What is the record for March 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_17 WHERE date = "march 10" |
Write a SQL query that answers the following question: What high points did a game earlier than 80 have with a score of l 123–142? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (high_points VARCHAR, game VARCHAR, score VARCHAR) | SELECT high_points FROM table_name_47 WHERE game < 80 AND score = "l 123–142" |
Write a SQL query that answers the following question: What is the lowest Year, when Co-Driver is Warren Luff, when Position is 7th, and when Laps is less than 161? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (year INTEGER, laps VARCHAR, co_driver VARCHAR, position VARCHAR) | SELECT MIN(year) FROM table_name_47 WHERE co_driver = "warren luff" AND position = "7th" AND laps < 161 |
Write a SQL query that answers the following question: What is Position, when Laps is 156? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (position VARCHAR, laps VARCHAR) | SELECT position FROM table_name_90 WHERE laps = 156 |
Write a SQL query that answers the following question: What is the highest Year, when Laps is greater than 161? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (year INTEGER, laps INTEGER) | SELECT MAX(year) FROM table_name_82 WHERE laps > 161 |
Write a SQL query that answers the following question: What season had a downhill of 35 and overall greater than 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (season VARCHAR, downhill VARCHAR, overall VARCHAR) | SELECT COUNT(season) FROM table_name_53 WHERE downhill = "35" AND overall > 21 |
Write a SQL query that answers the following question: What's the Super G when the combined was 13 and the overall was more than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (super_g VARCHAR, overall VARCHAR, combined VARCHAR) | SELECT super_g FROM table_name_77 WHERE overall > 7 AND combined = "13" |
Write a SQL query that answers the following question: What is Time, when Laps is 22, and when Grid is 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (time VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT time FROM table_name_42 WHERE laps = 22 AND grid = 15 |
Write a SQL query that answers the following question: What is the average Grid, when Time is +45.855? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (grid INTEGER, time VARCHAR) | SELECT AVG(grid) FROM table_name_87 WHERE time = "+45.855" |
Write a SQL query that answers the following question: What is the total number of Grid, when Time is +43.191, and when Laps is less than 22? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (grid VARCHAR, time VARCHAR, laps VARCHAR) | SELECT COUNT(grid) FROM table_name_51 WHERE time = "+43.191" AND laps < 22 |
Write a SQL query that answers the following question: What is the place of Mark O'Meara? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_28 WHERE player = "mark o'meara" |
Write a SQL query that answers the following question: Which player has a score of 71-72=143? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_43 WHERE score = 71 - 72 = 143 |
Write a SQL query that answers the following question: What is the score for the United States in place T1 for David Duval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) | SELECT score FROM table_name_80 WHERE country = "united states" AND place = "t1" AND player = "david duval" |
Write a SQL query that answers the following question: Who is the player from the United States with a score of 71-72=143? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (player VARCHAR, country VARCHAR, score VARCHAR) | SELECT player FROM table_name_38 WHERE country = "united states" AND score = 71 - 72 = 143 |
Write a SQL query that answers the following question: Which country is Scott McCarron from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_90 WHERE player = "scott mccarron" |
Write a SQL query that answers the following question: Which country is in T1 place with a score of 71-68=139? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (country VARCHAR, place VARCHAR, score VARCHAR) | SELECT country FROM table_name_4 WHERE place = "t1" AND score = 71 - 68 = 139 |
Write a SQL query that answers the following question: what is the venue when the competition is friendly on 26 may 1999? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (venue VARCHAR, competition VARCHAR, date VARCHAR) | SELECT venue FROM table_name_37 WHERE competition = "friendly" AND date = "26 may 1999" |
Write a SQL query that answers the following question: What was Australia's place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (place VARCHAR, country VARCHAR) | SELECT place FROM table_name_99 WHERE country = "australia" |
Write a SQL query that answers the following question: What was the score for United States when the player was Mike Reid and the To par was e? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (score VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR) | SELECT score FROM table_name_30 WHERE country = "united states" AND to_par = "e" AND player = "mike reid" |
Write a SQL query that answers the following question: How many holes did Mike Reid from United States have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (hole VARCHAR, country VARCHAR, player VARCHAR) | SELECT hole FROM table_name_75 WHERE country = "united states" AND player = "mike reid" |
Write a SQL query that answers the following question: Which Name has a Position smaller than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (name VARCHAR, position INTEGER) | SELECT name FROM table_name_72 WHERE position < 2 |
Write a SQL query that answers the following question: Which Lost has a Position larger than 2, a Name of sg münchen (n), and a Drawn larger than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (lost VARCHAR, drawn VARCHAR, position VARCHAR, name VARCHAR) | SELECT COUNT(lost) FROM table_name_48 WHERE position > 2 AND name = "sg münchen (n)" AND drawn > 0 |
Write a SQL query that answers the following question: Which Drawn has a Position of 2, and a Lost larger than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (drawn INTEGER, position VARCHAR, lost VARCHAR) | SELECT MIN(drawn) FROM table_name_24 WHERE position = 2 AND lost > 2 |
Write a SQL query that answers the following question: Which Played has a Position of 3, and a Points smaller than 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (played VARCHAR, position VARCHAR, points VARCHAR) | SELECT COUNT(played) FROM table_name_85 WHERE position = 3 AND points < 15 |
Write a SQL query that answers the following question: Which Played has a Position larger than 5, a Points larger than 0, and a Drawn smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (played INTEGER, drawn VARCHAR, position VARCHAR, points VARCHAR) | SELECT MAX(played) FROM table_name_26 WHERE position > 5 AND points > 0 AND drawn < 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.