instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Name the Venue which has a Score of 8 – 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (venue VARCHAR, score VARCHAR)
SELECT venue FROM table_name_61 WHERE score = "8 – 1"
Write a SQL query that answers the following question: What is 2nd Leg, when Team 1 is "H"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (team_1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_97 WHERE team_1 = "h"
Write a SQL query that answers the following question: Who are the Batsmen from the year 2002?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (batsmen VARCHAR, year VARCHAR)
SELECT batsmen FROM table_name_98 WHERE year = "2002"
Write a SQL query that answers the following question: What score did the year 1948 have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (score VARCHAR, year VARCHAR)
SELECT score FROM table_name_21 WHERE year = "1948"
Write a SQL query that answers the following question: Who is the Batsman from the year 1982?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (batsmen VARCHAR, year VARCHAR)
SELECT batsmen FROM table_name_83 WHERE year = "1982"
Write a SQL query that answers the following question: What is the score in 1929?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (score VARCHAR, year VARCHAR)
SELECT score FROM table_name_46 WHERE year = "1929"
Write a SQL query that answers the following question: Who was the batsmen at the Brit Oval location?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (batsmen VARCHAR, location VARCHAR)
SELECT batsmen FROM table_name_76 WHERE location = "the brit oval"
Write a SQL query that answers the following question: What year was the bridge in Kent built?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (built VARCHAR, county VARCHAR)
SELECT built FROM table_name_63 WHERE county = "kent"
Write a SQL query that answers the following question: In which county is East Providence?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (county VARCHAR, location VARCHAR)
SELECT county FROM table_name_55 WHERE location = "east providence"
Write a SQL query that answers the following question: What county had a bridge biult in 1884?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (county VARCHAR, built VARCHAR)
SELECT county FROM table_name_37 WHERE built = "1884"
Write a SQL query that answers the following question: What is the Place of the Player with a Score of 68-73-66-74=281?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_13 WHERE score = 68 - 73 - 66 - 74 = 281
Write a SQL query that answers the following question: What Country's Player scored 71-69-70-71=281?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_21 WHERE score = 71 - 69 - 70 - 71 = 281
Write a SQL query that answers the following question: What is T5 Place Vijay Singh's To par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_60 WHERE place = "t5" AND player = "vijay singh"
Write a SQL query that answers the following question: What is Score, when Player is "Bob Murphy"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_9 WHERE player = "bob murphy"
Write a SQL query that answers the following question: What is Player, when To Par is "+1", when Country is "United States", and when Score is "71-70=141"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (player VARCHAR, to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT player FROM table_name_32 WHERE to_par = "+1" AND country = "united states" AND score = 71 - 70 = 141
Write a SQL query that answers the following question: What is Score, when Place is "T8", and when Player is "Orville Moody"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_40 WHERE place = "t8" AND player = "orville moody"
Write a SQL query that answers the following question: What is Score, when Player is "Deane Beman"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_20 WHERE player = "deane beman"
Write a SQL query that answers the following question: What is Country, when Player is "Jack Nicklaus"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_56 WHERE player = "jack nicklaus"
Write a SQL query that answers the following question: What is the Country, when Place is "1"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (country VARCHAR, place VARCHAR)
SELECT country FROM table_name_46 WHERE place = "1"
Write a SQL query that answers the following question: WHAT IS THE RESULT FOR best urban/alternative performance, IN 2003 OR GREATER?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (result VARCHAR, category VARCHAR, year VARCHAR)
SELECT result FROM table_name_1 WHERE category = "best urban/alternative performance" AND year > 2003
Write a SQL query that answers the following question: WHAT IS THE TITLE WITH CATEGORY OF best r&b song?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (title VARCHAR, category VARCHAR)
SELECT title FROM table_name_95 WHERE category = "best r&b song"
Write a SQL query that answers the following question: WHAT IS THE RESULT FOR 2003, IN best urban/alternative performance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (result VARCHAR, year VARCHAR, category VARCHAR)
SELECT result FROM table_name_79 WHERE year = 2003 AND category = "best urban/alternative performance"
Write a SQL query that answers the following question: WHAT IS THE YEAR OF FLOETIC?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (year INTEGER, title VARCHAR)
SELECT SUM(year) FROM table_name_5 WHERE title = "floetic"
Write a SQL query that answers the following question: Who had the highest assists when the nuggets record was 2-4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (high_assists VARCHAR, record VARCHAR)
SELECT high_assists FROM table_name_64 WHERE record = "2-4"
Write a SQL query that answers the following question: Who had the highest assists in game 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (high_assists VARCHAR, game VARCHAR)
SELECT high_assists FROM table_name_92 WHERE game = 3
Write a SQL query that answers the following question: What is Time, when Ground is Waverley Park, and when Away Team is Footscray?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (time VARCHAR, ground VARCHAR, away_team VARCHAR)
SELECT time FROM table_name_69 WHERE ground = "waverley park" AND away_team = "footscray"
Write a SQL query that answers the following question: What is Ground, when Away Team is Sydney?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (ground VARCHAR, away_team VARCHAR)
SELECT ground FROM table_name_73 WHERE away_team = "sydney"
Write a SQL query that answers the following question: What is Date, when Home Team is Richmond?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_65 WHERE home_team = "richmond"
Write a SQL query that answers the following question: What is Home Team Score, when Time is 12:00 PM, and when Ground is Waverley Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (home_team VARCHAR, time VARCHAR, ground VARCHAR)
SELECT home_team AS score FROM table_name_39 WHERE time = "12:00 pm" AND ground = "waverley park"
Write a SQL query that answers the following question: What is the highest year for the US Open?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (year INTEGER, championship VARCHAR)
SELECT MAX(year) FROM table_name_4 WHERE championship = "us open"
Write a SQL query that answers the following question: What is Result, when Week is 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_72 WHERE week = 16
Write a SQL query that answers the following question: What is Record, when Attendance is 30,110?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (record VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_84 WHERE attendance = "30,110"
Write a SQL query that answers the following question: What is Date, when Opponent is At Saskatchewan Roughriders?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_13 WHERE opponent = "at saskatchewan roughriders"
Write a SQL query that answers the following question: Which School name has students smaller than 389, and grades of 10-12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (school_name VARCHAR, students VARCHAR, grades VARCHAR)
SELECT school_name FROM table_name_64 WHERE students < 389 AND grades = "10-12"
Write a SQL query that answers the following question: What was the score of the game where the home team was the cairns taipans?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_85 WHERE home_team = "cairns taipans"
Write a SQL query that answers the following question: What was the score of the game where the adelaide 36ers were the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_39 WHERE home_team = "adelaide 36ers"
Write a SQL query that answers the following question: What was the score of the game where the venue was cairns convention centre?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (score VARCHAR, venue VARCHAR)
SELECT score FROM table_name_54 WHERE venue = "cairns convention centre"
Write a SQL query that answers the following question: Who was the away team during the game when the home team was the new zealand breakers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_36 WHERE home_team = "new zealand breakers"
Write a SQL query that answers the following question: What was the score of the game which featured the gold coast blaze as the away team and the adelaide 36ers as the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (score VARCHAR, away_team VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_16 WHERE away_team = "gold coast blaze" AND home_team = "adelaide 36ers"
Write a SQL query that answers the following question: What is the total rank of the company with less than 248.44 billion in assets, an industry of oil and gas, headquarters in France, and a market value greater than 152.62 billions?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (rank VARCHAR, market_value__billion_$_ VARCHAR, headquarters VARCHAR, assets__billion_$_ VARCHAR, industry VARCHAR)
SELECT COUNT(rank) FROM table_name_92 WHERE assets__billion_$_ < 248.44 AND industry = "oil and gas" AND headquarters = "france" AND market_value__billion_$_ > 152.62
Write a SQL query that answers the following question: What company has more than 195.34 billion in sales, ranked greater than 7, more than 11.29 billion in profits, and a market value greater than 198.14 billion?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (company VARCHAR, market_value__billion_$_ VARCHAR, profits__billion_$_ VARCHAR, sales__billion_$_ VARCHAR, rank VARCHAR)
SELECT company FROM table_name_62 WHERE sales__billion_$_ > 195.34 AND rank > 7 AND profits__billion_$_ > 11.29 AND market_value__billion_$_ > 198.14
Write a SQL query that answers the following question: What is the average rank of the company with more than 146.56 billion in sales and profits of 11.68 billions?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (rank INTEGER, sales__billion_$_ VARCHAR, profits__billion_$_ VARCHAR)
SELECT AVG(rank) FROM table_name_97 WHERE sales__billion_$_ > 146.56 AND profits__billion_$_ = 11.68
Write a SQL query that answers the following question: What was the position of the player from the college of Nevada with a round over 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (position VARCHAR, round VARCHAR, college VARCHAR)
SELECT position FROM table_name_23 WHERE round > 5 AND college = "nevada"
Write a SQL query that answers the following question: Which college had a pick in a round under 7, with a pick number 13 and overall was under 186?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (college VARCHAR, pick VARCHAR, round VARCHAR, overall VARCHAR)
SELECT college FROM table_name_6 WHERE round < 7 AND overall < 186 AND pick = 13
Write a SQL query that answers the following question: How many Parishes in Merrimack which has 4 Cemeteries?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (parishes INTEGER, pastoral_region VARCHAR, cemeteries VARCHAR)
SELECT MIN(parishes) FROM table_name_62 WHERE pastoral_region = "merrimack" AND cemeteries < 4
Write a SQL query that answers the following question: What Pastoral Region has 3 Cemeteries?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (pastoral_region VARCHAR, cemeteries VARCHAR)
SELECT pastoral_region FROM table_name_57 WHERE cemeteries = 3
Write a SQL query that answers the following question: How many High schools in the Region with 8 Cemeteries?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (high_schools INTEGER, cemeteries VARCHAR)
SELECT SUM(high_schools) FROM table_name_38 WHERE cemeteries = 8
Write a SQL query that answers the following question: What Pastoral Region has Episcopal Vicar Robert Francis Hennessey?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (pastoral_region VARCHAR, episcopal_vicar VARCHAR)
SELECT pastoral_region FROM table_name_81 WHERE episcopal_vicar = "robert francis hennessey"
Write a SQL query that answers the following question: What is the name of the person with more than 299 games during the 1995–07 period?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (name VARCHAR, games VARCHAR, period VARCHAR)
SELECT name FROM table_name_69 WHERE games > 299 AND period = "1995–07"
Write a SQL query that answers the following question: What is the number of games for Shlomi Avrahami?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (games VARCHAR, name VARCHAR)
SELECT COUNT(games) FROM table_name_75 WHERE name = "shlomi avrahami"
Write a SQL query that answers the following question: What is the rank for the period of 1973–89, with less than 423 games.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (rank INTEGER, period VARCHAR, games VARCHAR)
SELECT SUM(rank) FROM table_name_7 WHERE period = "1973–89" AND games < 423
Write a SQL query that answers the following question: What is the team 1 when Ulisses is team 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_98 WHERE team_2 = "ulisses"
Write a SQL query that answers the following question: What is 2009, when Year is "Highest Mean Annual Temperature"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (year VARCHAR)
SELECT 2009 FROM table_name_31 WHERE year = "highest mean annual temperature"
Write a SQL query that answers the following question: How many gold values have totals over 30, bronzes over 35, and are in Swimming?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (gold VARCHAR, bronze VARCHAR, total VARCHAR, sport VARCHAR)
SELECT COUNT(gold) FROM table_name_75 WHERE total > 30 AND sport = "swimming" AND bronze > 35
Write a SQL query that answers the following question: What is the highest bronze value with silvers over 2, golds under 16, and in Cycling?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (bronze INTEGER, gold VARCHAR, silver VARCHAR, sport VARCHAR)
SELECT MAX(bronze) FROM table_name_58 WHERE silver > 2 AND sport = "cycling" AND gold < 16
Write a SQL query that answers the following question: What is the total associated with Bronzes over 35?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (total VARCHAR, bronze INTEGER)
SELECT total FROM table_name_15 WHERE bronze > 35
Write a SQL query that answers the following question: What is the smallest bronze value associated with golds over 0, silvers over 11, and totals of 36?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
SELECT MIN(bronze) FROM table_name_63 WHERE gold > 0 AND total = 36 AND silver > 11
Write a SQL query that answers the following question: What is the average number of golds in athletics associated with over 42 silvers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (gold INTEGER, sport VARCHAR, silver VARCHAR)
SELECT AVG(gold) FROM table_name_66 WHERE sport = "athletics" AND silver > 42
Write a SQL query that answers the following question: What is the smallest number of silvers associated with bronzes under 20, totals of 1, golds of 0, and in Water Polo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (silver INTEGER, gold VARCHAR, sport VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT MIN(silver) FROM table_name_90 WHERE bronze < 20 AND total = 1 AND sport = "water polo" AND gold < 0
Write a SQL query that answers the following question: What was the lowest pick number for Marc Pilon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (pick__number INTEGER, player VARCHAR)
SELECT MIN(pick__number) FROM table_name_69 WHERE player = "marc pilon"
Write a SQL query that answers the following question: What player was from the British Columbia college?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_23 WHERE college = "british columbia"
Write a SQL query that answers the following question: What was the highest pick number for the Hamilton tiger-cats?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (pick__number INTEGER, cfl_team VARCHAR)
SELECT MAX(pick__number) FROM table_name_13 WHERE cfl_team = "hamilton tiger-cats"
Write a SQL query that answers the following question: What was the pick number for the WR position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (pick__number VARCHAR, position VARCHAR)
SELECT pick__number FROM table_name_59 WHERE position = "wr"
Write a SQL query that answers the following question: Can you tell me the Goal that has the Result of 2-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (goal VARCHAR, result VARCHAR)
SELECT goal FROM table_name_84 WHERE result = "2-0"
Write a SQL query that answers the following question: What is Place, when Prize is "$381.030"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (place VARCHAR, prize VARCHAR)
SELECT place FROM table_name_32 WHERE prize = "$381.030"
Write a SQL query that answers the following question: What is Rank, when Event is "LAPT3 Punta Del Este"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (rank VARCHAR, event VARCHAR)
SELECT rank FROM table_name_65 WHERE event = "lapt3 punta del este"
Write a SQL query that answers the following question: What is Name, when Prize is "$279.330"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (name VARCHAR, prize VARCHAR)
SELECT name FROM table_name_64 WHERE prize = "$279.330"
Write a SQL query that answers the following question: What is Prize, when Rank is "2nd"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (prize VARCHAR, rank VARCHAR)
SELECT prize FROM table_name_2 WHERE rank = "2nd"
Write a SQL query that answers the following question: What is Rank, when Event is "LAPT4 São Paulo"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (rank VARCHAR, event VARCHAR)
SELECT rank FROM table_name_66 WHERE event = "lapt4 são paulo"
Write a SQL query that answers the following question: What is Prize, when Name is "Valdemar Kwaysser"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (prize VARCHAR, name VARCHAR)
SELECT prize FROM table_name_58 WHERE name = "valdemar kwaysser"
Write a SQL query that answers the following question: What is the bus power for the Controlnet Fieldbus?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (bus_power VARCHAR, fieldbus VARCHAR)
SELECT bus_power FROM table_name_5 WHERE fieldbus = "controlnet"
Write a SQL query that answers the following question: What is the millisecond cycle for the Fieldbus?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (sub_millisecond_cycle VARCHAR)
SELECT sub_millisecond_cycle FROM table_name_28 WHERE "fieldbus" = "fieldbus"
Write a SQL query that answers the following question: What is the synchronisation for the controlnet fieldbus?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (synchronisation VARCHAR, fieldbus VARCHAR)
SELECT synchronisation FROM table_name_70 WHERE fieldbus = "controlnet"
Write a SQL query that answers the following question: Which Position has a College of colorado?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (position VARCHAR, college VARCHAR)
SELECT position FROM table_name_31 WHERE college = "colorado"
Write a SQL query that answers the following question: Which College has an Overall larger than 211, a Position of db, and a Name of carl charon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (college VARCHAR, name VARCHAR, overall VARCHAR, position VARCHAR)
SELECT college FROM table_name_7 WHERE overall > 211 AND position = "db" AND name = "carl charon"
Write a SQL query that answers the following question: Which Overall has a College of michigan state, a Position of fb, and a Round larger than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (overall INTEGER, round VARCHAR, college VARCHAR, position VARCHAR)
SELECT SUM(overall) FROM table_name_46 WHERE college = "michigan state" AND position = "fb" AND round > 8
Write a SQL query that answers the following question: Which Round has a College of arizona?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (round INTEGER, college VARCHAR)
SELECT MIN(round) FROM table_name_26 WHERE college = "arizona"
Write a SQL query that answers the following question: Which Overall has a Round of 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (overall INTEGER, round VARCHAR)
SELECT MIN(overall) FROM table_name_99 WHERE round = 7
Write a SQL query that answers the following question: Which Round has a Pick larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (round INTEGER, pick INTEGER)
SELECT SUM(round) FROM table_name_4 WHERE pick > 1
Write a SQL query that answers the following question: In italy, when the stolen ends were 10 and blank ends were under 14, what's the lowest ends won?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (ends_won INTEGER, blank_ends VARCHAR, stolen_ends VARCHAR, locale VARCHAR)
SELECT MIN(ends_won) FROM table_name_45 WHERE stolen_ends = 10 AND locale = "italy" AND blank_ends < 14
Write a SQL query that answers the following question: When ends won were below 57 but stolen ends are more than 14, what's the highest blank ends found?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (blank_ends INTEGER, stolen_ends VARCHAR, ends_won VARCHAR)
SELECT MAX(blank_ends) FROM table_name_53 WHERE stolen_ends > 14 AND ends_won < 57
Write a SQL query that answers the following question: What was the attendance record for Leicester City?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (attendance VARCHAR, home_team VARCHAR)
SELECT attendance FROM table_name_17 WHERE home_team = "leicester city"
Write a SQL query that answers the following question: What was the attendance for Arsenal?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (attendance VARCHAR, home_team VARCHAR)
SELECT attendance FROM table_name_11 WHERE home_team = "arsenal"
Write a SQL query that answers the following question: Who was the home team against the Bolton Wanderers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_13 WHERE away_team = "bolton wanderers"
Write a SQL query that answers the following question: Who was the opponent of the match in South Dakota, United States which has 2 rounds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (opponent VARCHAR, round VARCHAR, location VARCHAR)
SELECT opponent FROM table_name_63 WHERE round = 2 AND location = "south dakota, united states"
Write a SQL query that answers the following question: What is the total ATMs with off-site ATMs greater than 3672, and less than 1685 as the number of branches?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (total_atms VARCHAR, off_site_atms VARCHAR, number_of_branches VARCHAR)
SELECT COUNT(total_atms) FROM table_name_32 WHERE off_site_atms > 3672 AND number_of_branches < 1685
Write a SQL query that answers the following question: What is the total number of branches when the on-site ATMS is 1548, and the off-site ATMs is bigger than 3672?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (number_of_branches INTEGER, on_site_atms VARCHAR, off_site_atms VARCHAR)
SELECT SUM(number_of_branches) FROM table_name_84 WHERE on_site_atms = 1548 AND off_site_atms > 3672
Write a SQL query that answers the following question: What is the minimum total ATMs with new private sector banks as the bank type, and the on-site ATMs are greater than 1883?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (total_atms INTEGER, bank_type VARCHAR, on_site_atms VARCHAR)
SELECT MIN(total_atms) FROM table_name_42 WHERE bank_type = "new private sector banks" AND on_site_atms > 1883
Write a SQL query that answers the following question: What is the mean on-site ATMS that have off-site ATMs of 1567, and the total number of ATMs less than 4772?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (on_site_atms INTEGER, off_site_atms VARCHAR, total_atms VARCHAR)
SELECT AVG(on_site_atms) FROM table_name_20 WHERE off_site_atms = 1567 AND total_atms < 4772
Write a SQL query that answers the following question: With foreign banks as the bank type, and on-site ATMS less than 218, what is the average off-site ATMs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (off_site_atms INTEGER, bank_type VARCHAR, on_site_atms VARCHAR)
SELECT AVG(off_site_atms) FROM table_name_66 WHERE bank_type = "foreign banks" AND on_site_atms < 218
Write a SQL query that answers the following question: What is Effect, when Weapon is "35mm/Small arms fire"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (effect VARCHAR, weapon VARCHAR)
SELECT effect FROM table_name_53 WHERE weapon = "35mm/small arms fire"
Write a SQL query that answers the following question: What is Date, when Effect is "Shot Down", and when Place is "South of Stanley Airport"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (date VARCHAR, effect VARCHAR, place VARCHAR)
SELECT date FROM table_name_82 WHERE effect = "shot down" AND place = "south of stanley airport"
Write a SQL query that answers the following question: What is Place, when Weapon is "35mm fire", and when Date is "27 May 1982"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (place VARCHAR, weapon VARCHAR, date VARCHAR)
SELECT place FROM table_name_15 WHERE weapon = "35mm fire" AND date = "27 may 1982"
Write a SQL query that answers the following question: What is Pilot, when Place is "Goose Green", and when Date is "27 May 1982"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (pilot VARCHAR, place VARCHAR, date VARCHAR)
SELECT pilot FROM table_name_8 WHERE place = "goose green" AND date = "27 may 1982"
Write a SQL query that answers the following question: What is Place, when Weapon is "35mm/Small arms fire"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (place VARCHAR, weapon VARCHAR)
SELECT place FROM table_name_6 WHERE weapon = "35mm/small arms fire"
Write a SQL query that answers the following question: What is Pilot, when Weapon is "35mm fire", and when Date is "4 May 1982"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (pilot VARCHAR, weapon VARCHAR, date VARCHAR)
SELECT pilot FROM table_name_48 WHERE weapon = "35mm fire" AND date = "4 may 1982"
Write a SQL query that answers the following question: Who is the player with a Jersey Number(s) greater than 30?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (player VARCHAR, jersey_number_s_ INTEGER)
SELECT player FROM table_name_22 WHERE jersey_number_s_ > 30
Write a SQL query that answers the following question: What is the Years of the player with Jersey Number(s) of 44?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (years VARCHAR, jersey_number_s_ VARCHAR)
SELECT years FROM table_name_73 WHERE jersey_number_s_ = 44
Write a SQL query that answers the following question: What was the population in North Jeolla?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (population__2010_ VARCHAR, province VARCHAR)
SELECT population__2010_ FROM table_name_63 WHERE province = "north jeolla"
Write a SQL query that answers the following question: What's Korean for 南楊州 Hanja?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (korean VARCHAR, hanja VARCHAR)
SELECT korean FROM table_name_46 WHERE hanja = "南楊州"