instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: who is the away team on 21 september? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (away_team VARCHAR, date VARCHAR) | SELECT away_team FROM table_name_42 WHERE date = "21 september" |
Write a SQL query that answers the following question: When Ernie Els placed t2, what was his To par? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (to_par VARCHAR, place VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_3 WHERE place = "t2" AND player = "ernie els" |
Write a SQL query that answers the following question: Where did Jay Haas place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_62 WHERE player = "jay haas" |
Write a SQL query that answers the following question: Where did Jim Furyk place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_16 WHERE player = "jim furyk" |
Write a SQL query that answers the following question: What was Jim Furyk's score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (score VARCHAR, player VARCHAR) | SELECT score FROM table_name_23 WHERE player = "jim furyk" |
Write a SQL query that answers the following question: What was the score for the To par of +1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (score VARCHAR, to_par VARCHAR) | SELECT score FROM table_name_53 WHERE to_par = "+1" |
Write a SQL query that answers the following question: Who placed in t5 and scored 73-69-68=210? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (player VARCHAR, place VARCHAR, score VARCHAR) | SELECT player FROM table_name_76 WHERE place = "t5" AND score = 73 - 69 - 68 = 210 |
Write a SQL query that answers the following question: Who was the opponent when the record was 11-6-2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_25 WHERE record = "11-6-2" |
Write a SQL query that answers the following question: What is the home team of the match with an attendance greater than 202? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (home_team VARCHAR, attendance INTEGER) | SELECT home_team FROM table_name_22 WHERE attendance > 202 |
Write a SQL query that answers the following question: What is the average attendance of the match with arlesey town as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (attendance INTEGER, home_team VARCHAR) | SELECT AVG(attendance) FROM table_name_68 WHERE home_team = "arlesey town" |
Write a SQL query that answers the following question: What was the score of the game against the phoenix suns? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (score VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_18 WHERE opponent = "phoenix suns" |
Write a SQL query that answers the following question: What was the opponent of the game when the reocrd was 0-12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_94 WHERE record = "0-12" |
Write a SQL query that answers the following question: How many years had a location at Forest Hills and a score of 6–3, 6–3 for John McEnroe? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (year VARCHAR, score VARCHAR, location VARCHAR, runner_up VARCHAR) | SELECT COUNT(year) FROM table_name_42 WHERE location = "forest hills" AND runner_up = "john mcenroe" AND score = "6–3, 6–3" |
Write a SQL query that answers the following question: Who is the champion with a score of 7–6, 6–0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (champion VARCHAR, score VARCHAR) | SELECT champion FROM table_name_47 WHERE score = "7–6, 6–0" |
Write a SQL query that answers the following question: Who is the runner-up in 1990? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (runner_up VARCHAR, year VARCHAR) | SELECT runner_up FROM table_name_59 WHERE year = 1990 |
Write a SQL query that answers the following question: When was the earliest year that Guillermo Vilas was the runner-up? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (year INTEGER, runner_up VARCHAR) | SELECT MIN(year) FROM table_name_9 WHERE runner_up = "guillermo vilas" |
Write a SQL query that answers the following question: What source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of ben adriaenssen / ben van den bogaart, for the date of 1 april? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (source VARCHAR, date VARCHAR, race_winners VARCHAR, gp_winner VARCHAR) | SELECT source FROM table_name_8 WHERE race_winners = "ben adriaenssen / ben van den bogaart" AND gp_winner = "ben adriaenssen / ben van den bogaart" AND date = "1 april" |
Write a SQL query that answers the following question: What is the GP winner for the Race winners valentin giraud / nicolas musset, and a place genk? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (gp_winner VARCHAR, race_winners VARCHAR, place VARCHAR) | SELECT gp_winner FROM table_name_2 WHERE race_winners = "valentin giraud / nicolas musset" AND place = "genk" |
Write a SQL query that answers the following question: What is the date for a source of result and a place of iffendic? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (date VARCHAR, source VARCHAR, place VARCHAR) | SELECT date FROM table_name_60 WHERE source = "result" AND place = "iffendic" |
Write a SQL query that answers the following question: What date has a place of chernivtsi, and a race winners of etienne bax / kaspars stupelis? What | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (date VARCHAR, place VARCHAR, race_winners VARCHAR) | SELECT date FROM table_name_29 WHERE place = "chernivtsi" AND race_winners = "etienne bax / kaspars stupelis" |
Write a SQL query that answers the following question: What is the GP winner with a place of genk, with race winners ben adriaenssen / ben van den bogaart? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (gp_winner VARCHAR, place VARCHAR, race_winners VARCHAR) | SELECT gp_winner FROM table_name_30 WHERE place = "genk" AND race_winners = "ben adriaenssen / ben van den bogaart" |
Write a SQL query that answers the following question: What is the race winners for the date of 23 june? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (race_winners VARCHAR, date VARCHAR) | SELECT race_winners FROM table_name_77 WHERE date = "23 june" |
Write a SQL query that answers the following question: What date was the opponent in the final Barbara Paulus? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (date VARCHAR, opponent_in_the_final VARCHAR) | SELECT date FROM table_name_23 WHERE opponent_in_the_final = "barbara paulus" |
Write a SQL query that answers the following question: What was the surface that Laura Golarsa and her opponent played on in the final? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (surface VARCHAR, opponent_in_the_final VARCHAR) | SELECT surface FROM table_name_67 WHERE opponent_in_the_final = "laura golarsa" |
Write a SQL query that answers the following question: What was the score for the opponent against Katerina Maleeva in the final? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (score VARCHAR, opponent_in_the_final VARCHAR) | SELECT score FROM table_name_83 WHERE opponent_in_the_final = "katerina maleeva" |
Write a SQL query that answers the following question: What's the name that had a moving to Anorthosis Famagusta and a transfer window of winter? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (name VARCHAR, transfer_window VARCHAR, moving_to VARCHAR) | SELECT name FROM table_name_6 WHERE transfer_window = "winter" AND moving_to = "anorthosis famagusta" |
Write a SQL query that answers the following question: What is the Nat with a mutual consent loan return and has a free transfer fee? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (nat VARCHAR, transfer_fee VARCHAR, type VARCHAR) | SELECT nat FROM table_name_12 WHERE transfer_fee = "free" AND type = "mutual consent loan return" |
Write a SQL query that answers the following question: What is the type of POR? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (type VARCHAR, nat VARCHAR) | SELECT type FROM table_name_10 WHERE nat = "por" |
Write a SQL query that answers the following question: What's the name of MKD? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (name VARCHAR, nat VARCHAR) | SELECT name FROM table_name_20 WHERE nat = "mkd" |
Write a SQL query that answers the following question: What is the sum of the attendance on November 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (attendance INTEGER, date VARCHAR) | SELECT SUM(attendance) FROM table_name_58 WHERE date = "november 24" |
Write a SQL query that answers the following question: What team did the Flames play against when 526 people attended the game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (opponent VARCHAR, attendance VARCHAR) | SELECT opponent FROM table_name_11 WHERE attendance = 526 |
Write a SQL query that answers the following question: Rick Plant was the man of the match in what competition? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (competition VARCHAR, man_of_the_match VARCHAR) | SELECT competition FROM table_name_39 WHERE man_of_the_match = "rick plant" |
Write a SQL query that answers the following question: Who did the Flames play against when Stephen Lee was the man of the match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (opponent VARCHAR, man_of_the_match VARCHAR) | SELECT opponent FROM table_name_6 WHERE man_of_the_match = "stephen lee" |
Write a SQL query that answers the following question: How many people attended the game when the game was won 4-2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (attendance VARCHAR, result VARCHAR) | SELECT COUNT(attendance) FROM table_name_44 WHERE result = "won 4-2" |
Write a SQL query that answers the following question: For what competition was the venue away the n/a the man of the match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (competition VARCHAR, venue VARCHAR, man_of_the_match VARCHAR) | SELECT competition FROM table_name_62 WHERE venue = "away" AND man_of_the_match = "n/a" |
Write a SQL query that answers the following question: What is BP's lowest sales? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (sales__billion_ INTEGER, company VARCHAR) | SELECT MIN(sales__billion_) AS $_ FROM table_name_73 WHERE company = "bp" |
Write a SQL query that answers the following question: What was the final game result that was played on December 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_80 WHERE date = "december 2" |
Write a SQL query that answers the following question: What week was the game played at Rich Stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (week VARCHAR, game_site VARCHAR) | SELECT week FROM table_name_94 WHERE game_site = "rich stadium" |
Write a SQL query that answers the following question: What is the sum of FA Cup goals when there are 19 league goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (fa_cup_goals INTEGER, league_goals VARCHAR) | SELECT SUM(fa_cup_goals) FROM table_name_5 WHERE league_goals = "19" |
Write a SQL query that answers the following question: Which club has 16 league goals for a total of 20? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (club VARCHAR, league_goals VARCHAR, total VARCHAR) | SELECT club FROM table_name_2 WHERE league_goals = "16" AND total = 20 |
Write a SQL query that answers the following question: How many League Cup goals correspond to 3 FA Cup Goals and a total over 15 for Chesterfield? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (league_cup_goals VARCHAR, club VARCHAR, total VARCHAR, fa_cup_goals VARCHAR) | SELECT league_cup_goals FROM table_name_29 WHERE total > 15 AND fa_cup_goals = 3 AND club = "chesterfield" |
Write a SQL query that answers the following question: What was the result of the april 6, 2002 game against the greensboro prowlers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (result VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT result FROM table_name_89 WHERE opponent = "greensboro prowlers" AND date = "april 6, 2002" |
Write a SQL query that answers the following question: Which Location has Floors smaller than 27, and a Building of 150 elgin? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (location VARCHAR, floors VARCHAR, building VARCHAR) | SELECT location FROM table_name_71 WHERE floors < 27 AND building = "150 elgin" |
Write a SQL query that answers the following question: Which Status has a Building of the rhombus? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (status VARCHAR, building VARCHAR) | SELECT status FROM table_name_25 WHERE building = "the rhombus" |
Write a SQL query that answers the following question: How many floors are in little Italy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (floors VARCHAR, location VARCHAR) | SELECT COUNT(floors) FROM table_name_42 WHERE location = "little italy" |
Write a SQL query that answers the following question: What is Country, when Class is "15 meters", and when Qualifying Grand Prix is "Soaring Grand Prix Of United Kingdom"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (country VARCHAR, class VARCHAR, qualifying_grand_prix VARCHAR) | SELECT country FROM table_name_43 WHERE class = "15 meters" AND qualifying_grand_prix = "soaring grand prix of united kingdom" |
Write a SQL query that answers the following question: What is Class, when Dates is "22 April - 3 May 2009"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (class VARCHAR, dates VARCHAR) | SELECT class FROM table_name_20 WHERE dates = "22 april - 3 may 2009" |
Write a SQL query that answers the following question: What is Country, when Class is "club"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (country VARCHAR, class VARCHAR) | SELECT country FROM table_name_51 WHERE class = "club" |
Write a SQL query that answers the following question: What is Country, when Place is "Torino"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (country VARCHAR, place VARCHAR) | SELECT country FROM table_name_72 WHERE place = "torino" |
Write a SQL query that answers the following question: WHAT IS THE AVERAGE SQUAD NUMBER WITH MARTIN SMITH, AND LEAGUE GOALS LESS THAN 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (squad_no INTEGER, name VARCHAR, league_goals VARCHAR) | SELECT AVG(squad_no) FROM table_name_8 WHERE name = "martin smith" AND league_goals < 17 |
Write a SQL query that answers the following question: What is No. 5, when No. 9 is Michael, and when Region (Year) is New Hampshire (2010)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (no_5 VARCHAR, no_9 VARCHAR, region__year_ VARCHAR) | SELECT no_5 FROM table_name_16 WHERE no_9 = "michael" AND region__year_ = "new hampshire (2010)" |
Write a SQL query that answers the following question: What is Region (Year), when No. 7 is William, and when No. 2 is Alexander? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (region__year_ VARCHAR, no_7 VARCHAR, no_2 VARCHAR) | SELECT region__year_ FROM table_name_51 WHERE no_7 = "william" AND no_2 = "alexander" |
Write a SQL query that answers the following question: What is No. 10, when No. 1 is Noah, and when No. 9 is Carter? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (no_10 VARCHAR, no_1 VARCHAR, no_9 VARCHAR) | SELECT no_10 FROM table_name_45 WHERE no_1 = "noah" AND no_9 = "carter" |
Write a SQL query that answers the following question: What is No. 7, when Region (Year) is Arizona (2010)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (no_7 VARCHAR, region__year_ VARCHAR) | SELECT no_7 FROM table_name_85 WHERE region__year_ = "arizona (2010)" |
Write a SQL query that answers the following question: What is No. 1, when Region (Year) is Mississippi (2010)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (no_1 VARCHAR, region__year_ VARCHAR) | SELECT no_1 FROM table_name_25 WHERE region__year_ = "mississippi (2010)" |
Write a SQL query that answers the following question: What is No. 8, when No. 10 is Hunter? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (no_8 VARCHAR, no_10 VARCHAR) | SELECT no_8 FROM table_name_76 WHERE no_10 = "hunter" |
Write a SQL query that answers the following question: How much did Larry Nelson win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (money___$__ VARCHAR, player VARCHAR) | SELECT money___$__ FROM table_name_73 WHERE player = "larry nelson" |
Write a SQL query that answers the following question: What is Tournament, when Date is "Sep 12, 1976"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_96 WHERE date = "sep 12, 1976" |
Write a SQL query that answers the following question: What is Tournament, when Date is "Sep 25, 1977"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_61 WHERE date = "sep 25, 1977" |
Write a SQL query that answers the following question: What is Margin of Victory, when Tournament is "Women's Kemper Open"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (margin_of_victory VARCHAR, tournament VARCHAR) | SELECT margin_of_victory FROM table_name_93 WHERE tournament = "women's kemper open" |
Write a SQL query that answers the following question: What is the No. 8 of the person with a No. 4 of Noah? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (no_8 VARCHAR, no_4 VARCHAR) | SELECT no_8 FROM table_name_32 WHERE no_4 = "noah" |
Write a SQL query that answers the following question: What is the No. 8 of the person with a No. 4 of Matthew and a No. 7 of Anthony? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (no_8 VARCHAR, no_4 VARCHAR, no_7 VARCHAR) | SELECT no_8 FROM table_name_29 WHERE no_4 = "matthew" AND no_7 = "anthony" |
Write a SQL query that answers the following question: What is the No. 1 of the person with a No. 2 of John? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (no_1 VARCHAR, no_2 VARCHAR) | SELECT no_1 FROM table_name_26 WHERE no_2 = "john" |
Write a SQL query that answers the following question: What is the No. 6 of the person with a No. 10 of Joshua and a No. 8 of Andrew? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (no_6 VARCHAR, no_10 VARCHAR, no_8 VARCHAR) | SELECT no_6 FROM table_name_56 WHERE no_10 = "joshua" AND no_8 = "andrew" |
Write a SQL query that answers the following question: What is the No. 2 of the person with a No. 5 of Ethan and NO. 7 of Jackson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (no_2 VARCHAR, no_4 VARCHAR, no_7 VARCHAR) | SELECT no_2 FROM table_name_98 WHERE no_4 = "ethan" AND no_7 = "jackson" |
Write a SQL query that answers the following question: What is the No 1 from the Maryland (2008) Region (year)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (no_1 VARCHAR, region__year_ VARCHAR) | SELECT no_1 FROM table_name_27 WHERE region__year_ = "maryland (2008)" |
Write a SQL query that answers the following question: What was the draw of Maggie Toal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (draw INTEGER, artist VARCHAR) | SELECT AVG(draw) FROM table_name_74 WHERE artist = "maggie toal" |
Write a SQL query that answers the following question: What is the highest point total that placed 3rd and has a draw larger than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (points INTEGER, place VARCHAR, draw VARCHAR) | SELECT MAX(points) FROM table_name_84 WHERE place = "3rd" AND draw > 5 |
Write a SQL query that answers the following question: Who won the gold in 1958? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (gold VARCHAR, year VARCHAR) | SELECT gold FROM table_name_18 WHERE year = "1958" |
Write a SQL query that answers the following question: What was the host country when the silver was [[|]] (2) and bronze is czechoslovakia (3)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (host_country___countries VARCHAR, silver VARCHAR, bronze VARCHAR) | SELECT host_country___countries FROM table_name_42 WHERE silver = "[[|]] (2)" AND bronze = "czechoslovakia (3)" |
Write a SQL query that answers the following question: Who was the host country in 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (host_country___countries VARCHAR, year VARCHAR) | SELECT host_country___countries FROM table_name_3 WHERE year = "2007" |
Write a SQL query that answers the following question: Who was the host country when bronze is [[|]] (1) and host city is Krynica? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (host_country___countries VARCHAR, bronze VARCHAR, host_city___cities VARCHAR) | SELECT host_country___countries FROM table_name_45 WHERE bronze = "[[|]] (1)" AND host_city___cities = "krynica" |
Write a SQL query that answers the following question: What is the result for Boston's road team in game 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (result VARCHAR, road_team VARCHAR, game VARCHAR) | SELECT result FROM table_name_73 WHERE road_team = "boston" AND game = "game 4" |
Write a SQL query that answers the following question: Which road team has a result of 117-114? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (road_team VARCHAR, result VARCHAR) | SELECT road_team FROM table_name_61 WHERE result = "117-114" |
Write a SQL query that answers the following question: What is the road team playing against Boston on April 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (road_team VARCHAR, home_team VARCHAR, date VARCHAR) | SELECT road_team FROM table_name_94 WHERE home_team = "boston" AND date = "april 16" |
Write a SQL query that answers the following question: Which home team is on April 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (home_team VARCHAR, date VARCHAR) | SELECT home_team FROM table_name_64 WHERE date = "april 21" |
Write a SQL query that answers the following question: Which game has a result of 113-106? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (game VARCHAR, result VARCHAR) | SELECT game FROM table_name_29 WHERE result = "113-106" |
Write a SQL query that answers the following question: Which home team played against Los Angeles in game 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (home_team VARCHAR, road_team VARCHAR, game VARCHAR) | SELECT home_team FROM table_name_26 WHERE road_team = "los angeles" AND game = "game 1" |
Write a SQL query that answers the following question: What percentage of other candidates did the county which voted 52.1% for Kerry vote for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (others_number INTEGER, kerry_percentage VARCHAR) | SELECT MAX(others_number) FROM table_name_69 WHERE kerry_percentage = "52.1%" |
Write a SQL query that answers the following question: How many votes did Kerry get in the county that gave Bush 189,605 votes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (kerry_number INTEGER, bush_number VARCHAR) | SELECT AVG(kerry_number) FROM table_name_46 WHERE bush_number = 189 OFFSET 605 |
Write a SQL query that answers the following question: How many votes went to other candidates in the county that gave 1.9% votes to them, and 160,390 total votes to Bush? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (others_number INTEGER, others_percentage VARCHAR, bush_number VARCHAR) | SELECT MIN(others_number) FROM table_name_12 WHERE others_percentage = "1.9%" AND bush_number < 160 OFFSET 390 |
Write a SQL query that answers the following question: How many Seats 2005 has a Percentage in/de-crease of 50.0%, and a Governorate of dhi qar governorate, and a In/de-creased by larger than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (seats_2005 INTEGER, in_de_creased_by VARCHAR, percentage_in_de_crease VARCHAR, governorate VARCHAR) | SELECT SUM(seats_2005) FROM table_name_14 WHERE percentage_in_de_crease = "50.0%" AND governorate = "dhi qar governorate" AND in_de_creased_by > 6 |
Write a SQL query that answers the following question: Name the lowest Seats 2010 which has Seats 2005 smaller than 9, and a Governorate of al muthanna governorate, and an In/de-creased by larger than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (seats_2010 INTEGER, in_de_creased_by VARCHAR, seats_2005 VARCHAR, governorate VARCHAR) | SELECT MIN(seats_2010) FROM table_name_46 WHERE seats_2005 < 9 AND governorate = "al muthanna governorate" AND in_de_creased_by > 2 |
Write a SQL query that answers the following question: Name the average In/de-creased by which has a Governorate of al anbar governorate, and Seats 2005 smaller than 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (in_de_creased_by INTEGER, governorate VARCHAR, seats_2005 VARCHAR) | SELECT AVG(in_de_creased_by) FROM table_name_66 WHERE governorate = "al anbar governorate" AND seats_2005 < 9 |
Write a SQL query that answers the following question: Name the highest In/de-creased which has a Percentage in/de-crease of 100%, and Seats 2010 larger than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (in_de_creased_by INTEGER, percentage_in_de_crease VARCHAR, seats_2010 VARCHAR) | SELECT MAX(in_de_creased_by) FROM table_name_34 WHERE percentage_in_de_crease = "100%" AND seats_2010 > 8 |
Write a SQL query that answers the following question: What player has a score larger than 67? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (player VARCHAR, score INTEGER) | SELECT player FROM table_name_94 WHERE score > 67 |
Write a SQL query that answers the following question: What is the celtics record after game 33 when they score of the game was 111-108? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (record VARCHAR, game VARCHAR, score VARCHAR) | SELECT record FROM table_name_21 WHERE game > 33 AND score = "111-108" |
Write a SQL query that answers the following question: Which Rider is grid 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (rider VARCHAR, grid VARCHAR) | SELECT rider FROM table_name_12 WHERE grid = 7 |
Write a SQL query that answers the following question: What is the total number of laps done by Massimo Roccoli when his grid was smaller than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (laps VARCHAR, rider VARCHAR, grid VARCHAR) | SELECT COUNT(laps) FROM table_name_45 WHERE rider = "massimo roccoli" AND grid < 4 |
Write a SQL query that answers the following question: What is the time recorded by David Salom on his Yamaha yzf-r6 when his grid was larger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (time VARCHAR, rider VARCHAR, bike VARCHAR, grid VARCHAR) | SELECT time FROM table_name_81 WHERE bike = "yamaha yzf-r6" AND grid > 1 AND rider = "david salom" |
Write a SQL query that answers the following question: What is Stop No., when Destination is [2778] Claisebrook Station Platforms? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (stop_no VARCHAR, destination VARCHAR) | SELECT stop_no FROM table_name_25 WHERE destination = "[2778] claisebrook station platforms" |
Write a SQL query that answers the following question: What is Stopping Pattern, when Platform is 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (stopping_pattern VARCHAR, platform VARCHAR) | SELECT stopping_pattern FROM table_name_92 WHERE platform = "4" |
Write a SQL query that answers the following question: What is Stop No., when Destination is Perth, and when Line is Midland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (stop_no VARCHAR, destination VARCHAR, line VARCHAR) | SELECT stop_no FROM table_name_23 WHERE destination = "perth" AND line = "midland" |
Write a SQL query that answers the following question: Which coach founded the Western Strikers team after 1963? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (coach VARCHAR, founded VARCHAR, team VARCHAR) | SELECT coach FROM table_name_58 WHERE founded > 1963 AND team = "western strikers" |
Write a SQL query that answers the following question: Who is the coach located in Oakden? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (coach VARCHAR, location VARCHAR) | SELECT coach FROM table_name_69 WHERE location = "oakden" |
Write a SQL query that answers the following question: Which team has coach John Kosmina? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (team VARCHAR, coach VARCHAR) | SELECT team FROM table_name_82 WHERE coach = "john kosmina" |
Write a SQL query that answers the following question: Who is the coach for the Adelaide Galaxy team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (coach VARCHAR, team VARCHAR) | SELECT coach FROM table_name_95 WHERE team = "adelaide galaxy" |
Write a SQL query that answers the following question: Count the average Wins which has a Class of 250cc, and a Year of 1972? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (wins INTEGER, class VARCHAR, year VARCHAR) | SELECT AVG(wins) FROM table_name_1 WHERE class = "250cc" AND year = 1972 |
Write a SQL query that answers the following question: Name the lowest Wins which has Points of 28, and a Year smaller than 1972? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (wins INTEGER, points VARCHAR, year VARCHAR) | SELECT MIN(wins) FROM table_name_94 WHERE points = 28 AND year < 1972 |
Write a SQL query that answers the following question: Name the Team which has Points larger than 9, and a Year larger than 1971, and a Class of 250cc? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (team VARCHAR, class VARCHAR, points VARCHAR, year VARCHAR) | SELECT team FROM table_name_12 WHERE points > 9 AND year > 1971 AND class = "250cc" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.