instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is Player, when Country is "United States", and when Place is "6"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (player VARCHAR, country VARCHAR, place VARCHAR)
SELECT player FROM table_name_41 WHERE country = "united states" AND place = "6"
Write a SQL query that answers the following question: What is the average Money ( $ ), when Score is "69-69-76-69=283"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (money___ INTEGER, score VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_74 WHERE score = 69 - 69 - 76 - 69 = 283
Write a SQL query that answers the following question: What is Country, when To par is "+1", and when Score is "72-71-70-72=285"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT country FROM table_name_98 WHERE to_par = "+1" AND score = 72 - 71 - 70 - 72 = 285
Write a SQL query that answers the following question: What is Place, when Score is "70-70-68-70=278"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_41 WHERE score = 70 - 70 - 68 - 70 = 278
Write a SQL query that answers the following question: For which network was Chris Walby the color commentator after 1990?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (network VARCHAR, year VARCHAR, colour_commentator_s_ VARCHAR)
SELECT network FROM table_name_83 WHERE year > 1990 AND colour_commentator_s_ = "chris walby"
Write a SQL query that answers the following question: Who was the pregame host before 1992 when there was a play by play of Bob Irving?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (pregame_host VARCHAR, year VARCHAR, play_by_play VARCHAR)
SELECT pregame_host FROM table_name_51 WHERE year < 1992 AND play_by_play = "bob irving"
Write a SQL query that answers the following question: What is the total of the player who won before 1991 and has a to par less than 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (total VARCHAR, year_won VARCHAR, to_par VARCHAR)
SELECT COUNT(total) FROM table_name_74 WHERE year_won < 1991 AND to_par < 14
Write a SQL query that answers the following question: What is the total to par of player jeff sluman, who won before 1993 and has a total greater than 154?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (to_par VARCHAR, total VARCHAR, year_won VARCHAR, player VARCHAR)
SELECT COUNT(to_par) FROM table_name_48 WHERE year_won < 1993 AND player = "jeff sluman" AND total > 154
Write a SQL query that answers the following question: What is the sum of the total of player rich beem, who has a to par greater than 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (total INTEGER, player VARCHAR, to_par VARCHAR)
SELECT SUM(total) FROM table_name_20 WHERE player = "rich beem" AND to_par > 17
Write a SQL query that answers the following question: Who was the away team in the semifinals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (away VARCHAR, round VARCHAR)
SELECT away FROM table_name_34 WHERE round = "semifinals"
Write a SQL query that answers the following question: What is the home record for the Auxerre club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (home VARCHAR, club VARCHAR)
SELECT home FROM table_name_34 WHERE club = "auxerre"
Write a SQL query that answers the following question: What is the home record for the Maccabi Tel-Aviv club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (home VARCHAR, club VARCHAR)
SELECT home FROM table_name_85 WHERE club = "maccabi tel-aviv"
Write a SQL query that answers the following question: What is the total number of Against, when Date is "16/03/1996"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (against VARCHAR, date VARCHAR)
SELECT COUNT(against) FROM table_name_88 WHERE date = "16/03/1996"
Write a SQL query that answers the following question: What is Venue, when Against is greater than 9, and when Date is "03/02/1996"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (venue VARCHAR, against VARCHAR, date VARCHAR)
SELECT venue FROM table_name_58 WHERE against > 9 AND date = "03/02/1996"
Write a SQL query that answers the following question: What is Status, when Opposing Teams is "Scotland"?
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 = "scotland"
Write a SQL query that answers the following question: What is Venue, when Date is "14/12/1996"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_44 WHERE date = "14/12/1996"
Write a SQL query that answers the following question: What is the average Against, when Status is "Five Nations", and when Date is "16/03/1996"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (against INTEGER, status VARCHAR, date VARCHAR)
SELECT AVG(against) FROM table_name_28 WHERE status = "five nations" AND date = "16/03/1996"
Write a SQL query that answers the following question: In what year did the team of aston martin racing have a position of 6th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (year VARCHAR, team VARCHAR, pos VARCHAR)
SELECT COUNT(year) FROM table_name_35 WHERE team = "aston martin racing" AND pos = "6th"
Write a SQL query that answers the following question: Which Rank is Highest for Yoshiazuma?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (highest_rank VARCHAR, name VARCHAR)
SELECT highest_rank FROM table_name_44 WHERE name = "yoshiazuma"
Write a SQL query that answers the following question: Which Top Division debut for Kitazakura has Tournaments less than 88?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (top_division_debut VARCHAR, tournaments VARCHAR, name VARCHAR)
SELECT top_division_debut FROM table_name_12 WHERE tournaments < 88 AND name = "kitazakura"
Write a SQL query that answers the following question: What is the lowest Tournaments with Highest Rank of Maegashira 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (tournaments INTEGER, highest_rank VARCHAR)
SELECT MIN(tournaments) FROM table_name_46 WHERE highest_rank = "maegashira 13"
Write a SQL query that answers the following question: What was the city where Hallescher FC won in 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (city VARCHAR, winner VARCHAR, year VARCHAR)
SELECT city FROM table_name_74 WHERE winner = "hallescher fc" AND year = 2008
Write a SQL query that answers the following question: Who was the winner of fc grün-weiß wolfen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (winner VARCHAR, finalist VARCHAR)
SELECT winner FROM table_name_58 WHERE finalist = "fc grün-weiß wolfen"
Write a SQL query that answers the following question: What was the stadium past 2012?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (stadium VARCHAR, year INTEGER)
SELECT stadium FROM table_name_31 WHERE year > 2012
Write a SQL query that answers the following question: What is the average Year, when Country is "U.S.", and when Location is "Edmond , OK"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (year INTEGER, country VARCHAR, location VARCHAR)
SELECT AVG(year) FROM table_name_28 WHERE country = "u.s." AND location = "edmond , ok"
Write a SQL query that answers the following question: What is the lowest Killed, when Perpetrator is "Sherrill, Patrick Henry , 44"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (killed INTEGER, perpetrator VARCHAR)
SELECT MIN(killed) FROM table_name_93 WHERE perpetrator = "sherrill, patrick henry , 44"
Write a SQL query that answers the following question: What was the highest goals with fewer than 16 losses, fewer than 11 wins, and a goal difference greater than -9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (goals_for INTEGER, goal_difference VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT MAX(goals_for) FROM table_name_8 WHERE losses < 16 AND wins < 11 AND goal_difference > -9
Write a SQL query that answers the following question: What is the highest wins entry with fewer than 51 goals, more than 39 points, and a goal difference smaller than 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (wins INTEGER, goal_difference VARCHAR, goals_against VARCHAR, points VARCHAR)
SELECT MAX(wins) FROM table_name_74 WHERE goals_against < 51 AND points > 39 AND goal_difference < 13
Write a SQL query that answers the following question: What is the lowest wins entry that has a goal difference less than 33, position higher than 13, and 42 goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (wins INTEGER, goals_for VARCHAR, goal_difference VARCHAR, position VARCHAR)
SELECT MIN(wins) FROM table_name_46 WHERE goal_difference < 33 AND position < 13 AND goals_for = 42
Write a SQL query that answers the following question: What is the total number of goals for entries that have more than 7 draws, 8 wins, and more than 5 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (goals_for VARCHAR, losses VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT COUNT(goals_for) FROM table_name_62 WHERE draws > 7 AND wins > 8 AND losses > 5
Write a SQL query that answers the following question: What city is the Stadium estádio dr. magalhães pessoa in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (city VARCHAR, stadium VARCHAR)
SELECT city FROM table_name_86 WHERE stadium = "estádio dr. magalhães pessoa"
Write a SQL query that answers the following question: What city is the Stadium estádio cidade de barcelos in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (city VARCHAR, stadium VARCHAR)
SELECT city FROM table_name_93 WHERE stadium = "estádio cidade de barcelos"
Write a SQL query that answers the following question: Head Coach casemiro mior is at which Club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (club VARCHAR, head_coach VARCHAR)
SELECT club FROM table_name_36 WHERE head_coach = "casemiro mior"
Write a SQL query that answers the following question: What City is the Club braga in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (city VARCHAR, club VARCHAR)
SELECT city FROM table_name_79 WHERE club = "braga"
Write a SQL query that answers the following question: What place is listed in the 2002-2003 season for the City of Aveiro?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (city VARCHAR)
SELECT 2002 AS _2003_season FROM table_name_20 WHERE city = "aveiro"
Write a SQL query that answers the following question: What is the 1st round with fc nantes (d1) as team 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (team_1 VARCHAR)
SELECT 1 AS st_round FROM table_name_25 WHERE team_1 = "fc nantes (d1)"
Write a SQL query that answers the following question: What is the team 1 with nîmes olympique (d2) as team 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_66 WHERE team_2 = "nîmes olympique (d2)"
Write a SQL query that answers the following question: In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (lyrics VARCHAR, date VARCHAR, catalog_number VARCHAR)
SELECT lyrics FROM table_name_48 WHERE date = "august 10, 2005" AND catalog_number = "tocp-66427"
Write a SQL query that answers the following question: What is the Label of the CD released in Germany on June 6, 2005?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (label VARCHAR, format VARCHAR, date VARCHAR, region VARCHAR)
SELECT label FROM table_name_8 WHERE date = "june 6, 2005" AND region = "germany" AND format = "cd"
Write a SQL query that answers the following question: What is the Region of the EMI 4 x vinyl release bearing Catalog number 560 6111?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (region VARCHAR, catalog_number VARCHAR, label VARCHAR, format VARCHAR)
SELECT region FROM table_name_46 WHERE label = "emi" AND format = "4 x vinyl" AND catalog_number = "560 6111"
Write a SQL query that answers the following question: What language is the Lyrics of the release with Catalog number 560 6111?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (lyrics VARCHAR, catalog_number VARCHAR)
SELECT lyrics FROM table_name_59 WHERE catalog_number = "560 6111"
Write a SQL query that answers the following question: What is the Region of the release with Catalog number 3 12046 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (region VARCHAR, catalog_number VARCHAR)
SELECT region FROM table_name_77 WHERE catalog_number = "3 12046 2"
Write a SQL query that answers the following question: What is the Label of the September 19, 2008 release in Germany?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (label VARCHAR, date VARCHAR, region VARCHAR)
SELECT label FROM table_name_25 WHERE date = "september 19, 2008" AND region = "germany"
Write a SQL query that answers the following question: What is the Edition of the release in Germany?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (edition_s_ VARCHAR, region VARCHAR)
SELECT edition_s_ FROM table_name_82 WHERE region = "germany"
Write a SQL query that answers the following question: What is the Format(s) of the release on September 23, 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (format_s_ VARCHAR, date VARCHAR)
SELECT format_s_ FROM table_name_40 WHERE date = "september 23, 2008"
Write a SQL query that answers the following question: What is the Label of the release on April 24, 2009 in Germany?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (label VARCHAR, region VARCHAR, date VARCHAR)
SELECT label FROM table_name_2 WHERE region = "germany" AND date = "april 24, 2009"
Write a SQL query that answers the following question: What is the L2 Cache for Model Number nano u3400 with an Idle Power of 100mw?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (l2_cache VARCHAR, idle_power VARCHAR, model_number VARCHAR)
SELECT l2_cache FROM table_name_10 WHERE idle_power = "100mw" AND model_number = "nano u3400"
Write a SQL query that answers the following question: What is the total Cores with a Clock Speed of 1.3ghz?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (cores VARCHAR, clock_speed VARCHAR)
SELECT COUNT(cores) FROM table_name_33 WHERE clock_speed = "1.3ghz"
Write a SQL query that answers the following question: What's the to par for the score of 68-74-71-77=290?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_5 WHERE score = 68 - 74 - 71 - 77 = 290
Write a SQL query that answers the following question: What's the money ($) for the t3 place and the score of 74-74-71-69=288?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (money___$__ VARCHAR, place VARCHAR, score VARCHAR)
SELECT money___$__ FROM table_name_87 WHERE place = "t3" AND score = 74 - 74 - 71 - 69 = 288
Write a SQL query that answers the following question: What's the score for $22,500?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (score VARCHAR, money___$__ VARCHAR)
SELECT score FROM table_name_62 WHERE money___$__ = "22,500"
Write a SQL query that answers the following question: What's the to par for the t1 place with a score of 70-72-73-72=287?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_58 WHERE place = "t1" AND score = 70 - 72 - 73 - 72 = 287
Write a SQL query that answers the following question: What's the average annual interchange for a rank over 26 in liverpool with an annual entry/exit less than 14.209 and more than 10 platforms?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (annual_interchanges__millions__2011_12 INTEGER, number_of_platforms VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR, rank VARCHAR, location VARCHAR)
SELECT AVG(annual_interchanges__millions__2011_12) FROM table_name_28 WHERE rank > 26 AND location = "liverpool" AND annual_entry_exit__millions__2011_12 < 14.209 AND number_of_platforms > 10
Write a SQL query that answers the following question: What's the highest annual interchange for wimbledon railway station?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (annual_interchanges__millions__2011_12 INTEGER, railway_station VARCHAR)
SELECT MAX(annual_interchanges__millions__2011_12) FROM table_name_82 WHERE railway_station = "wimbledon"
Write a SQL query that answers the following question: What's the lowest number of total passengers (millions) for an annual entry/exit of 36.609?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (total_passengers__millions__2011_12 INTEGER, annual_entry_exit__millions__2011_12 VARCHAR)
SELECT MIN(total_passengers__millions__2011_12) FROM table_name_32 WHERE annual_entry_exit__millions__2011_12 = 36.609
Write a SQL query that answers the following question: What rank has an annual interchange less than 1.99 million, an annual entry/exit less than 13.835 million, and more than 13.772 million total passengers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (rank VARCHAR, total_passengers__millions__2011_12 VARCHAR, annual_interchanges__millions__2011_12 VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR)
SELECT rank FROM table_name_83 WHERE annual_interchanges__millions__2011_12 < 1.99 AND annual_entry_exit__millions__2011_12 < 13.835 AND total_passengers__millions__2011_12 > 13.772
Write a SQL query that answers the following question: How many ranks are in liverpool with more than 3 platforms and an annual interchange less than 0.778 million?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (rank VARCHAR, annual_interchanges__millions__2011_12 VARCHAR, location VARCHAR, number_of_platforms VARCHAR)
SELECT COUNT(rank) FROM table_name_91 WHERE location = "liverpool" AND number_of_platforms > 3 AND annual_interchanges__millions__2011_12 < 0.778
Write a SQL query that answers the following question: Which Number of households has Per capita income of $21,571, and a Population smaller than 9,783?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (number_of_households INTEGER, per_capita_income VARCHAR, population VARCHAR)
SELECT AVG(number_of_households) FROM table_name_61 WHERE per_capita_income = "$21,571" AND population < 9 OFFSET 783
Write a SQL query that answers the following question: Which Number of households has a County of cook, and Population smaller than 5,176?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (number_of_households INTEGER, county VARCHAR, population VARCHAR)
SELECT AVG(number_of_households) FROM table_name_98 WHERE county = "cook" AND population < 5 OFFSET 176
Write a SQL query that answers the following question: What Per capita income has a Median family income of $50,755?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (per_capita_income VARCHAR, median_family_income VARCHAR)
SELECT per_capita_income FROM table_name_38 WHERE median_family_income = "$50,755"
Write a SQL query that answers the following question: What Number of households have a Median family income of $58,491?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (number_of_households VARCHAR, median_family_income VARCHAR)
SELECT number_of_households FROM table_name_73 WHERE median_family_income = "$58,491"
Write a SQL query that answers the following question: What was the to par score of the golfer that had a score of 68-70=138?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_91 WHERE score = 68 - 70 = 138
Write a SQL query that answers the following question: Which golfer had a score of 69-71=140?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_63 WHERE score = 69 - 71 = 140
Write a SQL query that answers the following question: Which country is t3 finisher billy mayfair from?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT country FROM table_name_37 WHERE place = "t3" AND player = "billy mayfair"
Write a SQL query that answers the following question: Which Country has a Player of jodie mudd?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_62 WHERE player = "jodie mudd"
Write a SQL query that answers the following question: Which Money (£) has a Player of jodie mudd?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (money___ VARCHAR, player VARCHAR)
SELECT COUNT(money___) AS £__ FROM table_name_72 WHERE player = "jodie mudd"
Write a SQL query that answers the following question: What is the total Money (£) of Player of nick faldo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (money___ INTEGER, player VARCHAR)
SELECT SUM(money___) AS £__ FROM table_name_56 WHERE player = "nick faldo"
Write a SQL query that answers the following question: What is the total Money (£) with a Place of t6, and a Player of ian baker-finch?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (money___ VARCHAR, place VARCHAR, player VARCHAR)
SELECT COUNT(money___) AS £__ FROM table_name_61 WHERE place = "t6" AND player = "ian baker-finch"
Write a SQL query that answers the following question: What position was the team who had less then 63 goals against and less than 6 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (position INTEGER, goals_against VARCHAR, lost VARCHAR)
SELECT AVG(position) FROM table_name_20 WHERE goals_against < 63 AND lost < 6
Write a SQL query that answers the following question: How many times did the team lose who had 1 of 37 points and less than 60 goals against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (lost INTEGER, points_1 VARCHAR, goals_against VARCHAR)
SELECT MIN(lost) FROM table_name_30 WHERE points_1 = "37" AND goals_against < 60
Write a SQL query that answers the following question: How many times did the team lose who had a goal difference of +2, 52 goals for, and less than 9 draws?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (lost INTEGER, drawn VARCHAR, goal_difference VARCHAR, goals_for VARCHAR)
SELECT MIN(lost) FROM table_name_97 WHERE goal_difference = "+2" AND goals_for = 52 AND drawn < 9
Write a SQL query that answers the following question: How many draws did clitheroe have when their position was less than 12 and they lost less than 4 times?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (drawn INTEGER, lost VARCHAR, position VARCHAR, team VARCHAR)
SELECT SUM(drawn) FROM table_name_76 WHERE position < 12 AND team = "clitheroe" AND lost > 4
Write a SQL query that answers the following question: What is the reserved for (ST/ST/None) when it was Uklana?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_40 WHERE name = "uklana"
Write a SQL query that answers the following question: Bhiwani district have what constituency number?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (constituency_number VARCHAR, district VARCHAR)
SELECT constituency_number FROM table_name_37 WHERE district = "bhiwani"
Write a SQL query that answers the following question: What is the constituency number with electorates (2009) number larger than 152,958?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (constituency_number VARCHAR, number_of_electorates__2009_ INTEGER)
SELECT constituency_number FROM table_name_40 WHERE number_of_electorates__2009_ > 152 OFFSET 958
Write a SQL query that answers the following question: What is the date of the performance by Jatin Shah and co-contestant is Shalini Chandran?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (date_performed VARCHAR, main_contestant VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
SELECT date_performed FROM table_name_89 WHERE main_contestant = "jatin shah" AND co_contestant__yaar_vs_pyaar_ = "shalini chandran"
Write a SQL query that answers the following question: What are the scores when total score/week is 41/60 and co-contestant is Shalini Chandran?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (scores_by_each_individual_judge VARCHAR, total_score_week VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
SELECT scores_by_each_individual_judge FROM table_name_10 WHERE total_score_week = "41/60" AND co_contestant__yaar_vs_pyaar_ = "shalini chandran"
Write a SQL query that answers the following question: What position is there when the main contestant is Vishal Singh and the scores are 1 + 7 + 5 = 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (position VARCHAR, main_contestant VARCHAR, scores_by_each_individual_judge VARCHAR)
SELECT position FROM table_name_21 WHERE main_contestant = "vishal singh" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13
Write a SQL query that answers the following question: Who is the main contestant when the co-contestant (yaar vs. pyaar) is Shalini Chandran?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (main_contestant VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
SELECT main_contestant FROM table_name_33 WHERE co_contestant__yaar_vs_pyaar_ = "shalini chandran"
Write a SQL query that answers the following question: Who is the main contestant eliminated with a score of 1 + 7 + 5 = 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (main_contestant VARCHAR, status VARCHAR, scores_by_each_individual_judge VARCHAR)
SELECT main_contestant FROM table_name_11 WHERE status = "eliminated" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13
Write a SQL query that answers the following question: What shows for series 4 when the seat shows 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (series_4 VARCHAR, seat VARCHAR)
SELECT series_4 FROM table_name_27 WHERE seat = 1
Write a SQL query that answers the following question: What is the seat number when Series 3 shows Dana Bérová?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (seat INTEGER, series_3 VARCHAR)
SELECT AVG(seat) FROM table_name_81 WHERE series_3 = "dana bérová"
Write a SQL query that answers the following question: Who was the Partner in the Algiers 2, Algeria Tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (partner VARCHAR, tournament VARCHAR)
SELECT partner FROM table_name_2 WHERE tournament = "algiers 2, algeria"
Write a SQL query that answers the following question: Who were the Opponents in the Match with Partner Rushmi Chakravarthi?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (opponents VARCHAR, partner VARCHAR)
SELECT opponents FROM table_name_80 WHERE partner = "rushmi chakravarthi"
Write a SQL query that answers the following question: What is the Date of the Match with a Score of 6–4, 7–5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_27 WHERE score = "6–4, 7–5"
Write a SQL query that answers the following question: What is the fewest loses for the club that is below 8 in position, and had played less than 30 games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (loses INTEGER, position VARCHAR, games_played VARCHAR)
SELECT MIN(loses) FROM table_name_83 WHERE position < 8 AND games_played < 30
Write a SQL query that answers the following question: What is the loses total when there is less than 4 draws, less than 105 conceded goals, less than 38 goals scored, and the club is positioned greater than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (loses INTEGER, goals_scored VARCHAR, position VARCHAR, draws VARCHAR, goals_conceded VARCHAR)
SELECT SUM(loses) FROM table_name_54 WHERE draws < 4 AND goals_conceded < 105 AND position > 2 AND goals_scored < 38
Write a SQL query that answers the following question: How many total goals conceded are there when the points are greater than 58, less than 27 wins, and less than 1 draws?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (goals_conceded INTEGER, draws VARCHAR, points VARCHAR, wins VARCHAR)
SELECT SUM(goals_conceded) FROM table_name_16 WHERE points > 58 AND wins < 27 AND draws < 1
Write a SQL query that answers the following question: How many total goals scored when less than 30 games have been played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (goals_scored VARCHAR, games_played INTEGER)
SELECT COUNT(goals_scored) FROM table_name_71 WHERE games_played < 30
Write a SQL query that answers the following question: When less than 30 games have been played what is the average goals scored?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (goals_scored INTEGER, games_played INTEGER)
SELECT AVG(goals_scored) FROM table_name_18 WHERE games_played < 30
Write a SQL query that answers the following question: What is the league cup app with league cup goals more than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (league_cup_apps VARCHAR, league_cup_goals INTEGER)
SELECT league_cup_apps FROM table_name_76 WHERE league_cup_goals > 0
Write a SQL query that answers the following question: What is the fa cup apps with 0 league cup goals, and a total of 43 apps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (fa_cup_apps VARCHAR, league_cup_goals VARCHAR, total_apps VARCHAR)
SELECT fa_cup_apps FROM table_name_60 WHERE league_cup_goals = 0 AND total_apps = "43"
Write a SQL query that answers the following question: What is the highest FLT goals with 0 league cup goals, a GK position, and 2 league cup apps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (flt_goals INTEGER, league_cup_apps VARCHAR, league_cup_goals VARCHAR, position VARCHAR)
SELECT MAX(flt_goals) FROM table_name_3 WHERE league_cup_goals = 0 AND position = "gk" AND league_cup_apps = "2"
Write a SQL query that answers the following question: On what date is the venue Sam Nujoma Stadium, Windhoek, Namibia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_87 WHERE venue = "sam nujoma stadium, windhoek, namibia"
Write a SQL query that answers the following question: Who was in third place when the Winner was Dalian Shide, Chongqing Longxin was 4th and 14 clubs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (third_place VARCHAR, fourth_placed VARCHAR, number_of_clubs VARCHAR, winners VARCHAR)
SELECT third_place FROM table_name_48 WHERE number_of_clubs = 14 AND winners = "dalian shide" AND fourth_placed = "chongqing longxin"
Write a SQL query that answers the following question: What season had Dalian Wanda as the winner with Yanbian Aodong winning 4th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (season INTEGER, winners VARCHAR, fourth_placed VARCHAR)
SELECT SUM(season) FROM table_name_1 WHERE winners = "dalian wanda" AND fourth_placed = "yanbian aodong"
Write a SQL query that answers the following question: What is the number of clubs before 2003 with a 4th place winner of Shenzhen Jianlibao?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (number_of_clubs INTEGER, fourth_placed VARCHAR, season VARCHAR)
SELECT AVG(number_of_clubs) FROM table_name_66 WHERE fourth_placed = "shenzhen jianlibao" AND season < 2003
Write a SQL query that answers the following question: What is the number of clubs when Dalian Shide won and Sichuan Quanxing won 4th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (number_of_clubs INTEGER, winners VARCHAR, fourth_placed VARCHAR)
SELECT AVG(number_of_clubs) FROM table_name_35 WHERE winners = "dalian shide" AND fourth_placed = "sichuan quanxing"
Write a SQL query that answers the following question: Who was the winner when the runner-up was Guangzhou Apollo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (winners VARCHAR, runners_up VARCHAR)
SELECT winners FROM table_name_34 WHERE runners_up = "guangzhou apollo"
Write a SQL query that answers the following question: How many Byes have an Against of 972, and more than 11 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (byes INTEGER, against VARCHAR, wins VARCHAR)
SELECT SUM(byes) FROM table_name_39 WHERE against = 972 AND wins > 11