instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the gold medal count that has a silver medal count less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (gold INTEGER, silver INTEGER)
SELECT MAX(gold) FROM table_name_64 WHERE silver < 0
Write a SQL query that answers the following question: What is the average number of students for schools with a pupil to teacher ratio of 25.1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (students INTEGER, pupil_teacher_ratio VARCHAR)
SELECT AVG(students) FROM table_name_25 WHERE pupil_teacher_ratio = 25.1
Write a SQL query that answers the following question: What is the lowest pupil to teacher ratio for Saratoga schools with smaller than 1213 students?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (pupil_teacher_ratio INTEGER, city VARCHAR, students VARCHAR)
SELECT MIN(pupil_teacher_ratio) FROM table_name_13 WHERE city = "saratoga" AND students < 1213
Write a SQL query that answers the following question: What is the highest number of students for schools in Campbell with pupil to teacher ratios over 25?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (students INTEGER, city VARCHAR, pupil_teacher_ratio VARCHAR)
SELECT MAX(students) FROM table_name_13 WHERE city = "campbell" AND pupil_teacher_ratio > 25
Write a SQL query that answers the following question: Name the most rank for wins outdoor larger than 1 and wins indoor less than 0
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (rank INTEGER, wins__outdoor_ VARCHAR, wins__indoor_ VARCHAR)
SELECT MAX(rank) FROM table_name_87 WHERE wins__outdoor_ > 1 AND wins__indoor_ < 0
Write a SQL query that answers the following question: Name the most rank for uk and wins more than 5
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (rank INTEGER, country VARCHAR, wins__indoor_ VARCHAR)
SELECT MAX(rank) FROM table_name_1 WHERE country = "uk" AND wins__indoor_ > 5
Write a SQL query that answers the following question: Name the average wins outdoor with rank more than 4 and wins less than 3 with outdoor wins more than 0
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (wins__outdoor_ INTEGER, wins__indoor_ VARCHAR, rank VARCHAR, wins__total_ VARCHAR)
SELECT AVG(wins__outdoor_) FROM table_name_61 WHERE rank > 4 AND wins__total_ < 3 AND wins__indoor_ > 0
Write a SQL query that answers the following question: Name the most wins total with wins indoor of 0 and wins outdoor of 1 with rank less than 7
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (wins__total_ INTEGER, rank VARCHAR, wins__indoor_ VARCHAR, wins__outdoor_ VARCHAR)
SELECT MAX(wins__total_) FROM table_name_68 WHERE wins__indoor_ = 0 AND wins__outdoor_ = 1 AND rank < 7
Write a SQL query that answers the following question: What was the frame size in 08/87?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (framed_size VARCHAR, date_completed VARCHAR)
SELECT framed_size FROM table_name_22 WHERE date_completed = "08/87"
Write a SQL query that answers the following question: What was the print name in 07/87?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (print_name VARCHAR, date_completed VARCHAR)
SELECT print_name FROM table_name_39 WHERE date_completed = "07/87"
Write a SQL query that answers the following question: What is the frame size that was nicknamed Grand Central?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (framed_size VARCHAR, nickname VARCHAR)
SELECT framed_size FROM table_name_10 WHERE nickname = "grand central"
Write a SQL query that answers the following question: When was the Little Tavern completed?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (date_completed VARCHAR, nickname VARCHAR)
SELECT date_completed FROM table_name_55 WHERE nickname = "little tavern"
Write a SQL query that answers the following question: Which 1990-1991 is the average one that has Played of 38, and Points of 40?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (played VARCHAR, points VARCHAR)
SELECT AVG(1990 AS _1991) FROM table_name_26 WHERE played = 38 AND points = 40
Write a SQL query that answers the following question: Which College/Junior/Club Team has a Nationality of Canada and Jeff brown?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_84 WHERE nationality = "canada" AND player = "jeff brown"
Write a SQL query that answers the following question: Which Player has a Hc Cska Moscow (Russia)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (player VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT player FROM table_name_81 WHERE college_junior_club_team__league_ = "hc cska moscow (russia)"
Write a SQL query that answers the following question: What is Nationality of daniel goneau?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_11 WHERE player = "daniel goneau"
Write a SQL query that answers the following question: What points have 500cc as a class, and nsr500 as a machine?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (points VARCHAR, class VARCHAR, machine VARCHAR)
SELECT points FROM table_name_12 WHERE class = "500cc" AND machine = "nsr500"
Write a SQL query that answers the following question: How many years have 78 for points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (year VARCHAR, points VARCHAR)
SELECT COUNT(year) FROM table_name_24 WHERE points = 78
Write a SQL query that answers the following question: What class has nsr250 as the machine, with points greater than 97?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (class VARCHAR, machine VARCHAR, points VARCHAR)
SELECT class FROM table_name_45 WHERE machine = "nsr250" AND points > 97
Write a SQL query that answers the following question: What is the lowest year that have wins greater than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (year INTEGER, wins INTEGER)
SELECT MIN(year) FROM table_name_24 WHERE wins > 0
Write a SQL query that answers the following question: What are the highest points that have a year less than 1992, with wins less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (points INTEGER, year VARCHAR, wins VARCHAR)
SELECT MAX(points) FROM table_name_49 WHERE year < 1992 AND wins < 0
Write a SQL query that answers the following question: What was the lowest attendance at a game against the St. Louis Cardinals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (attendance INTEGER, opponent VARCHAR)
SELECT MIN(attendance) FROM table_name_91 WHERE opponent = "st. louis cardinals"
Write a SQL query that answers the following question: What district is the parish Milburn in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (district VARCHAR, name VARCHAR)
SELECT district FROM table_name_85 WHERE name = "milburn"
Write a SQL query that answers the following question: What is the population of the Parish, Plumbland, that had a former local authority of Cockermouth Rural District?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (population VARCHAR, former_local_authority VARCHAR, name VARCHAR)
SELECT COUNT(population) FROM table_name_5 WHERE former_local_authority = "cockermouth rural district" AND name = "plumbland"
Write a SQL query that answers the following question: What is the district for the parish, Brough?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (district VARCHAR, name VARCHAR)
SELECT district FROM table_name_58 WHERE name = "brough"
Write a SQL query that answers the following question: What year featured lola motorsport as an entrant with over 0 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (year INTEGER, entrant VARCHAR, points VARCHAR)
SELECT AVG(year) FROM table_name_44 WHERE entrant = "lola motorsport" AND points > 0
Write a SQL query that answers the following question: When is the earliest year that there's a judd engine?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (year INTEGER, engine VARCHAR)
SELECT MIN(year) FROM table_name_40 WHERE engine = "judd"
Write a SQL query that answers the following question: What chassis is used in 1989 with a cosworth engine?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (chassis VARCHAR, year VARCHAR, engine VARCHAR)
SELECT chassis FROM table_name_2 WHERE year = 1989 AND engine = "cosworth"
Write a SQL query that answers the following question: Where was something built earlier than 1858?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (where_built VARCHAR, year_built INTEGER)
SELECT where_built FROM table_name_79 WHERE year_built < 1858
Write a SQL query that answers the following question: What was built in 1857?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (name VARCHAR, year_built VARCHAR)
SELECT name FROM table_name_89 WHERE year_built = 1857
Write a SQL query that answers the following question: Who were the initial owners of Wasco in 1858?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (initial_owners VARCHAR, year_built VARCHAR, name VARCHAR)
SELECT initial_owners FROM table_name_57 WHERE year_built = 1858 AND name = "wasco"
Write a SQL query that answers the following question: What was the type of boat built in Port Blakeley
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (type VARCHAR, where_built VARCHAR)
SELECT type FROM table_name_31 WHERE where_built = "port blakeley"
Write a SQL query that answers the following question: What is the date of the game at Arrowhead Stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (date VARCHAR, location VARCHAR)
SELECT date FROM table_name_33 WHERE location = "arrowhead stadium"
Write a SQL query that answers the following question: Who is the opponent of the game after week 4 on Sun. Nov. 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_70 WHERE week > 4 AND date = "sun. nov. 17"
Write a SQL query that answers the following question: What's the median family income with a household income of $25,583?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (median_family_income VARCHAR, median_household_income VARCHAR)
SELECT median_family_income FROM table_name_72 WHERE median_household_income = "$25,583"
Write a SQL query that answers the following question: What's the $51,914 median household income per capita?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (per_capita_income VARCHAR, median_household_income VARCHAR)
SELECT per_capita_income FROM table_name_34 WHERE median_household_income = "$51,914"
Write a SQL query that answers the following question: What was the winning score when Steve Stricker was runner-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT winning_score FROM table_name_1 WHERE runner_s__up = "steve stricker"
Write a SQL query that answers the following question: What was the margin of victory when the winning score was −14 (63-67-73-67=270)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT margin_of_victory FROM table_name_2 WHERE winning_score = −14(63 - 67 - 73 - 67 = 270)
Write a SQL query that answers the following question: Who was the runnerup when the margin of victory was 1 stroke on jan 30, 2000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (runner_s__up VARCHAR, margin_of_victory VARCHAR, date VARCHAR)
SELECT runner_s__up FROM table_name_64 WHERE margin_of_victory = "1 stroke" AND date = "jan 30, 2000"
Write a SQL query that answers the following question: What was the margin of victory when the winning score was −12 (66-67-64-71=268)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT margin_of_victory FROM table_name_67 WHERE winning_score = −12(66 - 67 - 64 - 71 = 268)
Write a SQL query that answers the following question: What day was the margin of victory 1 stroke when the tournament was colonial national invitation?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_5 WHERE margin_of_victory = "1 stroke" AND tournament = "colonial national invitation"
Write a SQL query that answers the following question: What was the winning score for runnerup Greg Norman
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT winning_score FROM table_name_5 WHERE runner_s__up = "greg norman"
Write a SQL query that answers the following question: Which Builder has a Pennant number of Q149?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (builder VARCHAR, pennant_number VARCHAR)
SELECT builder FROM table_name_63 WHERE pennant_number = "q149"
Write a SQL query that answers the following question: On what date was the ship with a Pennant number of Q144 commissioned?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (commissioned VARCHAR, pennant_number VARCHAR)
SELECT commissioned FROM table_name_8 WHERE pennant_number = "q144"
Write a SQL query that answers the following question: How many ships are named Monge?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (ordered VARCHAR, name VARCHAR)
SELECT COUNT(ordered) FROM table_name_10 WHERE name = "monge"
Write a SQL query that answers the following question: What launched has mariner 4 as the spacecraft?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (launched VARCHAR, spacecraft VARCHAR)
SELECT launched FROM table_name_17 WHERE spacecraft = "mariner 4"
Write a SQL query that answers the following question: What launched has 158 days (5 months, 8 days) as the time elapsed?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (launched VARCHAR, time_elapsed VARCHAR)
SELECT launched FROM table_name_91 WHERE time_elapsed = "158 days (5 months, 8 days)"
Write a SQL query that answers the following question: When was the song by Andy Gibb issued?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (issue_date_s_ VARCHAR, artist VARCHAR)
SELECT issue_date_s_ FROM table_name_44 WHERE artist = "andy gibb"
Write a SQL query that answers the following question: Which Round has a College of stanford, and an Overall smaller than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (round INTEGER, college VARCHAR, overall VARCHAR)
SELECT AVG(round) FROM table_name_57 WHERE college = "stanford" AND overall < 8
Write a SQL query that answers the following question: How many Picks have a College of tennessee, and an Overall smaller than 270?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (pick__number INTEGER, college VARCHAR, overall VARCHAR)
SELECT SUM(pick__number) FROM table_name_59 WHERE college = "tennessee" AND overall < 270
Write a SQL query that answers the following question: Which Pick # is the lowest one that has a College of troy state, and a Name of reggie dwight, and an Overall smaller than 217?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (pick__number INTEGER, overall VARCHAR, college VARCHAR, name VARCHAR)
SELECT MIN(pick__number) FROM table_name_92 WHERE college = "troy state" AND name = "reggie dwight" AND overall < 217
Write a SQL query that answers the following question: What's the smallest amount of earnings when the wins are less than 72 and the rank is more than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (earnings___ INTEGER, wins VARCHAR, rank VARCHAR)
SELECT MIN(earnings___) AS $__ FROM table_name_87 WHERE wins < 72 AND rank > 3
Write a SQL query that answers the following question: What's the smallest amount of earnings when there are more than 18 wins and the rank is 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (earnings___ INTEGER, wins VARCHAR, rank VARCHAR)
SELECT MIN(earnings___) AS $__ FROM table_name_86 WHERE wins > 18 AND rank = 2
Write a SQL query that answers the following question: What is the lowest number of losses for a team with more than 0 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (losses INTEGER, wins INTEGER)
SELECT MIN(losses) FROM table_name_53 WHERE wins > 0
Write a SQL query that answers the following question: What is the average number of losses for teams with fewer than 0 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (losses INTEGER, wins INTEGER)
SELECT AVG(losses) FROM table_name_23 WHERE wins < 0
Write a SQL query that answers the following question: What is the average number of wins for Runcorn Highfield with more than 0 draws?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (wins INTEGER, team VARCHAR, draws VARCHAR)
SELECT AVG(wins) FROM table_name_55 WHERE team = "runcorn highfield" AND draws > 0
Write a SQL query that answers the following question: What is the lowest number of losses for Nottingham City with fewer than 0 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (losses INTEGER, team VARCHAR, wins VARCHAR)
SELECT MIN(losses) FROM table_name_28 WHERE team = "nottingham city" AND wins < 0
Write a SQL query that answers the following question: What is the weight of the player from the Philadelphia 76ers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (weight VARCHAR, team VARCHAR)
SELECT COUNT(weight) FROM table_name_53 WHERE team = "philadelphia 76ers"
Write a SQL query that answers the following question: What is the height of the player, Larry Hughes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (height VARCHAR, player VARCHAR)
SELECT height FROM table_name_71 WHERE player = "larry hughes"
Write a SQL query that answers the following question: What player was moved to Blackpool?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (player VARCHAR, to_club VARCHAR)
SELECT player FROM table_name_41 WHERE to_club = "blackpool"
Write a SQL query that answers the following question: A player was moved to celtic had an end of what date?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (end_date VARCHAR, to_club VARCHAR)
SELECT end_date FROM table_name_99 WHERE to_club = "celtic"
Write a SQL query that answers the following question: Which Game is the average one that has a February larger than 20, and a Record of 41–17–4, and Points smaller than 86?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (game INTEGER, points VARCHAR, february VARCHAR, record VARCHAR)
SELECT AVG(game) FROM table_name_23 WHERE february > 20 AND record = "41–17–4" AND points < 86
Write a SQL query that answers the following question: what country hosted david toms
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_94 WHERE player = "david toms"
Write a SQL query that answers the following question: What was the score for game 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_87 WHERE game = 18
Write a SQL query that answers the following question: What is the kickoff time for the game that was at Ralph Wilson Stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (kickoff___et__ VARCHAR, game_site VARCHAR)
SELECT kickoff___et__ FROM table_name_92 WHERE game_site = "ralph wilson stadium"
Write a SQL query that answers the following question: What is the record for the game against the New England Patriots with a recap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (record VARCHAR, nfl_recap VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_90 WHERE nfl_recap = "recap" AND opponent = "new england patriots"
Write a SQL query that answers the following question: What is the result of the game on week 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_52 WHERE week = 11
Write a SQL query that answers the following question: Who was the visitor that led to a 3-0-2 record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_15 WHERE record = "3-0-2"
Write a SQL query that answers the following question: What is the original title of the Gypsy Magic film title used in nomination?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT original_title FROM table_name_67 WHERE film_title_used_in_nomination = "gypsy magic"
Write a SQL query that answers the following question: Name the builder for number 3
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (builder VARCHAR, number VARCHAR)
SELECT builder FROM table_name_64 WHERE number = 3
Write a SQL query that answers the following question: Name the date with works number less than 1673 and number less than 3
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (date VARCHAR, works_number VARCHAR, number VARCHAR)
SELECT date FROM table_name_42 WHERE works_number < 1673 AND number < 3
Write a SQL query that answers the following question: Name the builder for 4/1906 and works number more than 199
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (builder VARCHAR, works_number VARCHAR, date VARCHAR)
SELECT builder FROM table_name_90 WHERE works_number > 199 AND date = "4/1906"
Write a SQL query that answers the following question: What was the largest number of people in attendance of the game with a W 14-3 result after week 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (attendance INTEGER, result VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_10 WHERE result = "w 14-3" AND week > 10
Write a SQL query that answers the following question: What is the percentage for Zares on May 21–22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (zares VARCHAR, date VARCHAR)
SELECT zares FROM table_name_87 WHERE date = "may 21–22"
Write a SQL query that answers the following question: What is the source for 7% DeSUS?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (source VARCHAR, desus VARCHAR)
SELECT source FROM table_name_37 WHERE desus = "7%"
Write a SQL query that answers the following question: What is the source for Zares at 8.6%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (source VARCHAR, zares VARCHAR)
SELECT source FROM table_name_12 WHERE zares = "8.6%"
Write a SQL query that answers the following question: What is the source corresponding to a date of May 25–27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (source VARCHAR, date VARCHAR)
SELECT source FROM table_name_7 WHERE date = "may 25–27"
Write a SQL query that answers the following question: What song is done by Terence Trent D'Arby?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (song VARCHAR, artist VARCHAR)
SELECT song FROM table_name_24 WHERE artist = "terence trent d'arby"
Write a SQL query that answers the following question: What was the Result on October 27, 2002?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_66 WHERE date = "october 27, 2002"
Write a SQL query that answers the following question: in riyadh, saudi arabia, what is the score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (score VARCHAR, venue VARCHAR)
SELECT score FROM table_name_12 WHERE venue = "riyadh, saudi arabia"
Write a SQL query that answers the following question: Which Pocona Municipality (%) is the lowest one that has a Puerto Villarroel Municipality (%) smaller than 14.6, and a Chimoré Municipality (%) of 5.1, and an Entre Ríos Municipality (%) smaller than 0.9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (pocona_municipality___percentage_ INTEGER, entre_ríos_municipality___percentage_ VARCHAR, puerto_villarroel_municipality___percentage_ VARCHAR, chimoré_municipality___percentage_ VARCHAR)
SELECT MIN(pocona_municipality___percentage_) FROM table_name_61 WHERE puerto_villarroel_municipality___percentage_ < 14.6 AND chimoré_municipality___percentage_ = 5.1 AND entre_ríos_municipality___percentage_ < 0.9
Write a SQL query that answers the following question: Which Puerto Villarroel Municipality (%) is the lowest one that has an Ethnic group of not indigenous, and a Totora Municipality (%) smaller than 4.4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (puerto_villarroel_municipality___percentage_ INTEGER, ethnic_group VARCHAR, totora_municipality___percentage_ VARCHAR)
SELECT MIN(puerto_villarroel_municipality___percentage_) FROM table_name_94 WHERE ethnic_group = "not indigenous" AND totora_municipality___percentage_ < 4.4
Write a SQL query that answers the following question: Which Pocona Municipality (%) has a Puerto Villarroel Municipality (%) larger than 14.6, and a Pojo Municipality (%) smaller than 88.5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (pocona_municipality___percentage_ INTEGER, puerto_villarroel_municipality___percentage_ VARCHAR, pojo_municipality___percentage_ VARCHAR)
SELECT SUM(pocona_municipality___percentage_) FROM table_name_6 WHERE puerto_villarroel_municipality___percentage_ > 14.6 AND pojo_municipality___percentage_ < 88.5
Write a SQL query that answers the following question: Which Totora Municipality (%) is the highest one that has a Chimoré Municipality (%) of 5.1, and a Pocona Municipality (%) smaller than 0.2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (totora_municipality___percentage_ INTEGER, chimoré_municipality___percentage_ VARCHAR, pocona_municipality___percentage_ VARCHAR)
SELECT MAX(totora_municipality___percentage_) FROM table_name_72 WHERE chimoré_municipality___percentage_ = 5.1 AND pocona_municipality___percentage_ < 0.2
Write a SQL query that answers the following question: Which Pos has a Car # smaller than 18, and a Driver of mike skinner?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (pos INTEGER, car__number VARCHAR, driver VARCHAR)
SELECT AVG(pos) FROM table_name_91 WHERE car__number < 18 AND driver = "mike skinner"
Write a SQL query that answers the following question: Which Team has a Pos larger than 3, and a Make of toyota, and a Car # smaller than 59, and a Driver of mike skinner?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (team VARCHAR, driver VARCHAR, car__number VARCHAR, pos VARCHAR, make VARCHAR)
SELECT team FROM table_name_75 WHERE pos > 3 AND make = "toyota" AND car__number < 59 AND driver = "mike skinner"
Write a SQL query that answers the following question: Which Pos has a Team of roush fenway racing, and a Car # of 99?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (pos INTEGER, team VARCHAR, car__number VARCHAR)
SELECT SUM(pos) FROM table_name_32 WHERE team = "roush fenway racing" AND car__number = 99
Write a SQL query that answers the following question: Which Car # has a Make of toyota, and a Pos of 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (car__number INTEGER, make VARCHAR, pos VARCHAR)
SELECT AVG(car__number) FROM table_name_93 WHERE make = "toyota" AND pos = 7
Write a SQL query that answers the following question: Which Pos has a Team of germian racing?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (pos VARCHAR, team VARCHAR)
SELECT pos FROM table_name_68 WHERE team = "germian racing"
Write a SQL query that answers the following question: Which Opponent has a Score of 2–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_64 WHERE score = "2–6"
Write a SQL query that answers the following question: Which Game has a Series of flyers win 3–0? Question 3
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (game INTEGER, series VARCHAR)
SELECT MAX(game) FROM table_name_8 WHERE series = "flyers win 3–0"
Write a SQL query that answers the following question: Which Series is on april 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (series VARCHAR, date VARCHAR)
SELECT series FROM table_name_84 WHERE date = "april 18"
Write a SQL query that answers the following question: Name the date with score of 9-2
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_49 WHERE score = "9-2"
Write a SQL query that answers the following question: Which Points is the highest one that has a Nationality of aut, and a Name of thomas morgenstern?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (points INTEGER, nationality VARCHAR, name VARCHAR)
SELECT MAX(points) FROM table_name_32 WHERE nationality = "aut" AND name = "thomas morgenstern"
Write a SQL query that answers the following question: What is the sum of the capacities for Carrigh wind warm that has a size of 0.85 MW and more than 3 turbines?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (capacity__mw_ INTEGER, turbines VARCHAR, size__mw_ VARCHAR, wind_farm VARCHAR)
SELECT SUM(capacity__mw_) FROM table_name_31 WHERE size__mw_ = "0.85" AND wind_farm = "carrigh" AND turbines > 3
Write a SQL query that answers the following question: What is the size of the windfarm in wexford that has more than 19 turbines and a vendor of Enercon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (size__mw_ VARCHAR, county VARCHAR, turbines VARCHAR, turbine_vendor VARCHAR)
SELECT size__mw_ FROM table_name_87 WHERE turbines > 19 AND turbine_vendor = "enercon" AND county = "wexford"
Write a SQL query that answers the following question: Who is the turbine vendor for Meenadreen in Donegal county with less than 6 turbines with a size of 0.85 MW?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (turbine_vendor VARCHAR, wind_farm VARCHAR, size__mw_ VARCHAR, turbines VARCHAR, county VARCHAR)
SELECT turbine_vendor FROM table_name_85 WHERE turbines < 6 AND county = "donegal" AND size__mw_ = "0.85" AND wind_farm = "meenadreen"
Write a SQL query that answers the following question: What is the population where the rank is higher than 51 and the Median House-hold income is $25,250?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (population INTEGER, rank VARCHAR, median_house__hold_income VARCHAR)
SELECT SUM(population) FROM table_name_50 WHERE rank > 51 AND median_house__hold_income = "$25,250"
Write a SQL query that answers the following question: What is the Population where the Median House-hold Income is $25,016?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (population INTEGER, median_house__hold_income VARCHAR)
SELECT MIN(population) FROM table_name_59 WHERE median_house__hold_income = "$25,016"
Write a SQL query that answers the following question: What is the Number of Households that have a Per Capita Income of $21,345?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (number_of_households INTEGER, per_capita_income VARCHAR)
SELECT AVG(number_of_households) FROM table_name_59 WHERE per_capita_income = "$21,345"